Admin APIOrders

Orders

Admin API endpoints for creating and managing orders, syncing sales into other systems, and order webhooks

The Orders endpoints let you create and manage orders within your organization through the Admin API, and pull sales with their lines into stock, accounting and back-office systems.

For customer-scoped order history (returns orders for a single authenticated customer), see the Customer API Orders endpoint.

Endpoints

MethodEndpointDescription
GET/ordersList orders with filtering and pagination, optionally with their lines
POST/ordersCreate an order
GET/orders/{orderId}Get a single order by document ID or order number
PATCH/orders/{orderId}Update an order
DELETE/orders/{orderId}Delete an order

Authentication

All requests require a valid Admin API key:

Authorization: Bearer your_api_key_here

Test the API

Enter your Admin API key and any required values, then select Send. Requests are sent directly from your browser to the live Admin API.

The POST and PATCH testers change live organization data. DELETE also changes data, but the current CORS policy blocks browser DELETE requests; use a server-side client or curl for deletion. Your API key is stored only in this browser's local storage, so use the tester on a trusted device.

GET
/orders

Authorization

BearerAuth
AuthorizationBearer <token>

API key from the Tiquo dashboard (Settings > Developer > Admin API)

In: header

Query Parameters

limit?integer
Default50
Range1 <= value <= 100
cursor?string
search?string

Search by order number, customer name/email

status?string

Comma-separated: draft,pending,processing,completed,cancelled,refunded,open_tab

paymentStatus?string

Comma-separated payment statuses

source?string
channel?string
currency?string
sublocationId?string
customerId?string
customerEmail?string
Formatemail
dateFrom?string

Filter by order createdAt, inclusive

Formatdate
dateTo?string
Formatdate
source?string
serviceId?string
sublocationId?string
customerId?string
attendeeCountMin?integer
Range0 <= value
attendeeCountMax?integer

Filter by order createdAt, inclusive

Range0 <= value
updatedAfter?string

Return orders whose updatedAt is strictly after this instant. Results are ordered by updatedAt ascending so integrations can follow all pagination cursors and then advance their update watermark. Cannot be combined with search.

Formatdate-time
includeItems?boolean

When true, each order is returned in the full Order shape, as from GET /orders/{orderId}, including its lines (SKU, categoryName, reportingCategory, taxRate and the rest), so a sync needs no request per order.

Defaultfalse
amountMin?number
amountMax?number

Response Body

application/json

application/json

application/json

curl -X GET "https://api.tiquo.app/api/v1/orders"
{
  "success": true,
  "data": [
    {
      "id": "string",
      "orderNumber": "string",
      "status": "draft",
      "paymentStatus": "pending",
      "source": "string",
      "channel": "string",
      "total": 0,
      "subtotal": 0,
      "tax": 0,
      "discount": 0,
      "discountName": "string",
      "serviceChargeAmount": 0,
      "serviceChargePercentage": 0,
      "serviceChargeRemoved": true,
      "payments": [
        {
          "id": "string",
          "method": "string",
          "provider": "stripe",
          "amount": 0,
          "currency": "GBP",
          "paymentIntentId": "string",
          "chargeId": "string",
          "cardBrand": "visa",
          "cardLast4": "4242",
          "walletType": "apple_pay",
          "paidAt": 0
        }
      ],
      "storeCredit": {
        "amount": 0,
        "currency": "string"
      },
      "tipAmount": 0,
      "currency": "string",
      "itemCount": 0,
      "customerId": "string",
      "customerName": "string",
      "customerEmail": "string",
      "staffId": "string",
      "staffName": "string",
      "locationId": "string",
      "locationName": "string",
      "sublocationId": "string",
      "sublocationName": "string",
      "covers": 0,
      "tableNumber": "string",
      "tableName": "string",
      "tables": [
        {
          "id": "string",
          "number": "string",
          "name": "string"
        }
      ],
      "refundAmount": 0,
      "createdAt": 0,
      "updatedAt": 0
    }
  ],
  "pagination": {
    "hasMore": true,
    "nextCursor": "string",
    "pageSize": 0
  },
  "timestamp": "2019-08-24T14:15:22Z"
}
{
  "success": false,
  "error": "string",
  "timestamp": "2019-08-24T14:15:22Z",
  "details": {}
}
{
  "success": false,
  "error": "string",
  "timestamp": "2019-08-24T14:15:22Z",
  "details": {}
}
POST
/orders

Authorization

BearerAuth
AuthorizationBearer <token>

API key from the Tiquo dashboard (Settings > Developer > Admin API)

In: header

Request Body

application/json

sublocationId*string
customerId?string
companyId?string
parentBookingId?string
enquiryId?string
source?string
Default"admin"
Value in"pos" | "online" | "admin"
channel?string
Default"zapier"
orderType?string
Value in"eat_in" | "take_away"
status?string
Default"draft"
Value in"draft" | "pending" | "processing" | "completed" | "cancelled" | "refunded" | "open_tab" | "lost_cart"
notes?string
idempotencyKey?string
items*array<>
Items1 <= items

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X POST "https://api.tiquo.app/api/v1/orders" \  -H "Content-Type: application/json" \  -d '{    "sublocationId": "string",    "items": [      {        "name": "string",        "quantity": 0,        "unitPrice": 0      }    ]  }'
{
  "success": true,
  "data": {
    "id": "string",
    "orderNumber": "string",
    "status": "draft",
    "paymentStatus": "pending",
    "source": "string",
    "channel": "string",
    "total": 0,
    "subtotal": 0,
    "tax": 0,
    "discount": 0,
    "discountName": "string",
    "serviceChargeAmount": 0,
    "serviceChargePercentage": 0,
    "serviceChargeRemoved": true,
    "payments": [
      {
        "id": "string",
        "method": "string",
        "provider": "stripe",
        "amount": 0,
        "currency": "GBP",
        "paymentIntentId": "string",
        "chargeId": "string",
        "cardBrand": "visa",
        "cardLast4": "4242",
        "walletType": "apple_pay",
        "paidAt": 0
      }
    ],
    "storeCredit": {
      "amount": 0,
      "currency": "string"
    },
    "tipAmount": 0,
    "currency": "string",
    "itemCount": 0,
    "customerId": "string",
    "customerName": "string",
    "customerEmail": "string",
    "staffId": "string",
    "staffName": "string",
    "locationId": "string",
    "locationName": "string",
    "sublocationId": "string",
    "sublocationName": "string",
    "covers": 0,
    "tableNumber": "string",
    "tableName": "string",
    "tables": [
      {
        "id": "string",
        "number": "string",
        "name": "string"
      }
    ],
    "refundAmount": 0,
    "createdAt": 0,
    "updatedAt": 0,
    "paymentMethod": "string",
    "shipping": 0,
    "items": [
      {
        "id": "line_1",
        "type": "product",
        "name": "House Red",
        "quantity": 2,
        "unitPrice": 9.5,
        "subtotal": 19,
        "tax": 3.17,
        "taxRate": 20,
        "discount": 0,
        "total": 19,
        "sku": "HOUSE-RED",
        "productId": "k57a2b9x8c4d6e0f1g2h3j4k5m6n7p8q",
        "categoryName": "Wine / Red Wine",
        "reportingCategory": "Wine",
        "variant": {
          "id": "k97b3c0y9d5e7f1g2h3j4k5m6n7p8q9r",
          "name": "175ml"
        },
        "variants": [
          {
            "id": "k97b3c0y9d5e7f1g2h3j4k5m6n7p8q9r",
            "name": "175ml"
          }
        ],
        "category": {
          "id": "k17c4d1z0e6f8g2h3j4k5m6n7p8q9r0s",
          "name": "Wine"
        },
        "subcategory": {
          "id": "k27d5e2a1f7g9h3j4k5m6n7p8q9r0s1t",
          "name": "Red Wine"
        },
        "categoryPath": [
          {
            "id": "k17c4d1z0e6f8g2h3j4k5m6n7p8q9r0s",
            "name": "Wine"
          },
          {
            "id": "k27d5e2a1f7g9h3j4k5m6n7p8q9r0s1t",
            "name": "Red Wine"
          }
        ],
        "productStatus": "delivered"
      }
    ],
    "discountCodes": [
      "string"
    ],
    "customerNotes": "string",
    "refundReason": "string",
    "isLegacy": true,
    "creationMethod": "customer_online",
    "completedAt": 0,
    "cancelledAt": 0
  },
  "timestamp": "2019-08-24T14:15:22Z"
}
{
  "success": false,
  "error": "string",
  "timestamp": "2019-08-24T14:15:22Z",
  "details": {}
}
{
  "success": false,
  "error": "string",
  "timestamp": "2019-08-24T14:15:22Z",
  "details": {}
}
{
  "success": false,
  "error": "string",
  "timestamp": "2019-08-24T14:15:22Z",
  "details": {}
}
{
  "success": false,
  "error": "string",
  "timestamp": "2019-08-24T14:15:22Z",
  "details": {}
}
{
  "success": false,
  "error": "string",
  "timestamp": "2019-08-24T14:15:22Z",
  "details": {}
}
GET
/orders/{orderId}

Authorization

BearerAuth
AuthorizationBearer <token>

API key from the Tiquo dashboard (Settings > Developer > Admin API)

In: header

Path Parameters

orderId*string

Order number or document ID

Response Body

application/json

application/json

application/json

application/json

curl -X GET "https://api.tiquo.app/api/v1/orders/string"
{
  "success": true,
  "data": {
    "id": "string",
    "orderNumber": "string",
    "status": "draft",
    "paymentStatus": "pending",
    "source": "string",
    "channel": "string",
    "total": 0,
    "subtotal": 0,
    "tax": 0,
    "discount": 0,
    "discountName": "string",
    "serviceChargeAmount": 0,
    "serviceChargePercentage": 0,
    "serviceChargeRemoved": true,
    "payments": [
      {
        "id": "string",
        "method": "string",
        "provider": "stripe",
        "amount": 0,
        "currency": "GBP",
        "paymentIntentId": "string",
        "chargeId": "string",
        "cardBrand": "visa",
        "cardLast4": "4242",
        "walletType": "apple_pay",
        "paidAt": 0
      }
    ],
    "storeCredit": {
      "amount": 0,
      "currency": "string"
    },
    "tipAmount": 0,
    "currency": "string",
    "itemCount": 0,
    "customerId": "string",
    "customerName": "string",
    "customerEmail": "string",
    "staffId": "string",
    "staffName": "string",
    "locationId": "string",
    "locationName": "string",
    "sublocationId": "string",
    "sublocationName": "string",
    "covers": 0,
    "tableNumber": "string",
    "tableName": "string",
    "tables": [
      {
        "id": "string",
        "number": "string",
        "name": "string"
      }
    ],
    "refundAmount": 0,
    "createdAt": 0,
    "updatedAt": 0,
    "paymentMethod": "string",
    "shipping": 0,
    "items": [
      {
        "id": "line_1",
        "type": "product",
        "name": "House Red",
        "quantity": 2,
        "unitPrice": 9.5,
        "subtotal": 19,
        "tax": 3.17,
        "taxRate": 20,
        "discount": 0,
        "total": 19,
        "sku": "HOUSE-RED",
        "productId": "k57a2b9x8c4d6e0f1g2h3j4k5m6n7p8q",
        "categoryName": "Wine / Red Wine",
        "reportingCategory": "Wine",
        "variant": {
          "id": "k97b3c0y9d5e7f1g2h3j4k5m6n7p8q9r",
          "name": "175ml"
        },
        "variants": [
          {
            "id": "k97b3c0y9d5e7f1g2h3j4k5m6n7p8q9r",
            "name": "175ml"
          }
        ],
        "category": {
          "id": "k17c4d1z0e6f8g2h3j4k5m6n7p8q9r0s",
          "name": "Wine"
        },
        "subcategory": {
          "id": "k27d5e2a1f7g9h3j4k5m6n7p8q9r0s1t",
          "name": "Red Wine"
        },
        "categoryPath": [
          {
            "id": "k17c4d1z0e6f8g2h3j4k5m6n7p8q9r0s",
            "name": "Wine"
          },
          {
            "id": "k27d5e2a1f7g9h3j4k5m6n7p8q9r0s1t",
            "name": "Red Wine"
          }
        ],
        "productStatus": "delivered"
      }
    ],
    "discountCodes": [
      "string"
    ],
    "customerNotes": "string",
    "refundReason": "string",
    "isLegacy": true,
    "creationMethod": "customer_online",
    "completedAt": 0,
    "cancelledAt": 0
  },
  "timestamp": "2019-08-24T14:15:22Z"
}
{
  "success": false,
  "error": "string",
  "timestamp": "2019-08-24T14:15:22Z",
  "details": {}
}
{
  "success": false,
  "error": "string",
  "timestamp": "2019-08-24T14:15:22Z",
  "details": {}
}
{
  "success": false,
  "error": "string",
  "timestamp": "2019-08-24T14:15:22Z",
  "details": {}
}
PATCH
/orders/{orderId}

Authorization

BearerAuth
AuthorizationBearer <token>

API key from the Tiquo dashboard (Settings > Developer > Admin API)

In: header

Path Parameters

orderId*string

Request Body

application/json

status*string
Value in"draft" | "pending" | "processing" | "completed" | "cancelled" | "refunded"

Response Body

application/json

application/json

application/json

application/json

application/json

application/json

curl -X PATCH "https://api.tiquo.app/api/v1/orders/string" \  -H "Content-Type: application/json" \  -d '{    "status": "draft"  }'
{
  "success": true,
  "data": {
    "id": "string",
    "orderNumber": "string",
    "status": "draft",
    "paymentStatus": "pending",
    "source": "string",
    "channel": "string",
    "total": 0,
    "subtotal": 0,
    "tax": 0,
    "discount": 0,
    "discountName": "string",
    "serviceChargeAmount": 0,
    "serviceChargePercentage": 0,
    "serviceChargeRemoved": true,
    "payments": [
      {
        "id": "string",
        "method": "string",
        "provider": "stripe",
        "amount": 0,
        "currency": "GBP",
        "paymentIntentId": "string",
        "chargeId": "string",
        "cardBrand": "visa",
        "cardLast4": "4242",
        "walletType": "apple_pay",
        "paidAt": 0
      }
    ],
    "storeCredit": {
      "amount": 0,
      "currency": "string"
    },
    "tipAmount": 0,
    "currency": "string",
    "itemCount": 0,
    "customerId": "string",
    "customerName": "string",
    "customerEmail": "string",
    "staffId": "string",
    "staffName": "string",
    "locationId": "string",
    "locationName": "string",
    "sublocationId": "string",
    "sublocationName": "string",
    "covers": 0,
    "tableNumber": "string",
    "tableName": "string",
    "tables": [
      {
        "id": "string",
        "number": "string",
        "name": "string"
      }
    ],
    "refundAmount": 0,
    "createdAt": 0,
    "updatedAt": 0,
    "paymentMethod": "string",
    "shipping": 0,
    "items": [
      {
        "id": "line_1",
        "type": "product",
        "name": "House Red",
        "quantity": 2,
        "unitPrice": 9.5,
        "subtotal": 19,
        "tax": 3.17,
        "taxRate": 20,
        "discount": 0,
        "total": 19,
        "sku": "HOUSE-RED",
        "productId": "k57a2b9x8c4d6e0f1g2h3j4k5m6n7p8q",
        "categoryName": "Wine / Red Wine",
        "reportingCategory": "Wine",
        "variant": {
          "id": "k97b3c0y9d5e7f1g2h3j4k5m6n7p8q9r",
          "name": "175ml"
        },
        "variants": [
          {
            "id": "k97b3c0y9d5e7f1g2h3j4k5m6n7p8q9r",
            "name": "175ml"
          }
        ],
        "category": {
          "id": "k17c4d1z0e6f8g2h3j4k5m6n7p8q9r0s",
          "name": "Wine"
        },
        "subcategory": {
          "id": "k27d5e2a1f7g9h3j4k5m6n7p8q9r0s1t",
          "name": "Red Wine"
        },
        "categoryPath": [
          {
            "id": "k17c4d1z0e6f8g2h3j4k5m6n7p8q9r0s",
            "name": "Wine"
          },
          {
            "id": "k27d5e2a1f7g9h3j4k5m6n7p8q9r0s1t",
            "name": "Red Wine"
          }
        ],
        "productStatus": "delivered"
      }
    ],
    "discountCodes": [
      "string"
    ],
    "customerNotes": "string",
    "refundReason": "string",
    "isLegacy": true,
    "creationMethod": "customer_online",
    "completedAt": 0,
    "cancelledAt": 0
  },
  "timestamp": "2019-08-24T14:15:22Z"
}
{
  "success": false,
  "error": "string",
  "timestamp": "2019-08-24T14:15:22Z",
  "details": {}
}
{
  "success": false,
  "error": "string",
  "timestamp": "2019-08-24T14:15:22Z",
  "details": {}
}
{
  "success": false,
  "error": "string",
  "timestamp": "2019-08-24T14:15:22Z",
  "details": {}
}
{
  "success": false,
  "error": "string",
  "timestamp": "2019-08-24T14:15:22Z",
  "details": {}
}
{
  "success": false,
  "error": "string",
  "timestamp": "2019-08-24T14:15:22Z",
  "details": {}
}
DELETE
/orders/{orderId}

Authorization

BearerAuth
AuthorizationBearer <token>

API key from the Tiquo dashboard (Settings > Developer > Admin API)

In: header

Path Parameters

orderId*string

Response Body

application/json

application/json

application/json

application/json

application/json

curl -X DELETE "https://api.tiquo.app/api/v1/orders/string"
Empty
{
  "success": false,
  "error": "string",
  "timestamp": "2019-08-24T14:15:22Z",
  "details": {}
}
{
  "success": false,
  "error": "string",
  "timestamp": "2019-08-24T14:15:22Z",
  "details": {}
}
{
  "success": false,
  "error": "string",
  "timestamp": "2019-08-24T14:15:22Z",
  "details": {}
}
{
  "success": false,
  "error": "string",
  "timestamp": "2019-08-24T14:15:22Z",
  "details": {}
}
{
  "success": false,
  "error": "string",
  "timestamp": "2019-08-24T14:15:22Z",
  "details": {}
}

List orders

GET /orders

Query parameters

ParameterTypeRequiredDescription
limitintegerNoPage size (1 to 100, default 50)
cursorstringNoPagination cursor from a previous response
includeItemsbooleanNotrue returns each order in the full Get order shape, with its lines. Without it, orders are summaries with no lines
updatedAfterstringNoISO 8601 date-time. Returns orders whose updatedAt is after this instant, oldest change first. Use it to pick up refunds, cancellations and other changes to earlier orders. Cannot be combined with search
dateFromstringNoISO 8601 date-time. Orders created at or after this instant (filters on createdAt)
dateTostringNoISO 8601 date-time. Orders created at or before this instant (filters on createdAt)
sublocationIdstringNoOnly orders from this sublocation, for example one restaurant
statusstringNoComma-separated list of statuses: draft, pending, processing, completed, cancelled, refunded, open_tab, lost_cart
paymentStatusstringNoComma-separated list of payment statuses, for example paid,refunded
sourcestringNoExact match on the order source, for example pos
channelstringNoExact match on the order channel
currencystringNoExact match on the currency, for example GBP
customerIdstringNoOnly orders for this customer
customerEmailstringNoOnly orders for this customer email address
searchstringNoFull-text search across order number and customer name/email
amountMinnumberNoMinimum order total
amountMaxnumberNoMaximum order total

Example request

curl "https://api.tiquo.app/api/v1/orders?status=completed&limit=25" \
  -H "Authorization: Bearer your_api_key_here"

Response

Without includeItems, each order is a summary:

{
  "success": true,
  "data": [
    {
      "id": "k1234567890abcdef",
      "orderNumber": "ORD-J98UBC",
      "status": "completed",
      "paymentStatus": "paid",
      "source": "pos",
      "channel": "in_person",
      "total": 84.50,
      "subtotal": 70.00,
      "tax": 14.00,
      "discount": 0,
      "serviceChargeAmount": 7.00,
      "serviceChargePercentage": 10,
      "serviceChargeRemoved": false,
      "payments": [
        { "id": "pay_1", "method": "card", "provider": "stripe", "amount": 84.50, "currency": "GBP", "cardBrand": "visa", "cardLast4": "4242", "paidAt": 1640995300000 }
      ],
      "tipAmount": 0.50,
      "currency": "GBP",
      "itemCount": 3,
      "customerName": "John Doe",
      "customerEmail": "john@example.com",
      "customerId": "k1234567890abcdef",
      "staffId": "user_2abc",
      "staffName": "Sam Taylor",
      "locationId": "k17c4d1z0e6f8g2h",
      "locationName": "Corner Shop",
      "sublocationId": "pd79yhjm67a7rnfp",
      "sublocationName": "Restaurant",
      "covers": 2,
      "tableNumber": "12",
      "tableName": "Window 12",
      "tables": [{ "id": "k27d5e2a1f7g9h3j", "number": "12", "name": "Window 12" }],
      "refundAmount": 0,
      "createdAt": 1640995200000,
      "updatedAt": 1640995300000
    }
  ],
  "pagination": {
    "hasMore": true,
    "nextCursor": "abc123...",
    "pageSize": 25
  },
  "timestamp": "2025-01-15T10:30:00.000Z"
}

With includeItems=true, each entry in data has the same fields as Get order, including items.

Syncing sales into another system

Stock, accounting and back-office systems can keep their sales in step with Tiquo by polling the list:

  1. Request GET /orders?includeItems=true&updatedAfter=<watermark>, adding sublocationId to pull one site at a time.
  2. Follow nextCursor until hasMore is false, saving each order by its id.
  3. Set the watermark to the latest updatedAt you received and repeat on your polling schedule.

Refunds and cancellations update the original order rather than creating a new one: the order's status, paymentStatus, refundAmount and refundReason change and its updatedAt moves forward, so the next updatedAfter poll returns it again. Order webhooks can replace or trigger the polling.

Each API key allows 1,000 requests per hour by default, and each page holds up to 100 orders.

Get order

GET /orders/{orderId}

Path parameters

ParameterTypeRequiredDescription
orderIdstringYesA document ID or order number (e.g. ORD-J98UBC)

Example request

curl "https://api.tiquo.app/api/v1/orders/ORD-J98UBC" \
  -H "Authorization: Bearer your_api_key_here"

Response

The order has every field of the list summary above, plus its lines and the fields below:

{
  "success": true,
  "data": {
    "id": "k1234567890abcdef",
    "orderNumber": "ORD-J98UBC",
    "status": "completed",
    "paymentStatus": "paid",
    "paymentMethod": "card",
    "source": "pos",
    "channel": "in_person",
    "subtotal": 70.00,
    "tax": 14.00,
    "discount": 0,
    "shipping": 0,
    "total": 84.50,
    "tipAmount": 0.50,
    "currency": "GBP",
    "locationId": "k17c4d1z0e6f8g2h",
    "sublocationId": "pd79yhjm67a7rnfp",
    "sublocationName": "Restaurant",
    "items": [
      {
        "id": "item_1",
        "type": "product",
        "name": "Espresso",
        "quantity": 2,
        "unitPrice": 3.50,
        "subtotal": 7.00,
        "tax": 1.40,
        "taxRate": 20,
        "discount": 0,
        "total": 8.40,
        "sku": "SKU-001",
        "productId": "k1234567890abcdef",
        "categoryName": "Drinks / Hot Drinks",
        "reportingCategory": "Beverage",
        "variant": { "id": "k97b3c0y9d5e7f1g", "name": "Double" },
        "variants": [{ "id": "k97b3c0y9d5e7f1g", "name": "Double" }],
        "category": { "id": "k17c4d1z0e6f8g2h", "name": "Drinks" },
        "subcategory": { "id": "k27d5e2a1f7g9h3j", "name": "Hot Drinks" },
        "categoryPath": [
          { "id": "k17c4d1z0e6f8g2h", "name": "Drinks" },
          { "id": "k27d5e2a1f7g9h3j", "name": "Hot Drinks" }
        ],
        "bookingId": null,
        "productStatus": "delivered",
        "bookingStatus": null,
        "specialInstructions": null,
        "orderStageName": "Served"
      }
    ],
    "discountCodes": [],
    "customerNotes": null,
    "refundAmount": 0,
    "refundReason": null,
    "isLegacy": false,
    "creationMethod": "pos",
    "createdAt": 1640995200000,
    "updatedAt": 1640995300000,
    "completedAt": 1640995300000,
    "cancelledAt": null
  },
  "timestamp": "2025-01-15T10:30:00.000Z"
}

Order fields

FieldDescription
locationId, locationNameThe business location (site) the order belongs to. Use the ID, not the name, to tell sites apart
sublocationId, sublocationNameThe sublocation within the site, for example the restaurant or bar
paymentsOne entry per successful payment, so split tenders appear separately: method, provider, amount, currency, paidAt, and the card and provider identifiers where they apply
serviceChargeAmount, serviceChargePercentage, serviceChargeRemovedService charge on the order. It is not split across the lines
covers, tableNumber, tableName, tablesCovers and the table or tables used, including combined tables
staffId, staffNameThe staff member who created the order, with their name as it was then
refundAmount, refundReasonTotal refunded so far on this order, and the reason given
createdAt, updatedAt, completedAt, cancelledAtTimes in milliseconds since the Unix epoch

Line fields

FieldDescription
skuThe product's SKU
taxRateTax rate on the line as a percentage, for example 20 for 20% VAT. tax is the tax amount
categoryNameThe category recorded when the item was sold. For a product in a subcategory it is the whole path from the top level, joined with /, for example Drinks / Hot Drinks
category, subcategory, categoryPathThe product's current top-level category, its own category when that is a subcategory, and the full path, each with a stable ID. Null for non-product lines
reportingCategoryThe reporting category recorded when the item was sold. See Reporting categories
variant, variantsThe variants chosen on a product line, with stable IDs
productStatus, bookingStatusFulfilment status of a product line, or the current status of a booked line's booking

Reporting categories

The reporting category groups sales for stock and accounting, separately from the category the item appears under on the till. It maps directly onto reporting groups such as a statistic group in another system.

  • It is set in Tiquo on a product category, under Reporting category when adding or editing the category. Subcategories without their own use their parent's.
  • A product can override its category's reporting category in the product editor.
  • It is recorded on the line when the item is sold, so later changes do not alter past sales. Lines sold before a reporting category was set report the product's current one.
  • When no reporting category is set for a product or any of its categories, reportingCategory equals categoryName.

Order webhooks

Webhooks send order events to your HTTPS endpoint as they happen. An organization admin adds the endpoint and chooses its events in Settings → Webhooks, where the signing secret is shown.

Events

EventSent when
order.createdAn order is created
order.updatedAn order changes
order.completedAn order is completed
order.cancelledAn order is cancelled
order.refundedAn order is refunded in full or in part
payment.succeededA payment succeeds
payment.failedA payment fails
payment.refundedA payment is refunded in full
payment.partially_refundedA payment is partly refunded

Payload

Each delivery is a POST with a JSON body:

{
  "id": "evt_8f2c1a",
  "type": "order.refunded",
  "created": "2026-08-13T17:54:00.000Z",
  "data": {
    "orderId": "k1234567890abcdef",
    "orderNumber": "ORD-J98UBC",
    "status": "refunded",
    "paymentStatus": "refunded",
    "total": 100,
    "currency": "GBP",
    "updatedAt": "2026-08-13T17:54:00.000Z",
    "refundAmount": 20,
    "refundDeltaAmount": 10,
    "refundReason": "Customer request",
    "refundedAt": "2026-08-13T17:54:00.000Z"
  }
}

refundAmount is the total refunded on the order so far and refundDeltaAmount the amount of this refund. The refund fields appear only on refund events. To get the order's lines, request GET /orders/{orderId} with the orderId from the event.

Headers and signature

HeaderValue
tiquo-eventThe event type, for example order.refunded
tiquo-event-idThe event id, the same on every retry of that event
tiquo-webhook-idThe ID of the webhook endpoint
tiquo-signaturet=<timestamp>,v1=<signature>

<timestamp> is in seconds since the Unix epoch, and <signature> is the hex HMAC-SHA256 of <timestamp>.<raw request body>, keyed with the endpoint's signing secret. Recompute it from the raw body before trusting a delivery:

import { createHmac, timingSafeEqual } from "node:crypto";

function isValidTiquoSignature(header, rawBody, secret) {
  const parts = Object.fromEntries(header.split(",").map((part) => part.split("=")));
  const expected = createHmac("sha256", secret)
    .update(`${parts.t}.${rawBody}`)
    .digest("hex");
  return (
    expected.length === parts.v1?.length &&
    timingSafeEqual(Buffer.from(expected), Buffer.from(parts.v1))
  );
}

Retries

A delivery succeeds when your endpoint replies with a 2xx status within 10 seconds. Otherwise Tiquo tries again after 30 seconds, then 60, 120 and 240 seconds: five attempts in all. Use tiquo-event-id to ignore an event you have already processed.

Order status values

StatusDescription
draftCreated but not yet finalised. Does not count toward reporting.
pendingSubmitted, awaiting processing.
processingCurrently being processed.
completedFully paid and fulfilled.
cancelledCancelled before completion.
refundedRefunded after payment was taken.
open_tabItems can still be added; payment taken later.
lost_cartCustomer started but did not complete checkout.

Error responses

400 Bad Request

{
  "success": false,
  "error": "dateFrom, dateTo and updatedAfter must be valid ISO 8601 dates",
  "timestamp": "2025-01-15T10:30:00.000Z"
}

404 Not Found

{
  "success": false,
  "error": "Order not found with identifier: ORD-INVALID",
  "timestamp": "2025-01-15T10:30:00.000Z"
}

401 Unauthorized

{
  "success": false,
  "error": "Missing or invalid API key",
  "timestamp": "2025-01-15T10:30:00.000Z"
}