API Reference

It is a lower-level HTTP-based API that applications can use programmatically to query data and perform a wide range of tasks related to our platform. This in turn receives a JSON type response for better management and control of the information returned.

In the side panel on the right side it shows the configuration of the API in various programming languages such as Curl Ruby Python PHP Java Node

For testing please use your account in test.envia.com
For production please use your account in envia.com

Image

API Endpoint - Production
https://api.envia.com/
API Endpoint - Test
https://api-test.envia.com/

Authentication

In order to use the Envia.com API you first need to register on our portal. Remember very well your email and password, since these will be the data you need to authenticate in our API and be able to use it.

The first thing you will have to do is encrypt your email and password in base64 in this format: "[email protected]:password123". (Do not forget to separate your email from your password using a colon [:])

Encryptation: base64_encode('[email protected]:password123')

Account in base64: dXNlcm5hbWVAZXhhbXBsZS5jb206cGFzc3dvcmQxMjM=

Authorization
Basic dXNlcm5hbWVAZXhhbXBsZS5jb206cGFzc3dvcmQxMjM=
Content-type
application/json

Examples

POST Rate

https://api.envia.com/ship/rate/
Headers
Authorization
Basic dXNlcm5hbWVAZXhhbXBsZS5jb206cGFzc3dvcmQxMjM=
Content-type
application/json
Body (raw)
{ "origin": { "name": "Raymundo Salazar", "company": "Example Company", "email": "[email protected]", "phone": "81818181", "street": "Av Vasconcelos", "number": "1400", "district": "Palo Blanco", "city": "Monterrey", "state": "NL", "country": "MX", "postalCode": "66236" }, "destination": { "name": "Gina Colin", "company": "Example Company", "email": "[email protected]", "phone": "8181818181", "street": "Av Vasconcelos", "number": "1400", "district": "Palo Blanco", "city": "Monterrey", "state": "NL", "country": "MX", "postalCode": "66240" }, "package": { "content": "jewels", "amount": 1, "type": "box", "dimensions": { "length": 17, "width": 13, "height": 8 }, "weight": 3, "insurance": 0, "declaredValue": 0 }, "shipment": { "carrier": "estafeta" } }

Call Properties

Atributo Tipo Descripción Opciones
origin array
origin name string Name of who sends.
origin company string Company name of who sends.
origin email string Email of who sends.
origin phone string Phone of who sends.
origin street string Address. Street of who sends.
origin number string Address. External number of who sends.
origin district string Address. District of who sends.
origin city string Address. City of who send.
origin state string Address. State of who sends.
origin country string Address. Country of who sends.
origin postalCode string Address. Zip Code of who sends.
destination array
destination name string Name of who receives.
destination company string Company Name of who receives.
destination email string Email of who receives.
destination phone string Phone of who receives.
destination street string Address. Street of who receives.
destination number string Address. External numer of who receives.
destination district string Address. District of who receives.
destination city string Address. City of who receives.
destination state string Address. State of who receives.
destination country string Address. Country of who receives.
destination postalCode string Address. Zip Code of who receives.
package array
package content string Description of package contents.
package amount integer Number of guides to generate.
package type string Type of package to send. box
pallet
package dimensions array Dimensions of the package to be sent.
package dimensions length integer Length.
package dimensions width integer Width.
package dimensions height integer Height.
package weight integer Weight of the package to send.
package insurance integer Amount of Package Insurance.
package declaredValue integer Amount of added value.
shipment array
shipment carrier string Carrier to assign. carssa
dhl
estafeta
fedex
ivoy
noventa9minutos
paquetexpress
quiken
redpack
sendex
ups
shipment customKey array Array with the Custom Keys of Carrier. Review Documentation.

Response Properties

Atributo Tipo Descripción
meta string Action performed.
data array Array with the information of the services applicable to the requested quote.
data carrier string Name of selected Carrier.
data service string Type of service available by the Carrier.
data deliveryEstimate string Estimated delivery time.
data basePrice integer Base value of the package delivery.
data extendedFare integer Value of the extended rate. (If applicable)
data insurance integer Value of the Insurance. (If applicable)
data totalPrice integer Total value for the package delivery.
data currency string Current Currency Exchange Rate.
Example cURL configuration
                                    
curl --request POST \
--url https://api.envia.com/ship/rate/ \
--header 'Authorization: Basic dXNlcm5hbWVAZXhhbXBsZS5jb206cGFzc3dvcmQxMjM=' \
--header 'Content-Type: application/json' \
--data '{
    "origin": {
       "name": "Raymundo Salazar",
       "company": "Example Company",
       "email": "[email protected]",
       "phone": "81818181",
       "street": "Av Vasconcelos",
       "number": "1400",
       "district": "Palo Blanco",
       "city": "Monterrey",
       "state": "NL",
       "country": "MX",
       "postalCode": "66236"
    },
    "destination": {
       "name": "Gina Colin",
       "company": "Example Company",
       "email": "[email protected]",
       "phone": "8181818181",
       "street": "Av Vasconcelos",
       "number": "1400",
       "district": "Palo Blanco",
       "city": "Monterrey",
       "state": "NL",
       "country": "MX",
       "postalCode": "66240"
    },
    "package": {
       "content": "jewels",
       "amount": 1,
       "type": "box",
       "dimensions": {
          "length": 17,
          "width": 13,
          "height": 8
       },
       "weight": 3,
       "insurance": 0,
       "declaredValue": 0
    },
    "shipment": {
       "carrier": "estafeta"
    }
}'
                                    
                                 
Example Ruby configuration
                                       
require 'uri'
require 'net/http'

url = URI("https://api.envia.com/ship/rate/")

http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic dXNlcm5hbWVAZXhhbXBsZS5jb206cGFzc3dvcmQxMjM='
request["Content-Type"] = 'application/json'
request.body = "{\n
    \"origin\": {\n
       \"name\": \"Raymundo Salazar\",\n
       \"company\": \"Example Company\",\n
       \"email\": \"[email protected]\",\n
       \"phone\": \"81818181\",\n
       \"street\": \"Av Vasconcelos\",\n
       \"number\": \"1400\",\n
       \"district\": \"Palo Blanco\",\n
       \"city\": \"Monterrey\",\n
       \"state\": \"NL\",\n
       \"country\": \"MX\",\n
       \"postalCode\": \"66236\"\n
    },\n
    \"destination\": {\n
       \"name\": \"Gina Colin\",\n
       \"company\": \"Example Company\",\n
       \"email\": \"[email protected]\",\n
       \"phone\": \"8181818181\",\n
       \"street\": \"Av Vasconcelos\",\n
       \"number\": \"1400\",\n
       \"district\": \"Palo Blanco\",\n
       \"city\": \"Monterrey\",\n
       \"state\": \"NL\",\n
       \"country\": \"MX\",\n
       \"postalCode\": \"66240\"\n
    },\n
    \"package\": {\n
       \"content\": \"jewels\",\n
       \"amount\": 1,\n
       \"type\": \"box\",\n
       \"dimensions\": {\n
          \"length\": 17,\n
          \"width\": 13,\n
          \"height\": 8\n
       },\n
       \"weight\": 3,\n
       \"insurance\": 0,\n
       \"declaredValue\": 0\n
    },\n
    \"shipment\": {\n
       \"carrier\": \"estafeta\"\n
    }\n
}"

response = http.request(request)
puts response.read_body
                                       
                                    
Example Python configuration
                                       
import requests

url = "https://api.envia.com/ship/rate/"

payload = "{\n
    \"origin\": {\n
       \"name\": \"Raymundo Salazar\",\n
       \"company\": \"Example Company\",\n
       \"email\": \"[email protected]\",\n
       \"phone\": \"81818181\",\n
       \"street\": \"Av Vasconcelos\",\n
       \"number\": \"1400\",\n
       \"district\": \"Palo Blanco\",\n
       \"city\": \"Monterrey\",\n
       \"state\": \"NL\",\n
       \"country\": \"MX\",\n
       \"postalCode\": \"66236\"\n
    },\n
    \"destination\": {\n
       \"name\": \"Gina Colin\",\n
       \"company\": \"Example Company\",\n
       \"email\": \"[email protected]\",\n
       \"phone\": \"8181818181\",\n
       \"street\": \"Av Vasconcelos\",\n
       \"number\": \"1400\",\n
       \"district\": \"Palo Blanco\",\n
       \"city\": \"Monterrey\",\n
       \"state\": \"NL\",\n
       \"country\": \"MX\",\n
       \"postalCode\": \"66240\"\n
    },\n
    \"package\": {\n
       \"content\": \"jewels\",\n
       \"amount\": 1,\n
       \"type\": \"box\",\n
       \"dimensions\": {\n
          \"length\": 17,\n
          \"width\": 13,\n
          \"height\": 8\n
       },\n
       \"weight\": 3,\n
       \"insurance\": 0,\n
       \"declaredValue\": 0\n
    },\n
    \"shipment\": {\n
       \"carrier\": \"estafeta\"\n
    }\n
}"

headers = {
   'Authorization': "Basic dXNlcm5hbWVAZXhhbXBsZS5jb206cGFzc3dvcmQxMjM=",
   'Content-Type': "application/json"
}

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)
                                    
                                 
Example PHP configuration
                                       
public function rate(){
   $url = "https://api.envia.com/ship/rate/";
   $username = "[email protected]";
   $password = "123456";

   $data = [
       "origin" => array(
          "name" => "Raymundo Salazar",
          "company" => "Example Company",
          "email" => "[email protected]",
          "phone" => "81818181",
          "street" => "Av Vasconcelos",
          "number" => "1400",
          "district" => "Palo Blanco",
          "city" => "Monterrey",
          "state" => "NL",
          "country" => "MX",
          "postalCode" => "66236"
       ),
       "destination" => array(
          "name" => "Gina Colin",
          "company" => "Example Company",
          "email" => "[email protected]",
          "phone" => "8181818181",
          "street" => "Av Vasconcelos",
          "number" => "1400",
          "district" => "Palo Blanco",
          "city" => "Monterrey",
          "state" => "NL",
          "country" => "MX",
          "postalCode" => "66240"
       ),
       "package" => array(
          "content" => "jewels",
          "amount" => 1,
          "type" => "box",
          "dimensions" => array(
             "length" => 17,
             "width" => 13,
             "height" => 8
          ),
          "weight" => 3,
          "insurance" => 0,
          "declaredValue" => 0
       ),
       "shipment" => array(
          "carrier" => "fedex"
       )
   ];

   $options = array(
      'http' => array(
         'header' => [
            "Content-Type: application/json",
            "Authorization: Basic ".base64_encode("$username:$password")
         ],
         'method' => "POST",
         'content' => json_encode($data)
      ),
      "ssl" => array(
         "verify_peer" => false,
         "verify_peer_name" => false,
      )
   );
   $context  = stream_context_create($options);
   $response = json_decode(file_get_contents($url, false, $context));
}
                                    
                                 
Example Java configuration
No data
Example Node configuration
                                       
var http = require("http");
var options = {
   "method": "POST",
   "hostname": [
      "api.envia.com"
   ],
   "path": [
      "ship",
      "rate"
   ],
   "headers": {
      "Authorization": "Basic dXNlcm5hbWVAZXhhbXBsZS5jb206cGFzc3dvcmQxMjM=",
      "Content-Type": "application/json"
   }
};

var req = http.request(options, function (res) {
   var chunks = [];

   res.on("data", function (chunk) {
      chunks.push(chunk);
   });

   res.on("end", function () {
      var body = Buffer.concat(chunks);
      console.log(body.toString());
   });
});

req.write(JSON.stringify({
    origin: {
       name: "Raymundo Salazar",
       company: "Example Company",
       email: "[email protected]",
       phone: "81818181",
       street: "Av Vasconcelos",
       number: "1400",
       district: "Palo Blanco",
       city: "Monterrey",
       state: "NL",
       country: "MX",
       postalCode: "66236"
    },
    destination: {
       name: "Gina Colin",
       company: "Example Company",
       email: "[email protected]",
       phone: "8181818181",
       street: "Av Vasconcelos",
       number: "1400",
       district: "Palo Blanco",
       city: "Monterrey",
       state: "NL",
       country: "MX",
       postalCode: "66240"
    },
    package: {
       content: "jewels",
       amount: 1,
       type: "box",
       dimensions: {
          length: 17,
          width: 13,
          height: 8
       },
       weight: 3,
       insurance: 0,
       declaredValue: 0
    },
    shipment: {
       carrier: "estafeta"
    }
}));
req.end();
                                       
                                    
Example Go configuration
                                       
package main

import (
   "fmt"
   "strings"
   "net/http"
   "io/ioutil"
)

func main() {

   url := "https://api.envia.com/ship/rate/"

   payload := strings.NewReader("{\n
       \"origin\": {\n
          \"name\": \"Raymundo Salazar\",\n
          \"company\": \"Example Company\",\n
          \"email\": \"[email protected]\",\n
          \"phone\": \"81818181\",\n
          \"street\": \"Av Vasconcelos\",\n
          \"number\": \"1400\",\n
          \"district\": \"Palo Blanco\",\n
          \"city\": \"Monterrey\",\n
          \"state\": \"NL\",\n
          \"country\": \"MX\",\n
          \"postalCode\": \"66236\"\n
       },\n
       \"destination\": {\n
          \"name\": \"Gina Colin\",\n
          \"company\": \"Example Company\",\n
          \"email\": \"[email protected]\",\n
          \"phone\": \"8181818181\",\n
          \"street\": \"Av Vasconcelos\",\n
          \"number\": \"1400\",\n
          \"district\": \"Palo Blanco\",\n
          \"city\": \"Monterrey\",\n
          \"state\": \"NL\",\n
          \"country\": \"MX\",\n
          \"postalCode\": \"66240\"\n
       },\n
       \"package\": {\n
          \"content\": \"jewels\",\n
          \"amount\": 1,\n
          \"type\": \"box\",\n
          \"dimensions\": {\n
             \"length\": 17,\n
             \"width\": 13,\n
             \"height\": 8\n
          },\n
          \"weight\": 3,\n
          \"insurance\": 0,\n
          \"declaredValue\": 0\n
       },\n
       \"shipment\": {\n
          \"carrier\": \"estafeta\"\n
       }\n
   }")

   req, _ := http.NewRequest("POST", url, payload)

   req.Header.Add("Authorization", "Basic dXNlcm5hbWVAZXhhbXBsZS5jb206cGFzc3dvcmQxMjM=")
   req.Header.Add("Content-Type", "application/json")

   res, _ := http.DefaultClient.Do(req)

   defer res.Body.Close()
   body, _ := ioutil.ReadAll(res.Body)

   fmt.Println(res)
   fmt.Println(string(body))

}
                                       
                                    
JSON response example:
                                    
{
   "meta":"rate",
   "data":[
      {
         "carrier":"estafeta",
         "service":"express",
         "deliveryEstimate":"Entrega d\u00eda siguiente",
         "basePrice":209,
         "extendedFare":0,
         "insurance":0,
         "totalPrice":209,
         "currency":"MXN"
      },
      {
         "carrier":"estafeta",
         "service":"ground",
         "deliveryEstimate":"Entrega 2-5 d\u00edas",
         "basePrice":129,
         "extendedFare":0,
         "insurance":0,
         "totalPrice":129,
         "currency":"MXN"
      }
   ]
}
                                    
                                 

POST Generate

https://api.envia.com/ship/generate/
Headers
Authorization
Basic dXNlcm5hbWVAZXhhbXBsZS5jb206cGFzc3dvcmQxMjM=
Content-type
application/json
Body (raw)
{ "origin": { "name": "Raymundo Salazar", "company": "Example Company", "email": "[email protected]", "phone": "81818181", "street": "Av Vasconcelos", "number": "1400", "district": "Palo Blanco", "city": "Monterrey", "state": "NL", "country": "MX", "postalCode": "66236" }, "destination": { "name": "Gina Colin", "company": "Example Company", "email": "[email protected]", "phone": "8181818181", "street": "Av Vasconcelos", "number": "1400", "district": "Palo Blanco", "city": "Monterrey", "state": "NL", "country": "MX", "postalCode": "66240" }, "package": { "content": "jewels", "amount": 1, "type": "box", "dimensions": { "length": 17, "width": 13, "height": 8 }, "weight": 3, "insurance": 0, "declaredValue": 0 }, "shipment": { "carrier": "estafeta", "service": "express" }, "settings": { "currency": "MXN", "labelFormat": "PDF", "labelSize": "PAPER_7X4.75" } }

Call Properties

Atributo Tipo Descripción Opciones
origin array
origin name string Name of who sends.
origin company string Company name of who sends.
origin email string Email of who sends.
origin phone string Phone of who sends.
origin street string Address. Street of who sends.
origin number string Address. External number of who sends.
origin district string Address. District of who sends.
origin city string Address. City of who send.
origin state string Address. State of who sends.
origin country string Address. Country of who sends.
origin postalCode string Address. Zip Code of who sends.
destination array
destination name string Name of who receives.
destination company string Company Name of who receives.
destination email string Email of who receives.
destination phone string Phone of who receives.
destination street string Address. Street of who receives.
destination number string Address. External numer of who receives.
destination district string Address. District of who receives.
destination city string Address. City of who receives.
destination state string Address. State of who receives.
destination country string Address. Country of who receives.
destination postalCode string Address. Zip Code of who receives.
package array
package content string Description of package contents.
package amount integer Number of guides to generate.
package type string Type of package to send. box
pallet
package dimensions array Dimensions of the package to be sent.
package dimensions length integer Length.
package dimensions width integer Width.
package dimensions height integer Height.
package weight integer Weight of the package to send.
package insurance integer Amount of Package Insurance.
package declaredValue integer Amount of added value.
shipment array
shipment carrier string Carrier to assign. carssa
dhl
estafeta
fedex
ivoy
noventa9minutos
paquetexpress
quiken
redpack
sendex
ups
shipment service string Service to assign. CARSSA
- ground
DHL
- express
- ground
ESTAFETA
- express
- ground
FEDEX
- express
- ground
- guaranteed
IVOY
99 MINUTOS
- same_day_mini
- same_day_99
- same_day_bike
PAQUETE EXPRESS
- ground
QUICKEN
- next_day_bike
- next_day_car
- next_day_trailer
REDPACK
- express
- ground
SENDEX
- ground
UPS
- saver
shipment customKey array Array with the Custom Keys of Carrier. Review Documentation.
settings array OPTIONAL
settings currency string Current Currency Exchange Rate.
settings labelFormat string Label Format. PDF
PNG
ZPLII
settings labelSize string Label Size. PDF => PAPER_7X4.75
PNG => PAPER_7X4.75
ZPLII => STOCK_4X6

Response Properties

Atributo Tipo Descripción
meta string Acción realizada.
data array Array with information about the created guide.
data carrier string Name of Carrier selected.
data service string Type of Service selected.
data trackingNumber string Tracking Number.
data label integer Label.
data currentBalance integer Total current value of the shipment.
data currency string Current Currency Exchange Rate.
Example cURL configuration
                                    
curl --request POST \
--url https://api.envia.com/ship/generate/ \
--header 'Authorization: Basic dXNlcm5hbWVAZXhhbXBsZS5jb206cGFzc3dvcmQxMjM=' \
--header 'Content-Type: application/json' \
--data '{
    "origin": {
       "name": "Raymundo Salazar",
       "company": "Example Company",
       "email": "[email protected]",
       "phone": "81818181",
       "street": "Av Vasconcelos",
       "number": "1400",
       "district": "Palo Blanco",
       "city": "Monterrey",
       "state": "NL",
       "country": "MX",
       "postalCode": "66236"
    },
    "destination": {
       "name": "Gina Colin",
       "company": "Example Company",
       "email": "[email protected]",
       "phone": "8181818181",
       "street": "Av Vasconcelos",
       "number": "1400",
       "district": "Palo Blanco",
       "city": "Monterrey",
       "state": "NL",
       "country": "MX",
       "postalCode": "66240"
    },
    "package": {
       "content": "jewels",
       "amount": 1,
       "type": "box",
       "dimensions": {
          "length": 17,
          "width": 13,
          "height": 8
       },
       "weight": 3,
       "insurance": 0,
       "declaredValue": 0
    },
       "shipment": {
       "carrier": "fedex"
       "service": "express"
    },
    "settings": {
       "currency": "MXN",
       "labelFormat": "PDF",
       "labelSize": "PAPER_7X4.75"
    }
}'
                                    
                                 
Example Ruby configuration
                                       
require 'uri'
require 'net/http'

url = URI("https://api.envia.com/ship/generate/")

http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic dXNlcm5hbWVAZXhhbXBsZS5jb206cGFzc3dvcmQxMjM='
request["Content-Type"] = 'application/json'
request.body = "{\n
    \"origin\": {\n
       \"name\": \"Raymundo Salazar\",\n
       \"company\": \"Example Company\",\n
       \"email\": \"[email protected]\",\n
       \"phone\": \"81818181\",\n
       \"street\": \"Av Vasconcelos\",\n
       \"number\": \"1400\",\n
       \"district\": \"Palo Blanco\",\n
       \"city\": \"Monterrey\",\n
       \"state\": \"NL\",\n
       \"country\": \"MX\",\n
       \"postalCode\": \"66236\"\n
    },\n
    \"destination\": {\n
       \"name\": \"Gina Colin\",\n
       \"company\": \"Example Company\",\n
       \"email\": \"[email protected]\",\n
       \"phone\": \"8181818181\",\n
       \"street\": \"Av Vasconcelos\",\n
       \"number\": \"1400\",\n
       \"district\": \"Palo Blanco\",\n
       \"city\": \"Monterrey\",\n
       \"state\": \"NL\",\n
       \"country\": \"MX\",\n
       \"postalCode\": \"66240\"\n
    },\n
    \"package\": {\n
       \"content\": \"jewels\",\n
       \"amount\": 1,\n
       \"type\": \"box\",\n
       \"dimensions\": {\n
          \"length\": 17,\n
          \"width\": 13,\n
          \"height\": 8\n
       },\n
       \"weight\": 3,\n
       \"insurance\": 0,\n
       \"declaredValue\": 0\n
    },\n
    \"shipment\": {\n
       \"carrier\": \"estafeta\"\n,
       \"service\": \"express\"\n
    },\n
    \"settings\": {\n
       \"currency\": \"MXN\"\n,
       \"labelFormat\": \"PDF\"\n,
       \"labelSize\": \"PAPER_7X4.75\"\n
    }\n
}"

response = http.request(request)
puts response.read_body
                                       
                                    
Example Python configuration
                                       
import requests

url = "https://api.envia.com/ship/generate/"

payload = "{\n
  \"origin\": {\n
     \"name\": \"Raymundo Salazar\",\n
     \"company\": \"Example Company\",\n
     \"email\": \"[email protected]\",\n
     \"phone\": \"81818181\",\n
     \"street\": \"Av Vasconcelos\",\n
     \"number\": \"1400\",\n
     \"district\": \"Palo Blanco\",\n
     \"city\": \"Monterrey\",\n
     \"state\": \"NL\",\n
     \"country\": \"MX\",\n
     \"postalCode\": \"66236\"\n
  },\n
  \"destination\": {\n
     \"name\": \"Gina Colin\",\n
     \"company\": \"Example Company\",\n
     \"email\": \"[email protected]\",\n
     \"phone\": \"8181818181\",\n
     \"street\": \"Av Vasconcelos\",\n
     \"number\": \"1400\",\n
     \"district\": \"Palo Blanco\",\n
     \"city\": \"Monterrey\",\n
     \"state\": \"NL\",\n
     \"country\": \"MX\",\n
     \"postalCode\": \"66240\"\n
  },\n
  \"package\": {\n
     \"content\": \"jewels\",\n
     \"amount\": 1,\n
     \"type\": \"box\",\n
     \"dimensions\": {\n
        \"length\": 17,\n
        \"width\": 13,\n
        \"height\": 8\n
     },\n
     \"weight\": 3,\n
     \"insurance\": 0,\n
     \"declaredValue\": 0\n
  },\n
  \"shipment\": {\n
     \"carrier\": \"estafeta\"\n,
     \"service\": \"express\"\n
  },\n
  \"settings\": {\n
     \"currency\": \"MXN\"\n,
     \"labelFormat\": \"PDF\"\n,
     \"labelSize\": \"PAPER_7X4.75\"\n
  }\n
}"

headers = {
   'Authorization': "Basic dXNlcm5hbWVAZXhhbXBsZS5jb206cGFzc3dvcmQxMjM=",
   'Content-Type': "application/json"
}

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)
                                    
                                 
Example PHP configuration
                                       
public function generate(){
   $url = "https://api.envia.com/ship/generate/";
   $username = "[email protected]";
   $password = "123456";

   $data = [
    "origin": array(
       "name": "Agnes Salazar",
       "company": "Testing CO",
       "email": "[email protected]",
       "phone": "8111111111",
       "street": "av vasconcelos",
       "number": "1400",
       "district": "palo blanco",
       "city": "Monterrey",
       "state": NL",
       "country": "MX",
       "postalCode": "66236"
    ),
    "destination": array(
       "name": "tester",
       "company": "Testing CO",
       "email": "[email protected]",
       "phone": "8111111111",
       "street": "av vasconcelos",
       "number": "1400",
       "district": "palo blanco",
       "city": "Monterrey",
       "state": "NL",
       "country": "MX",
       "postalCode": "66240"
    ),
    "package": array(
       "content": "jewels",
       "amount": 1,
       "type": "box",
       "dimensions": array(
          "length": 17,
          "width": 13,
          "height": 8
       ),
       "weight": 3,
       "insurance": 0,
       "declaredValue": 0
    ),
    "shipment": array(
       "carrier": "estafeta",
       "service": "express"
    ),
    "settings": array(
       "currency": "MXN",
       "labelFormat": "PDF",
       "labelSize": "PAPER_7X4.75"
    )
   ];

   $options = array(
      'http' => array(
         'header' => [
            "Content-Type: application/json",
            "Authorization: Basic ".base64_encode("$username:$password")
         ],
         'method' => "POST",
         'content' => json_encode($data)
      ),
      "ssl" => array(
         "verify_peer" => false,
         "verify_peer_name" => false,
      )
   );
   $context  = stream_context_create($options);
   $response = json_decode(file_get_contents($url, false, $context));
}
                                    
                                 
Example Java configuration
No data
Example Node configuration
                                       
var http = require("http");
var options = {
   "method": "POST",
   "hostname": [
      "api.envia.com"
   ],
   "path": [
      "ship",
      "generate"
   ],
   "headers": {
      "Authorization": "Basic dXNlcm5hbWVAZXhhbXBsZS5jb206cGFzc3dvcmQxMjM=",
      "Content-Type": "application/json"
   }
};

var req = http.request(options, function (res) {
   var chunks = [];

   res.on("data", function (chunk) {
      chunks.push(chunk);
   });

   res.on("end", function () {
      var body = Buffer.concat(chunks);
      console.log(body.toString());
   });
});

req.write(JSON.stringify({
   origin: {
      name: "Raymundo Salazar",
      company: "Example Company",
      email: "[email protected]",
      phone: "81818181",
      street: "Av Vasconcelos",
      number: "1400",
      district: "Palo Blanco",
      city: "Monterrey",
      state: "NL",
      country: "MX",
      postalCode: "66236"
   },
   destination: {
      name: "Gina Colin",
      company: "Example Company",
      email: "[email protected]",
      phone: "8181818181",
      street: "Av Vasconcelos",
      number: "1400",
      district: "Palo Blanco",
      city: "Monterrey",
      state: "NL",
      country: "MX",
      postalCode: "66240"
   },
   package: {
      content: "jewels",
      amount: 1,
      type: "box",
      dimensions: {
         length: 17,
         width: 13,
         height: 8
      },
      weight: 3,
      insurance: 0,
      declaredValue: 0
   },
   shipment: {
      carrier: "estafeta",
      service: "express"
   },
   settings: {
      currency: "MXN",
      labelFormat: "PDF",
      labelSize: "PAPER_7X4.75"
   }
}));
req.end();
                                       
                                    
Example Go configuration
                                       
package main

import (
   "fmt"
   "strings"
   "net/http"
   "io/ioutil"
)

func main() {

   url := "https://api.envia.com/ship/generate/"

   payload := strings.NewReader("{\n
      \"origin\": {\n
         \"name\": \"Raymundo Salazar\",\n
         \"company\": \"Example Company\",\n
         \"email\": \"[email protected]\",\n
         \"phone\": \"81818181\",\n
         \"street\": \"Av Vasconcelos\",\n
         \"number\": \"1400\",\n
         \"district\": \"Palo Blanco\",\n
         \"city\": \"Monterrey\",\n
         \"state\": \"NL\",\n
         \"country\": \"MX\",\n
         \"postalCode\": \"66236\"\n
      },\n
      \"destination\": {\n
         \"name\": \"Gina Colin\",\n
         \"company\": \"Example Company\",\n
         \"email\": \"[email protected]\",\n
         \"phone\": \"8181818181\",\n
         \"street\": \"Av Vasconcelos\",\n
         \"number\": \"1400\",\n
         \"district\": \"Palo Blanco\",\n
         \"city\": \"Monterrey\",\n
         \"state\": \"NL\",\n
         \"country\": \"MX\",\n
         \"postalCode\": \"66240\"\n
      },\n
      \"package\": {\n
         \"content\": \"jewels\",\n
         \"amount\": 1,\n
         \"type\": \"box\",\n
         \"dimensions\": {\n
            \"length\": 17,\n
            \"width\": 13,\n
            \"height\": 8\n
         },\n
         \"weight\": 3,\n
         \"insurance\": 0,\n
         \"declaredValue\": 0\n
      },\n
      \"shipment\": {\n
         \"carrier\": \"estafeta\"\n,
         \"service\": \"express\"\n
      },\n
      \"settings\": {\n
         \"currency\": \"MXN\"\n,
         \"labelFormat\": \"PDF\"\n,
         \"labelSize\": \"PAPER_7X4.75\"\n
      }\n
   }")

   req, _ := http.NewRequest("POST", url, payload)

   req.Header.Add("Authorization", "Basic dXNlcm5hbWVAZXhhbXBsZS5jb206cGFzc3dvcmQxMjM=")
   req.Header.Add("Content-Type", "application/json")

   res, _ := http.DefaultClient.Do(req)

   defer res.Body.Close()
   body, _ := ioutil.ReadAll(res.Body)

   fmt.Println(res)
   fmt.Println(string(body))

}
                                       
                                    
JSON response example:
                                    
{
   "meta":"generate",
   "data":[
      {
         "carrier":"estafeta",
         "service":"ground",
         "trackingNumber":"9050000000130700416191",
         "label":"https://s3.us-east-2.amazonaws.com/envia-staging/uploads/estafeta/9050000000130700416191_estafeta.pdf",
         "currentBalance":1443.1364692500001,
         "currency":"MXN"
      }
   ]
}
                                    
                                 

POST Cancel

https://api.envia.com/ship/cancel/
Headers
Authorization
Basic dXNlcm5hbWVAZXhhbXBsZS5jb206cGFzc3dvcmQxMjM=
Content-type
application/json
Body (raw)
{ "carrier": "estafeta", "trackingNumber": "9050000000130700416191" }

Call Properties

Atributo Tipo Descripción Opciones
carrier array Carrier assigned. carssa
dhl
estafeta
fedex
ivoy
noventa9minutos
paquetexpress
quiken
redpack
sendex
ups
trackingNumber string Tracking Number.
shipment array
shipment customKey array Array with the Custom Keys of Carrier. Review Documentation.

Response Properties

Atributo Tipo Descripción
meta string Array
data array Array
data carrier string Array
data service string Array
data trackingNumber string Array
Example cURL configuration
                                    
curl --request POST \
--url https://api.envia.com/ship/cancel/ \
--header 'Authorization: Basic dXNlcm5hbWVAZXhhbXBsZS5jb206cGFzc3dvcmQxMjM=' \
--header 'Content-Type: application/json' \
--data '{
   "carrier": "estafeta",
   "trackingNumber": "9050000000130700416191",
}'
                                    
                                 
Example Ruby configuration
                                       
require 'uri'
require 'net/http'

url = URI("https://api.envia.com/ship/cancel/")

http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic dXNlcm5hbWVAZXhhbXBsZS5jb206cGFzc3dvcmQxMjM='
request["Content-Type"] = 'application/json'
request.body = "{\n
   \"carrier\": \"estafeta\",\n
   \"trackingNumber\": \"9050000000130700416191\",\n
}"

response = http.request(request)
puts response.read_body
                                       
                                    
Example Python configuration
                                       
import requests

url = "https://api.envia.com/ship/cancel/"

payload = "{\n
   \"carrier\": \"estafeta\",\n
   \"trackingNumber\": \"9050000000130700416191\",\n
}"

headers = {
   'Authorization': "Basic dXNlcm5hbWVAZXhhbXBsZS5jb206cGFzc3dvcmQxMjM=",
   'Content-Type': "application/json"
}

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)
                                    
                                 
Example PHP configuration
                                       
public function cancel(){
   $url = "https://api.envia.com/ship/cancel/";
   $username = "[email protected]";
   $password = "123456";

   $data = [
      "carrier": "estafeta",
      "trackingNumber": "9050000000130700416191"
   ];

   $options = array(
      'http' => array(
         'header' => [
            "Content-Type: application/json",
            "Authorization: Basic ".base64_encode("$username:$password")
         ],
         'method' => "POST",
         'content' => json_encode($data)
      ),
      "ssl" => array(
         "verify_peer" => false,
         "verify_peer_name" => false,
      )
   );
   $context  = stream_context_create($options);
   $response = json_decode(file_get_contents($url, false, $context));
}
                                    
                                 
Example Java configuration
No data
Example Node configuration
                                       
var http = require("http");
var options = {
   "method": "POST",
   "hostname": [
      "api.envia.com"
   ],
   "path": [
      "ship",
      "cancel"
   ],
   "headers": {
      "Authorization": "Basic dXNlcm5hbWVAZXhhbXBsZS5jb206cGFzc3dvcmQxMjM=",
      "Content-Type": "application/json"
   }
};

var req = http.request(options, function (res) {
   var chunks = [];

   res.on("data", function (chunk) {
      chunks.push(chunk);
   });

   res.on("end", function () {
      var body = Buffer.concat(chunks);
      console.log(body.toString());
   });
});

req.write(JSON.stringify({
   carrier: "estafeta",
   trackingNumber: "9050000000130700416191"
}));
req.end();
                                       
                                    
Example Go configuration
                                       
package main

import (
   "fmt"
   "strings"
   "net/http"
   "io/ioutil"
)

func main() {

   url := "https://api.envia.com/ship/cancel/"

   payload := strings.NewReader("{\n
      \"carrier\": \"estafeta\",\n
      \"trackingNumber\": \"9050000000130700416191\",\n
   }")

   req, _ := http.NewRequest("POST", url, payload)

   req.Header.Add("Authorization", "Basic dXNlcm5hbWVAZXhhbXBsZS5jb206cGFzc3dvcmQxMjM=")
   req.Header.Add("Content-Type", "application/json")

   res, _ := http.DefaultClient.Do(req)

   defer res.Body.Close()
   body, _ := ioutil.ReadAll(res.Body)

   fmt.Println(res)
   fmt.Println(string(body))

}
                                       
                                    
JSON response example:
                                    
{
   "meta":"cancel",
   "data":[
      {
         "carrier":"estafeta",
         "service":"ground",
         "trackingNumber":"9050000000130700416191"
      }
   ]
}
                                    
                                 

POST Pick Up

https://api.envia.com/ship/pickup/
Headers
Authorization
Basic dXNlcm5hbWVAZXhhbXBsZS5jb206cGFzc3dvcmQxMjM=
Content-type
application/json
Body (raw)
{ "origin":{ "name":"Raymundo Salazar", "company":"Example Company", "email":"[email protected]", "phone":"81818181", "street": "Av Vasconcelos", "number": "1400", "district": "Palo Blanco", "city": "Monterrey", "state": "NL", "country": "MX", "postalCode": "66236" }, "package":{ "content":"jewels", "amount":2, "type":"box", "dimensions":{ "length":1, "width":1, "height":1 }, "weight":2, "insurance":0, "declaredValue":0 }, "shipment":{ "carrier":"estafeta", "pickup":{ "timeFrom":12, "timeTo":15, "date":"2018-08-21", "instructions":"Hola", "totalPackages":"2", "totalWeight":"2" }, "settings":{ "currency":"MXN", "labelFormat":"pdf" } } }

Call Properties

Atributo Tipo Descripción Opciones
origin array
origin name string Name of who sends.
origin company string Company name of who sends.
origin email string Email of who sends.
origin phone string Phone of who sends.
origin street string Address. Street of who sends.
origin number string Address. External number of who sends.
origin district string Address. District of who sends.
origin city string Address. City of who send.
origin state string Address. State of who sends.
origin country string Address. Country of who sends.
origin postalCode string Address. Zip Code of who sends.
package array
package content string Description of package contents.
package amount integer Number of guides to generate.
package type string Type of package to send. box
pallet
package dimensions array Dimensions of the package to be sent.
dimensions length integer Length.
dimensions width integer Width.
dimensions height integer Height.
package weight integer Weight of the package to send.
package insurance integer Amount of Package Insurance.
package declaredValue integer Amount of added value.
shipment array
shipment carrier string Carrier to assign. carssa
dhl
estafeta
fedex
ivoy
noventa9minutos
paquetexpress
quiken
redpack
sendex
ups
shipment pickup array Pick Up Information.
pickup timeFrom integer Pick Up Information.
pickup timeTo integer Pick Up Information.
pickup date string Pick Up Date.
pickup instructions string Pick Up Instructions.
pickup totalPackages string Number of Packages.
pickup totalWeight string Total Weight.
shipment customKey array Array with the Custom Keys of Carrier. Review Documentation.
shipment settings array OPTIONAL
settings currency string Current Currency Exchange Rate.
settings labelFormat string Label Format.

Response Properties

Atributo Tipo Descripción
meta string Action performed.
data array Array with information about the canceled guide.
data carrier string Name of Carrier selected.
data service string Type of Service selected.
data trackingNumber string Tracking Number.
Example cURL configuration
                                    
curl --request POST \
--url https://api.envia.com/ship/pickup/ \
--header 'Authorization: Basic dXNlcm5hbWVAZXhhbXBsZS5jb206cGFzc3dvcmQxMjM=' \
--header 'Content-Type: application/json' \
--data '{
   "origin":{
      "name":"Raymundo Salazar",
      "company":"Example Company",
      "email":"[email protected]",
      "phone":"81818181",
      "street": "Av Vasconcelos",
      "number": "1400",
      "district": "Palo Blanco",
      "city": "Monterrey",
      "state": "NL",
      "country": "MX",
      "postalCode": "66236"
   },
   "package":{
      "content":"jewels",
      "amount":2,
      "type":"box",
      "dimensions":{
         "length":1,
         "width":1,
         "height":1
      },
      "weight":2,
      "insurance":0,
      "declaredValue":0
   },
   "shipment":{
      "carrier":"estafeta",
      "pickup":{
         "timeFrom":12,
         "timeTo":15,
         "date":"2018-08-21",
         "instructions":"Hola",
         "totalPackages":"2",
         "totalWeight":"2"
      },
      "settings":{
         "currency":"MXN",
         "labelFormat":"pdf"
      }
   }
}'
                                    
                                 
Example Ruby configuration
                                       
require 'uri'
require 'net/http'

url = URI("https://api.envia.com/ship/pickup/")

http = Net::HTTP.new(url.host, url.port)

request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Basic dXNlcm5hbWVAZXhhbXBsZS5jb206cGFzc3dvcmQxMjM='
request["Content-Type"] = 'application/json'
request.body = "{\n
   \"origin\":{\n
      \"name\":\"Raymundo Salazar\",\n
      \"company\":\"Example Company\",\n
      \"email\":\"[email protected]\",\n
      \"phone\":\"81818181\",\n
      \"street\": \"Av Vasconcelos\",\n
      \"number\": \"1400\",\n
      \"district\": \"Palo Blanco\",\n
      \"city\": \"Monterrey\",\n
      \"state\": \"NL\",\n
      \"country\": \"MX\",\n
      \"postalCode\": \"66236\"\n
   },\n
   \"package\":{\n
      \"content\":\"jewels\",\n
      \"amount\":2,\n
      \"type\":\"box\",\n
      \"dimensions\":{\n
         \"length\":1,\n
         \"width\":1,\n
         \"height\":1\n
      },\n
      \"weight\":2,\n
      \"insurance\":0,\n
      \"declaredValue\":0\n
   },\n
   \"shipment\":{\n
      \"carrier\":\"estafeta\",\n
      \"pickup\":{\n
         \"timeFrom\":12,\n
         \"timeTo\":15,\n
         \"date\":\"2018-08-21\",\n
         \"instructions\":\"Hola\",\n
         \"totalPackages\":\"2\",\n
         \"totalWeight\":\"2\"\n
      },\n
      \"settings\":{\n
         \"currency\":\"MXN\",\n
         \"labelFormat\":\"pdf\"\n
      }\n
   }\n
}"

response = http.request(request)
puts response.read_body
                                       
                                    
Example Python configuration
                                       
import requests

url = "https://api.envia.com/ship/pickup/"

payload = "{\n
   \"origin\":{\n
      \"name\":\"Raymundo Salazar\",\n
      \"company\":\"Example Company\",\n
      \"email\":\"[email protected]\",\n
      \"phone\":\"81818181\",\n
      \"street\": \"Av Vasconcelos\",\n
      \"number\": \"1400\",\n
      \"district\": \"Palo Blanco\",\n
      \"city\": \"Monterrey\",\n
      \"state\": \"NL\",\n
      \"country\": \"MX\",\n
      \"postalCode\": \"66236\"\n
   },\n
   \"package\":{\n
      \"content\":\"jewels\",\n
      \"amount\":2,\n
      \"type\":\"box\",\n
      \"dimensions\":{\n
         \"length\":1,\n
         \"width\":1,\n
         \"height\":1\n
      },\n
      \"weight\":2,\n
      \"insurance\":0,\n
      \"declaredValue\":0\n
   },\n
   \"shipment\":{\n
      \"carrier\":\"estafeta\",\n
      \"pickup\":{\n
         \"timeFrom\":12,\n
         \"timeTo\":15,\n
         \"date\":\"2018-08-21\",\n
         \"instructions\":\"Hola\",\n
         \"totalPackages\":\"2\",\n
         \"totalWeight\":\"2\"\n
      },\n
      \"settings\":{\n
         \"currency\":\"MXN\",\n
         \"labelFormat\":\"pdf\"\n
      }\n
   }\n
}"

headers = {
   'Authorization': "Basic dXNlcm5hbWVAZXhhbXBsZS5jb206cGFzc3dvcmQxMjM=",
   'Content-Type': "application/json"
}

response = requests.request("POST", url, data=payload, headers=headers)

print(response.text)
                                    
                                 
Example PHP configuration
                                       
public function pickup(){
   $url = "https://api.envia.com/ship/pickup/";
   $username = "[email protected]";
   $password = "123456";

   $data = [
      "origin"=>array(
         "name" => "Raymundo Salazar",
         "company" => "Example Company",
         "email" => "[email protected]",
         "phone" => "81818181",
         "street" =>  "Av Vasconcelos",
         "number" =>  "1400",
         "district" =>  "Palo Blanco",
         "city" =>  "Monterrey",
         "state" =>  "NL",
         "country" =>  "MX",
         "postalCode" =>  "66236"
      ),
      "package" => array(
         "content" => "jewels",
         "amount" => 2,
         "type" => "box",
         "dimensions"=>array(
            "length" => 1,
            "width" => 1,
            "height" => 1
         ),
         "weight" => 2,
         "insurance" => 0,
         "declaredValue" => 0
      ),
      "shipment" => array(
         "carrier" => "estafeta",
         "pickup" => array(
            "timeFrom" => 12,
            "timeTo" => 15,
            "date" => "2018-08-21",
            "instructions" => "Hola",
            "totalPackages" => "2",
            "totalWeight" => "2"
         ),
         "settings" => array(
            "currency" => "MXN",
            "labelFormat" => "pdf"
         )
      )
   ];

   $options = array(
      'http' => array(
         'header' => [
            "Content-Type: application/json",
            "Authorization: Basic ".base64_encode("$username:$password")
         ],
         'method' => "POST",
         'content' => json_encode($data)
      ),
      "ssl" => array(
         "verify_peer" => false,
         "verify_peer_name" => false,
      )
   );
   $context  = stream_context_create($options);
   $response = json_decode(file_get_contents($url, false, $context));
}
                                    
                                 
Example Java configuration
No data
Example Node configuration
                                       
var http = require("http");
var options = {
   "method": "POST",
   "hostname": [
      "api.envia.com"
   ],
   "path": [
      "ship",
      "pickup"
   ],
   "headers": {
      "Authorization": "Basic dXNlcm5hbWVAZXhhbXBsZS5jb206cGFzc3dvcmQxMjM=",
      "Content-Type": "application/json"
   }
};

var req = http.request(options, function (res) {
   var chunks = [];

   res.on("data", function (chunk) {
      chunks.push(chunk);
   });

   res.on("end", function () {
      var body = Buffer.concat(chunks);
      console.log(body.toString());
   });
});

req.write(JSON.stringify({
   origin:{
      name:"Raymundo Salazar",
      company:"Example Company",
      email:"[email protected]",
      phone:"81818181",
      street: "Av Vasconcelos",
      number: "1400",
      district: "Palo Blanco",
      city: "Monterrey",
      state: "NL",
      country: "MX",
      postalCode: "66236"
   },
   package:{
      content:"jewels",
      amount:2,
      type:"box",
      dimensions:{
         length:1,
         width:1,
         height:1
      },
      weight:2,
      insurance:0,
      declaredValue:0
   },
   shipment:{
      carrier:"estafeta",
      pickup:{
         timeFrom:12,
         timeTo:15,
         date:"2018-08-21",
         instructions:"Hola",
         totalPackages:"2",
         totalWeight:"2"
      },
      settings:{
         currency:"MXN",
         labelFormat:"pdf"
      }
   }
}));
req.end();
                                       
                                    
Example Go configuration
                                       
package main

import (
   "fmt"
   "strings"
   "net/http"
   "io/ioutil"
)

func main() {

   url := "https://api.envia.com/ship/pickup/"

   payload := strings.NewReader("{\n
      \"origin\":{\n
         \"name\":\"Raymundo Salazar\",\n
         \"company\":\"Example Company\",\n
         \"email\":\"[email protected]\",\n
         \"phone\":\"81818181\",\n
         \"street\": \"Av Vasconcelos\",\n
         \"number\": \"1400\",\n
         \"district\": \"Palo Blanco\",\n
         \"city\": \"Monterrey\",\n
         \"state\": \"NL\",\n
         \"country\": \"MX\",\n
         \"postalCode\": \"66236\"\n
      },\n
      \"package\":{\n
         \"content\":\"jewels\",\n
         \"amount\":2,\n
         \"type\":\"box\",\n
         \"dimensions\":{\n
            \"length\":1,\n
            \"width\":1,\n
            \"height\":1\n
         },\n
         \"weight\":2,\n
         \"insurance\":0,\n
         \"declaredValue\":0\n
      },\n
      \"shipment\":{\n
         \"carrier\":\"estafeta\",\n
         \"pickup\":{\n
            \"timeFrom\":12,\n
            \"timeTo\":15,\n
            \"date\":\"2018-08-21\",\n
            \"instructions\":\"Hola\",\n
            \"totalPackages\":\"2\",\n
            \"totalWeight\":\"2\"\n
         },\n
         \"settings\":{\n
            \"currency\":\"MXN\",\n
            \"labelFormat\":\"pdf\"\n
         }\n
      }\n
   }")

   req, _ := http.NewRequest("POST", url, payload)

   req.Header.Add("Authorization", "Basic dXNlcm5hbWVAZXhhbXBsZS5jb206cGFzc3dvcmQxMjM=")
   req.Header.Add("Content-Type", "application/json")

   res, _ := http.DefaultClient.Do(req)

   defer res.Body.Close()
   body, _ := ioutil.ReadAll(res.Body)

   fmt.Println(res)
   fmt.Println(string(body))

}
                                       
                                    
JSON response example:
                                    
{
    "meta": "pickup",
    "data": [
        {
            "carrier": "fedex",
            "origin": {
                "name": "Raymundo Salazar",
                "company": "Example Company",
                "email": "[email protected]",
                "phone": "[email protected]",
                "street": "Av vasconcelos",
                "number": "1400",
                "district": "Palo blanco",
                "city": "San Pedro Garza Garcia",
                "state": "NL",
                "country": "MX",
                "postalCode": "66240"
            },
            "pickupNumber": "484",
            "pickupDate": "2018-08-21",
            "pickupTimeFrom": "12",
            "pickupTimeTo": "15"
        }
    ]
}
                                    
                                 

Conditions

This is a list of the different conditions available in our API that you must take into account at the time of scheduling the collection of your package.

Tipo paqueteria Descripción
pickup Fedex
  • Same Day: It is only available if the collection is scheduled before 12pm and you can only schedule collection from 12 to 18hr with a window of 3hrs.
  • Next Day It is only available if a next business day is scheduled and only can be scheduled collection from 9hr to 20hr with a window of 3hrs.
pickup Dhl
  • Same Day: It is only available if the collection is scheduled before 12pm and you can only schedule collection from 12 to 18hr with a window of 3hrs.
  • Next Day It is only available if a next business day is scheduled and only can be scheduled collection from 9hr to 20hr with a window of 3hrs.
pickup Sendex
  • Same Day: It is only available if the collection is scheduled before 12pm and you can only schedule collection from 12 to 18hr.
  • Next Day It is only available if a next business day is scheduled and only can be scheduled collection from 11hr to 20hr.
pickup Redpack
UPS
Carssa
Estafeta
Paquetexpress
  • Same Day: It is only available if the collection is scheduled before 12pm and you can only schedule collection from 12 to 18hr.
  • Next Day It is only available if a next business day is scheduled and only can be scheduled collection from 9 to 18hr.
pickup Quiken
99 Minutos
IVOY
  • Same Day: It is only available if the collection is scheduled until 11am.
  • Next Day It is only available if it is scheduled for the next business day.

Custom Keys

Fedex

{ "customKey": { "fedexKey": "<KEY>", "fedexPassword": "<PASSWORD>", "fedexAccountNumber": "<ACCOUNT>", "fedexTestMeter": "<TEST_METER>" } }

Dhl

{ "customKey": { "dhlUser": "<USER>", "dhlPassword": "<PASSWORD>", "dhlAccountNumber": "<ACCOUNT>" } }

Redpack

{ "customKey": { "redpackUserId": "<USER_ID>", "redpackUserPin": "<USER_PIN>" } }

Paquetexpress

{ "customKey": { "paquetexpressId": "<ID>", "paquetexpressUser": "<USER>", "paquetexpressPassword": "<PASSWORD>", "paquetexpressKey": "<KEY>" } }

Sendex

{ "customKey": { "sendexUser": "<USER>", "sendexAccount": "<ACCOUNT>", "sendexPassword": "<PASSWORD>" } }

99Minutos

{ "customKey": { "99minApiKey": "<KEY>", "99minUserId": "<USER_ID>" } }