Cancel tab
Changed onAnula una cuenta, abierta o cerrada, igual que en el PDV: sus productos quedan anulados y se quita de cocina. Solo aplica a cuentas sin pagos: anula primero los pagos. No aplica a pedidos de canales de venta.
post/tabs/{storeId}/tabs/{tabId}/cancel
Request
- Base URLhttps://api.service.getjusto.com/v3
- Authnone declared
Path parameters
storeIdstring required
ID Justo del local.
tabIdstring required
ID de la cuenta (_id en GET /tabs/{storeId}/tabs).
Request body
Example request
{
"comments": "Cuenta abierta por error"
}Response
The OpenAPI spec
Example response
{
"success": true,
"data": {
"_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.",
"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",
"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",
"storeId": "sto-4c48bf33-1411-4c3f-adac-db39b4631cb8",
"tabId": "tab-4c48bf33-1411-4c3f-adac-db39b4631cb8",
"inventorySaleId": "isale-4c48bf33-1411-4c3f-adac-db39b4631cb8",
"createdAt": "2020-01-01T00:00:00.000Z",
"generatedAt": "2020-01-01T00:00:00.000Z",
"externalInvoiceId": "123456",
"externalVoidInvoiceId": "654321",
"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",
"fixedAmount": 100,
"percentage": 0.1
}
],
"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",
"sentToKDSAt": "2020-01-01T00:00:00.000Z",
"addedByClientUserId": "a3W2hiuGGLi4eECFa",
"addedByClientName": "Juan",
"addedByUserId": "a3W2hiuGGLi4eECFa",
"addedByUserName": "Juan",
"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
}
]
}
}Changes
- info
endpoint added
- info