Skip to main content

Mark a purchase order as received

POST 

/purchase-orders/:code/receive

Transitions a purchase order from ORDERED to RECEIVED status with delivery details. A purchase order already COMPLETED and carrying no delivery confirmation accepts one after the fact and keeps its status: it was closed by full invoicing before anyone confirmed the delivery. Only a flawless condition is accepted there, because a completed order has no transition to DISPUTED left. When the optional "lines" array is present, the server derives "condition", "ordered_amount" and "received_amount" from it and ignores any values sent for those three fields. Each line_item_id must belong to the purchase order's purchase request, and each quantity must not exceed that line's ordered quantity.

Request​

Responses​

Successfully marked purchase order as received