API V2.2
- Documentacion api legacy
- Empezar
- Autenticación
- Estructura
- Modelo de datos de Justo
- Menú
- Cupones
- Clientes
- Ordenes
- GETObtener las ordenes del sitio
- GETObtener el detalle de una orden
- PATCHActualizar color de la bandera de la orden
- POSTRechazar una orden
- POSTAceptar una orden
- POSTActivar delivery
- POSTSeleccionar el tipo de despacho
- PATCHCambiar el estado de un pedido
- POSTDefinir código de verificación
- GETListar pedidos pendientes
- GET
- Productos
- Locales
- Ultima milla
- Webhooks
Ordenes
Activar delivery
Usa este metodo para activar delivery antes de tiempo
POST
/
orders
/
{id}
/
activateDelivery
Copy
Ask AI
curl --request POST \
--url https://api.getjusto.com/api/v2/orders/{id}/activateDelivery \
--header 'Authorization: Bearer <token>'
Copy
Ask AI
{
"status": "ok",
"data": {
"_id": "<string>",
"orderStatus": "<string>",
"isScheduled": true,
"websiteId": "<string>",
"code": "<string>",
"createdAt": "<string>",
"fullCode": "<string>",
"userId": "<string>",
"storeId": "<string>",
"address": {
"_id": "<string>",
"placeId": "<string>",
"address": "<string>",
"addressSecondary": "<string>",
"location": {
"lat": 123,
"lng": 123
},
"streetAddress": "<string>",
"locality": "<string>",
"region": "<string>",
"postalCode": "<string>",
"directions": {
"duration": 123,
"distance": 123
}
},
"menuId": "<string>",
"deliveryType": "<string>",
"deliverAt": "2023-11-07T05:31:56Z",
"paymentType": "<string>",
"paymentTypeLabel": "<string>",
"paymentTypeIsIntegration": true,
"otherPaymentType": "<string>",
"amountToPay": 123,
"deliveryFee": 123,
"serviceFee": 123,
"itemsPrice": 123,
"totalPrice": 123,
"totalPriceBeforeDiscountsAfterProductDiscount": 123,
"discountedAmountAfterProductDiscount": 123,
"justoCoinsDiscount": 123,
"invoiceTotalPrice": 123,
"amountFinancedByWebsite": 123,
"amountFinancedByJusto": 123,
"expectedPreparationDuration": 123,
"deliveryDuration": 123,
"cardId": "<string>",
"channel": "<string>",
"source": "<string>",
"buyerName": "<string>",
"couponId": "<string>",
"couponName": "<string>",
"couponDiscount": 123,
"flagColor": "<string>",
"store": {
"_id": "<string>",
"websiteId": "<string>",
"name": "<string>",
"acceptDelivery": true,
"currentPreparationDuration": 123,
"currentDeliveryDuration": 123,
"phone": "<string>",
"address": {
"_id": "<string>",
"placeId": "<string>",
"address": "<string>",
"addressSecondary": "<string>",
"location": {
"lat": 123,
"lng": 123
},
"streetAddress": "<string>",
"locality": "<string>",
"region": "<string>",
"postalCode": "<string>",
"directions": {
"duration": 123,
"distance": 123
}
},
"externalId": "<string>",
"schedule": {
"closedDays": [
"<any>"
],
"availableAtPeriods": true,
"openPeriods": [
{
"daysOfWeek": [
123
],
"fromMinute": 123,
"toMinute": 123,
"specialPeriods": [
"<any>"
],
"timezone": "<string>",
"availableStateValidUntil": "<string>",
"isAvailableNow": true,
"updatedCacheAt": "<string>"
}
]
}
},
"items": [
{
"product": {
"_id": "<string>",
"name": "<string>",
"externalId": "<string>"
},
"unitPrice": 123,
"baseUnitPrice": 123,
"productPrice": 123,
"baseProductPrice": 123,
"amount": 123,
"comment": "<string>",
"modifiers": [
"<any>"
],
"options": [
"<any>"
]
}
],
"transaction": {},
"devolutions": [
{
"_id": "<string>",
"amount": 123,
"completedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z"
}
],
"deliveries": [
{}
],
"charges": {
"platformFee": {
"amount": 123,
"totalAmount": 123,
"tax": 123,
"count": 123
}
},
"orderParams": {
"isGift": true
},
"billing": {},
"clonedOrder": {},
"parentOrder": {},
"hasManagedDelivery": true,
"loyaltyTransaction": {},
"cancellationInfo": {},
"websiteCoinsDiscount": 123
}
}
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.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Path Parameters
ID de la orden
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/v2/orders/{id}/activateDelivery \
--header 'Authorization: Bearer <token>'
Copy
Ask AI
{
"status": "ok",
"data": {
"_id": "<string>",
"orderStatus": "<string>",
"isScheduled": true,
"websiteId": "<string>",
"code": "<string>",
"createdAt": "<string>",
"fullCode": "<string>",
"userId": "<string>",
"storeId": "<string>",
"address": {
"_id": "<string>",
"placeId": "<string>",
"address": "<string>",
"addressSecondary": "<string>",
"location": {
"lat": 123,
"lng": 123
},
"streetAddress": "<string>",
"locality": "<string>",
"region": "<string>",
"postalCode": "<string>",
"directions": {
"duration": 123,
"distance": 123
}
},
"menuId": "<string>",
"deliveryType": "<string>",
"deliverAt": "2023-11-07T05:31:56Z",
"paymentType": "<string>",
"paymentTypeLabel": "<string>",
"paymentTypeIsIntegration": true,
"otherPaymentType": "<string>",
"amountToPay": 123,
"deliveryFee": 123,
"serviceFee": 123,
"itemsPrice": 123,
"totalPrice": 123,
"totalPriceBeforeDiscountsAfterProductDiscount": 123,
"discountedAmountAfterProductDiscount": 123,
"justoCoinsDiscount": 123,
"invoiceTotalPrice": 123,
"amountFinancedByWebsite": 123,
"amountFinancedByJusto": 123,
"expectedPreparationDuration": 123,
"deliveryDuration": 123,
"cardId": "<string>",
"channel": "<string>",
"source": "<string>",
"buyerName": "<string>",
"couponId": "<string>",
"couponName": "<string>",
"couponDiscount": 123,
"flagColor": "<string>",
"store": {
"_id": "<string>",
"websiteId": "<string>",
"name": "<string>",
"acceptDelivery": true,
"currentPreparationDuration": 123,
"currentDeliveryDuration": 123,
"phone": "<string>",
"address": {
"_id": "<string>",
"placeId": "<string>",
"address": "<string>",
"addressSecondary": "<string>",
"location": {
"lat": 123,
"lng": 123
},
"streetAddress": "<string>",
"locality": "<string>",
"region": "<string>",
"postalCode": "<string>",
"directions": {
"duration": 123,
"distance": 123
}
},
"externalId": "<string>",
"schedule": {
"closedDays": [
"<any>"
],
"availableAtPeriods": true,
"openPeriods": [
{
"daysOfWeek": [
123
],
"fromMinute": 123,
"toMinute": 123,
"specialPeriods": [
"<any>"
],
"timezone": "<string>",
"availableStateValidUntil": "<string>",
"isAvailableNow": true,
"updatedCacheAt": "<string>"
}
]
}
},
"items": [
{
"product": {
"_id": "<string>",
"name": "<string>",
"externalId": "<string>"
},
"unitPrice": 123,
"baseUnitPrice": 123,
"productPrice": 123,
"baseProductPrice": 123,
"amount": 123,
"comment": "<string>",
"modifiers": [
"<any>"
],
"options": [
"<any>"
]
}
],
"transaction": {},
"devolutions": [
{
"_id": "<string>",
"amount": 123,
"completedAt": "2023-11-07T05:31:56Z",
"createdAt": "2023-11-07T05:31:56Z"
}
],
"deliveries": [
{}
],
"charges": {
"platformFee": {
"amount": 123,
"totalAmount": 123,
"tax": 123,
"count": 123
}
},
"orderParams": {
"isGift": true
},
"billing": {},
"clonedOrder": {},
"parentOrder": {},
"hasManagedDelivery": true,
"loyaltyTransaction": {},
"cancellationInfo": {},
"websiteCoinsDiscount": 123
}
}
Assistant
Responses are generated using AI and may contain mistakes.