Find articles, help and tips about our API

International/National Rates

Production API URL

				
					https://api-clientes.vercel.app/v2/shipments/rate				
			

Sandbox API URL

				
					https://sandbox.api-drenvio.com/v2/shipments/rate				
			

Carriers

Dr.Envio has 17 carriers which are the following:

  1. Fedex
  2. Sendex
  3. DHL
  4. UPS
  5. Redpack
  6. Carssa
  7. Ivoy
  8. Scm
  9. Quiken
  10. Ampm
  11. Estafeta
  12. Paquetexpress
  13. 99minutos
  14. Uber
  15. Mensajeros Urbanos
  16. JTExpress
  17. Borzo

Note:

In the testing environment, the available carrier services for quoting are JTExpress and Quiken.

Request

Field Description Type Required
type
Type of shipment
Enum:
National
International
true
origin
Origin infomation por shipment address
true
detination
Destination infomation por shipment address
true
Packages
Packages array of items
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
true
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: AllCarriers
true

Address (Object)

Field Description Type Required
postal_code
Postal Code of the origin/destination address.
string
true
Content
2 digit country code of each address. Origin must always be MX and destination can be any country
Enum: MX, CO
true

Package (Object)

Field Description Type Required
weight
Weight of the package in KG.
number
true
height
Height of the package in CM.
number
true
width
Width of the package in CM.
number
true
length
Length of the package in CM.
number
true
volumetric
The volumetric weight of the shipment
number
false
type
The type of the package
Enum: box envelope pallet
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

Available Carriers

country National International
México
fedex
estafeta
dhl
paquetexpress
redpack
sendex
noventa9Minutos
ampm
quiken
scm
carssa
ivoy
ups
uber
mensajeros_urbanos
jtexpress
borzo
fedex
estafeta
dhl
ups
Colombia
fedex
dhl
coordinadora
noventa9Minutos
redServi
mensajeros_urbanos
serviEntrega
fedex
dhl

Request

				
					{
  "type": "National",
  "origin": {
    "country": "MX",
    "postal_code": "64000"
  },
  "destination": {
    "country": "MX",
    "postal_code": "64380"
  },
  "packages": [
    {
      "weight": 1,
      "height": 10,
      "width": 10,
      "length": 10,
      "volumetric": 0.2,
      "type": "box",
      "main_weight": 1
    }
  ],
  "carriers": [
    "fedex",
    "estafeta",
    "ampm",
    "jtexpress"
    
  ],
  "insurance": 0
}				
			

Response

				
					[
    {
        "ObjectId": null,
        "ShippingId": "G1",
        "carrier": "fedex",
        "service_id": "fedex_mx_D-C03_ground",
        "service": "ground",
        "price": 120,
        "days": "3 a 5 días",
        "insurance": 0,
        "currency": "MXN",
        "metadata": {
            "extended_area": {
                "extended_area": false,
                "origin": false,
                "destination": false
            }
        }
    },
    {
        "ObjectId": null,
        "ShippingId": "G1",
        "carrier": "fedex",
        "service_id": "fedex_mx_P-C00_ground",
        "service": "ground",
        "price": 94.55,
        "days": "3 a 5 días",
        "insurance": 0,
        "currency": "MXN",
        "metadata": {
            "account_id": "648a19d789be2a38ae8eb0d2",
            "account_price": 1,
            "extended_area": {
                "extended_area": false,
                "origin": false,
                "destination": false
            }
        }
    },
    {
        "ObjectId": null,
        "ShippingId": "G1",
        "carrier": "fedex",
        "service_id": "fedex_mx_D-C03_express",
        "service": "express",
        "price": 145,
        "days": "1 a 2 días",
        "insurance": 0,
        "currency": "MXN",
        "metadata": {
            "extended_area": {
                "extended_area": false,
                "origin": false,
                "destination": false
            }
        }
    },
    {
        "ObjectId": null,
        "ShippingId": "G1",
        "carrier": "fedex",
        "service_id": "fedex_mx_P-C00_express",
        "service": "express",
        "price": 86.52,
        "days": "1 a 2 días",
        "insurance": 0,
        "currency": "MXN",
        "metadata": {
            "account_id": "648a19d789be2a38ae8eb0d2",
            "account_price": 1,
            "extended_area": {
                "extended_area": false,
                "origin": false,
                "destination": false
            }
        }
    },
    {
        "ObjectId": "T0",
        "ShippingId": "N6",
        "carrier": "estafeta",
        "service": "metropolitano",
        "currency": "MXN",
        "price": 68,
        "insurance": 0,
        "service_id": "estafeta_mx_D-C03_metropolitano",
        "days": "2 días",
        "metadata": {
            "extended_area": {
                "extended_area": false,
                "origin": false,
                "destination": false
            },
            "ocurre": false
        }
    },
    {
        "ObjectId": "78",
        "ShippingId": "N6",
        "carrier": "estafeta",
        "service": "ground",
        "currency": "MXN",
        "price": 120,
        "insurance": 0,
        "service_id": "estafeta_mx_D-C03_terrestre",
        "days": "5 días",
        "metadata": {
            "extended_area": {
                "extended_area": false,
                "origin": false,
                "destination": false
            },
            "ocurre": false
        }
    },
    {
        "ObjectId": "D8",
        "ShippingId": "N6",
        "carrier": "estafeta",
        "service": "2_days",
        "currency": "MXN",
        "price": 134,
        "insurance": 0,
        "service_id": "estafeta_mx_D-C03_2dias",
        "days": "2 días",
        "metadata": {
            "extended_area": {
                "extended_area": false,
                "origin": false,
                "destination": false
            },
            "ocurre": false
        }
    },
    {
        "ObjectId": "60",
        "ShippingId": "N6",
        "carrier": "estafeta",
        "service": "next_day",
        "currency": "MXN",
        "price": 135,
        "insurance": 0,
        "service_id": "estafeta_mx_D-C03_next_day",
        "days": "1 día",
        "metadata": {
            "extended_area": {
                "extended_area": false,
                "origin": false,
                "destination": false
            },
            "ocurre": false
        }
    },
    {
        "ShippingId": "E1",
        "ObjectId": "ECONOMY SELECT DOMESTIC",
        "carrier": "dhl",
        "service": "ground",
        "service_id": "dhl_mx_D-C01_ground",
        "insurance": 0,
        "currency": "MXN",
        "days": "1 a 2 días",
        "metadata": {
            "dhl": {
                "productCode": "G",
                "productName": "ECONOMY SELECT DOMESTIC"
            }
        },
        "price": 170
    },
    {
        "ShippingId": "E1",
        "ObjectId": "ECONOMY SELECT DOMESTIC",
        "carrier": "dhl",
        "service": "ground",
        "service_id": "dhl_mx_P-C00_ground",
        "insurance": 0,
        "currency": "MXN",
        "days": "1 a 2 días",
        "metadata": {
            "account_id": "648a1a9d89be2a38ae8eb21a",
            "account_price": 1,
            "dhl": {
                "productCode": "G",
                "productName": "ECONOMY SELECT DOMESTIC"
            }
        },
        "price": 138.14
    },
    {
        "ShippingId": "E1",
        "ObjectId": "EXPRESS DOMESTIC",
        "carrier": "dhl",
        "service": "express",
        "service_id": "dhl_mx_D-C01_express",
        "insurance": 0,
        "currency": "MXN",
        "days": "1 a 2 días",
        "metadata": {
            "dhl": {
                "productCode": "N",
                "productName": "EXPRESS DOMESTIC"
            }
        },
        "price": 175
    },
    {
        "ShippingId": "E1",
        "ObjectId": "EXPRESS DOMESTIC",
        "carrier": "dhl",
        "service": "express",
        "service_id": "dhl_mx_P-C00_express",
        "insurance": 0,
        "currency": "MXN",
        "days": "1 a 2 días",
        "metadata": {
            "account_id": "648a1a9d89be2a38ae8eb21a",
            "account_price": 1,
            "dhl": {
                "productCode": "N",
                "productName": "EXPRESS DOMESTIC"
            }
        },
        "price": 138.14
    },
    {
        "ObjectId": null,
        "ShippingId": "N4",
        "carrier": "redpack",
        "service": "ground",
        "service_id": "redpack_mx_D-C03_ground",
        "price": 85,
        "insurance": 0,
        "currency": "MXN",
        "days": "3 días",
        "metadata": {
            "extended_area": {
                "extended_area": false,
                "origin": false,
                "destination": false
            }
        }
    },
    {
        "ObjectId": null,
        "ShippingId": "N4",
        "carrier": "redpack",
        "service": "express",
        "service_id": "redpack_mx_D-C02_express",
        "price": 130,
        "insurance": 0,
        "currency": "MXN",
        "days": "2 días",
        "metadata": {
            "extended_area": {
                "extended_area": false,
                "origin": false,
                "destination": false
            }
        }
    },
    {
        "ObjectId": "next_day_guaranteed",
        "ShippingId": "N4",
        "carrier": "quiken",
        "service": "ground",
        "service_id": "quiken_mx_D-C01_ground",
        "price": 92,
        "currency": "MXN",
        "days": "Siguiente día",
        "extra": "Next Day Guaranteed",
        "metadata": {}
    },
    {
        "ObjectId": "local_express",
        "ShippingId": "N4",
        "carrier": "quiken",
        "service": "ground",
        "service_id": "quiken_mx_D-C01_ground36hrs",
        "price": 69,
        "currency": "MXN",
        "days": "36 horas",
        "extra": "Next Day - 36 hrs",
        "metadata": {}
    },
    {
        "ObjectId": null,
        "ShippingId": "E1",
        "carrier": "mensajerosUrbanos",
        "service": "ground",
        "service_id": "mensajerosUrbanos_mx_A-P01_ground",
        "insurance": 0,
        "price": 117.29,
        "currency": "MXN",
        "days": "2 horas",
        "metadata": {}
    }
]				
			
On this page