We announce the release of a new API version aimed at providing convenience for our partners using the service.
{
"ship_from": {
"country": "VN",
"pickup_id": 409223
},
"ship_to": {
"address": "18 Tam Trinh",
"subdistrict": 8980,
"contact_name": "Thịnh NV",
"country": "VN",
"district": 250,
"phone": "84032999292",
"province": 1,
"zipcode": ""
},
"shipments": {
"delivery_note": "",
"parcels": [
{
"items": [
{
"quantity": 1,
"sku": "TEST-0004"
},
{
"quantity": 1,
"sku": "TEST-0005"
}
]
}
]
},
"config": {
"insurance": "N",
"currency": "VND",
"unit_metric": "metric",
"sort_mode": "best_price",
"auto_approve": "Y",
"order_type": "b2c",
"include_distance_service": "Y"
},
"payment": {
"cod_amount": 24000
},
"referral": {
"order_number": "SO092921232"
},
"fulfillment_vas": {
"fulfill_now": "N",
"priority_fulfill": "N"
}
}
curl --location --request POST 'https://s.boxme.asia/api/v2/courier/pricing/calculate' \
--header 'Authorization: Token {{API_TOKEN}}' \
--header 'Content-Type: application/json' \
--data-raw '{
"ship_from": {
"country": "VN",
"pickup_id": 409223
},
"ship_to": {
"address": "18 Tam Trinh",
"subdistrict": 8980,
"contact_name": "Thịnh NV",
"country": "VN",
"district": 250,
"phone": "84032999292",
"province": 1,
"zipcode": ""
},
"shipments": {
"delivery_note": "",
"parcels": [
{
"items": [
{
"quantity": 1,
"sku": "TEST-0004"
},
{
"quantity": 1,
"sku": "TEST-0005"
}
]
}
]
},
"config": {
"insurance": "N",
"currency": "VND",
"unit_metric": "metric",
"sort_mode": "best_price",
"auto_approve": "Y",
"order_type": "b2c",
"include_distance_service": "Y"
},
"payment": {
"cod_amount": 24000
},
"referral": {
"order_number": "SO092921232"
},
"fulfillment_vas": {
"fulfill_now": "N",
"priority_fulfill": "N"
}
}'
{
"data": {
"couriers": [
{
"total_fee": 0,
"cod_value": 24000,
"shipping_fee": 0,
"vas_fee": 0,
"fulfillment_fee": 0,
"tax": 0,
"duty": 0,
"is_distance_service": false,
"is_negotiable": false,
"sorting_hub": "BMPH_PDC_TEST_2",
"chargeable_weight": 22,
"min_delivery_time": 1,
"max_delivery_time": 0,
"currency": "VND",
"handover_options": "dropoff, pickup",
"handover_policy": "Free pickup",
"courier_name": "Boxme Express",
"courier_id": 52,
"courier_logo": "https://app.omisell.com/assets/customize/images/courier/Boxme_EXPRESS.svg",
"service_id": 57,
"service_code": "BM_DBS",
"service_name": "Self-Delivery",
"insurance_policy": "https://blog.boxme.asia/vi/dieu-khoan-su-dung/",
"dropoff_point": "https://boxme.asia/en/dropoff/"
}
]
},
"error": false,
"error_code": "",
"messages": "Calculate fee successfully",
"request_id": 1703485703,
"total": 0
}