Find articles, help and advice for our REST API

International/National Rates

Sandbox

				
					https://drenvio-api-test.vercel.app/api/rate				
			

Production

				
					https://api-drenvio.vercel.app/api/rate				
			

Carriers

Dr.Envio has 15 carriers which are the following:

  1. fedex
  2. sendex
  3. dhl
  4.  ups
  5.  redpack
  6.  carssa
  7.  vencedor
  8.  ivoy
  9.  scm
  10.  quiken
  11.  ampm
  12.  estafeta
  13.  tracusa
  14. paquetexrepss
  15.  99minutos

Request

Field Description Type Required
origin/destination
postalCode
Postal Code of the origin/destination address.
string
true
country
2 digit country code of each address. Origin must always be MX and destination can be any country
string
true
Package
package.weight
Weight of the package in KG.
number
true
package.height
Height of the package in CM.
number
true
package.width
Width of the package in CM.
number
true
package.length
Length of the package in CM.
number
true
package.declaredValue
Declared Value of the shipment in MXN, default 0. If it is an international rate, it must be in USD.
number
false
package.type
either a "box" or an "envelope"
string
true
insurance
The insurance of the shipment, if insured the response will contain the amount of the insurance. MXN if national shipping, if not in USD.
number
false
carriers

An array with each of the carriers that you want to rate your shipment.
International rates are only available with fedex, dhl, ups, and estafeta.

array of strings
true
				
					{
    "origin": {
        "country": "MX",
        "postalCode": "66250"
    },
    "destination": {
        "country": "MX",
        "postalCode": "66250"
    },
    "package": {
        "weight": 10,
        "height": 10,
        "width": 10,
        "length": 10,
        "declaredValue": 10,
        "type": "box"
    },
    "insurance": 0,
    "carriers": [
        "fedex",
        "sendex",
        "dhl",
        "ups",
        "redpack",
        "carssa",
        "vencedor",
        "ivoy",
        "scm",
        "quiken",
        "ampm",
        "estafeta",
        "tracusa",
        "paquetexpress",
        "noventa9Minutos"
    ]
}				
			

Response

				
					{
    "origin": {
        "country": "MX",
        "postalCode": "66250",
        "district": "Bosques del Valle",
        "state": "NL",
        "city": "San Pedro Garza García",
        "full_state": "Nuevo León"
    },
    "destination": {
        "country": "MX",
        "postalCode": "66250",
        "district": "Bosques del Valle",
        "city": "San Pedro Garza García",
        "state": "NL",
        "full_state": "Nuevo León"
    },
    "rates": [
        {
            "ObjectId": "1626",
            "ShippingId": "N1",
            "carrier": "redpack",
            "service": "express",
            "price": 338.85,
            "insurance": 0,
            "currency": "MXN",
            "days": "1 día"
        },
        {
            "ObjectId": "1888",
            "ShippingId": "N1",
            "carrier": "redpack",
            "service": "ground",
            "price": 159,
            "insurance": 0,
            "currency": "MXN",
            "days": "4 días"
        },
        {
            "ObjectId": null,
            "ShippingId": "N3",
            "carrier": "vencedor",
            "service": "ground",
            "price": 71.66,
            "insurance": 0,
            "currency": "MXN",
            "days": "5 días"
        },
        {
            "ObjectId": "local_express",
            "ShippingId": "N4",
            "carrier": "quiken",
            "service": "ground",
            "price": 93.5,
            "insurance": 0,
            "currency": "MXN",
            "days": "36 horas",
            "extra": "Next Day - 36 hrs"
        },
       ...
    ]
}				
			
On this page