- 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
Emisión de Guía
POST
http://ec2-54-188-18-143.us-west-2.compute.amazonaws.com:4000/api/labels
Request
Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.Example:
Authorization: Bearer ********************
Body Params application/json
address_from
object (Address Copy)
required
Example:
{"country_code":"MX","zip_code":"66058"}
name
string
required
street1
string
required
neighborhood
string
required
external_number
string
required
city
string
required
state
string
required
phone
string
required
email
string
required
country
string
required
country_code
string
required
Example:
MX
reference
string
optional
company
string
optional
address_to
object (Address Copy)
required
Example:
{"country_code":"MX","zip_code":"66058"}
parcel
object
required
currency
string
required
Example:
MXN
distance_unit
string
required
Example:
CM
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
rate_token
string
required
label_format
string
optional
Example
{
"address_from": {
"name": "Fulanito Juarez",
"street1": "Mercedes",
"neighborhood": "Barrio Guadalupe",
"external_number": "243",
"city": "Iztapalapa",
"company": "compañia",
"state": "CDMX",
"phone": "5518426237",
"email": "example@example.com",
"country": "MEXICO",
"country_code": "MX",
"reference": "Enfrente de un oxxo"
},
"address_to": {
"name": "Fulanito Juarez",
"street1": "Mercedes",
"neighborhood": "Barrio Guadalupe",
"external_number": "243",
"company": "compañia",
"city": "Iztapalapa",
"state": "CDMX",
"phone": "5518426237",
"email": "example@example.com",
"country": "MEXICO",
"country_code": "MX",
"reference": "Enfrente de un oxxo"
},
"parcel": {
"currency": "MXN",
"product_id": "01010101",
"product_value": 4324,
"quantity_products": 1,
"content": "GIFT"
},
"label_format": "THERMAL",
"rate_token": "RATE_UUID"
}
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/labels' \
--header 'Content-Type: application/json' \
--data-raw '{
"address_from": {
"name": "Fulanito Juarez",
"street1": "Mercedes",
"neighborhood": "Barrio Guadalupe",
"external_number": "243",
"city": "Iztapalapa",
"company": "compañia",
"state": "CDMX",
"phone": "5518426237",
"email": "example@example.com",
"country": "MEXICO",
"country_code": "MX",
"reference": "Enfrente de un oxxo"
},
"address_to": {
"name": "Fulanito Juarez",
"street1": "Mercedes",
"neighborhood": "Barrio Guadalupe",
"external_number": "243",
"company": "compañia",
"city": "Iztapalapa",
"state": "CDMX",
"phone": "5518426237",
"email": "example@example.com",
"country": "MEXICO",
"country_code": "MX",
"reference": "Enfrente de un oxxo"
},
"parcel": {
"currency": "MXN",
"product_id": "01010101",
"product_value": 4324,
"quantity_products": 1,
"content": "GIFT"
},
"label_format": "THERMAL",
"rate_token": "RATE_UUID"
}'
Responses
🟢200Success
application/json
Body
token
string
required
created_at
string
required
tracking_number
string
required
label_url
string
required
price
string
required
Example
{
"token": "82d9a-4490-bf73-1244e00608a5",
"created_at": "2024-11-04T18:12:45",
"tracking_number": "794809162",
"label_url": "http://static.example.com/uploa48299245754-DdcfIeguBdfY38OF0Gw.pdf",
"price": "100"
}