Order line type
Every purchase order line can be classified with an optional lineType.
That tells Tradecloud and your supplier whether the line is a physical item, a
service, or a standalone charge (for example freight or handling on its own
line), instead of treating everything implicitly as merchandise.
Values of lineType
Section titled “Values of lineType”Item– The line represents goods or a physical article. This is the default if you omitlineType.Service– The line represents a service (labour, subscription, fee-for-service, and similar) rather than a stock item.Charge– The line is only an allowance or charge (freight, packaging, administration, and similar) as its own order line, usually with a price on that line.
Omitting lineType is backward compatible when sending an order: those
lines behave like Item, so existing integrations need no change.
chargeReasonCode on the line
Section titled “chargeReasonCode on the line”For Charge lines you can send an optional chargeReasonCode on the
same order line (not inside nested objects). Values follow
UNCL7161 (UN/CEFACT
charge and allowance reason codes). Example: FC (freight).
You may also use chargeReasonCode in other combinations as your process
requires; the OpenAPI spec describes allowed shapes.
Relation to deprecated chargeLines
Section titled “Relation to deprecated chargeLines”Older integrations could attach extra costs with a nested chargeLines
array on a line. That model is deprecated for new work: model a separate
order line with lineType Charge, line-level pricing, and optionally
chargeReasonCode.
Portal behaviour for charge lines
Section titled “Portal behaviour for charge lines”In the Tradecloud portal, suppliers cannot split a buyer line that is a charge line. Negotiation (accept, reject, propose) otherwise follows the same line-level flow as other lines.
Where this appears in the docs
Section titled “Where this appears in the docs”- Buyer – send an order: Line type and charge reason code
- Supplier – inbound order payload: buyer lines in Receive an order
