cURL
curl --request GET \ --url https://api.example.com/billing/credit-packages
{ "credits": 123, "price_cents": 123, "offer_price_cents": {}, "savings_pct": {} }
Retrieve the one-time top-up packages available for purchase.
[ { "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 } ]
null
price_cents
curl https://api.supapost.so/billing/credit-packages \ -H "Authorization: Bearer YOUR_API_KEY"