API V1
- Empezar
- Autenticación
- Ultima milla
- Locales
- Clientes
- Metodos de stock
- Webhooks
- Pedidos
Pedidos
Activar delivery
Usa este metodo para activar delivery antes de tiempo
POST
/
activateDelivery
Copy
Ask AI
curl --request POST \
--url https://api.getjusto.com/api/v1/activateDelivery \
--header 'Content-Type: application/json' \
--data '{
"orderId": "xabAso2p3pKkLMTuz"
}'
Copy
Ask AI
{
"status": "ok",
"data": {
"_id": "QCevLRgMJfTgSJxhS",
"price": 1999,
"status": "done",
"driverPassword": 5818,
"activatesAt": "2021-07-20T16:26:00.000Z",
"createdAt": "2021-07-20T16:12:14.822Z",
"forDate": "2021-07-20T16:41:43.164Z",
"fromLocation": {
"address": "Avenida Vitacura 6345",
"addressSecondary": "Vitacura, Chile",
"storeName": "NOMBRE MARCA' Vitacura 6345 (Rotonda Irene Frei)",
"lat": -33.3902738,
"lng": -70.5701148
},
"toLocation": {
"address": "Avenida Providencia 1302",
"addressSecondary": "Providencia, Chile",
"lat": -33.4286681,
"lng": -70.6203024
},
"nearStoreAt": "2021-07-20T16:16:14.202Z",
"nearClientAt": "2021-07-20T16:17:32.852Z",
"completedAt": "2021-07-20T16:18:31.332Z",
"canceledAt": null,
"deliveryExpectedAt": "2021-07-20T17:12:00.000Z",
"driverReceivedAt": "2021-07-20T16:16:32.230Z",
"deliverProofImage": "<URL>",
"receiveProofImage": "<URL>",
"deliveryInformation": "Maria Soto - Recepción",
"driverInformation": {
"type": "moto",
"phone": 56999999999,
"name": "Peter",
"image": "<URL>"
},
"trackingURL": "<URL>",
"orderId": "wtZnef2Ks7xTfRJ8X",
"placeName": "Miguel Piedrafitas",
"instructions": "Dejar el pedido en conserjeria",
"isCash": true,
"specialCode": 369,
"externalId": "ID_EXTERNO",
"uncompletedReason": "Repartidor sufrió accidente"
}
}
Descripción
Este método controla proactivamente las entregas que permite hacer la petición de inicio del proceso de entrega de un pedido antes de la hora idónea establecida.
Body
application/json
Response
200
application/json
Operación exitosa
The response is of type object
.
Copy
Ask AI
curl --request POST \
--url https://api.getjusto.com/api/v1/activateDelivery \
--header 'Content-Type: application/json' \
--data '{
"orderId": "xabAso2p3pKkLMTuz"
}'
Copy
Ask AI
{
"status": "ok",
"data": {
"_id": "QCevLRgMJfTgSJxhS",
"price": 1999,
"status": "done",
"driverPassword": 5818,
"activatesAt": "2021-07-20T16:26:00.000Z",
"createdAt": "2021-07-20T16:12:14.822Z",
"forDate": "2021-07-20T16:41:43.164Z",
"fromLocation": {
"address": "Avenida Vitacura 6345",
"addressSecondary": "Vitacura, Chile",
"storeName": "NOMBRE MARCA' Vitacura 6345 (Rotonda Irene Frei)",
"lat": -33.3902738,
"lng": -70.5701148
},
"toLocation": {
"address": "Avenida Providencia 1302",
"addressSecondary": "Providencia, Chile",
"lat": -33.4286681,
"lng": -70.6203024
},
"nearStoreAt": "2021-07-20T16:16:14.202Z",
"nearClientAt": "2021-07-20T16:17:32.852Z",
"completedAt": "2021-07-20T16:18:31.332Z",
"canceledAt": null,
"deliveryExpectedAt": "2021-07-20T17:12:00.000Z",
"driverReceivedAt": "2021-07-20T16:16:32.230Z",
"deliverProofImage": "<URL>",
"receiveProofImage": "<URL>",
"deliveryInformation": "Maria Soto - Recepción",
"driverInformation": {
"type": "moto",
"phone": 56999999999,
"name": "Peter",
"image": "<URL>"
},
"trackingURL": "<URL>",
"orderId": "wtZnef2Ks7xTfRJ8X",
"placeName": "Miguel Piedrafitas",
"instructions": "Dejar el pedido en conserjeria",
"isCash": true,
"specialCode": 369,
"externalId": "ID_EXTERNO",
"uncompletedReason": "Repartidor sufrió accidente"
}
}
Assistant
Responses are generated using AI and may contain mistakes.