Line items are a list of products associated with the order. The product_ref field is used to link the line item to products in either the Shipwell system or your ERP system, but it is not required. This body also includes product-related options, such as description
, length
, and length_unit
. You can add multiple line items to an order.
Successfully returned a PurchaseOrderLineItem
Default error response
{- "country_of_manufacture": "US",
- "description": "string",
- "freight_class": "50",
- "hazmat_hazard_class": "string",
- "hazmat_identification_number": "string",
- "hazmat_packing_group": "I",
- "hazmat_proper_shipping_name": "string",
- "height": 0.1,
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "length": 0.1,
- "length_unit": "CM",
- "nmfc_item_code": "string",
- "nmfc_sub_code": "string",
- "package_weight": 0.1,
- "piece_type": "BAG",
- "product_category": "string",
- "product_ref": "string",
- "provider_specific_packaging": "string",
- "refrigeration_max_temp": 0.1,
- "refrigeration_min_temp": 0.1,
- "refrigeration_required": true,
- "stackable": true,
- "temp_unit": "F",
- "value_per_piece": 0.1,
- "value_per_piece_currency": "CAD",
- "weight_unit": "KG",
- "width": 0.1,
- "custom_data": {
- "property1": null,
- "property2": null
}, - "package_type": "BAG",
- "purchase_order": "94a9570d-82e2-4a81-b165-8cff67d9c735",
- "total_line_item_weight": 0.1,
- "total_packages": 0,
- "total_pieces": 0
}
{- "country_of_manufacture": "US",
- "description": "string",
- "freight_class": "50",
- "hazmat_hazard_class": "string",
- "hazmat_identification_number": "string",
- "hazmat_packing_group": "I",
- "hazmat_proper_shipping_name": "string",
- "height": 0.1,
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "length": 0.1,
- "length_unit": "CM",
- "nmfc_item_code": "string",
- "nmfc_sub_code": "string",
- "package_weight": 0.1,
- "piece_type": "BAG",
- "product_category": "string",
- "product_ref": "string",
- "provider_specific_packaging": "string",
- "refrigeration_max_temp": 0.1,
- "refrigeration_min_temp": 0.1,
- "refrigeration_required": true,
- "stackable": true,
- "temp_unit": "F",
- "value_per_piece": 0.1,
- "value_per_piece_currency": "CAD",
- "weight_unit": "KG",
- "width": 0.1,
- "custom_data": {
- "property1": null,
- "property2": null
}, - "package_type": "BAG",
- "purchase_order": "94a9570d-82e2-4a81-b165-8cff67d9c735",
- "total_line_item_weight": 0.1,
- "total_packages": 0,
- "total_pieces": 0
}