Web API Docs API Reference

Epack Envíos API Documentation.

Log in using your email and password from epackenvios.com, to start making your shipments.

It's easy and fast, just quote, choose rate and request your shipment.

API Endpoint
https://api.epackenvios.com/v1
Request Content-Types: application/json
Response Content-Types: application/json
Schemes: http, https
Version: 1.0

Login

Request Login

POST /Login
Request Example

{
	"email": "test@test.com",
	"password": "password"
}
200 OK
Response

Request processed.

401 Unauthorized

Unauthorized.

403 Forbidden

Access denied.

404 Bad Request

Bad Request.

500

Error.

Response Example (200 OK)
{
    "result": "TOKEN_STRING",
    "error": false,
    "message": ""
}
Header Value
Token {{YOUR_TOKEN}}

Quote

Request Quote

POST /Quote

Get quotation for a shipment

SANDBOX PATH

POST /Quote_sandbox

ltl
boolean
turn on/off ltl
secure
boolean
turn on/off assurance
secureValue
decimal
value of assurance
pickup
boolean
enable pickup
international
boolean
send 1 if the recipient is outside of mexico
curriers
array
Quote only with the selected curriers
Request Example

{
    "ltl": "0",
    "shipperZip": "55100",
    "recipientZip": "44550",
    "weight": "5",
    "large": "10",
    "width": "1",
    "height": "1",
    "secure": 0,
    "secureValue": "0",
    "pickup": "0",
    "international": 0,
    "content": "cotizacion",
    "shipperCountry": "MX",
    "shipperCity": "Ecatepec De Morelos",
    "shipperState": "México",
    "recipientCountry": "MX",
    "recipientCity": "Benito Juarez",
    "recipientState": "Quintana Roo",
    "curriers": ["dhl","fedex","estafeta","redpack","ups"]
}
200 OK
Response

Request processed.

401 Unauthorized

Unauthorized.

403 Forbidden

Access denied.

404 Bad Request

Bad Request.

500

Error.

Response Example (200 OK)
{
    "result": [
        {
            "Service": "Dia Sig.",
            "Currier": "estafeta",
            "CodigoServicio": "Dia Sig.",
            "ExtendZone": false,
            "ForceOcurre": false,
            "DiasEntrega": {
                "Miercoles": "X",
                "Martes": "X",
                "Viernes": "X",
                "Lunes": "X",
                "Domingo": "",
                "Jueves": "X",
                "Sabado": "X"
            },
            "Total": "320.10",
            "Price": "320.10",
            "PriceObj": {
                "Price": "330.00",
                "Secure": 0,
                "ExtendZone": 0,
                "Discount": "9.90",
                "Measure": 0
            },
            "Weight": 5,
            "CurrierWeight": "5"
        },
        {
            "Service": "Terrestre",
            "Currier": "estafeta",
            "CodigoServicio": "Terrestre",
            "ExtendZone": false,
            "ForceOcurre": false,
            "DiasEntrega": {
                "Miercoles": "X",
                "Martes": "X",
                "Viernes": "X",
                "Lunes": "X",
                "Domingo": "",
                "Jueves": "X",
                "Sabado": "X"
            },
            "Total": "174.60",
            "Price": "174.60",
            "PriceObj": {
                "Price": "180.00",
                "Secure": 0,
                "ExtendZone": 0,
                "Discount": "5.40",
                "Measure": 0
            },
            "Weight": 5,
            "CurrierWeight": "5"
        },
        {
            "Service": "2 Dias",
            "Currier": "estafeta",
            "CodigoServicio": "2 Dias",
            "ExtendZone": false,
            "ForceOcurre": false,
            "DiasEntrega": {
                "Miercoles": "X",
                "Martes": "X",
                "Viernes": "X",
                "Lunes": "X",
                "Domingo": "",
                "Jueves": "X",
                "Sabado": "X"
            },
            "Total": "315.25",
            "Price": "315.25",
            "PriceObj": {
                "Price": "325.00",
                "Secure": 0,
                "ExtendZone": 0,
                "Discount": "9.75",
                "Measure": 0
            },
            "Weight": 5,
            "CurrierWeight": "5"
        }
    ],
    "error": false,
    "message": ""
}
Header Value
Token {{YOUR_TOKEN}}

Create

Request Create

POST /Create

Create a shipment

SANDBOX PATH

POST /Create_sandbox

ltl
boolean
turn on/off ltl
secure
boolean
turn on/off assurance
secureValue
decimal
value of assurance
pickup
boolean
enable pickup
international
boolean
send 1 if the recipient is outside of mexico
currier
string
name of the currier
service
string
name of the service
Request Example

{
  "ltl": true,  
  "shipperZip": "44200",
  "recipientZip": "06100",
  "weight": "500",
  "large": "1",
  "width": "1",
  "height": "1",
  "secure": "0",
  "secureValue": "0",
  "customs": "0",
  "pickup": "1",
  "international": 0,
  "recipientCity": "Aragon",
  "shipperCity": "Guadalajara",
  "recipientCountry": "MX",
  "shipperCountry": "MX",
  "currier": "estafeta",
  "recipientStreet": "Calle 1",
  "recipientStreet2": "Calle 2",
  "recipientStreetB2": "Between 2",
  "recipientStreetB1": "Between 1",
  "recipientSuburb": "Mesoamerica",
  "recipientName": "Yadiris Reyes",
  "recipientState": "SO",
  "recipientPhone": "TELEFONO",
  "shipperStreet": "Lojeños L9 Mza18",
  "shipperStreet2": "2Lojeños L9 Mza18",
  "shipperStreetB2": "Between 2",
  "shipperStreetB1": "Between 1",
  "shipperSuburb": "Huentitán el bajo",
  "shipperState": "DF",
  "shipperName": "Michel Solis",
  "shipperPhone": "TELEFONO",
  "recipientTaxId": "123456789120",
  "shipperTaxId": "123456789120",
  "shipperCompanyName": "Michel Solis",
  "recipientCompanyName": "NAME",
  "recipientExternalNum": "123",
  "recipientInternalNum": "123",
  "shipperExternalNum": "321",
  "shipperInternalNum": "123",
  "pickupHour": 0,
  "service":"LTL",
  "SatProductCode":"10131508",
  "SatQuantity":1,
  "SatUnitOfMeasure":"F63",
  "labelQuantity": 1
}
200 OK
Response

Request processed.

401 Unauthorized

Unauthorized.

403 Forbidden

Access denied.

404 Bad Request

Bad Request.

500

Error.

Response Example (200 OK)

{
    "result": {
        "NumeroGuia": "XXX11111",
        "pdf": "https://app.epackenvios.com/tracking/XXX11111.pdf",
        "Recoleccion": "1000629474"
    },
    "error": false,
    "message": ""
}
Header Value
Token {{YOUR_TOKEN}}