Purchase orders, receipts and reorder: lifecycle, receiving, invoice matching and scanner
The purchase order lifecycle and its reads, editable receipts with a receiving plan and a printable sheet, a preview and a lock for reorder acceptance, invoice matching with candidates and unlinking, the scanner's order preview and the product reorder point. 8 new operations, 90 updated ones, 8 new MCP tools and 1 new rejection code.
2 December 2026 — The purchasing side of the omnichannel ERP gains the operations that
take a purchase order from draft to receipt and invoice: a lifecycle the order publishes in
full, receipts that can be edited and printed, a receiving plan, a reorder that can be
previewed before it is accepted, invoice matching that can be read, unlinked and offered
as candidates, and a reorder point on the product. The company axis
(/v1/companies/{company}/…) is unchanged, and no operation is removed or renamed.
What is new
- Purchase orders, 2 new operations.
purchase_orders.receiving_plan(GET …/receiving-plan) returns what each line can still receive and into which warehouse, andpurchase_orders.activitieslists the activity feed of the order. - Receipts, 2 new operations.
goods_receipts.update(PATCH …) edits a receipt that is not posted, andgoods_receipts.sheetproduces its printable receiving sheet. - Invoice matching, 3 new operations.
purchase_invoices.match.showreads the match of a purchase invoice,purchase_invoices.match.candidateslists the orders it can be linked to, andpurchase_invoices.match.unlinkremoves the link. - Reorder, 1 new operation.
purchase_reorder_suggestions.previewshows what accepting a suggestion would create, without creating anything. - MCP. 8 new tools:
get_purchase_order_receiving_plan,list_purchase_order_activities,update_goods_receipt,get_goods_receipt_sheet,get_purchase_invoice_match,list_purchase_invoice_match_candidates,unlink_purchase_invoice_matchandpreview_purchase_reorder_suggestions. Twenty-eight existing tools publish a new description or input schema, and the tools that preview an import, return a purchase scan or convert a sales order into delivery notes publish the same changes as their operations. See the tool catalog. - Rejection codes. 1 new code,
goods_receipt_sheet_not_available(422), and 12 new subcodes ofbusiness_rule_violation,resource_already_existsandresource_locked, listed below. See All rejection codes. The purchase order import has its own row code,SUPPLIER_ROLE_MISSING, for a contact without the supplier role.
Summary by group
- Purchase order. The resource publishes
lifecycle,origin,fulfilment,can_receive,next_stepandinvoices[]. Each line addsadditional_description,invoiced_quantityandinvoiced_base_quantity. The list accepts the filterspending,deliveryandinvoice,statspublishesportfolio,PATCHtakeslines[]andadjust_quantity, and the lifecycle actions take their optional fields. See Purchasing and receiving. - Receipt. Editing,
supplier_delivery_note,location_id, the filterpurchase_order_reference, the receiving plan and the sheet. - Reorder. The list publishes
urgency_rank,trigger,not_actionable_code,expected_date,is_overdue,days_overdueanddays_in_grace, accepting takes the lockreorder_accept_in_progress, and the product publishesreorder_pointandreorder_quantity. - Matching and scanner.
effect,tolerance,purchase_order_id,match_status,purchase_scan_idandreceived_unbilled[]on the match, and the preview of an order throughinclude=order_previewon the scan. See Document scanner. - Availability and product. The incoming figure of availability publishes
is_overdue,days_overdueanddays_in_grace, and the stock ledger names the receipt. See Inventory and warehouses.
Ninety operations that already existed describe more in the contract: 24 of purchase orders, 6 of receipts, 12 of purchase invoices, 2 of reorder, 8 of the purchase scanner, 13 of products, 3 of availability, 1 of the stock ledger, 2 of events, 2 of webhook deliveries, the imports of sales orders, warehouses and warehouse stock, which publish the shared import shapes, their templates and error reports, and the conversion of a sales order into delivery notes. Request and response examples are also refreshed in 42 further operations whose contract does not change.
Behaviors the contract defines
- Invoiced quantity counts what is matched.
PurchaseOrderLine.invoiced_quantityandinvoiced_base_quantity,PurchaseOrder.fulfilmentand the match (purchase_orders.match,PurchaseOrderInvoice) count the invoices that are matched to the order. Cancelled invoices do not weigh in the aggregate state of the match or in the outcome of closing the order. - The line discount enters the compared cost. The match compares the cost with the
discount of each line applied.
PurchaseInvoiceMatchLine.effectandinvoiced_price_change_percent,PurchaseInvoiceMatch.effectandtolerance, andPurchaseOrderInvoice.lines[].invoiced_unit_pricepublish the result. - Suggested reorder quantity is whole.
suggested_quantityis an integer in the counting unit, andsuggested_quantity_exactcarries the exact value, inpurchase_reorder_suggestions.list. - The default concept of a new line. A line created without a concept takes the
concept of the product and does not repeat the supplier reference in it. The optional
additional_descriptionofpurchase_orders.create,purchase_orders.lines.createandpurchase_orders.lines.updatecarries the free text. - A repeated supplier reference names the field and the order.
purchase_orders.createandpurchase_orders.updaterespond409with coderesource_already_exists, subcodepurchase_order_already_exists,paramsupplier_order_referenceanddetails.purchase_orderwith theid,number,supplier_nameandorder_date(YYYY-MM-DD) of the order that already uses it. The reference is unique per company, not per supplier, sosupplier_nameis the supplier of that order, which may be another one, and it isnullwhen its contact cannot be resolved. In a batch the row fails on its own (behavior 28). The import (purchase_orders.import) and its preview (purchase_orders.preview_import) do not respond409: they skip the document withreasonalready_exists, orduplicate_in_fileif the reference is repeated in the file, and name the existing order intarget_uuid(import) ortarget_id(preview). - Excess and offer rejections point at the line.
422with codegoods_receipt_exceeds_ordered_quantityandparamlines.N.quantity. For supplier offers,422with codebusiness_rule_violationand subcodessupplier_offer_not_found(it namesoffer_idwhen an offer was indicated),supplier_offer_ambiguousandpurchase_order_supplier_offers_missing, withparamlines.N.offer_idorlines.N.product_id. - The PDF of a draft or cancelled order. A draft carries the watermark
pdf.erp.purchase_order.draft_watermark(DRAFT) and a cancelled orderpdf.erp.purchase_order.cancelled_watermark(CANCELLED). In the Classic template the quantity appears in its purchase unit and the supplier reference once. - A sent order accepts receipts, and posting one confirms it. Posting a receipt with
goods_receipts.postmoves a sent order tolifecycleconfirmed, and the webhookpurchase_order.confirmedcarries the order in that state. - A receipt without a declared warehouse asks for it when lines sit in several.
422with codebusiness_rule_violation, subcodegoods_receipt_warehouse_ambiguousandparamwarehouse_id, ingoods_receipts.create,goods_receipts.updateandpurchase_orders.receipts.create. - A receipt can be saved empty. The rule of at least one line applies when it is
posted:
422withbusiness_rule_violationand subcodegoods_receipt_without_lines(paramlines). Creating with theidof the client is idempotent, and anidthat is not available for a new receipt responds409with coderesource_already_exists, subcodegoods_receipt_already_existsandparamid. The response is the same in every case and asks for another identifier. - Accepting a reorder. A repeated product responds
422withparamitems.N.product_id. A simultaneous acceptance responds409with coderesource_locked, subcodereorder_accept_in_progressandparamitems. A line whose tax rate cannot be resolved is omitted, andomitted[].codeistax_rate_unresolved. The drafts are created withoutsupplier_order_reference, so accepting does not respond the409purchase_order_already_exists. - The warehouse filter matches lines too. The parameter
warehouse_idofpurchase_orders.listand of the toolsearch_purchase_ordersmatches the warehouse of the header and of any line. - Optional fields in the order actions. Cancelling accepts
reason, confirming acceptsexpected_date(the date of the supplier), marking as sent acceptsnoteandsent_on, and sending by email can save the supplier email withsave_send_to_contact. A confirmation date earlier than the order responds422withpurchase_order_expected_date_invalidandparamexpected_date. Saving the email without the scopecontacts:writeresponds403withinsufficient_scope. - The task link of a goods receipt. The
urlof the link between a task and a goods receipt points to the receipts screen,/goods-receipts/{id}. - The ledger names the receipt.
StockMovement.source_labelandCompanyStockMovement.source_idandsource_labelcarry the number of the goods receipt (for exampleREC-2026-00031) when thesourceisgoods_receipt, instock_movements.listandproducts.stock_movements.list. - Origin and lifecycle in the order and its webhooks.
purchase_orders.listandpurchase_orders.showpublishoriginandlifecycle, and so do thepurchase_order.*webhooks and the events and webhook deliveries that carry them (events.list,events.show,webhook_endpoints.deliveries.listand.show). - New fields, filters, operations and codes. Matching and scanner:
received_unbilled(withquantityandpurchase_unit_code),unposted_receipt,pending_to_receive,preview.lines[](withinclude=order_preview),deviated_lines,rejected_base_quantityandexcluded_line_items. Receipts:receiving-planwithwarehouse_id(a uuid ornone) andreceipt_id,days_until_due,days_in_graceandgrace_daysin thepurchase_orderof the receipt, and the filterssupplier_delivery_noteandpurchase_order_reference. Overdue:days_in_gracein thedeliveryof the order, in reorder and inincoming[]of availability, withis_overdueanddays_overdue. Reorder:expected_dateper row and per offer,products_with_threshold_countandproducts_without_threshold_count,conversion_factorandtax_sourcein the preview, andomitted[].codealways present withoffer_not_validandquantity_not_valid. Product:reorder_pointandreorder_quantity, also in the body of theproduct.*events. New codegoods_receipt_sheet_not_available. New subcodes:purchase_invoice_not_linked,reorder_accept_in_progress,goods_receipt_not_editable,goods_receipt_warehouse_ambiguous,goods_receipt_location_invalid,purchase_order_supplier_quantity_not_divisible,purchase_order_line_identity_changed,supplier_offer_not_found,supplier_offer_ambiguous,purchase_order_expected_date_invalid,product_invalid_reorder_pointandgoods_receipt_already_exists. - Sales reservations in the base unit. On sales-order lines that have a presentation,
the reserved and available figures that
stock_availability.*publish count the real units, measured in the base unit of the product. Lines without a presentation keep their figure. - Lines keep the order they are sent in.
purchase_orders.createkeeps the lines in the order of the array, and that is the order of the document wherever it is read. Inpurchase_orders.update,linesreplaces the set and its order: a kept line moves without changing itsid, and a new one stays where it was sent. - Editing a receipt keeps what the body omits.
goods_receipts.updateworks like every otherPATCHof the public API: every property ofReviseGoodsReceiptRequestis optional.nullemptieswarehouse_id,supplier_delivery_noteornotes, andreceived_ondoes not accept it. When sent,linesreplaces the whole set and may be empty; when omitted, the saved lines are kept and checked again against the new header. The toolupdate_goods_receiptonly requiresid. - The scanner names the chosen order. The
order_matchingof a purchase scan publishespurchase_order_numberandpurchase_order_statusof the chosen order, also when it is no longer among the candidates. Both arenullwithout a chosen order or when the order no longer exists. They come inpurchase_scans.show,purchase_scans.review,purchase_scans.convertand every operation that returns the scan. - The import preview shows what the execution creates. Each item of
preview_importfor warehouses, warehouse stock, sales orders and purchase orders publishes inheaderthe normalized values (ISO dates, decimal strings) and the public identifiers it resolved as*_id, such assupplier_id,warehouse_idoroffer_idin purchase orders.lineslists the lines as the execution will create them, without internal identifiers, and is empty for warehouses, warehouse stock and skipped documents. A skipped document carries at least its identity as read from the file. - The key of a document.
keyin the preview, which is also thegroup_keyof the import outcomes, is the order number,SERIES|numberwhen the file declares a series,code#rowfor a warehouse andwarehouse|product|variant#rowfor warehouse stock, without empty trailing parts: a document without a series is keyed by its number alone. A|or\inside a value, and a leading#, are escaped with\. - Templates and error reports as they are downloaded. The examples of
import_templateandimports.errorsof warehouses, warehouse stock, sales orders and purchase orders show the downloaded file: a UTF-8 CSV with a BOM, the template with its column labels separated by;, and the error report with the headerrow_number,column,field,severity,code,message,received_value, where a skipped row is awarning. A sales order over the monthly limit of the plan carries the codesales_orders_monthly_limit_exceeded, the same in the error report and in the import. - The quantity of a conversion in
requested_quantity. The422quantity rejections of conversions, such assales_orders.convert_to_delivery_notes, carrydetails.line_id,details.pendinganddetails.requested_quantity(decimal string). In the sharedErrorcomponent,details.requestedis the integer number of seats ofcontracted_seats_selection_required. - A contact without the supplier role in a purchase order import. In
purchase_orders.preview_importandpurchase_orders.import, and in the toolspreview_purchase_orders_importandimport_purchase_orders, a row whosesupplier_tax_idbelongs to a contact of the company without the supplier role fails with the codeSUPPLIER_ROLE_MISSING, and a tax ID that is no contact of the company fails withFK_NOT_FOUND. Both point atsupplier_tax_idand, in the import (outcomes[].errors[]andfirst_diagnostics), carryparams.tax_idwith the tax ID of the file. Assign the supplier role to the contact and import the file again. - Sending a purchase order by email.
purchase_orders.sendand the toolsend_purchase_orderrespond the same: withouttoin the request and without an email on the supplier record,422withmissing_required_paramandparamto; with the recipient resolved, a mail that cannot be queued for delivery responds500withsend_failed. In both cases nothing is saved and the order keeps its state. - A batch row with a repeated supplier reference names the order. In
purchase_orders.bulk_createand the toolbulk_create_purchase_orders, a row whosesupplier_order_referenceanother purchase order of the company already carries, also one created earlier in the same batch, fails on its own and the other rows go on. Its item infailures[]carrieserror_coderesource_already_exists,subcodepurchase_order_already_exists,paramsupplier_order_referenceanddetails.purchase_order(id,number,supplier_name,order_date), the same as the409of the single create. The sharedBulkPartialSuccessResultcomponent declaressubcode,paramanddetailsas optional on everyfailures[]item, andpurchase_orders.bulk_createis the operation that fills them.
The activity feed of a sales order (sales_orders.activities) documents its 400 for an
invalid pagination parameter.
Where to read more
Purchasing and receiving, Inventory and warehouses, Document scanner, the tool catalog and All rejection codes.
New endpoints8
| Endpoint | Description |
|---|---|
GET/v1/companies/{company}/goods-receipts/{goods_receipt}/sheet | Download goods receipt sheet |
PATCH/v1/companies/{company}/goods-receipts/{goods_receipt} | Update a goods receipt |
GET/v1/companies/{company}/purchase-invoices/{purchase_invoice}/match/candidates | List purchase orders a purchase invoice can be linked to |
GET/v1/companies/{company}/purchase-invoices/{purchase_invoice}/match | Get the three-way match of a purchase invoice |
POST/v1/companies/{company}/purchase-invoices/{purchase_invoice}/match/unlink | Unlink a purchase invoice from its purchase order |
GET/v1/companies/{company}/purchase-orders/{purchase_order}/activities | List purchase order activity |
GET/v1/companies/{company}/purchase-orders/{purchase_order}/receiving-plan | Retrieve the receiving plan of a purchase order |
POST/v1/companies/{company}/purchase-reorder-suggestions/preview | Preview the drafts of a reorder acceptance |