| Name | Description |
|---|---|
| Root | The top level document. |
| PurchaseOrder | A single warehouse order, mapped to one canonical purchase order. The canonical transaction purpose code is always N (new). |
| Party | A party. A party record (with its location) is created for ship_to, bill_to and mark_for even when the object is absent. |
| Location | A party address with contact details. |
| ReferenceNumber | A coded reference number. |
| Note | A free-text note. |
| PurchaseOrderLine | A single order line, mapped to one canonical purchase order line. |
| Name | Data Type | Description | Required |
|---|---|---|---|
purchase_order | PurchaseOrder | The warehouse order. When absent, an empty purchase order (with empty parties) is still produced. |
| Name | Data Type | Description | Required |
|---|---|---|---|
bill_to | Party | The bill-to party, linked to the purchase order. | |
cancel_after_date | String | The cancel-after date in YYYYMMDD. Copied onto every purchase order line. | |
customer_order_number | String | The customer purchase order number. | |
freight_method_of_payment | String | The freight method of payment, e.g. CC = collect, PP = prepaid. | |
latest_delivery_date | String | The latest delivery date in YYYYMMDD. Copied onto every purchase order line. | |
mark_for | Party | The mark-for party, linked to every purchase order line. | |
notes | Array<Note> | Header notes, grouped by qualifier: GFT goes to the gift note; WHI, PKG and SPH go to the instructions; every other qualifier goes to the purchaser notes. Each group is rendered as one "<label> - <body>" line per note joined by newlines, where the label is the flow's description for that qualifier or, when none is configured, the qualifier itself. | |
order_date | String | The order date in YYYYMMDD. | |
purchase_order_lines | Array<PurchaseOrderLine> | The order lines. | |
reference_numbers | Array<ReferenceNumber> | Header reference numbers. Each becomes a purchase order note whose type is the qualifier and whose body is the code and body joined by " - ". A reference with qualifier SC also supplies the ship method code (its code) and description (its body) on every line. | |
requested_ship_date | String | The requested ship date in YYYYMMDD. Copied onto every purchase order line. | |
seller_order_number | String | The depositor / seller order number. | |
ship_mode | String | The ship mode code, e.g. U = private parcel service. Copied onto every purchase order line. | |
ship_to | Party | The ship-to party, linked to every purchase order line. | |
transaction_purpose_code | String | Accepted but ignored: the canonical purchase order always gets transaction purpose code N. | |
warehouse_pick_ticket | String | The warehouse pick ticket number. |
| Name | Data Type | Description | Required |
|---|---|---|---|
location | Location | The party address and contact details. | |
name | String | The party name. | |
owners_id | String | The party owner's id / party code. |
| 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 email address (mapped to the party, not the location). | |
phone | String | The phone number (mapped to the location phone number). | |
postal_code | String | Postal / ZIP code. | |
state | String | State / province. |
| Name | Data Type | Description | Required |
|---|---|---|---|
body | String | A description of the reference value. | |
code | String | The reference code / value. | |
qualifier | String | The X12 reference qualifier, e.g. SC = ship method (header) or LB = label code (line). |
| Name | Data Type | Description | Required |
|---|---|---|---|
body | String | The note text. | |
qualifier | String | The note qualifier, e.g. GFT = gift message, WHI = warehouse instructions. |
| Name | Data Type | Description | Required |
|---|---|---|---|
color_code | String | The color code. | |
color_description | String | The color description. | |
customer_sku | String | The customer SKU, typically the UPC. Mapped to both the customer SKU and the UPC of the line. | |
line_id | String | The line number. | |
notes | Array<Note> | Line notes, rendered into the line purchaser notes as "<label> - <body>" lines joined by newlines, using the same qualifier labels as the header notes. | |
product_code | String | When SLN (a subline), the line is dropped and not mapped. Not otherwise mapped. | |
product_name | String | The product name. | |
quantity_requested | String | Number | The quantity ordered, copied unchanged. | |
reference_numbers | Array<ReferenceNumber> | Line reference numbers. Only qualifier LB is mapped (its code becomes the line label code); the rest are accepted and ignored. | |
retail_unit_price | String | Number | The retail unit price, copied unchanged (no currency or cents conversion). | |
size_description | String | The size description. | |
supplier_product_id | String | The supplier / vendor product id. | |
unit_of_measure | String | The unit of measure, e.g. EA. |