Receive an order response
How to receive a purchase order response sent by the supplier
Tradecloud will send a purchase order response to the buyer when an order event has been triggered.
Choose the appropriate API to receive an order response
You must choose between the webhook API or the polling API to receive order response messages:
Webhook versus pollingChoose to receive a delivery schedule or single delivery per order line
You must choose between a delivery schedule or single delivery per order line:
Delivery scheduleWhen choosing single delivery please continue on:
Single delivery order responseorderEvent
or order
header
orderEvent
or order
headerThis page assumes you either chose delivery schedules using the orderEvent
webhook API or the order
polling API.
id
(in case of anorder
): the Tradecloud order identifierorderId
(in case of anOrderEvent
): the Tradecloud order identifierbuyerOrder
: the buyer part of the order, see Buyer ordersupplierOrder
: the supplier part of the order, see Supplier orderindicators.deliveryOverdue
is true when at least one order line is overdue.status.processStatus
: is the aggregate of all lines Order process statuses.status.logisticsStatus
: is the aggregate of all lines Order logistics statuses.version
: the Tradecloud order version numbereventDates
: some key order event date/timesmeta
: meta information, including source and trace info, about this messsagelastUpdatedAt
: is the latest date time the order has been changed, useful for polling orders.
Buyer order
buyerOrder
is mostly an echo of your order fields as explained in Issue a new order
supplierAccountNumber
: the supplier account number as known in your ERP system
Supplier order
supplierOrder
contains the supplier order fields:
companyId
: the supplier's Tradecloud company identifier.buyerAccountNumber
: your account number as known in the supplier's ERP system.description
: a free format additional description of this order by the supplier.contact
: the supplier employee responsible for this order.properties
: are key-value based custom fields, added by the supplier.notes
: are simple custom fields, added by the supplier.documents
: contain meta data and link of attached documents by the supplier.
Order status
The order status is the aggregation of all the lines statuses.
Order process status
The order process status is one of:
Issued
: the order is (re)issued by the buyer.InProgress
: the order is under negotiation between buyer and supplierConfirmed
: the order is completely agreed between buyer and supplierRejected
: the order is completely rejected by supplierCompleted
: the order is completed at the buyerCancelled
: the order is cancelled by the buyer
Order logistics status
The order logistics status is one of:
Open
: no or partial quantity Produced, ReadyToShip, Shipped or DeliveredProduced
: the order full quantity is produced by the supplierReadyToShip
: the order full quantity is ready to be shipped by the supplierShipped
: the order full quantity is shipped by the supplierDelivered
: the order full quantity is delivered at the buyerCancelled
: the order is cancelled by the buyer
orderEvent
or order
lines
orderEvent
or order
lineslines
contains one or more order lines:
id
: the Tradecloud line identifierbuyerLine
: the buyer part of the order line, see Buyer line.supplierLine
: the supplier part of the order line, see Supplier line.confirmedLine
: the order line as agreed between buyer and supplier, see Confirmed line.deliverySchedule
: the current aggregated delivery schedule, see Delivery schedule.deliveryScheduleIncludingRequests
: the current aggregated delivery schedule including requests, see Delivery schedule.prices
: the current prices, see Prices below.pricesIncludingRequests
: the current prices, including any open supplier or buyer requests, see Prices.indicators.deliveryOverdue
is true when the order line is overdue.status.processStatus
: the order line's Line process status.status.inProgressStatus
the order line's Line in progress status.status.logisticsStatus
: the order line's Line logistics status.eventDates
: some key line event date/timesmergedItemDetails
: detailed part information provided by both buyer and supplier, see Item details.lastUpdatedAt
: is the latest date time the order line has been changed, useful for polling.
Buyer line
lines.buyerLine
is an echo of your order line fields as explained in Issue a new order
position
: the line position within the purchase order
Supplier line
lines.supplierLine
contains the supplier order line fields:
salesOrderNumber
: the sales order number as known in the supplier's ERP systemsalesOrderPosition
: the position within the supplier's sales orderdescription
: a free format additional description of this line by the supplierrequests
: the supplier can request different delivery schedule, prices and charge lines, see belowproperties
: are key-value based custom fields, added by the suppliernotes
: are simple custom fields, added by the supplierdocuments
: contain meta data, objectId or url, of attached documents by the supplier.
Supplier requests
lines.supplierLine.requests.proposal
: the supplier has proposed a different delivery schedule, prices and/or charge lines compared to the issued order line. lines.supplierLine.requests.reopenRequest
: the supplier requests to reopen the confirmed order line. The supplier has requested a different delivery schedule, prices and/or charge lines compared to the confirmed order line.
deliverySchedule
: the requested alternative delivery scheduleprices
: the requested alternative priceschargeLines
: the requested alternative charge lines, see Charge linesreason
: the reason of this request given by the supplierstatus
: the Request status.
Request status
The request status is one of:
Open
: Requested by one party. To be approved or rejected by the other party.Approved
: The request is approved by the other party.Rejected
: The request is rejected by the other party.Closed
: The request is closed because it is not relevant anymore.
If the request status is Open
the other party must approve or reject it.
Confirmed line
lines.confirmedLine
: the agreed order line between buyer and supplier.
Only if the process status is Confirmed
the line is agreed between buyer and supplier
lines.confirmedLine.deliverySchedule
: the agreed delivery schedulelines.confirmedLine.prices
: the agreed priceslines.confirmedLine.chargeLines
: the agreed charge lines, see Charge lines
Delivery schedule
When using order
or orderEvent
the delivery schedule is used.
The lines.deliverySchedule
together with the lines.prices
fields give a simpler alternative for the deliverySchedule
and prices
fields in different places like buyerLine
, buyerLine.requests
, supplierLine.requests
and confirmedLine
.
lines.deliverySchedule
: the current delivery schedule, either havingIssued
orConfirmed
values.
The lines.deliverySchedule
field does NOT include any open supplier or buyer request. Be aware that either the Issued
or Confirmed
values are returned, dependent on the line status.
lines.deliveryScheduleIncludingRequests
: the current delivery schedule, either havingIssued
,In Progress
orConfirmed
values.
The lines.deliveryScheduleIncludingRequests
field does include any open supplier or buyer request. Be aware that the Issued
, proposal or reopen request or Confirmed
values are returned, dependent on the line and request status.
Delivery schedule fields
lines.deliverySchedule[IncludingRequests].position
: the optional position in the delivery schedule. Not to be confused with theline.position
lines.deliverySchedule[IncludingRequests].date
: the delivery date of this delivery schedule position. Date has ISO 8601 dateyyyy-MM-dd
format. See also Standards.lines.deliverySchedule[IncludingRequests].quantity
: the quantity of this delivery schedule position. Quantity has a decimal1234.56
format with any number of digits.
Logistics fields
These additional logistics fields are only available in the order line level delivery schedule:
lines.deliverySchedule[IncludingRequests].status
: the optional delivery line's Scheduled delivery logistics status.lines.deliverySchedule[IncludingRequests].etd
: The optional logistics Estimated Time of Departure (local date without time zone). Date has ISO 8601 dateyyyy-MM-dd
format.lines.deliverySchedule[IncludingRequests].eta
: The optional logistics Estimated Time of Arrival (local date without time zone). Date has ISO 8601 dateyyyy-MM-dd
format.
Scheduled delivery logistics status
The delivery line logistics status is one of:
Open
: no or partial quantity Produced, ReadyToShip, Shipped or DeliveredProduced
: the delivery line quantity is produced by the supplierReadyToShip
: the delivery line quantity is ready to be shipped by the supplierShipped
: the delivery line quantity is shipped by the supplierDelivered
: the delivery line quantity is delivered at the buyer
Prices
lines.prices
: the current prices, either havingIssued
orConfirmed
values.
The lines.prices
field does NOT include any open supplier or buyer request. Be aware that either the Issued
or Confirmed
values are returned, dependent on the line status.
lines.pricesIncludingRequests
: the current prices, either havingIssued
,In Progress
orConfirmed
values.
The lines.pricesIncludingRequests
field includes any open supplier or buyer request. Be aware that the Issued
, proposal or reopen request or Confirmed
values are returned, dependent on the line and request status.
Prices fields
lines.prices[IncludingRequests].grossPrice
: the gross price. Used together withdiscountPercentage
.lines.prices[IncludingRequests].discountPercentage
: the discount percentage. Used together withgrossPrice
.lines.prices[IncludingRequests].netPrice
: the net price.priceInTransactionCurrency
: the price in the transaction currency of the supplier, likeCNY
in China.value
: the price value has a decimal1234.56
format with any number of digits.currencyIso
: the 3-letter currency code according to ISO 4217, likeEUR
,USD
andCNY
priceInBaseCurrency
: the price in your base currency, likeEUR
in the EU.value
: the price value has a decimal1234.56
format with any number of digits.currencyIso
: the 3-letter currency code according to ISO 4217, likeEUR
.
lines.prices[IncludingRequests].priceUnitOfMeasureIso
: the 3-letter price unit according to ISO 80000-1. The purchase unit and price unit may be different.lines.prices[IncludingRequests].priceUnitQuantity
: the item quantity at which the price applies. Typically this is 1 (unit price) or 100 (the price applies to 100 items)
It is advised to only use netPrice
for its simplicity, or alternatively use grossPrice
together with discountPercentage
.
Line status
Line process status
The line process status is one of:
Issued
: the line is (re)issued by the buyerInProgress
: the line is under negotiation between buyer and supplierConfirmed
: the line is agreed between buyer and supplierRejected
: the line is rejected by supplierCompleted
: the line is completed at the buyerCancelled
: the line is cancelled by the buyer
Line in Progress status
The line in progress status is a more fine-grained status when an order line processStatus
is InProgress
and is one of:
OpenSupplierProposal
: There is an open proposal from the supplier.RejectedSupplierProposal
: The proposal from the supplier was rejected and no other requests are open.ReissuedRejectedLine
: The rejected order line was reissued by the buyer.OpenSupplierReopenRequest
: There is an open reopen request from the supplier.OpenBuyerReopenRequest
: There is an open reopen request from the buyer.RevertedCompletedLine
: The completion of this line was reverted.
Line logistics status
The line logistics status is one of:
Open
: no or partial quantity Produced, ReadyToShip, Shipped or DeliveredProduced
: the line quantity is produced by the supplierReadyToShip
: the line quantity ready to be shipped by the supplierShipped
: the line quantity shipped by the supplierDelivered
: the line quantity delivered at the buyerCancelled
: the line is cancelled by the buyer
Charge lines
chargeLines
: the requested or confirmed additional cost lines of an order line, independent of the order line prices, like transport, packing, administration, inspection and certification costs.
position
: the position used to identify a charge line.chargeTypeCode
: the mandatory charge reason code according to UNCL7161chargeDescription
: a mandatory free text description, like "Transport costs".quantity
: the mandatory quantity of this charge line.price
: the mandatory price of this charge line.priceInTransactionCurrency
: the mandatory price in the transaction currency of the supplier, likeCNY
in China.value
: the price value has a decimal1234.56
format with any number of digits.currencyIso
: the 3-letter currency code according to ISO 4217, likeEUR
,USD
andCNY
.
priceInBaseCurrency
: the optional price in your base currency, likeEUR
in the EU.value
: the price value has a decimal1234.56
format with any number of digits.currencyIso
: the 3-letter currency code according to ISO 4217, likeEUR
.
priceUnitOfMeasureIso
: the 3-letter price unit according to ISO 80000-1 which applies to the charge line price.
Item details
The buyer may send item details to inform the supplier about part information.
The supplier may check, change and add item details if they are not correct or incomplete.
lines.mergedItemDetails
will contain the original item details added by the buyer merged with the changed or added item details by the supplier.
countryOfOriginCodeIso2
: The ISO 3166-1 alpha-2 country code of manufacture, production, or growth where an article or product comes from.combinedNomenclatureCode
: A tool for classifying goods, set up to meet the requirements both of the Common Customs Tariff and of the EU's external trade statistics.netWeight
: Net weight of one item.netWeightUnitOfMeasureIso
: Net weight unit according to ISO 80000-1.dangerousGoodsCodeUnece
: UN numbers or UN IDs are four-digit numbers that identify dangerous goods, hazardous substances and articles in the framework of international transport.serialNumber
: is an unique identifier assigned incrementally or sequentially to an item, to uniquely identify it.batchNumber
: is an identification number assigned to a particular quantity or lot of material from a single manufacturer
Last updated