Delivery creation
In this section you will learn how to create your first delivery with Shippify.
Última actualización
In this section you will learn how to create your first delivery with Shippify.
Última actualización
With this endpoint, you can create up to a maximum of 100 deliveries per request and 100 requests per minute.
This is the most basic payload you can use with the API; however, the task may be created with a pending review status if the address cannot be geolocated.
{
"deliveries": [
{
"pickup": {
"contact": {
"phonenumber": "0976565643",
"email": "test@test.com",
"name": "Iliana Bolaños"
},
"location": {
"address": "Av. Francisco de Orellana 8, Guayaquil 090502, Ecuador",
"instructions": "Apartamento 203"
}
},
"dropoff": {
"contact": {
"name": "Estefanía Fajardo",
"email": "test-1998@hotmail.com"
},
"location": {
"address": "Malecón 2000, Simon Bolivar Palacios, Guayaquil 090313, Ecuador",
"instructions": "Local 890"
}
},
"packages": [
{
"name": "Box of pencils",
"qty": 1,
"size": 1
}
],
"referenceId": "FACT-000123"
}
]
}
With this payload, you can create deliveries with precise pickup and delivery points, ensuring that the task is always created with a "processing" status.
{
"deliveries": [
{
"pickup": {
"contact": {
"name": "Emilio Benavides",
"phonenumber": "12345"
},
"location": {
"address": "Av. Echeñique 8861, 7860169 La Reina, Región Metropolitana, Chile",
"lat": "-33.44299381045172",
"lng": "-70.53898694556675"
}
},
"dropoff": {
"contact": {
"name": "MAYGER RENE MONTERO SAAVEDRA",
"email": "mrmontero@shippify.cl",
"phonenumber": "777"
},
"location": {
"address": "Los Castaños 11989, 8010277 Santiago, El Bosque, Región Metropolitana, Chile",
"lat": "-33.56751",
"lng": "-70.67549"
}
},
"packages": [
{
"name": "149123156552",
"size": "XS",
"qty": "1"
}
]
}
]
}
With this payload, you can create deliveries with a slightly more precise pickup or delivery point, reducing the likelihood of it being created as pending review. It involves breaking down the address into country, city, street, and zip code.
{
"deliveries": [
{
"pickup": {
"contact": {
"name": "Emilio Benavides",
"phonenumber": "12345"
},
"location": {
"address": "R. Dona Claudina, 401 - Méier, Rio de Janeiro - RJ, 20725-060, Brasil",
"lat": -22.906846699999996,
"lng": -43.28275978125001
}
},
"dropoff": {
"contact": {
"name": "MAYGER RENE MONTERO SAAVEDRA",
"email": "mrmontero@shippify.cl",
"phonenumber": "777"
},
"location": {
"address": {
"zipcode": "60348450",
"neighborhood": "VILA VELHA",
"streetName": "RUA 24,656",
"state": "CE",
"country": "Brazil",
"city": "FORTALEZA"
},
"instructions": "CONJ DOS BANCARIOS - REF.ENDERECO: PROX A UPA"
}
},
"packages": [
{
"name": "149123156552",
"size": "XS",
"qty": "1"
}
]
}
]
}
With this payload, you can create deliveries with a collection point previously saved in the "Pickup Locations" section.
{
"deliveries": [
{
"pickup": {
"contact": {
"name": "Emilio Benavides",
"phonenumber": "12345"
},
"location": {
"warehouse": 9
}
},
"dropoff": {
"contact": {
"name": "MAYGER RENE MONTERO SAAVEDRA",
"email": "mrmontero@shippify.cl",
"phonenumber": "777"
},
"location": {
"address": {
"zipcode": "60348450",
"neighborhood": "VILA VELHA",
"streetName": "RUA 24,656",
"state": "CE",
"country": "Brazil",
"city": "FORTALEZA"
},
"instructions": "CONJ DOS BANCARIOS - REF.ENDERECO: PROX A UPA"
}
},
"packages": [
{
"name": "149123156552",
"size": "XS",
"qty": "1"
}
]
}
]
}
With digital tags, you can add additional features to the task to later filter by them, for example: fragile.
With extra data, you can link additional information to the delivery.
{
"deliveries": [
{
"pickup": {
"contact": {
"phonenumber": "0976565643",
"email": "test@test.com",
"name": "Iliana Bolaños"
},
"location": {
"address": "Av. Francisco de Orellana 8, Guayaquil 090502, Ecuador",
"instructions": "Apartamento 203"
}
},
"dropoff": {
"contact": {
"name": "Estefanía Fajardo",
"email": "test-1998@hotmail.com"
},
"location": {
"address": "Malecón 2000, Simon Bolivar Palacios, Guayaquil 090313, Ecuador",
"instructions": "Local 890"
}
},
"packages": [
{
"name": "Caja de colores",
"qty": 1,
"size": 1
}
],
"tags" : [
"fragil"
],
"extraData": [
{
"name": "GUIA DE REMISION",
"value": "0001-000344-2233",
"searchable": true
}
],
"referenceId": "FACT-000123"
}
]
}
With this payload, you can create deliveries for a child company with authorization from the parent company.
{
"deliveries": [
{
"pickup": {
"contact": {
"phonenumber": "0976565643",
"email": "test@test.com",
"name": "Iliana Bolaños"
},
"location": {
"address": "Av. Francisco de Orellana 8, Guayaquil 090502, Ecuador",
"instructions": "Apartamento 203"
}
},
"dropoff": {
"contact": {
"name": "Estefanía Fajardo",
"email": "test-1998@hotmail.com"
},
"location": {
"address": "Malecón 2000, Simon Bolivar Palacios, Guayaquil 090313, Ecuador",
"instructions": "Local 890"
}
},
"packages": [
{
"name": "Caja de colores",
"qty": 1,
"size": 1
}
],
"referenceId": "FACT-000123"
}
]
}
Create up to 100 deliveries within Shippify
/v1/deliveries
Company identifier where the delivery will be created
2
Delivery type
flex
, express
, slot
curl -L \
--request POST \
--url 'https://api.shippify.co/v1/deliveries' \
--header 'Authorization: Basic username:password' \
--header 'Content-Type: application/json' \
--data '{
"companyId": 2,
"type": "slot",
"deliveries": [
{
"pickup": {
"contact": {
"name": "Iliana Bolaños",
"email": "iliana@shippify.co",
"phonenumber": "0998976565"
},
"location": {
"address": "Vicuna Mackenna 6100, La Florida, Region Metropolitana, Chile",
"instructions": "Unit 1001",
"lat": -33.511333999,
"lng": -70.6102933
}
},
"dropoff": {
"contact": {
"name": "Iliana Bolaños",
"email": "iliana@shippify.co",
"phonenumber": "0998976565"
},
"location": {
"address": "Vicuna Mackenna 6100, La Florida, Region Metropolitana, Chile",
"instructions": "Unit 1001",
"lat": -33.511333999,
"lng": -70.6102933
}
},
"referenceId": "PO-00012",
"cod": 22.3,
"packages": [
{
"id": "Product-001",
"name": "Color box",
"qty": 4,
"weight": 5.3,
"price": 15.6,
"size": "xs"
}
],
"tags": [
"Fragile"
],
"extraData": [
{
"name": "Invoice",
"value": "INV-000001"
}
]
}
]
}'
{
"code": "OK",
"message": "Delivery created successfully",
"payload": [
{
"index": 0,
"id": "t-shiinc-27946",
"price": 10.4,
"currencyCode": "CLP",
"distance": 10.4,
"cityId": 2,
"destinationCityId": 2,
"insurance": 2.3,
"statusDelivery": "processing",
"vehicleCapacity": 2,
"deliveryDate": "2023-10-27 19:09:11",
"trackLink": "https://api.shippify.co/track/t-pruaas-4973?token=XXXXXXXXXXXXX",
"referenceId": "PO-00012"
}
]
}
Successful operation