Sazabi
APIBilling

List billing transactions

GET
/billing/transactions

List recent credit ledger transactions with pagination.

Query Parameters

organizationId?string

Organization to query transactions for. Auto-filled from CLI and SDK context when omitted. User tokens must supply it unless the credential's fixed scope resolves it; secret keys may omit it (the key's organization applies).

Length1 <= length
limit?integer

Maximum number of transactions to return per page.

Range1 <= value <= 100
Default10
page?integer

Page number for pagination (1-indexed).

Range1 <= value <= 9007199254740991
Default1

Response Body

application/json

curl -X GET "https://example.com/billing/transactions"
{  "items": [    {      "id": "string",      "transactionType": "cycle_top_up",      "creditDelta": "string",      "direction": "credit",      "reason": "cycle_renewal",      "amount": "string",      "balanceAfter": "string",      "occurredAt": "2019-08-24T14:15:22Z",      "billingInvoiceId": "string"    }  ],  "pagination": {    "page": 0,    "limit": 0,    "total": 0,    "totalPages": 0,    "hasNext": true,    "hasPrev": true  }}