Tarifas Nacionales / Internacionales

URL API de Producci贸n

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

URL API de Prueba

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

Paqueter铆as

Dr.Envio cuenta con 17 paqueter铆as, que son los siguientes:

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

Nota

En el entorno de desarrollo, las paqueter铆as disponibles para cotizar son: JTExpress y Quiken.

Petici贸n / Request

FieldDescriptionTypeRequired
typeType of shipmentEnum: National Internationaltrue
originOrigin infomation for shipment addressObject AddressObjecttrue
destinationDestination infomation for shipment addressObject AddressObjecttrue
packagesPackages array of itemsArray PackageObjecttrue
insuranceThe insurance of the shipment, if insured the response will contain the amount of the insurance. MXN if national shipping, if not in USD.numbertrue
carriersAn 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: AllCarrierstrue

Address (Object)

FieldDescriptionTypeRequired
country2 digit country code of each address. Origin must always be MX and destination can be any countryEnum: MX, COtrue
postalCodePostal Code of the origin/destination address.stringtrue

Package (Object)

FieldDescriptionTypeRequired
weightWeight of the package in KG.numbertrue
heightHeight of the package in CM.numbertrue
widthWidth of the package in CM.numbertrue
lengthLength of the package in CM.numbertrue
volumetricThe volumetric weight of the shipmentnumberfalse
typeThe type of the packageEnum: box, envelope, pallettrue
insuranceThe insurance of the shipment, if insured the response will contain the amount of the insurance. MXN if national shipping, if not in USD.numberfalse

Paqueter铆as disponibles

CountryNationalInternational
M茅xicofedex, estafeta, dhl, paquetexpress, redpack, sendex, noventa9Minutos, ampm, quiken, scm, carssa, ivoy, ups, uber, mensajeros_urbanos, jtexpress, borzofedex, estafeta, dhl, ups
Colombiafedex, dhl, coordinadora, noventa9Minutos, redServi, mensajeros_urbanosfedex, dhl

Petici贸n / 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
}
              

Respuesta / 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": {}
  }
]