GET/v1/billing/ledger

Ledger entries

Append-only ledger entries newest first with a cursor: top-ups, reservations, releases, charges, refunds, adjustments, subscription fees and invoice payments, each with the amount and what it did to the balance, the reserved and the outstanding figures. Filter on type (comma separated), a period and a reference id (for example an item id).

Scope billing.read

Query parameters

typeany
fromdate-time
todate-time
referenceIdstringmin length 1max length 60
limitintegermin 1max 200default 50
cursorstringmax length 200

Returns

2 fields of the 200 answer
dataarray of objectsrequired
14 fields
idstringrequired
typeenumrequired
TOP_UPRESERVATIONRELEASECHARGEREFUNDADJUSTMENTSUBSCRIPTION_FEEINVOICE_PAYMENT
amountCentsintegerrequired
currencystringrequired
balanceDeltaCentsintegerrequired
reservedDeltaCentsintegerrequired
outstandingDeltaCentsintegerrequired
referenceTypeenum or nullrequired
itempostbatchruninvoicepayment
referenceIdstring or nullrequired
descriptionstring or nullrequired
metadataobjectrequired
17 fields
modeenum
PREPAIDTRIALINVOICE
listAmountCentsinteger
productIdstring
finishstring
destinationstring
runIdstring or null
postbatchIdstring or null
postflowIdstring or null
subscriptionIdstring
planIdstring
monthstring
invoiceVatboolean
invoiceNumberstring
creditNoteOfstring
reasonstring
methodenum
BANK_TRANSFEROTHER
paidAtdate-time
actorTypeenumrequired
USERAPI_KEYADMINSYSTEM
actorIdstring or nullrequired
createdAtdate-timerequired
nextCursorstring or nullrequired

Responses

200Success
401Authentication required or API key invalid
403Permission or scope missing, organisation suspended
422Validation failed
429Rate limited for this API key and class; wait Retry-After seconds
otherError (RFC 9457 problem details)