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 Good PO Template: For finished goods and products
  • Material PO: For raw materials and components

Finished Good 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_QuantityOptionalThe value to display PO total quantity100
Total_Quantity_Uom_CodeOptionalThe 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
Total_CostOptionalTotal PO cost (decimal with max 10 digits, 2 decimal places)2500.00
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 and entity_type
  • 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
Line_Item_Custom_IdRequiredCustom identifier for the product/itemitem_123
Line_Item_Entity_TypeRequiredMust be item for items templateitem
Line_Style_IdOptionalStyle identifierstyle_123
Line_Style_NameOptionalStyle name/descriptionClassic T-Shirt
Line_Product_Category_IdOptionalCustom ID of product categorycat_123
Line_Product_Line_IdOptionalCustom ID of product lineline_123
Line_Department_IdOptionalCustom ID of departmentdept_123
Line_Class_IdOptionalCustom ID of class categoryclass_123
Line_Brand_IdOptionalCustom ID of brand categorybrand_123
Line_ColorConditional*Item color (required for new items)Blue
Line_SizeConditional*Item size (required for new items)M
Line_Unit_CostOptionalCost per unit (decimal)12.50
Line_Shipment_TermOptionalShipping termsDDP

Line Items Information (Linked Items)​

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

Field NameRequired?What to EnterExample
Line_Item_Custom_IdRequiredCustom identifier for the product/itemitem_123
Line_Item_Entity_TypeRequiredMust be item for items templateitem

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_Item_Custom_IdRequiredItem custom IDitem_123
Packaging_Item_Entity_TypeRequiredMust be itemitem
Packaging_Case_Pack_QtyConditional*Units per carton (***required for assortment type)5
Packaging_QuantityConditional*The packing quantity (min 1). (***required for solid type)100
Packaging_Quantity_Uom_CodeOptionalThe packing quantity UOM Codekg

Tips for Items Template:

  • If your item already exists in the system, you may only need Line_Item_Custom_Id and Line_Item_Entity_Type
  • For new items, include Line_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_QuantityOptionalThe value to display PO total quantity100
Total_Quantity_Uom_CodeOptionalThe 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
Total_CostOptionalTotal PO cost (decimal with max 10 digits, 2 decimal places)2500.00
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
Line_Item_Custom_IdRequiredMaterial ID in Material management pagecotton_001
Line_Item_Entity_TypeRequiredMust be material for materials templatematerial
Line_Unit_CostOptionalCost per unit (decimal)12.50
Line_Shipment_TermOptionalShipping termsEXW

Material Packing Details​

Field NameRequired?What to EnterExample
Packaging_TypeRequiredonly solid packing is supportedsolid
Packaging_Item_Custom_IdRequiredMaterial custom IDcotton_001
Packaging_Item_Entity_TypeRequiredMust be materialmaterial
Packaging_QuantityRequiredThe packing quantity (min 1)100
Packaging_Quantity_Uom_CodeRequiredThe 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.