Skip to content

Solicitar recolección

Esta guía te permite generar la solicitud de recoleccion utilizando la API de DrEnvio.

Environments

DrEnvio API supports two environments: Production and Sandbox.

Production Environment The production environment is where real shipments are processed. To use the production API, send your requests to the following URL:

Terminal window
https://api-clientes.vercel.app/v2/shipments/pickup

Sandbox Environment The sandbox environment is used for testing purposes. It provides simulated data to help you develop and test your integration before moving to production. To use the sandbox API, send your requests to the following URL:

Terminal window
https://sandbox.api-drenvio.com/v2/shipments/pickup

API request

To generate the pickup, send a POST request with a JSON body like this:

{
"trackingNumber": "UAT301007266401"
}

API response

If the request is successful, you will receive a response like this:

{
"success": true,
"code": 200,
"res": {
"folio": "REXA1230"
}
}