List
curl --request GET \
--url https://{defaultHost}/v1/prices \
--header 'Authorization: Bearer <token>'import requests
url = "https://{defaultHost}/v1/prices"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{defaultHost}/v1/prices', 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://{defaultHost}/v1/prices",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://{defaultHost}/v1/prices"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{defaultHost}/v1/prices")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{defaultHost}/v1/prices")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"object": "list",
"pagination": {
"count": 1,
"limit": 20,
"page": 1,
"url": "/v1/prices"
},
"data": [
{
"id": "ac3c3736-cf07-414c-8911-c97aeb40192d",
"object": "price",
"ad_hoc": false,
"ad_hoc_max_amount": null,
"ad_hoc_min_amount": 0,
"amount": 2900,
"archived": false,
"archived_at": null,
"currency": "usd",
"current_version": true,
"full_amount": 2900,
"license_activation_limit": null,
"metadata": {},
"name": null,
"position": 0,
"portal_subscription_update_enabled": true,
"restart_subscription_on_completed": false,
"revoke_after_days": null,
"revoke_purchases_on_completed": false,
"recurring_interval": null,
"recurring_interval_count": null,
"recurring_period_count": null,
"scratch_amount": null,
"setup_fee_amount": 0,
"setup_fee_enabled": false,
"setup_fee_trial_enabled": true,
"setup_fee_name": null,
"trial_duration_days": null,
"current_swap": null,
"product": "b29c2729-05af-4090-8c5d-ce622cd864f0",
"renewal_price": null,
"discarded_at": null,
"created_at": 1793796933,
"updated_at": 1793796933
}
]
}Prices
List
Returns a list of your prices.
GET
/
v1
/
prices
List
curl --request GET \
--url https://{defaultHost}/v1/prices \
--header 'Authorization: Bearer <token>'import requests
url = "https://{defaultHost}/v1/prices"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://{defaultHost}/v1/prices', 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://{defaultHost}/v1/prices",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$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://{defaultHost}/v1/prices"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://{defaultHost}/v1/prices")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://{defaultHost}/v1/prices")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"object": "list",
"pagination": {
"count": 1,
"limit": 20,
"page": 1,
"url": "/v1/prices"
},
"data": [
{
"id": "ac3c3736-cf07-414c-8911-c97aeb40192d",
"object": "price",
"ad_hoc": false,
"ad_hoc_max_amount": null,
"ad_hoc_min_amount": 0,
"amount": 2900,
"archived": false,
"archived_at": null,
"currency": "usd",
"current_version": true,
"full_amount": 2900,
"license_activation_limit": null,
"metadata": {},
"name": null,
"position": 0,
"portal_subscription_update_enabled": true,
"restart_subscription_on_completed": false,
"revoke_after_days": null,
"revoke_purchases_on_completed": false,
"recurring_interval": null,
"recurring_interval_count": null,
"recurring_period_count": null,
"scratch_amount": null,
"setup_fee_amount": 0,
"setup_fee_enabled": false,
"setup_fee_trial_enabled": true,
"setup_fee_name": null,
"trial_duration_days": null,
"current_swap": null,
"product": "b29c2729-05af-4090-8c5d-ce622cd864f0",
"renewal_price": null,
"discarded_at": null,
"created_at": 1793796933,
"updated_at": 1793796933
}
]
}Authorizations
Query Parameters
Was this page helpful?