Skip to main content
POST
/
ecommerce.order.delivery.updated
Despacho de pedido actualizado
curl --request POST \
  --url https://api.example.com/ecommerce.order.delivery.updated \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "data": {
    "order": {
      "_id": "ord-123",
      "isScheduled": true,
      "isConfirmed": true,
      "websiteId": "<string>",
      "storeId": "<string>",
      "code": "123",
      "fullCode": "C#123",
      "userId": "<string>",
      "createdAt": "2020-01-01T00:00:00.000Z",
      "address": {
        "_id": "<string>",
        "placeId": "<string>",
        "address": "Av. Apoquindo 3000",
        "addressLine2": "Depto 1201",
        "addressSecondary": "<string>",
        "location": {
          "lat": -33.4489,
          "lng": -70.6693
        }
      },
      "menuId": "<string>",
      "deliverAt": "2020-01-01T00:00:00.000Z",
      "timeText": "<string>",
      "paymentType": "<string>",
      "paymentTypeLabel": "<string>",
      "paymentTypeIsIntegration": true,
      "tipAmount": 123,
      "amountToPay": 123,
      "deliveryFee": 123,
      "serviceFee": 123,
      "itemsPrice": 123,
      "totalPrice": 123,
      "totalDiscount": 123,
      "expectedPreparationDuration": 123,
      "deliveryDuration": 123,
      "cashAmount": 123,
      "source": "<string>",
      "buyerName": "<string>",
      "phone": "<string>",
      "email": "<string>",
      "couponId": "<string>",
      "couponName": "<string>",
      "couponCode": "<string>",
      "couponDiscount": 123,
      "flagColor": "<string>",
      "items": [
        {
          "_id": "<string>",
          "product": {
            "_id": "<string>",
            "name": "Hamburguesa",
            "externalId": "<string>",
            "metadata": {},
            "priceMetadata": {}
          },
          "unitPrice": 5990,
          "baseUnitPrice": 5990,
          "productPrice": 5990,
          "baseProductPrice": 5990,
          "amount": 2,
          "comment": "<string>",
          "description": "Bebida: Coca Zero - Comentario: \"Sin cebolla\"",
          "promotionId": "<string>",
          "promotionDiscount": 123,
          "promotionType": "<string>",
          "promotionLabel": "<string>",
          "modifiers": [
            {
              "modifierId": "<string>",
              "externalId": "<string>",
              "name": "Agregados",
              "shortName": "<string>",
              "metadata": {},
              "description": "<string>",
              "countById": {},
              "countByExternalId": {},
              "options": [
                {
                  "optionId": "<string>",
                  "name": "Queso",
                  "price": 1000,
                  "externalId": "<string>",
                  "metadata": {},
                  "priceMetadata": {}
                }
              ]
            }
          ]
        }
      ],
      "transaction": {
        "_id": "<string>",
        "totalPrice": 123,
        "paymentType": "<string>",
        "cardType": "<string>",
        "cardLast4": "<string>",
        "status": "<string>"
      },
      "deliveries": [
        {
          "_id": "<string>",
          "price": 2500,
          "placeName": "<string>",
          "isCash": true,
          "instructions": "<string>",
          "fromLocation": {
            "lat": -33.4489,
            "lng": -70.6693
          },
          "toLocation": {
            "lat": -33.4489,
            "lng": -70.6693
          },
          "trackingURL": "<string>",
          "orderId": "<string>",
          "activatesAt": "2020-01-01T00:00:00.000Z",
          "createdAt": "2020-01-01T00:00:00.000Z",
          "forDate": "2020-01-01T00:00:00.000Z",
          "pickupAt": "2020-01-01T00:00:00.000Z",
          "completedAt": "2020-01-01T00:00:00.000Z",
          "canceledAt": "2020-01-01T00:00:00.000Z",
          "deliveryExpectedAt": "2020-01-01T00:00:00.000Z",
          "driverReceivedAt": "2020-01-01T00:00:00.000Z",
          "driverInformation": {},
          "deliveryInformation": {},
          "externalId": "<string>",
          "specialCode": "<string>"
        }
      ],
      "orderParams": {},
      "hasManagedDelivery": true,
      "gift": {},
      "billing": {},
      "cancellationInfo": {},
      "deliveryZoneName": "<string>"
    },
    "delivery": {
      "_id": "<string>",
      "price": 2500,
      "placeName": "<string>",
      "isCash": true,
      "instructions": "<string>",
      "fromLocation": {
        "lat": -33.4489,
        "lng": -70.6693
      },
      "toLocation": {
        "lat": -33.4489,
        "lng": -70.6693
      },
      "trackingURL": "<string>",
      "orderId": "<string>",
      "activatesAt": "2020-01-01T00:00:00.000Z",
      "createdAt": "2020-01-01T00:00:00.000Z",
      "forDate": "2020-01-01T00:00:00.000Z",
      "pickupAt": "2020-01-01T00:00:00.000Z",
      "completedAt": "2020-01-01T00:00:00.000Z",
      "canceledAt": "2020-01-01T00:00:00.000Z",
      "deliveryExpectedAt": "2020-01-01T00:00:00.000Z",
      "driverReceivedAt": "2020-01-01T00:00:00.000Z",
      "driverInformation": {},
      "deliveryInformation": {},
      "externalId": "<string>",
      "specialCode": "<string>"
    }
  },
  "websiteId": "<string>",
  "storeId": "<string>",
  "date": "2020-01-01T00:00:00.000Z",
  "eventId": "<string>"
}
'

Documentation Index

Fetch the complete documentation index at: https://docs.getjusto.com/llms.txt

Use this file to discover all available pages before exploring further.

Este webhook se envía cuando cambia el estado del despacho asociado a un pedido. Permite detectar asignaciones de driver, cambios de ETA ligados a la transición de estado y casos en que el despacho vuelve a un estado anterior.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json

Webhook Payload

type
enum<string>

El tipo de webhook.

Available options:
ecommerce.order.delivery.updated
Allowed value: "ecommerce.order.delivery.updated"
data
object

Datos del webhook de actualización de despacho de pedido.

websiteId
string

ID de la marca.

storeId
string

ID del local.

date
string<date-time>

Fecha en que se generó el evento.

Example:

"2020-01-01T00:00:00.000Z"

eventId
string

ID único del evento.

Response

200

OK