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
| Method | Endpoint | Description |
|---|---|---|
GET | /orders | List orders with filtering and pagination, optionally with their lines |
POST | /orders | Create 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_hereTest 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.
Authorization
BearerAuth API key from the Tiquo dashboard (Settings > Developer > Admin API)
In: header
Query Parameters
501 <= value <= 100Search by order number, customer name/email
Comma-separated: draft,pending,processing,completed,cancelled,refunded,open_tab
Comma-separated payment statuses
emailFilter by order createdAt, inclusive
datedate0 <= valueFilter by order createdAt, inclusive
0 <= valueReturn 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.
date-timeWhen 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.
falseResponse 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": {}
}Authorization
BearerAuth API key from the Tiquo dashboard (Settings > Developer > Admin API)
In: header
Request Body
application/json
"admin""pos" | "online" | "admin""zapier""eat_in" | "take_away""draft""draft" | "pending" | "processing" | "completed" | "cancelled" | "refunded" | "open_tab" | "lost_cart"1 <= itemsResponse 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": {}
}Authorization
BearerAuth API key from the Tiquo dashboard (Settings > Developer > Admin API)
In: header
Path Parameters
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": {}
}Authorization
BearerAuth API key from the Tiquo dashboard (Settings > Developer > Admin API)
In: header
Path Parameters
Request Body
application/json
"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": {}
}Authorization
BearerAuth API key from the Tiquo dashboard (Settings > Developer > Admin API)
In: header
Path Parameters
Response Body
application/json
application/json
application/json
application/json
application/json
curl -X DELETE "https://api.tiquo.app/api/v1/orders/string"{
"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 /ordersQuery parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
limit | integer | No | Page size (1 to 100, default 50) |
cursor | string | No | Pagination cursor from a previous response |
includeItems | boolean | No | true returns each order in the full Get order shape, with its lines. Without it, orders are summaries with no lines |
updatedAfter | string | No | ISO 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 |
dateFrom | string | No | ISO 8601 date-time. Orders created at or after this instant (filters on createdAt) |
dateTo | string | No | ISO 8601 date-time. Orders created at or before this instant (filters on createdAt) |
sublocationId | string | No | Only orders from this sublocation, for example one restaurant |
status | string | No | Comma-separated list of statuses: draft, pending, processing, completed, cancelled, refunded, open_tab, lost_cart |
paymentStatus | string | No | Comma-separated list of payment statuses, for example paid,refunded |
source | string | No | Exact match on the order source, for example pos |
channel | string | No | Exact match on the order channel |
currency | string | No | Exact match on the currency, for example GBP |
customerId | string | No | Only orders for this customer |
customerEmail | string | No | Only orders for this customer email address |
search | string | No | Full-text search across order number and customer name/email |
amountMin | number | No | Minimum order total |
amountMax | number | No | Maximum 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:
- Request
GET /orders?includeItems=true&updatedAfter=<watermark>, addingsublocationIdto pull one site at a time. - Follow
nextCursoruntilhasMoreisfalse, saving each order by itsid. - Set the watermark to the latest
updatedAtyou 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
| Parameter | Type | Required | Description |
|---|---|---|---|
orderId | string | Yes | A 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
| Field | Description |
|---|---|
locationId, locationName | The business location (site) the order belongs to. Use the ID, not the name, to tell sites apart |
sublocationId, sublocationName | The sublocation within the site, for example the restaurant or bar |
payments | One 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, serviceChargeRemoved | Service charge on the order. It is not split across the lines |
covers, tableNumber, tableName, tables | Covers and the table or tables used, including combined tables |
staffId, staffName | The staff member who created the order, with their name as it was then |
refundAmount, refundReason | Total refunded so far on this order, and the reason given |
createdAt, updatedAt, completedAt, cancelledAt | Times in milliseconds since the Unix epoch |
Line fields
| Field | Description |
|---|---|
sku | The product's SKU |
taxRate | Tax rate on the line as a percentage, for example 20 for 20% VAT. tax is the tax amount |
categoryName | The 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, categoryPath | The 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 |
reportingCategory | The reporting category recorded when the item was sold. See Reporting categories |
variant, variants | The variants chosen on a product line, with stable IDs |
productStatus, bookingStatus | Fulfilment 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,
reportingCategoryequalscategoryName.
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
| Event | Sent when |
|---|---|
order.created | An order is created |
order.updated | An order changes |
order.completed | An order is completed |
order.cancelled | An order is cancelled |
order.refunded | An order is refunded in full or in part |
payment.succeeded | A payment succeeds |
payment.failed | A payment fails |
payment.refunded | A payment is refunded in full |
payment.partially_refunded | A 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
| Header | Value |
|---|---|
tiquo-event | The event type, for example order.refunded |
tiquo-event-id | The event id, the same on every retry of that event |
tiquo-webhook-id | The ID of the webhook endpoint |
tiquo-signature | t=<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
| Status | Description |
|---|---|
draft | Created but not yet finalised. Does not count toward reporting. |
pending | Submitted, awaiting processing. |
processing | Currently being processed. |
completed | Fully paid and fulfilled. |
cancelled | Cancelled before completion. |
refunded | Refunded after payment was taken. |
open_tab | Items can still be added; payment taken later. |
lost_cart | Customer 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"
}