List Credit Packages
curl --request GET \
--url https://api.example.com/billing/credit-packagesimport requests
url = "https://api.example.com/billing/credit-packages"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/billing/credit-packages', 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://api.example.com/billing/credit-packages",
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://api.example.com/billing/credit-packages"
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://api.example.com/billing/credit-packages")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/billing/credit-packages")
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{
"credits": 123,
"price_cents": 123,
"offer_price_cents": {},
"savings_pct": {}
}Billing
List Credit Packages
Retrieve the one-time top-up packages available for purchase.
GET
/
billing
/
credit-packages
List Credit Packages
curl --request GET \
--url https://api.example.com/billing/credit-packagesimport requests
url = "https://api.example.com/billing/credit-packages"
response = requests.get(url)
print(response.text)const options = {method: 'GET'};
fetch('https://api.example.com/billing/credit-packages', 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://api.example.com/billing/credit-packages",
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://api.example.com/billing/credit-packages"
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://api.example.com/billing/credit-packages")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.example.com/billing/credit-packages")
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{
"credits": 123,
"price_cents": 123,
"offer_price_cents": {},
"savings_pct": {}
}Returns every active top-up pack — a non-expiring credit bundle purchased on top of the monthly plan. Spent AFTER monthly plan credits deplete, so a team with a healthy monthly balance doesn’t erode their top-up on the next renewal.
Response
200
[
{
"id": "pkg-uuid",
"slug": "credits-1k",
"name": "1,000 credits",
"credits": 1000,
"price_cents": 1000,
"offer_price_cents": null,
"savings_pct": null,
"is_active": true,
"sort_order": 10
},
{
"id": "pkg-uuid",
"slug": "credits-5k",
"name": "5,000 credits",
"credits": 5000,
"price_cents": 5000,
"offer_price_cents": 4000,
"savings_pct": 20,
"is_active": true,
"sort_order": 20
}
]
Fields
integer
Number of credits granted on purchase.
integer
Full price in the smallest currency unit (cents for USD).
integer | null
Discounted price when the pack is promoted.
null means no offer —
show price_cents only.integer | null
Rounded-percentage savings vs.
price_cents. Convenience for badges
like “−20%”.Example
cURL
curl https://api.supapost.so/billing/credit-packages \
-H "Authorization: Bearer YOUR_API_KEY"