About Commodity
Overview
The commodity_code is a mandatory parameter used to classify the type of goods being shipped. This code ensures proper handling and compliance with courier requirements.
Commodity Code Reference
For a complete list of available commodity codes and their descriptions, please refer to the Commodity Code Reference Spreadsheet.
⚠️ The commodity_code parameter is mandatory only for shipping : LION. Omitting it will result in a error.
Implementation
Overview
When creating orders, include the commodity_code parameter in the request body.
Request Structure
When creating an order with LION Parcel, include the commodity_code parameter in the request body:
{
"order_date": "2025-05-21",
"brand_name": "Your Brand",
"shipper_name": "SENDER NAME",
"shipper_phone": "82121669737",
"shipper_destination_id": 5969,
"shipper_address": "Alamat pengirim",
"origin_pin_point": "-7.274631, 109.207174",
"receiver_name": "Buyer Name",
"receiver_phone": "8123458282",
"receiver_destination_id": 4956,
"receiver_address": "Alamat penerima",
"shipper_email": "admin@example.com",
"destination_pin_point": "-7.274631, 109.207174",
"shipping": "LION",
"shipping_type": "STANDARD",
"commodity_code": "ELG150",
"payment_method": "BANK TRANSFER",
"shipping_cost": 20000,
"shipping_cashback": 0,
"service_fee": 0,
"additional_cost": 0,
"grand_total": 520000,
"cod_value": 0,
"insurance_value": 1500,
"order_details": [
{
"product_name": "Smartphone X",
"product_variant_name": "Black 128GB",
"product_price": 500000,
"product_weight": 250,
"product_width": 8,
"product_height": 15,
"product_length": 2,
"qty": 1,
"subtotal": 500000
}
]
}
| Key | Type | Required | Description |
|---|---|---|---|
commodity_code | string | Yes | Classification code for the shipment content. See About Commodity for available codes. |