List the ledger lines posted against an order
List every ledger line posted against an order, sorted by ledger_date ascending. Ledger lines are Trybe's financial record of an order — one entry per revenue posting, per payment, per refund and per redemption — and form the audit trail used by the reporting suite to compute revenue, payment and tax totals.
Each line carries a revenue_centre code (and a human-friendly revenue_centre_name), an amount split into gross_amount and net_amount in the order's currency, plus references to the payable (the thing being charged — usually an order or a payment) and the causer (the user or system process that triggered the posting).
The response is not paginated; orders typically have tens of ledger lines and rarely hundreds.
Response
The ledger lines for the order.
Example response
{
"data": [
{
"type": "revenue",
"status": "final",
"gross_amount": 12000,
"net_amount": 10000,
"revenue_centre": "treatments",
"revenue_centre_name": "Treatments",
"payment_processor": "stripe",
"payment_processor_friendly": "Stripe",
"currency": "gbp",
"created_at": "2025-02-04T12:00:00+01:00"
}
]
}Changes
No recorded changes to this endpoint across all 1 revision of this API.