- Manuable API Guía Rápida
- Introducción de API
- Iniciar sesión
- Cotiza y emite tu primera guía
- Cancelaciones
- Limitantes por Paquetería
- Endpoints
Obtener cotizacion
POST
http://ec2-54-188-18-143.us-west-2.compute.amazonaws.com:4000/api/rates
Rates
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Body Params application/json
POST Body para obtener cotizaciones
address_from
required
Any of
Example:
{"country_code":"MX","zip_code":"66058"}
country_code
string
required
Example:
MX
zip_code
string
required
Example:
66058
address_to
required
Any of
Example:
{"country_code":"MX","zip_code":"66058"}
country_code
string
required
Example:
MX
zip_code
string
required
Example:
66058
parcel
required
Any of
Example:
{"currency":"MXN","distance_unit":"CM","height":10,"length":10,"mass_unit":"KG","product_id":"01010101","product_value":4321,"quantity_products":1,"reason_code":"GIFT","weight":10,"width":10}
currency
string
required
Example:
MXN
distance_unit
string
required
Example:
CM
height
number
required
>= 1
Example:
10
length
number
required
>= 1
Example:
10
mass_unit
string
required
Example:
KG
product_id
string
required
Example:
01010101
product_value
number
required
>= 1
Example:
4321
quantity_products
integer
required
Example:
1
content
string
required
Example:
GIFT
weight
number
required
>= 1
Example:
10
width
number
required
>= 1
Example:
10
Example
{
"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
}
}
Request samples
Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'http://ec2-54-188-18-143.us-west-2.compute.amazonaws.com:4000/api/rates' \
--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
}
}'
Responses
🟢201Created
application/json
Body
Respuesta exitosa de una cotización
data
array[object (Rate) {9}]
optional
additional_fees
array [object]
optional
carrier
string
optional
currency
string
optional
Example:
MXN
service
integer
optional
Example:
express
shipping_type
number
optional
Example:
local
total_amount
string
optional
Example:
400.0
uuid
object
optional
weight
number
optional
zone
integer
optional
Example
{
"data": [
{
"additional_fees": [],
"carrier": "FEDEX",
"currency": "MXN",
"service": "standard",
"shipping_type": "local",
"total_amount": "400.0",
"uuid": "9964cf5d-b248-4d26-bdd6-586c43ea8e01",
"zone": 2
},
{
"additional_fees": [],
"carrier": "FEDEX",
"currency": "MXN",
"service": "express",
"shipping_type": "local",
"total_amount": "400.0",
"uuid": "587ca7c9-e16a-4ddb-9e1b-0e01a86ee322",
"zone": 2
}
]
}
🟠403Forbidden
🟠422Parameter Error