Skip to main content
GET
Fetch customer credit balance summary by external customer id

Authorizations

Authorization
string
header
required

API Keys can be issued in the Orb's web application.

Path Parameters

external_customer_id
string | null
required

Query Parameters

currency
string | null

The ledger currency or custom pricing unit to use.

Response

OK

currency
string | null
required

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.

balance
number
required

The customer's available credit balance: the sum of balance across their active credit blocks.

pending_payment_balance
number
required

The total balance of credit blocks in pending_payment status. Not included in balance until the invoice that funds them is paid.

next_expiry_date
string<date-time> | null
required

The earliest expiry_date among active credit blocks. Null if none of them expire.

next_expiry_balance
number | null
required

The balance that expires on next_expiry_date. Null if next_expiry_date is null.