Skip to main content

Purchase Order Import

This document provides detailed instructions for filling out the Purchase Order CSV import templates based on the actual system implementation and V3 API specifications.

Overview​

The PO Import system supports CSV file uploads that get processed into JSON format for the V3 Purchase Orders API. Each CSV row represents one line item with its packaging details, and multiple rows can belong to the same Purchase Order (grouped by Po_Number).

Template Types Available​

  • Finished Goods PO Template: For finished goods and products
  • Material PO: For raw materials and components

Finished Goods PO Template - Field Guide​

Purchase Order Information​

Field NameRequired?What to EnterExample
Po_NumberRequiredYour original PO number from your systemPO-250901
OPO_NumberOptionalOPO_Number is another field used to apply unique identifiers for Purchase Orders. Normally it is different from PO_Number. This is an optional field and can be left empty. If not empty, make sure it is unique for each PO number. It can be both numbers and/or text.opo_123
Total_Order_QuantityOptionalThe value to display PO total quantity100
Total_Order_Quantity_UomOptionalThe value to display PO total quantity UOM Codem
Po_TypeOptionalPurchase order type from pre-configured listpo_type_1
Po_SourceOptionalSource of materials (domestic/international)domestic
Po_StatusOptionalStatus (only "canceled" is supported)canceled
PO_ClientCreatedDateOptionalCreation date from your system (YYYY-MM-DD)2023-02-10
Delivery_DateOptionalDelivery/shipment start date (YYYY-MM-DD)2021-05-23
Ship_End_DateOptionalShipment end date (YYYY-MM-DDTHH:MM:SSZ)2021-05-30T00:00:00
In_Store_DateOptionalIn store date (YYYY-MM-DDTHH:MM:SSZ)2021-06-01T00:00:00
PO_EventNameOptionalCorresponding event name from your systemEvent 1
Data_ProviderOptionalLocal Custom ID of Data Provider organization. Let it empty will be using the current import org.Provider-01
Client_IdOptionalLocal Custom ID of Brand/Retailer organization.client_1
Factory_Custom_IdOptionalLocal Custom ID of Factory organization.factory_1
Vendor_Custom_IdOptionalLocal Custom ID of Supplier organization (min 1 char).vendor_1
Commit_IdOptionalCommit ID of the purchase ordercommit_id_1
Commit_Po_SequenceOptionalCommit PO sequencecommit_po_sequence_1
Share_To_IdsOptionalComma-seperated shared organization IDssub_org_1,sub_org_2

Tips for Items Template:

  • If your item already exists in the system, you may only need custom_id
  • For new items, include color and size for better identification
  • Each PO must have at least one line and one packing detail
  • Use "solid" packing for individual items, "assortment" for mixed packs

Line Items Information (Manual Items)​

Add one row for each item in your Purchase Order. Each line represents one item with its details.

Field NameRequired?What to EnterExample
Item_IDRequiredCustom identifier for the product/itemitem_123
Style_IdOptionalStyle identifierstyle_123
Style_NameOptionalStyle name/descriptionClassic T-Shirt
Line_Product_Category_IdOptionalCustom ID of product categorycat_123
Line_Product_Line_IdOptionalCustom ID of product lineline_123
Department_IdOptionalCustom ID of departmentdept_123
Class_IdOptionalCustom ID of class categoryclass_123
Brand_IdOptionalCustom ID of brand categorybrand_123
ColorConditional*Item color (required for new items)Blue
Line_SizeConditional*Item size (required for new items)M

Line Items Information (Linked Items)​

Create with linked items. Which in the Item Management page.

Field NameRequired?What to EnterExample
Item_IDRequiredCustom identifier for the product/itemitem_123

Items Packing Details​

Each Purchase Order must have at least one packing detail. Choose between solid or assortment packing.

Field NameRequired?What to EnterExample
Packaging_TypeRequiredsolid for single items or assortment for mixed packssolid
Packaging_Carton_QuantityConditional*Number of cartons/boxes (min 1). ((***required for assortment)20
Packaging_Assortment_IdConditional*Assortment ID (**required for assortment type)assort_123
Packaging_Case_Pack_QtyConditional*Units per carton (***required for assortment type)5
Order_QuantityConditional*The packing quantity (min 1). (***required for solid type)100
Order_Quantity_UomOptionalThe packing quantity UOM Codekg

Tips for Items Template:

  • If your item already exists in the system, you may only need Item_ID
  • For new items, include Color and Line_Size for better identification
  • Each PO must have at least one line and one packing detail
  • Use "solid" packing for individual items, "assortment" for mixed packs

Material PO Template - Field Guide​

Purchase Order Information​

Field NameRequired?What to EnterExample
Po_NumberRequiredYour original PO number from your systemPO-250901
OPO_NumberRequiredOPO_Number is another field used to apply unique identifiers for Purchase Orders. Normally it is different from PO_Number. If not empty, make sure it is unique for each PO number. It can be both numbers and/or text.opo_123
Total_Order_QuantityOptionalThe value to display PO total quantity100
Total_Order_Quantity_UomOptionalThe value to display PO total quantity UOM Codem
Po_TypeOptionalPurchase order type from pre-configured listpo_type_1
Po_SourceOptionalSource of materials (domestic/international)domestic
Po_StatusOptionalStatus (only "canceled" is supported)canceled
PO_ClientCreatedDateOptionalCreation date from your system (YYYY-MM-DD)2023-02-10
Delivery_DateOptionalDelivery/shipment start date (YYYY-MM-DD)2021-05-23
Ship_End_DateOptionalShipment end date (YYYY-MM-DDTHH:MM:SSZ)2021-05-30T00:00:00
In_Store_DateOptionalIn store date (YYYY-MM-DDTHH:MM:SSZ)2021-06-01T00:00:00
PO_EventNameOptionalCorresponding event name from your systemEvent 1
Data_ProviderOptionalLocal Custom ID of Data Provider organization. Let it empty will be using the current import org.Provider-01
Client_IdOptionalLocal Custom ID of Brand/Retailer organization.client_1
Factory_Custom_IdOptionalLocal Custom ID of Factory organization.factory_1
Vendor_Custom_IdOptionalLocal Custom ID of Supplier organization (min 1 char).vendor_1
Material_Supplier_Custom_IdOptionalLocal Custom ID of Material Supplier organization.material_supplier_1
Commit_IdOptionalCommit ID of the purchase ordercommit_id_1
Commit_Po_SequenceOptionalCommit PO sequencecommit_po_sequence_1
Share_To_IdsOptionalComma-seperated shared organization IDssub_org_1,sub_org_2

Material Line Details​

Add one row for each material in your Purchase Order.

Field NameRequired?What to EnterExample
Item_IDRequiredMaterial ID in Material management pagecotton_001
Style_IdOptionalStyle identifierstyle_123
Style_NameOptionalStyle name/descriptionClassic T-Shirt
Department_IdOptionalCustom ID of departmentdept_123
Class_IdOptionalCustom ID of class categoryclass_123
Brand_IdOptionalCustom ID of brand categorybrand_123
ColorOptionalMaterial colorBlue

Material Packing Details​

Field NameRequired?What to EnterExample
Order_QuantityRequiredThe packing quantity (min 1)100
Order_Quantity_UomRequiredThe packing quantity UOM Codekg

Additional Attributes (Optional)​

The last other fields when using the download template, they are custom attributes for Purchase Order, which defined by the Data Provider, these columns will be auto-generate based on current active PO custom attributes. You can input the value (can be string, number, or list(Comma-seperated)) based on the definition of these fields.