Receivables Tools
Customer invoices, credit notes, payments and money owed to you.
Every tool on this page also takes company_id and connection_id (both required) and the freshness parameters. List tools also take page_size, cursor, sort_by and sort_direction; report tools take page_size, cursor, order_by and sort_direction. See Common Parameters.
What each system can answer is on the Sage 50 (UK) page.
receivables_list_invoices
Customer invoice and credit note headers, by issue date. Amounts are given in the document's currency and your base currency.
| Parameter | Default | Description |
|---|---|---|
period |
last_30_days |
Issue date. See Periods. |
party_ids |
All | Only these customers. |
document_types |
Both | invoice, credit_note or both. |
statuses |
All | Any of draft, quote, proforma, posted, part_paid, paid, void, other, unknown. |
query |
Empty | Searches IDs, document numbers and customer names. |
receivables_get_invoice
One customer invoice or credit note header.
| Parameter | Default | Description |
|---|---|---|
invoice_id |
Required | An ID from receivables_list_invoices. |
receivables_list_invoice_lines
The lines of one invoice or credit note.
| Parameter | Default | Description |
|---|---|---|
invoice_id |
Required | An ID from receivables_list_invoices. |
query |
Empty | Searches line descriptions and products. |
receivables_list_allocations
Which payments were allocated to which invoices, including reversals. Each allocation is dated when it was settled.
| Parameter | Default | Description |
|---|---|---|
period |
last_30_days |
Allocation date. See Periods. |
document_ids |
All | Only allocations to these invoices or credit notes. |
payment_ids |
All | Only these payments, using IDs from earlier allocation results. |
query |
Empty | Searches payment and document references. |
receivables_get_aged_balances
Report. What each customer owes today, grouped by how far past the due date it is: current, days_1_30, days_31_60, days_61_90 and days_91_plus. One row per customer per currency. Open credit notes are shown as unallocated_credit and taken off total_outstanding.
Always as of today. For an earlier date, use receivables_list_invoices with a period.
| Parameter | Default | Description |
|---|---|---|
party_ids |
All | Only these customers. |
include_zero_balances |
false |
Include customers whose open documents net to zero. |
order_by |
dimension_key |
dimension_key, party, current, days_1_30, days_31_60, days_61_90, days_91_plus, unallocated_credit or total_outstanding. |
receivables_list_open_invoices
Every unpaid customer invoice and credit note, however old. Doesn't take a period, so old debt is never left out.
| Parameter | Default | Description |
|---|---|---|
overdue_only |
false |
Only documents due before today. |
party_ids |
All | Only these customers. |
query |
Empty | Searches IDs, document numbers and customer names. |
receivables_get_turnover
Report. Posted invoices less credit notes over a period. This is invoiced sales, which may differ from revenue in your nominal ledger.
| Parameter | Default | Description |
|---|---|---|
period |
month_to_date |
Required — can't be null. See Periods. |
date_basis |
issue_date |
issue_date or posted_date. |
grain |
total |
See Grouping and Time Grain. |
group_by |
Currency only | Any of party, product, account, department. |
order_by |
dimension_key |
dimension_key, net_invoiced, tax, gross_invoiced, invoice_count or credit_note_count. |