Payables Tools
Supplier invoices, credit notes, payments and money you owe.
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.
payables_list_invoices
Supplier 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 suppliers. |
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 supplier names. |
payables_get_invoice
One supplier invoice or credit note header.
| Parameter | Default | Description |
|---|---|---|
invoice_id |
Required | An ID from payables_list_invoices. |
payables_list_invoice_lines
The lines of one supplier invoice or credit note.
| Parameter | Default | Description |
|---|---|---|
invoice_id |
Required | An ID from payables_list_invoices. |
query |
Empty | Searches line descriptions and products. |
payables_list_allocations
Which payments were allocated to which supplier 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. |
payables_get_aged_balances
Report. What you owe each supplier 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 supplier per currency. Open credit notes are shown as unallocated_credit and taken off total_outstanding.
Always as of today. For an earlier date, use payables_list_invoices with a period.
| Parameter | Default | Description |
|---|---|---|
party_ids |
All | Only these suppliers. |
include_zero_balances |
false |
Include suppliers 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. |
payables_list_open_invoices
Every unpaid supplier invoice and credit note, however old. Doesn't take a period, so old invoices are never left out.
| Parameter | Default | Description |
|---|---|---|
overdue_only |
false |
Only documents due before today. |
party_ids |
All | Only these suppliers. |
query |
Empty | Searches IDs, document numbers and supplier names. |
payables_get_turnover
Report. Posted supplier invoices less credit notes over a period. This is invoiced purchases, which may differ from costs 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. |