Update an existing order
As buyer you can send either a new or updated purchase order to Tradecloud.
Order process
Section titled “Order process”- If an order line has order process status
IssuedorIn Progressand it is updated, it will keep the same status. - If the line has status
Rejected(by supplier) and it is reissued, it will becomeIn Progress. - If the line has status
Confirmedand it is reopened, it will becomeIn Progress. - If the line is
In Progresswith an open buyer reopen request and your update makes the requested delivery schedule, prices and charge lines equal to the confirmed values again, Tradecloud reverts that reopen request. See Revert a reopen request. - If the line has status
Completedand the line-level indicatorcompleted=falseis set explicitly, the completion is reverted. See Revert completion. - If the line has status
Cancelledand the line-level indicatorcancelled=falseis set explicitly, the cancellation is reverted. See Revert cancellation. - Omitting the
completedorcancelledindicator leaves the line unchanged and is not the same as sendingfalse. An indicatorfalseon order level does not revert.
Endpoints
Section titled “Endpoints”Use the Send order endpoint when your ERP system supports a delivery schedule natively.
Or use the Send single delivery order endpoint for the single delivery per order line feature.
Please see this page to choose between the delivery schedule or single delivery per order line:
Tradecloud will update the order based on the purchaseOrderNumber and will add
or update lines, delivery schedules and delivery histories where needed.
Order lines will be matched based on lines.position,
deliverySchedule.position and deliveryHistory.position.
Additional fields
Section titled “Additional fields”Actual delivery history
Section titled “Actual delivery history”The actual delivery history may be added in an order update when your ERP system
supports a delivery schedule natively. These will be used to calculate the line
Overdue indicator.
The actual delivery history is matched against the delivery schedule by date
and quantity, not by delivery line position. deliveryHistory.position and
deliverySchedule.position do not have to use the same values.
lines.deliveryHistory: the historical actual delivery schedule. Provide zero, one or multiple delivery history lines. Provide all delivery history lines in an update. The total number of delivery history lines is limited to 100 lines per order line.deliveryHistory.position: the position in the delivery schedule. Not to be confused with theline.position.deliverySchedule.positionversusdeliveryHistory.positiondo not have to use the same values.deliveryHistory.date: the actual delivery date of this delivery schedule position. Date has ISO 8601 dateyyyy-MM-ddformat. See also Standards.deliveryHistory.quantity: the actual delivered quantity of this delivery schedule position. Quantity has a decimal1234.56format with any number of digits.
Actual delivery
Section titled “Actual delivery”Or use the actual delivery field when using the single delivery per order line:
lines.actualDelivery: the actual delivery at the buyer for this order line.actualDelivery.date: the actual delivery date of this delivery. Date has ISO 8601 dateyyyy-MM-ddformat. See also Standards.actualDelivery.quantity: the actual delivered quantity of this delivery. Quantity has a decimal1234.56format with any number of digits.
Additional order and line indicators
Section titled “Additional order and line indicators”Additional indicators may be set in an order update:
indicators:
Updated order meta data
Section titled “Updated order meta data”erpLastChangeDateTime: Date and time the order was updated in your ERP system.DateTimehas ISO 8601 local date/time formatyyyy-MM-ddThh:mm:ss. See also Standards.erpLastChangedBy: the user email or user name as known in your ERP system who updated this order
