POST item/multi-items
(under the B2B route prefix)Property Name | Data Type | Required | Notes |
---|---|---|---|
courier | String | Yes | The courier to be used, which determines the volumetric division factor. |
items | Array of Objects | Yes | An array of item objects to be calculated. |
items
Object ParametersProperty Name | Data Type | Required | Notes |
---|---|---|---|
length | Number | Yes | Length of the item in cm. |
width | Number | Yes | Width of the item in cm. |
height | Number | Yes | Height of the item in cm. |
weight | Number | Yes | Weight of the item in grams. |
quantity | Number | Yes | Quantity of this item. |
name | String | Yes | Name or description of the item. |
length
, width
, height
, and weight
are provided for a single item. The system will calculate the total based on the quantity
.{
"success": true,
"message": "success",
"data": {
"desc": "RMK-123- Qty: 1 | Washmachine Qty: 2",
"total_weight": 1400,
"volumetric_weight": 20000,
"final_actual_weight": 25000,
"suggested_optimal_volumetric": "100x50x30"
},
"timestamp": "2025-08-14T06:23:41.289Z"
}
weight
parameter in the tariff API.curl --location --request POST '/item/multi-items' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic Og==' \
--data-raw '{
"courier": "idx",
"items": [
{
"name": "RMK-123-",
"length": 30,
"width": 30,
"height": 100,
"weight": 200,
"quantity": 1
},
{
"name": "Washmachine",
"length": 30,
"width": 50,
"height": 10,
"weight": 600,
"quantity": 2
}
]
}'
{
"success": true,
"message": "success",
"data": {
"desc": "RMK-123- Qty: 1 | Washmachine Qty: 2",
"total_weight": 1400,
"volumetric_weight": 20000,
"final_actual_weight": 25000,
"suggested_optimal_volumetric": "100x50x30"
},
"timestamp": "2025-08-14T06:47:38.122Z"
}