API V2.2
- Documentacion api legacy
- Empezar
- Autenticación
- Estructura
- Modelo de datos de Justo
- Menú
- Cupones
- Clientes
- Ordenes
- Productos
- Locales
- Ultima milla
- Webhooks
Ultima milla
Crear solicitud de despacho
Usa este metodo para crear una solicitud de despacho
POST
/
deliveries
Copy
Ask AI
curl --request POST \
--url https://api.getjusto.com/api/v2/deliveries \
--header 'Content-Type: application/json' \
--data '{
"storeId": "<string>",
"instructions": "<string>",
"externalId": "<string>",
"tipAmount": 123,
"placeId": "<string>",
"latitude": -33.4489,
"longitude": -70.6693,
"preferCoordinates": false,
"maxDistance": 123,
"addressLine1": "<string>",
"addressLine2": "<string>",
"placeName": "<string>",
"placePhone": "<string>",
"isToStore": false,
"isRoundTrip": false,
"requiredVehicleType": "walk",
"expectedDate": "2023-11-07T05:31:56Z",
"contents": {
"name": "<string>",
"quantity": 123,
"description": "<string>",
"unitPrice": 123
},
"avoidDuplication": false
}'
Copy
Ask AI
{
"_id": "<string>",
"price": 123,
"status": "canceled",
"placeName": "<string>",
"isCash": "<string>",
"fromLocation": {
"address": "<string>",
"addressSecondary": "<string>",
"storeName": "<string>",
"lat": -33.4489,
"lng": -70.6693
},
"toLocation": {
"address": "<string>",
"addressSecondary": "<string>",
"storeName": "<string>",
"lat": -33.4489,
"lng": -70.6693
},
"receiveProofImage": "<string>",
"deliverProofImage": "<string>",
"driverPassword": "<string>",
"activatesAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"forDate": "2023-11-07T05:31:56Z",
"completedAt": "2023-11-07T05:31:56Z",
"canceledAt": "2023-11-07T05:31:56Z",
"nearStoreAt": "2023-11-07T05:31:56Z",
"nearClientAt": "2023-11-07T05:31:56Z",
"deliveryExpectedAt": "2023-11-07T05:31:56Z",
"driverReceivedAt": "2023-11-07T05:31:56Z",
"trackingURL": "<string>",
"deliveryInformation": "<string>",
"driverInformation": {
"code": "<string>",
"type": "<string>",
"phone": "<string>",
"name": "<string>",
"categoryId": "<string>",
"image": "<string>"
},
"instructions": "<string>",
"specialCode": "<string>",
"externalId": "<string>",
"orderId": "<string>",
"uncompletedReason": "<string>"
}
Descripción
Este método posibilita la creación de una solicitud de reparto especial, generando un envío de forma inmediata o programada. Adicionalmente, incorpora un mecanismo de indempotencia y personalización de la entrega.
Nota al margen
Los pedidos especiales no están limitados en los horarios de venta que establezca la marca, siendo de exclusiva responsabilidad del solicitante el verificar si pueden despachar el producto en cuestión.
Ejemplo con placeId
Descripción
Este endpoint muestra un ejemplo de crear un delivery con placeId
Respuesta
Copy
Ask AI
{
"placeId": "Ch43134gggXP5g5g5RPWmn-5gg35",
"addressLine2": "Dpto 144",
"storeId": "Li4eEa3W2hiuGGCFa",
"isToStore": false,
"isRoundTrip": false,
"externalId": "P13G3",
"tipAmount": 1000,
"placeName": "Javier Perez",
"placePhone": "+56956385416",
"expectedDate": "2020-04-17T22:15:26Z",
"contents": [
{
"quantity": 1,
"name": "Pizza",
"description": "Extras: Bebida 1.5lt",
"unitPrice": 1000
}
]
}
Respuesta
Copy
Ask AI
{
"status": "ok",
"data": {
<Delivery>
}
}
Ejemplo sin placeId
Descripción
Este endpoint muestra un ejemplo de crear un delivery con placeId
Respuesta
Copy
Ask AI
{
"latitude": "-33.4421928",
"longitude": "-70.665261",
"addressLine1": "Concha y Toro 33",
"addressLine2": "Dpto 144",
"storeId": "Li4eEa3W2hiuGGCFa",
"isToStore": false,
"isRoundTrip": false,
"externalId": "P13G3",
"tipAmount": 1000,
"placeName": "Javier Perez",
"placePhone": "+56956385416",
"expectedDate": "2020-04-17T22:15:26Z",
"contents": [
{
"quantity": 1,
"name": "Pizza",
"description": "Extras: Bebida 1.5lt",
"unitPrice": 1000
}
]
}
Respuesta
Copy
Ask AI
{
"status": "ok",
"data": {
<Delivery>
}
}
Body
application/json
Response
200
application/json
success
The response is of type object
.
Copy
Ask AI
curl --request POST \
--url https://api.getjusto.com/api/v2/deliveries \
--header 'Content-Type: application/json' \
--data '{
"storeId": "<string>",
"instructions": "<string>",
"externalId": "<string>",
"tipAmount": 123,
"placeId": "<string>",
"latitude": -33.4489,
"longitude": -70.6693,
"preferCoordinates": false,
"maxDistance": 123,
"addressLine1": "<string>",
"addressLine2": "<string>",
"placeName": "<string>",
"placePhone": "<string>",
"isToStore": false,
"isRoundTrip": false,
"requiredVehicleType": "walk",
"expectedDate": "2023-11-07T05:31:56Z",
"contents": {
"name": "<string>",
"quantity": 123,
"description": "<string>",
"unitPrice": 123
},
"avoidDuplication": false
}'
Copy
Ask AI
{
"_id": "<string>",
"price": 123,
"status": "canceled",
"placeName": "<string>",
"isCash": "<string>",
"fromLocation": {
"address": "<string>",
"addressSecondary": "<string>",
"storeName": "<string>",
"lat": -33.4489,
"lng": -70.6693
},
"toLocation": {
"address": "<string>",
"addressSecondary": "<string>",
"storeName": "<string>",
"lat": -33.4489,
"lng": -70.6693
},
"receiveProofImage": "<string>",
"deliverProofImage": "<string>",
"driverPassword": "<string>",
"activatesAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z",
"forDate": "2023-11-07T05:31:56Z",
"completedAt": "2023-11-07T05:31:56Z",
"canceledAt": "2023-11-07T05:31:56Z",
"nearStoreAt": "2023-11-07T05:31:56Z",
"nearClientAt": "2023-11-07T05:31:56Z",
"deliveryExpectedAt": "2023-11-07T05:31:56Z",
"driverReceivedAt": "2023-11-07T05:31:56Z",
"trackingURL": "<string>",
"deliveryInformation": "<string>",
"driverInformation": {
"code": "<string>",
"type": "<string>",
"phone": "<string>",
"name": "<string>",
"categoryId": "<string>",
"image": "<string>"
},
"instructions": "<string>",
"specialCode": "<string>",
"externalId": "<string>",
"orderId": "<string>",
"uncompletedReason": "<string>"
}
Assistant
Responses are generated using AI and may contain mistakes.