Authorization: Bearer ********************{
"address_from": {
"country_code": "MX",
"zip_code": "54040"
},
"address_to": {
"country_code": "MX",
"zip_code": "54040"
},
"parcel": {
"currency": "MXN",
"distance_unit": "CM",
"height": 10,
"length": 10,
"mass_unit": "KG",
"weight": 1,
"width": 10
}
}curl --location --request POST 'http://ec2-54-188-18-143.us-west-2.compute.amazonaws.com:4000/api/rates' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"address_from": {
"country_code": "MX",
"zip_code": "54040"
},
"address_to": {
"country_code": "MX",
"zip_code": "54040"
},
"parcel": {
"currency": "MXN",
"distance_unit": "CM",
"height": 10,
"length": 10,
"mass_unit": "KG",
"weight": 1,
"width": 10
}
}'{
"data": [
{
"additional_fees": [
{
"amount": "0.0",
"code": "notification_amount",
"description": "Servicio de notificación de estado del paquete",
"include_taxes": true,
"name": "Servicio de Rastreo"
}
],
"carrier": "FEDEX",
"currency": "MXN",
"service": "standard",
"shipping_type": "local",
"total_amount": "150.0",
"cancellable": true,
"uuid": "9964cf5d-b248-4d26-bdd6-586c43ea8e01",
"zone": 2,
"lead_time": "5+ days"
},
{
"additional_fees": [],
"carrier": "FEDEX",
"currency": "MXN",
"service": "express",
"shipping_type": "local",
"total_amount": "400.0",
"cancellable": false,
"uuid": "9964cf5d-b248-4d26-bdd6-586c43ea8e01",
"zone": 2,
"lead_time": "2 days"
}
]
}