| Name | Description |
|---|---|
| Root | The top level document: a single warehouse shipping advice, with no envelope. Only the first purchase order, the first commercial invoice on that order, the first shipment event, the first consignee and the first ship-from party linked to the shipment are used. The mandatory fields are transaction_purpose_code, transport_mode, carrier_scac and number_of_packages; the flow's required-field overrides can add further paths (for example lx[].w12[].supplier_product_id). |
| Parties | The shipment parties, keyed by role. A role is omitted when no party with that role is linked to the shipment. |
| Party | A party with its first address. In every field except email, each run of characters other than letters, digits, underscores, whitespace and hyphens is replaced by a single space (so punctuation such as "&", "." or "#" does not reach the EDI). |
| Note | A single line of the purchase order purchaser notes. The notes are split on the flow's note delimiter (a newline by default, and when the delimiter is blank). |
| LX | A purchase order line with its package detail (logical LX loop). The package fields come from the first package group of the first pack item linked to the line, and are omitted entirely when the line has no package group. |
| W12 | Item detail for a purchase order line (logical W12). |
| Name | Data Type | Description | Required |
|---|---|---|---|
arrival_port_estimated_date | String | The shipment estimated arrival date in YYYYMMDD (UTC). | |
arrival_port_estimated_time | String | The shipment estimated arrival time in HHmmss (UTC). | |
carrier_scac | String | Required. The carrier SCAC (logical W2702). When absent the run fails with reason code MMF. | YES |
container_count | Integer | The shipment container count. | |
customer_name | String | The purchase order customer name. | |
customer_order_number | String | The purchase order customer order number. | |
department_code | String | The purchase order department code. | |
department_code_description | String | The purchase order department description. | |
departure_actual_date | String | The shipment actual departure date in YYYYMMDD (UTC). | |
departure_actual_time | String | The shipment actual departure time in HHmmss (UTC). | |
division | String | The purchase order division code. | |
division_description | String | The purchase order division description. | |
event_date | String | The first shipment event's date in YYYYMMDD (UTC). | |
event_time | String | The first shipment event's time in HHmmss (UTC). | |
freight_method_of_payment | String | The purchase order freight method of payment. | |
freight_payment_term | String | The purchase order freight payment term code. | |
freight_payment_term_description | String | The purchase order freight payment term description. | |
gross_weight_kgs | Number | The shipment gross weight in kilograms (no unit conversion). | |
house_bill | String | The shipment forwarder reference (house bill). | |
lx | Array<LX> | One entry per line on the purchase order, in order (logical LX loop). | |
master_bill | String | The shipment master bill. | |
notes | Array<Note> | The purchase order purchaser notes, split into one entry per line of text. Always present; an empty array when the order has no purchaser notes. | |
number_of_packages | Integer | Required. The shipment package count (logical W0301). When absent the run fails with reason code MMF. | YES |
order_type_code | String | The purchase order type code. | |
parties | Parties | The consignee and ship-from parties. Always present; empty when neither party is linked. | |
payment_term | String | The purchase order payment term code. | |
payment_term_description | String | The purchase order payment term description. | |
seller_order_number | String | The purchase order seller (depositor) order number. Also prefixes any missing-field error message. | |
ship_method_code | String | The ship method code, emitted only when every line on the purchase order carries the same value (otherwise omitted). | |
ship_method_description | String | The ship method description, emitted only when every line on the purchase order carries the same value (otherwise omitted). | |
supplier_customer_number | String | The customer number assigned by the supplier. | |
supplier_id | String | The purchase order supplier id. | |
supplier_name | String | The purchase order supplier name. | |
total_due | Number | The first commercial invoice's total due, copied unchanged (no currency or cents conversion). | |
transaction_purpose_code | String | Required. The purchase order transaction purpose code (logical W0601), e.g. N. When absent the run fails with reason code MMF. | YES |
transport_mode | String | Required. The shipment mode, copied unchanged (logical W2701), e.g. U = private parcel service. When absent the run fails with reason code MMF. | YES |
vat_number | String | The purchase order VAT number. | |
warehouse_pick_ticket | String | The purchase order warehouse pick ticket number. |
| Name | Data Type | Description | Required |
|---|---|---|---|
consignee | Party | The shipment consignee. | |
ship_from | Party | The shipment ship-from party. |
| Name | Data Type | Description | Required |
|---|---|---|---|
address_1 | String | Address line 1. | |
address_2 | String | Address line 2. | |
city | String | City. | |
country | String | Country code. | |
email | String | The party email address, emitted unchanged (not sanitized). | |
name | String | The party name. | |
owners_id | String | The party owner's id / party code. | |
phone_number | String | The address phone number. | |
postal_code | String | Postal / ZIP code. | |
state | String | State / province. |
| Name | Data Type | Description | Required |
|---|---|---|---|
code | String | The note qualifier set by the flow's note code configuration (the same code on every note), e.g. WHI. The note code is a required flow setting; without it the run fails with reason code IC. | |
text | String | The note text. |
| Name | Data Type | Description | Required |
|---|---|---|---|
gross_weight_kgs | Number | The package group gross weight in kilograms (no unit conversion). | |
group_id | String | The package group id. | |
marks_and_numbers | String | The package group marks and numbers. | |
package_type_code | String | The package type code. When the flow has a package type map, a code matching an entry is replaced by that entry's code, then by the map's default code, and otherwise kept. | |
package_type_description | String | The package type description, overridden by the package type map in the same way as the code. | |
parcel_tracking_number | String | The package group parcel tracking number. | |
w12 | Array<W12> | The line item detail (logical W12). Always an array of exactly one element. |
| Name | Data Type | Description | Required |
|---|---|---|---|
gross_weight_kgs | Number | The gross weight in kilograms of the first pack item linked to the line (no unit conversion). | |
label_code | String | The line label code. | |
quantity_fulfilled | Number | The quantity shipped. | |
quantity_requested | Number | The quantity ordered. | |
supplier_product_id | String | The supplier product id. In the standard flow it is looked up by the line's customer SKU from the value recorded when the matching 940 warehouse order was received. | |
upc | String | The line UPC. |