Skip to main content

Get Entry by Source

GET 

/api/ledger/entries/by-source

The current ledger journal entry for a source document (or data:null). source_type is the source model class, source_id its id. A sales order's receivable is posted on its sales invoice: for an order invoiced as a whole, query its order-mirror invoice (source_type App\Models\SalesInvoice, the invoice id from GET /api/sales-orders/{salesOrder}/invoices) — the order itself carries no invoice entry. The returned source object names the document (link_type_label, label, link_route) and, for a sales invoice, its sales order under source.context.

Required scope: accounting:read

Grant this scope to your token under Settings → Developer → Personal Access Tokens.

Request​

Responses​

OK

Response Headers
    Content-Type