Skip to content

Procurement Tools

Purchase orders, goods received and supplier performance.

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.

procurement_list_purchase_orders

Purchase order headers, by order date. Amounts are given in the order's currency and your base currency.

Parameter Default Description
period last_30_days Order date. See Periods.
supplier_ids All Only these suppliers.
statuses All Any of draft, open, part_received, received, closed, cancelled, other, unknown.
warehouse_ids All Only these warehouses. Refused by systems without stock locations.
query Empty Searches IDs, order numbers and supplier names.

procurement_get_purchase_order

One purchase order header.

Parameter Default Description
purchase_order_id Required An ID from procurement_list_purchase_orders.

procurement_list_purchase_order_lines

The lines of one purchase order, with ordered, received and cancelled quantities.

Parameter Default Description
purchase_order_id Required An ID from procurement_list_purchase_orders.
query Empty Searches line descriptions, products and SKUs.

procurement_list_goods_receipts

Goods received, by received date. A goods receipt records goods arriving — it isn't a supplier invoice.

Parameter Default Description
period last_30_days Received date. See Periods.
supplier_ids All Only these suppliers.
purchase_order_ids All Only receipts against these purchase orders.
warehouse_ids All Only these warehouses. Refused by systems without stock locations.
query Empty Searches IDs, receipt numbers, order numbers and supplier names.

procurement_get_purchase_commitments

Report. The value still to come on open and part-received purchase orders, however old: the quantity ordered less received and cancelled, at each line's net price. One row per supplier per unit per currency.

Parameter Default Description
group_by Supplier only Any of supplier, product, warehouse.
order_by dimension_key dimension_key, supplier, outstanding_quantity or committed_net.

procurement_get_supplier_performance

Report. How each supplier delivered over a period: the number of receipts, how many were on time against the expected date, the on-time ratio, and the average lead time in days from order to receipt.

Receipts with no expected date aren't counted as on time or late; how many were left out is shown in meta.warnings.

Parameter Default Description
period month_to_date Received date. Required — can't be null. See Periods.
grain total See Grouping and Time Grain.
group_by Time only Any of supplier, warehouse.
order_by dimension_key dimension_key, receipt_count, on_time_receipt_count, on_time_ratio or mean_lead_days.