Sazabi
APIBilling

Purchase credits

POST
/billing/credits/purchase

Purchase a one-time amount of credits against the saved payment method. Requires a user credential with billing:manage and a stable idempotency key.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/billing/credits/purchase" \  -H "Content-Type: application/json" \  -d '{    "amount": "string",    "idempotencyKey": "string"  }'
{  "status": "paid",  "billingInvoiceId": "string",  "topUpAmount": "string",  "creditsToGrant": "string",  "currency": "string"}