Receive an order response
How to receive a purchase order response sent by the supplier
Last updated
How to receive a purchase order response sent by the supplier
Last updated
Tradecloud sends purchase order responses to buyers when order events are triggered.
You must choose between two methods to receive order responses:
Webhook API (Push): Tradecloud pushes responses to your system
Polling API (Pull): Your system periodically checks for new responses
For details on choosing between these methods:
You must also choose between two delivery formats:
Delivery schedule: Multiple scheduled deliveries per order line
Single delivery: One scheduled delivery per order line
For details on choosing between these formats:
If you're using single delivery format, please see:
orderEvent
: Contains the actual order event
order
: Contains the actual order in its current state
This section assumes you're using delivery schedules with either the orderEvent
webhook API or the order
polling API.
The order header contains:
id
(in order
) or orderId
(in orderEvent
): Tradecloud order identifier
indicators.deliveryOverdue
is true when at least one order line is overdue.
version
: the Tradecloud order version number
eventDates
: some key order event date/times
meta
: meta information, including source and trace info, about this messsage
lastUpdatedAt
: is the latest date time the order has been changed, useful for polling orders.
supplierAccountNumber
: the supplier account number as known in your ERP system
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.
The order status is the aggregation of all the lines statuses.
orderEvent
or order
lineslines
contains one or more order lines:
id
: the Tradecloud line identifier
indicators.deliveryOverdue
is true when the order line is overdue.
eventDates
: some key line event date/times
lastUpdatedAt
: is the latest date time the order line has been changed, useful for polling.
position
: the line position within the purchase order
lines.supplierLine
contains the supplier order line fields:
salesOrderNumber
: the sales order number as known in the supplier's ERP system
salesOrderPosition
: the position within the supplier's sales order
description
: a free format additional description of this line by the supplier
requests
: the supplier can request different delivery schedule, prices and charge lines, see below
properties
: are key-value based custom fields, added by the supplier
notes
: are simple custom fields, added by the supplier
documents
: contain meta data, objectId or url, of attached documents by the supplier.
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 schedule
prices
: the requested alternative prices
reason
: the reason of this request given by the supplier
Request status
If the request status is Open
the other party must approve or reject it.
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 schedule
lines.confirmedLine.prices
: the agreed prices
When using order
or orderEvent
the delivery schedule is used.
lines.deliverySchedule
: the current delivery schedule, either having Issued
or Confirmed
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 having Issued
, In Progress
or Confirmed
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.
lines.deliverySchedule[IncludingRequests].position
: the optional position in the delivery schedule. Not to be confused with the line.position
lines.deliverySchedule[IncludingRequests].quantity
: the quantity of this delivery schedule position. Quantity has a decimal 1234.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].etd
: The optional logistics Estimated Time of Departure (local date without time zone). Date has ISO 8601 date yyyy-MM-dd
format.
lines.deliverySchedule[IncludingRequests].eta
: The optional logistics Estimated Time of Arrival (local date without time zone). Date has ISO 8601 date yyyy-MM-dd
format.
Scheduled delivery logistics status
lines.prices
: the current prices, either having Issued
or Confirmed
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 having Issued
, In Progress
or Confirmed
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.
lines.prices[IncludingRequests].grossPrice
: the gross price. Used together with discountPercentage
.
lines.prices[IncludingRequests].discountPercentage
: the discount percentage. Used together with grossPrice
.
lines.prices[IncludingRequests].netPrice
: the net price.
priceInTransactionCurrency
: the price in the transaction currency of the supplier, like CNY
in China.
value
: the price value has a decimal 1234.56
format with any number of digits.
currencyIso
: the 3-letter currency code according to ISO 4217, like EUR
, USD
and CNY
priceInBaseCurrency
: the price in your base currency, like EUR
in the EU.
value
: the price value has a decimal 1234.56
format with any number of digits.
currencyIso
: the 3-letter currency code according to ISO 4217, like EUR
.
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)
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.
chargeDescription
: 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, like CNY
in China.
value
: the price value has a decimal 1234.56
format with any number of digits.
currencyIso
: the 3-letter currency code according to ISO 4217, like EUR
, USD
and CNY
.
priceInBaseCurrency
: the optional price in your base currency, like EUR
in the EU.
value
: the price value has a decimal 1234.56
format with any number of digits.
currencyIso
: the 3-letter currency code according to ISO 4217, like EUR
.
priceUnitOfMeasureIso
: the 3-letter price unit according to ISO 80000-1 which applies to the charge line price.
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
Use the endpoint.
eventName
: Contains the
Use the endpoint.
buyerOrder
: the buyer part of the order, see
supplierOrder
: the supplier part of the order, see
status.processStatus
: is the aggregate of all lines .
status.logisticsStatus
: is the aggregate of all lines .
buyerOrder
is mostly an echo of your order fields as explained in
buyerLine
: the buyer part of the order line, see .
supplierLine
: the supplier part of the order line, see .
confirmedLine
: the order line as agreed between buyer and supplier, see .
deliverySchedule
: the current aggregated delivery schedule, see .
deliveryScheduleIncludingRequests
: the current aggregated delivery schedule including requests, see .
prices
: the current prices, see below.
pricesIncludingRequests
: the current prices, including any open supplier or buyer requests, see .
status.processStatus
: the order line's .
status.inProgressStatus
the order line's .
status.logisticsStatus
: the order line's .
mergedItemDetails
: detailed part information provided by both buyer and supplier, see .
lines.buyerLine
is an echo of your order line fields as explained in
chargeLines
: the requested alternative charge lines, see
status
: the .
lines.confirmedLine.chargeLines
: the agreed charge lines, see
lines.deliverySchedule[IncludingRequests].date
: the delivery date of this delivery schedule position. Date has ISO 8601 date yyyy-MM-dd
format. See also .
lines.deliverySchedule[IncludingRequests].status
: the optional delivery line's .
chargeTypeCode
: the mandatory charge reason code according to