Skip to main content
POST
/
tabs.tab.closed
Cerrada
curl --request POST \
  --url https://api.example.com/tabs.tab.closed \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "type": "tabs.tab.closed",
  "data": {
    "tab": {
      "_id": "tab-4c48bf33-1411-4c3f-adac-db39b4631cb8",
      "code": "CJXEQZK",
      "description": "Justo C#16699-02",
      "comments": "Lorem ipsum dolor sit amet, consectetur adipiscing elit.",
      "websiteId": "ErCkmcyCEovseJq5E",
      "storeId": "Li4eEa3W2hiuGGCFa",
      "shiftId": "tsft-b6fda21f-b638-428b-a785-849fdbe3fe0b",
      "tabCounter": 1,
      "createdById": "a3W2hiuGGLi4eECFa",
      "operatorUserId": "a3W2hiuGGLi4eECFa",
      "driverUserId": "a3W2hiuGGLi4eECFa",
      "createdAtDeviceId": "W2hiuGGLa3W2hW2hiuGGLiuGGLWW2hiuGGL2hiuGGLW2hiuGGLi4eECFa",
      "countryCode": "CL",
      "createdAt": "2020-01-01T00:00:00.000Z",
      "closedAt": "2020-01-01T00:00:00.000Z",
      "deletedAt": "2020-01-01T00:00:00.000Z",
      "cancelledAt": "2020-01-01T00:00:00.000Z",
      "cancellationPrompt": "El pedido fue cancelado por el cliente.",
      "tableIds": [
        "<string>"
      ],
      "tableNames": [
        "<string>"
      ],
      "sectorIds": [
        "<string>"
      ],
      "reservationId": "<string>",
      "paymentStatus": "pending",
      "statusLabel": "<string>",
      "statusLabelForClient": "<string>",
      "totalPrice": 123,
      "totalNetPrice": 123,
      "totalTaxPrice": 123,
      "totalPriceBeforeDiscounts": 123,
      "discountsAmount": 123,
      "amountPaid": 123,
      "amountDue": 123,
      "tipAmountPaid": 123,
      "netTipAmountPaid": 123,
      "taxTipAmountPaid": 123,
      "mustBeReadyAt": "2020-01-01T00:00:00.000Z",
      "mustBeDeliveredAt": "2020-01-01T00:00:00.000Z",
      "readyToPickupAt": "2020-01-01T00:00:00.000Z",
      "activatesAt": "2020-01-01T00:00:00.000Z",
      "source": "pos",
      "salesChannelConfigId": "<string>",
      "channelName": "<string>",
      "clientData": {
        "name": "<string>",
        "email": "<string>",
        "phone": "<string>",
        "addressLine1": "<string>",
        "addressLine2": "<string>",
        "addressExtra": "<string>"
      },
      "integrationClientId": "<string>",
      "deliveryType": "delivery",
      "hasExternalDeliveryProvider": true,
      "generateInvoiceAtClose": true,
      "integrationOrderId": "<string>",
      "integrationIsPending": true,
      "integrationComments": [
        "<string>"
      ],
      "eaterLabels": [
        "<string>"
      ],
      "externalInvoiceId": "<string>",
      "payments": [
        {
          "_id": "tab-4c48bf33-1411-4c3f-adac-db39b4631cb8",
          "code": "CJXEQZK",
          "shiftId": "Li4eEa3W2hiuGGCFa",
          "paymentMethodId": "a3W2hiuGGLi4eECFa",
          "paymentMethodName": "Efectivo",
          "amount": 100,
          "tipAmount": 10,
          "createdAt": "2020-01-01T00:00:00.000Z",
          "voidedAt": "2020-01-01T00:00:00.000Z",
          "shiftEndedAt": "2020-01-01T00:00:00.000Z",
          "createdById": "a3W2hiuGGLi4eECFa",
          "shouldMakeInvoice": true,
          "payerName": "John Doe",
          "payerUserId": "a3W2hiuGGLi4eECFa"
        }
      ],
      "invoices": [
        {
          "_id": "tab-4c48bf33-1411-4c3f-adac-db39b4631cb8",
          "providerId": "openFactura",
          "createdAt": "2020-01-01T00:00:00.000Z",
          "generatedAt": "2020-01-01T00:00:00.000Z",
          "status": "pending",
          "externalInvoiceId": "123456",
          "errorMessage": "Error al generar la factura.",
          "voidedAt": "2020-01-01T00:00:00.000Z",
          "statusLabel": "Pendiente",
          "invoiceURL": "https://getjusto.com/invoice/123456",
          "totalAmount": 100,
          "taxAmount": 10,
          "netAmount": 90
        }
      ],
      "discounts": [
        {
          "_id": "tab-4c48bf33-1411-4c3f-adac-db39b4631cb8",
          "shiftId": "Li4eEa3W2hiuGGCFa",
          "createdAt": "2020-01-01T00:00:00.000Z",
          "voidedAt": "2020-01-01T00:00:00.000Z",
          "discountedAmount": 100,
          "discountMethodId": "a3W2hiuGGLi4eECFa",
          "discountMethodName": "Cupón",
          "type": "fixedAmount",
          "fixedAmount": 100,
          "percentage": 10
        }
      ],
      "items": [
        {
          "_id": "tab-4c48bf33-1411-4c3f-adac-db39b4631cb8",
          "createdAt": "2020-01-01T00:00:00.000Z",
          "amount": 2,
          "price": 100,
          "priceWithModifiers": 120,
          "unitPrice": 50,
          "productId": "a3W2hiuGGLi4eECFa",
          "productName": "Café",
          "productInternalName": "Café",
          "productUnitItemsCount": 1,
          "comment": "Sin azúcar",
          "type": "product",
          "sentToKDSAt": "2020-01-01T00:00:00.000Z",
          "addedByClientUserId": "a3W2hiuGGLi4eECFa",
          "addedByClientName": "Juan",
          "eaterLabels": [
            "<string>"
          ],
          "modifiers": [
            {
              "_id": "tab-4c48bf33-1411-4c3f-adac-db39b4631cb8",
              "modifierGroupId": "Li4eEa3W2hiuGGCFa",
              "modifierId": "a3W2hiuGGLi4eECFa",
              "amount": 2,
              "modifierQuantity": 1,
              "price": 100,
              "unitPrice": 50,
              "modifierName": "Azúcar",
              "modifierInternalName": "Azúcar",
              "modifierGroupName": "Azúcar",
              "modifierUnitItemsCount": 1,
              "modifierUnitWeight": 100
            }
          ],
          "unitProductWeight": 100,
          "totalWeight": 100
        }
      ]
    }
  },
  "websiteId": "<string>",
  "storeId": "<string>",
  "date": "2020-01-01T00:00:00.000Z",
  "eventId": "<string>"
}
'

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:
tabs.tab.closed
Allowed value: "tabs.tab.closed"
data
object
websiteId
string

El ID de la marca

storeId
string

El ID del local si es que corresponde

date
string<date-time>

La fecha en que se generó el evento

Example:

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

eventId
string

El ID del evento

Response

200

OK