List the subscription products on sale
curl --request GET \
--url 'https://sandbox.circularo.com/api/v1/stripe/products?token='import requests
url = "https://sandbox.circularo.com/api/v1/stripe/products?token="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://sandbox.circularo.com/api/v1/stripe/products?token=', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox.circularo.com/api/v1/stripe/products?token=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sandbox.circularo.com/api/v1/stripe/products?token="
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sandbox.circularo.com/api/v1/stripe/products?token=")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/stripe/products?token=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"products": [
{
"editionName": "business",
"id": "prod_QsW1eZvKYlo2C0",
"maxQuantity": 500,
"minQuantity": 1,
"name": "Circularo Business seat",
"prices": [
{
"currency": "eur",
"id": "price_1Nq8yZ2eZvKYlo2C0X9Yz3Ab",
"pricePerUnit": 1000,
"recurringInterval": "1M",
"transactionsPerItem": 10,
"type": "recurring"
}
]
}
]
}{
"status": 401,
"type": "AUTH:UNAUTHORIZED",
"message": "Authentication failed",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 403,
"type": "AUTH:ACCESS_DENIED",
"message": "Access denied",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 429,
"type": "SYSTEM:RATE_LIMIT_EXCEEDED",
"message": "Rate limit exceeded",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}Stripe
List the subscription products on sale
GET /stripe/products
Returns the products an organization can subscribe to, each with the recurring prices it is sold at and the range of units that may be bought of it. Only the products the payment provider holds as managed by Circularo are offered.
A price is what a purchase actually names - both POST /stripe/checkout and PUT /stripe/subscription take their price identifiers from here - and it also carries the Circularo edition the organization ends up on and how many transactions one unit of it is worth.
Token authorization: Authorize using a token — either a session token obtained from login or an API key — to call this endpoint.
Required user role: organization_admin
List the subscription products on sale
curl --request GET \
--url 'https://sandbox.circularo.com/api/v1/stripe/products?token='import requests
url = "https://sandbox.circularo.com/api/v1/stripe/products?token="
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://sandbox.circularo.com/api/v1/stripe/products?token=', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://sandbox.circularo.com/api/v1/stripe/products?token=",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://sandbox.circularo.com/api/v1/stripe/products?token="
req, _ := http.NewRequest("GET", url, nil)
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://sandbox.circularo.com/api/v1/stripe/products?token=")
.asString();require 'uri'
require 'net/http'
url = URI("https://sandbox.circularo.com/api/v1/stripe/products?token=")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
response = http.request(request)
puts response.read_body{
"products": [
{
"editionName": "business",
"id": "prod_QsW1eZvKYlo2C0",
"maxQuantity": 500,
"minQuantity": 1,
"name": "Circularo Business seat",
"prices": [
{
"currency": "eur",
"id": "price_1Nq8yZ2eZvKYlo2C0X9Yz3Ab",
"pricePerUnit": 1000,
"recurringInterval": "1M",
"transactionsPerItem": 10,
"type": "recurring"
}
]
}
]
}{
"status": 401,
"type": "AUTH:UNAUTHORIZED",
"message": "Authentication failed",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 403,
"type": "AUTH:ACCESS_DENIED",
"message": "Access denied",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}{
"status": 429,
"type": "SYSTEM:RATE_LIMIT_EXCEEDED",
"message": "Rate limit exceeded",
"requestId": "3fa85f6457174562b3fc2c963f66afa6"
}