API V1
- Empezar
- Autenticación
- Ultima milla
- Locales
- Clientes
- Metodos de stock
- Webhooks
- Pedidos
Locales
Cambiar el tiempo de preparación
Usa este método para cambiar el tiempo de preparación
POST
/
setStoreCurrentPreparationDuration
Copy
Ask AI
curl --request POST \
--url https://api.getjusto.com/api/v1/setStoreCurrentPreparationDuration \
--header 'Content-Type: application/json' \
--data '{
"storeId": "<string>",
"currentPreparationDuration": 123
}'
Copy
Ask AI
{
"status": "ok",
"data": {
"_id": "xKoiiqdtKGaRA2ve4",
"externalId": 2345,
"websiteId": "ErCkmcyCEovseJq5E",
"name": "Peña",
"acceptDelivery": true,
"acceptServe": true,
"acceptGo": true,
"currentPreparationDuration": 10,
"phone": "null",
"address": {
"placeId": "EihBdmVuaWRhIEhvbGFuZGEgMTYwNSwgUHJvdmlkZW5jaWEsIENoaWxlIjESLwoUChIJCfBr63TPYpYRguPJ8LiSNSgQxQwqFAoSCbELmxJ1z2KWEdvDHqTQ",
"address": "Avenida Holanda 1605",
"addressLine2": 1234,
"addressSecondary": "Providencia, Chile",
"comment": "Dejar con el conserje",
"location": {
"lat": -33.4334297,
"lng": -70.59966380000002
}
},
"schedule": {
"closedUntilDate": "null",
"closedDays": [
"2023-11-07T05:31:56Z"
],
"availableAtPeriods": false,
"openPeriods": [
{
"daysOfWeek": [
1,
2,
3,
4,
5,
6,
7
],
"fromMinute": 480,
"toMinute": 1200
}
],
"timezone": "America/Santiago"
}
}
}
Descripción
Este método permite actualizar el tiempo de preparación actual de los pedidos para un local específico. Adicionalmente, es importante considerar que este tiempo indica la cantidad de minutos que toma preparar un nuevo pedido en dicho local.
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/v1/setStoreCurrentPreparationDuration \
--header 'Content-Type: application/json' \
--data '{
"storeId": "<string>",
"currentPreparationDuration": 123
}'
Copy
Ask AI
{
"status": "ok",
"data": {
"_id": "xKoiiqdtKGaRA2ve4",
"externalId": 2345,
"websiteId": "ErCkmcyCEovseJq5E",
"name": "Peña",
"acceptDelivery": true,
"acceptServe": true,
"acceptGo": true,
"currentPreparationDuration": 10,
"phone": "null",
"address": {
"placeId": "EihBdmVuaWRhIEhvbGFuZGEgMTYwNSwgUHJvdmlkZW5jaWEsIENoaWxlIjESLwoUChIJCfBr63TPYpYRguPJ8LiSNSgQxQwqFAoSCbELmxJ1z2KWEdvDHqTQ",
"address": "Avenida Holanda 1605",
"addressLine2": 1234,
"addressSecondary": "Providencia, Chile",
"comment": "Dejar con el conserje",
"location": {
"lat": -33.4334297,
"lng": -70.59966380000002
}
},
"schedule": {
"closedUntilDate": "null",
"closedDays": [
"2023-11-07T05:31:56Z"
],
"availableAtPeriods": false,
"openPeriods": [
{
"daysOfWeek": [
1,
2,
3,
4,
5,
6,
7
],
"fromMinute": 480,
"toMinute": 1200
}
],
"timezone": "America/Santiago"
}
}
}
Assistant
Responses are generated using AI and may contain mistakes.