TrellisDevelopers

Workspace

GET
/tables/v1/meta

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.

Response Body

application/json

curl -X GET "https://example.com/tables/v1/meta" \  -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"
{  "apiVersion": "v1",  "databaseSchema": "tables",  "tenantId": "string",  "locationId": "string",  "tenant": {    "slug": "string",    "name": "string",    "timezone": "string"  },  "location": {    "id": "string",    "name": "string",    "timezone": "string"  },  "locations": [    {      "id": "string",      "name": "string",      "timezone": "string"    }  ],  "businesses": [    {      "tenantSlug": "string",      "tenantName": "string",      "defaultLocation": {        "id": "string",        "name": "string",        "timezone": "string"      }    }  ],  "staffUser": {    "id": "string",    "email": "string",    "firstName": "string",    "lastName": "string",    "phoneCountryCode": "string",    "phoneNumber": "string",    "postalCode": "string",    "updatedAt": "2019-08-24T14:15:22Z",    "roles": [      "string"    ],    "dashboardRole": "owner"  },  "dashboardSections": [    "reservations"  ],  "locationRequiredForOperationalCommands": true,  "capabilities": [    "string"  ],  "products": {    "tablesReservations": {      "status": "trialing",      "source": "string",      "startsAt": "2019-08-24T14:15:22Z",      "endsAt": "2019-08-24T14:15:22Z"    },    "trellisPos": true  },  "dependencies": {    "postgres": true,    "trellisPayments": true,    "trellisOrders": true,    "trellisCustomers": true,    "trellisRestaurantFloor": true  }}
PATCH
/tables/v1/me

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 PATCH "https://example.com/tables/v1/me" \  -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 '{    "expectedUpdatedAt": "2019-08-24T14:15:22Z",    "firstName": "string",    "lastName": "string"  }'
{  "id": "string",  "email": "string",  "firstName": "string",  "lastName": "string",  "phoneCountryCode": "string",  "phoneNumber": "string",  "postalCode": "string",  "updatedAt": "2019-08-24T14:15:22Z"}
GET
/tables/v1/reports/reservation-transaction-events

Query Parameters

dateFrom*string
Match^\d{4}-\d{2}-\d{2}$
dateTo*string
Match^\d{4}-\d{2}-\d{2}$

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.

Response Body

application/json

curl -X GET "https://example.com/tables/v1/reports/reservation-transaction-events?dateFrom=string&dateTo=string" \  -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"
{  "data": [    {      "id": "string",      "eventType": "string",      "eventDetail": "string",      "amount": 0,      "currency": "string",      "occurredAt": "string",      "provider": "string",      "providerObjectId": "string",      "parentProviderObjectId": "string",      "reason": "string",      "actorType": "string",      "actorStaffUserId": "string",      "reservationId": "string",      "confirmationCode": "string",      "businessDate": "string",      "confirmedAt": "string",      "startsAt": "string",      "partySize": 0,      "bookingMethod": "string",      "unitAmount": 0,      "subtotalAmount": 0,      "taxAmount": 0,      "totalAmount": 0,      "eventSubtotalAmount": 0,      "eventTaxAmount": 0,      "experienceVersionId": "string",      "guestName": "string",      "guestEmail": "string",      "guestPhone": "string",      "purchaserName": "string",      "purchaserEmail": "string",      "purchaserPhone": "string",      "trellisOrderId": "string"    }  ]}