Fetch customer credit balance summary
This endpoint returns a customer’s credit balance in a single currency or custom pricing unit: the total available balance, the balance waiting on payment, and the next upcoming expiration.
balance is the sum of balance across the customer’s active credit blocks, as listed by
Fetch customer credit balance. Expired, depleted, and
voided blocks are not included. Blocks in pending_payment status are totaled in pending_payment_balance
instead, and become available once their invoice is paid.
Note that currency defaults to credits if not specified. To use a real world currency, set currency to an ISO
4217 string. A customer with no credits in that currency returns a balance of 0.
Authorizations
API Keys can be issued in the Orb's web application.
Path Parameters
Query Parameters
The ledger currency or custom pricing unit to use.
Response
OK
The currency or custom pricing unit the balances are denominated in. Null when no currency is passed and the customer has no credit ledger, in which case every balance is 0.
The customer's available credit balance: the sum of balance across their active credit blocks.
The total balance of credit blocks in pending_payment status. Not included in balance until the invoice that funds them is paid.
The earliest expiry_date among active credit blocks. Null if none of them expire.
The balance that expires on next_expiry_date. Null if next_expiry_date is null.