TrellisDevelopers

Check control

POST
/restaurant/server-control/checks/transfer

Header Parameters

x-tenant-id?string

Selects the tenant by id. When both tenant headers are omitted, the server falls back to the configured default tenant slug.

x-tenant-slug?string

Selects the tenant by slug. Use this when you know the tenant slug instead of the tenant id.

x-location-id?string

Adds a location scope to the request for location-aware reads, writes, and audit entries.

x-auth-provider?"hexclave"

Test-only Hexclave provider identifier used with x-auth-user-id when trusted identity headers are explicitly enabled. Production clients must use a Hexclave bearer token.

Value in

  • "hexclave"
x-auth-user-id?string

Temporary auth subject used to resolve the acting staff user through the staff auth identity mapping.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/restaurant/server-control/checks/transfer" \  -H "x-tenant-id: tenant-local" \  -H "x-tenant-slug: trellis-local" \  -H "x-location-id: loc-tasting-room" \  -H "x-auth-provider: hexclave" \  -H "x-auth-user-id: user_abc123" \  -H "Content-Type: application/json" \  -d '{    "orderIds": [      "string"    ],    "targetStaffUserId": "string"  }'
{  "transferredChecks": [    {      "id": "string",      "orderNumber": 0,      "locationId": "string",      "assignedStaffUserId": "string",      "status": "draft",      "fulfillmentMode": "dine_in",      "tableId": "string",      "sectionId": "string",      "serviceAreaId": "string",      "tableLabel": "string",      "seatCount": 1,      "note": "string",      "lineItems": [        {          "id": "string",          "lineType": "catalog",          "productId": "string",          "title": "string",          "quantity": 1,          "seatId": "string",          "seatNumber": 1,          "course": "string"        }      ],      "subtotal": 0,      "discountTotal": 0,      "taxTotal": 0,      "tipTotal": 0,      "total": 0,      "balanceDue": 0,      "submittedAt": "2019-08-24T14:15:22Z",      "createdAt": "2019-08-24T14:15:22Z",      "updatedAt": "2019-08-24T14:15:22Z"    }  ],  "transfers": [    {      "id": "string",      "orderId": "string",      "sourceStaff": {        "id": "string",        "label": "string"      },      "targetStaff": {        "id": "string",        "label": "string"      },      "mode": "bulk",      "resendToKitchen": true,      "reopenedOrder": true,      "transferredAt": "2019-08-24T14:15:22Z",      "createdAt": "2019-08-24T14:15:22Z",      "updatedAt": "2019-08-24T14:15:22Z"    }  ]}
POST
/restaurant/server-control/checks/{id}/reopen

Path Parameters

id*string
Length1 <= length

Header Parameters

x-tenant-id?string

Selects the tenant by id. When both tenant headers are omitted, the server falls back to the configured default tenant slug.

x-tenant-slug?string

Selects the tenant by slug. Use this when you know the tenant slug instead of the tenant id.

x-location-id?string

Adds a location scope to the request for location-aware reads, writes, and audit entries.

x-auth-provider?"hexclave"

Test-only Hexclave provider identifier used with x-auth-user-id when trusted identity headers are explicitly enabled. Production clients must use a Hexclave bearer token.

Value in

  • "hexclave"
x-auth-user-id?string

Temporary auth subject used to resolve the acting staff user through the staff auth identity mapping.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/restaurant/server-control/checks/string/reopen" \  -H "x-tenant-id: tenant-local" \  -H "x-tenant-slug: trellis-local" \  -H "x-location-id: loc-tasting-room" \  -H "x-auth-provider: hexclave" \  -H "x-auth-user-id: user_abc123" \  -H "Content-Type: application/json" \  -d '{}'
{  "order": {    "id": "string",    "orderNumber": 0,    "locationId": "string",    "assignedStaffUserId": "string",    "status": "draft",    "fulfillmentMode": "dine_in",    "tableId": "string",    "sectionId": "string",    "serviceAreaId": "string",    "tableLabel": "string",    "seatCount": 1,    "note": "string",    "lineItems": [      {        "id": "string",        "lineType": "catalog",        "productId": "string",        "title": "string",        "quantity": 1,        "seatId": "string",        "seatNumber": 1,        "course": "string"      }    ],    "subtotal": 0,    "discountTotal": 0,    "taxTotal": 0,    "tipTotal": 0,    "total": 0,    "balanceDue": 0,    "submittedAt": "2019-08-24T14:15:22Z",    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z"  },  "reopen": {    "id": "string",    "orderId": "string",    "previousStatus": "string",    "reopenedStatus": "string",    "reason": "string",    "authorization": {      "mode": "disabled",      "overrideStaffUserId": "string",      "overrideRoles": [        "string"      ]    },    "reopenedAt": "2019-08-24T14:15:22Z",    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z"  },  "kitchenUpdate": {    "ticketIds": [      "string"    ],    "itemIds": [      "string"    ],    "totalItems": 0  }}
POST
/restaurant/server-control/checks/{id}/move-seats

Path Parameters

id*string
Length1 <= length

Header Parameters

x-tenant-id?string

Selects the tenant by id. When both tenant headers are omitted, the server falls back to the configured default tenant slug.

x-tenant-slug?string

Selects the tenant by slug. Use this when you know the tenant slug instead of the tenant id.

x-location-id?string

Adds a location scope to the request for location-aware reads, writes, and audit entries.

x-auth-provider?"hexclave"

Test-only Hexclave provider identifier used with x-auth-user-id when trusted identity headers are explicitly enabled. Production clients must use a Hexclave bearer token.

Value in

  • "hexclave"
x-auth-user-id?string

Temporary auth subject used to resolve the acting staff user through the staff auth identity mapping.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/restaurant/server-control/checks/string/move-seats" \  -H "x-tenant-id: tenant-local" \  -H "x-tenant-slug: trellis-local" \  -H "x-location-id: loc-tasting-room" \  -H "x-auth-provider: hexclave" \  -H "x-auth-user-id: user_abc123" \  -H "Content-Type: application/json" \  -d '{    "lineItemMoves": [      {        "lineItemId": "string"      }    ]  }'
{  "order": {    "id": "string",    "orderNumber": 0,    "locationId": "string",    "assignedStaffUserId": "string",    "status": "draft",    "fulfillmentMode": "dine_in",    "tableId": "string",    "sectionId": "string",    "serviceAreaId": "string",    "tableLabel": "string",    "seatCount": 1,    "note": "string",    "lineItems": [      {        "id": "string",        "lineType": "catalog",        "productId": "string",        "title": "string",        "quantity": 1,        "seatId": "string",        "seatNumber": 1,        "course": "string"      }    ],    "subtotal": 0,    "discountTotal": 0,    "taxTotal": 0,    "tipTotal": 0,    "total": 0,    "balanceDue": 0,    "submittedAt": "2019-08-24T14:15:22Z",    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z"  }}
POST
/restaurant/server-control/checks/{id}/guest-recovery

Path Parameters

id*string
Length1 <= length

Header Parameters

x-tenant-id?string

Selects the tenant by id. When both tenant headers are omitted, the server falls back to the configured default tenant slug.

x-tenant-slug?string

Selects the tenant by slug. Use this when you know the tenant slug instead of the tenant id.

x-location-id?string

Adds a location scope to the request for location-aware reads, writes, and audit entries.

x-auth-provider?"hexclave"

Test-only Hexclave provider identifier used with x-auth-user-id when trusted identity headers are explicitly enabled. Production clients must use a Hexclave bearer token.

Value in

  • "hexclave"
x-auth-user-id?string

Temporary auth subject used to resolve the acting staff user through the staff auth identity mapping.

Request Body

application/json

TypeScript Definitions

Use the request body type in TypeScript.

Response Body

application/json

curl -X POST "https://example.com/restaurant/server-control/checks/string/guest-recovery" \  -H "x-tenant-id: tenant-local" \  -H "x-tenant-slug: trellis-local" \  -H "x-location-id: loc-tasting-room" \  -H "x-auth-provider: hexclave" \  -H "x-auth-user-id: user_abc123" \  -H "Content-Type: application/json" \  -d '{    "action": "resend",    "reason": "string"  }'
{  "order": {    "id": "string",    "orderNumber": 0,    "locationId": "string",    "assignedStaffUserId": "string",    "status": "draft",    "fulfillmentMode": "dine_in",    "tableId": "string",    "sectionId": "string",    "serviceAreaId": "string",    "tableLabel": "string",    "seatCount": 1,    "note": "string",    "lineItems": [      {        "id": "string",        "lineType": "catalog",        "productId": "string",        "title": "string",        "quantity": 1,        "seatId": "string",        "seatNumber": 1,        "course": "string"      }    ],    "subtotal": 0,    "discountTotal": 0,    "taxTotal": 0,    "tipTotal": 0,    "total": 0,    "balanceDue": 0,    "submittedAt": "2019-08-24T14:15:22Z",    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z"  },  "recovery": {    "id": "string",    "orderId": "string",    "action": "resend",    "reason": "string",    "issueNote": "string",    "lineItemIds": [      "string"    ],    "refiredTicketIds": [      "string"    ],    "refiredItemIds": [      "string"    ],    "reopenedOrder": true,    "compAmount": 0,    "compScope": "check",    "authorization": {      "mode": "disabled",      "overrideStaffUserId": "string",      "overrideRoles": [        "string"      ]    },    "createdAt": "2019-08-24T14:15:22Z",    "updatedAt": "2019-08-24T14:15:22Z"  },  "kitchenUpdate": {    "ticketIds": [      "string"    ],    "itemIds": [      "string"    ],    "totalItems": 0  }}