Skip to main content

Purchase Orders

Purchase orders: ordering, receipt, completion, disputes, reopening for a credit note, and the card budget aggregated per order.

📄️Mark a purchase order as received

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.