Sales Orders Tools
Sales orders, quotes and the order book.
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.
sales_orders_list_orders
Sales order headers, by order date. Each order has separate status, payment_status and fulfilment_status. Amounts are given in the order's currency and your base currency.
| Parameter | Default | Description |
|---|---|---|
period |
last_30_days |
Order date. See Periods. |
party_ids |
All | Only these customers. |
statuses |
All | Any of draft, open, part_fulfilled, fulfilled, closed, cancelled, other, unknown. |
channel |
Any | An exact sales channel. Refused by systems without channels, such as Sage 50. |
query |
Empty | Searches IDs, order numbers, customer names and external order references. |
sales_orders_get_order
One sales order header, with its order, payment and fulfilment status.
| Parameter | Default | Description |
|---|---|---|
order_id |
Required | An ID from sales_orders_list_orders. |
sales_orders_list_order_lines
The lines of one sales order, with ordered, fulfilled and cancelled quantities.
| Parameter | Default | Description |
|---|---|---|
order_id |
Required | An ID from sales_orders_list_orders. |
query |
Empty | Searches line descriptions, products and SKUs. |
sales_orders_list_quotes
Quotations by quote date, and whether they were sent, accepted, rejected or expired. A quote isn't counted as an order.
| Parameter | Default | Description |
|---|---|---|
period |
last_30_days |
Quote date. See Periods. |
party_ids |
All | Only these customers. |
statuses |
All | Any of draft, sent, accepted, rejected, expired, other, unknown. |
query |
Empty | Searches IDs, quote numbers and customer names. |
sales_orders_get_order_summary
Report. Orders booked over a period, by order date. Draft and cancelled orders aren't counted. Bookings aren't the same as invoiced sales — for those, use receivables_get_turnover.
When grouped by product, carriage and order-level discounts appear in a row with no product.
| Parameter | Default | Description |
|---|---|---|
period |
month_to_date |
Required — can't be null. See Periods. |
grain |
total |
See Grouping and Time Grain. |
group_by |
Currency only | Any of party, product, channel, status. Sage 50 can't group by channel. |
order_by |
dimension_key |
dimension_key, order_count, net_booked, tax_booked or gross_booked. |
sales_orders_get_backlog
Report. What's still to be fulfilled today on open and part-fulfilled orders, however old. One row per product per unit per currency. overdue_quantity is the part that's past its expected date.
| Parameter | Default | Description |
|---|---|---|
group_by |
Product only | Any of party, product, warehouse, channel. Sage 50 can't group by warehouse or channel. |
order_by |
dimension_key |
dimension_key, product, unfulfilled_quantity, unfulfilled_net or overdue_quantity. |