{
"from_address": {
"province_id": 201,
"district_id": 1448,
"ward_id": "1A0320"
},
"to_address": {
"province_id": 201,
"district_id": 3440,
"ward_id": "13010"
},
"package_size": {
"height": 50,
"length": 20,
"weight": 200,
"width": 20
},
"items": [
{
"id": "item-code-1",
"name": "test item",
"quantity": 1,
"price": 100000,
"length": 10,
"width": 12,
"height": 5,
"weight": 1,
"category": {
"level_1": "category-1",
"level_2": "",
"level_3": ""
}
}
],
"method_id": 5,
"delivery_service_id": 53321,
"voucher_code": "",
"cod_amount": 0,
"delivery_failed_amount": 0,
"insurance_amount": 0
}
curl --location --request POST 'http://petfen-shipping.local.com:8087/api/v1/delivery/fee' \
--header 'X-Auth-Service: Bearer ' \
--header 'Content-Type: application/json' \
--data-raw '{
"from_address": {
"province_id": 201,
"district_id": 1448,
"ward_id": "1A0320"
},
"to_address": {
"province_id": 201,
"district_id": 3440,
"ward_id": "13010"
},
"package_size": {
"height": 50,
"length": 20,
"weight": 200,
"width": 20
},
"items": [
{
"id": "item-code-1",
"name": "test item",
"quantity": 1,
"price": 100000,
"length": 10,
"width": 12,
"height": 5,
"weight": 1,
"category": {
"level_1": "category-1",
"level_2": "",
"level_3": ""
}
}
],
"method_id": 5,
"delivery_service_id": 53321,
"voucher_code": "",
"cod_amount": 0,
"delivery_failed_amount": 0,
"insurance_amount": 0
}'
{}