Request Pickup
This guide allows you to generate a pickup request using the DrEnvío API.
Environments
The DrEnvío 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:
https://prod.api-drenvio.com/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:
https://sandbox.api-drenvio.com/v2/shipments/pickup
API request
To generate the pickup request, 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" }}