GET
/v1/billing/ledgerLedger 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.readQuery parameters
typeanyfromdate-timetodate-timereferenceIdstringmin length 1max length 60limitintegermin 1max 200default 50cursorstringmax length 200Returns
2 fields of the 200 answer
dataarray of objectsrequired14 fields
idstringrequiredtypeenumrequiredTOP_UPRESERVATIONRELEASECHARGEREFUNDADJUSTMENTSUBSCRIPTION_FEEINVOICE_PAYMENTamountCentsintegerrequiredcurrencystringrequiredbalanceDeltaCentsintegerrequiredreservedDeltaCentsintegerrequiredoutstandingDeltaCentsintegerrequiredreferenceTypeenum or nullrequireditempostbatchruninvoicepaymentreferenceIdstring or nullrequireddescriptionstring or nullrequiredmetadataobjectrequired17 fields
modeenumPREPAIDTRIALINVOICElistAmountCentsintegerproductIdstringfinishstringdestinationstringrunIdstring or nullpostbatchIdstring or nullpostflowIdstring or nullsubscriptionIdstringplanIdstringmonthstringinvoiceVatbooleaninvoiceNumberstringcreditNoteOfstringreasonstringmethodenumBANK_TRANSFEROTHERpaidAtdate-timeactorTypeenumrequiredUSERAPI_KEYADMINSYSTEMactorIdstring or nullrequiredcreatedAtdate-timerequirednextCursorstring or nullrequiredResponses
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)