TrellisDevelopers

Modifier Groups

GET
/catalog/modifier-groups

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/catalog/modifier-groups" \  -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"
{  "modifierGroups": [    {      "id": "string",      "title": "string",      "posLabel": "string",      "buttonColor": {        "light": "string",        "dark": "string"      },      "minSelections": 0,      "maxSelections": 0,      "sortOrder": 0,      "modifierProductIds": [        "string"      ],      "requiredMode": "REQUIRED",      "behavior": "required",      "pricingStrategy": "no_charge",      "groupPrice": 0,      "sizePrices": [        {          "sizeName": "string",          "price": 0,          "modifierPrices": [            {              "modifierProductId": "string",              "price": 0            }          ]        }      ],      "sequencePrices": [        {          "ordinal": 1,          "price": 0        }      ],      "sizeSequencePrices": [        {          "sizeName": "string",          "sequencePrices": [            {              "ordinal": 1,              "price": 0            }          ]        }      ],      "defaultModifierProductIds": [        "string"      ],      "allowDuplicates": true,      "maxDuplicateQuantity": 1,      "perModifierDuplicateLimits": [        {          "modifierProductId": "string",          "allowDuplicates": true,          "maxQuantity": 1        }      ],      "preModifierGroupId": "string",      "displayOrder": "listed",      "visibility": {        "pos": true,        "online": true,        "kiosk": true,        "partners": true      },      "prepMode": "integral",      "prepTimeSeconds": 0,      "defaultModifierPricingMode": "charge",      "enableSubstitutionPricing": true,      "sizeSelectionMode": "inherit_parent",      "portionIds": [        "string"      ],      "modifierItemReferences": [        {          "productId": "string",          "overrideName": "string",          "overrideBasePrice": 0,          "pricingStrategy": "base",          "menuPrices": [            {              "menuId": "string",              "price": 0            }          ],          "locationPrices": [            {              "locationId": "string",              "price": 0            }          ],          "sizePrices": [            {              "sizeName": "string",              "price": 0            }          ],          "timePrices": [            {              "days": [                "mon"              ],              "startTime": "string",              "endTime": "string",              "price": 0            }          ]        }      ],      "routing": {        "prepStationIds": [          "string"        ],        "assemblyLineId": "string",        "modifierRouting": "inherit",        "ticketDestination": "prep_only"      },      "basedOnMenuGroupId": "string",      "metadata": {        "property1": null,        "property2": null      }    }  ],  "page": {    "total": 0  }}
POST
/catalog/modifier-groups

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/catalog/modifier-groups" \  -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 '{    "title": "string",    "minSelections": 0,    "maxSelections": 0,    "modifierProductIds": [      "string"    ]  }'
{  "id": "string",  "title": "string",  "posLabel": "string",  "buttonColor": {    "light": "string",    "dark": "string"  },  "minSelections": 0,  "maxSelections": 0,  "sortOrder": 0,  "modifierProductIds": [    "string"  ],  "requiredMode": "REQUIRED",  "behavior": "required",  "pricingStrategy": "no_charge",  "groupPrice": 0,  "sizePrices": [    {      "sizeName": "string",      "price": 0,      "modifierPrices": [        {          "modifierProductId": "string",          "price": 0        }      ]    }  ],  "sequencePrices": [    {      "ordinal": 1,      "price": 0    }  ],  "sizeSequencePrices": [    {      "sizeName": "string",      "sequencePrices": [        {          "ordinal": 1,          "price": 0        }      ]    }  ],  "defaultModifierProductIds": [    "string"  ],  "allowDuplicates": true,  "maxDuplicateQuantity": 1,  "perModifierDuplicateLimits": [    {      "modifierProductId": "string",      "allowDuplicates": true,      "maxQuantity": 1    }  ],  "preModifierGroupId": "string",  "displayOrder": "listed",  "visibility": {    "pos": true,    "online": true,    "kiosk": true,    "partners": true  },  "prepMode": "integral",  "prepTimeSeconds": 0,  "defaultModifierPricingMode": "charge",  "enableSubstitutionPricing": true,  "sizeSelectionMode": "inherit_parent",  "portionIds": [    "string"  ],  "modifierItemReferences": [    {      "productId": "string",      "overrideName": "string",      "overrideBasePrice": 0,      "pricingStrategy": "base",      "menuPrices": [        {          "menuId": "string",          "price": 0        }      ],      "locationPrices": [        {          "locationId": "string",          "price": 0        }      ],      "sizePrices": [        {          "sizeName": "string",          "price": 0        }      ],      "timePrices": [        {          "days": [            "mon"          ],          "startTime": "string",          "endTime": "string",          "price": 0        }      ]    }  ],  "routing": {    "prepStationIds": [      "string"    ],    "assemblyLineId": "string",    "modifierRouting": "inherit",    "ticketDestination": "prep_only"  },  "basedOnMenuGroupId": "string",  "metadata": {    "property1": null,    "property2": null  }}
PUT
/catalog/modifier-groups/{id}

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 PUT "https://example.com/catalog/modifier-groups/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" \  -H "Content-Type: application/json" \  -d '{}'
{  "id": "string",  "title": "string",  "posLabel": "string",  "buttonColor": {    "light": "string",    "dark": "string"  },  "minSelections": 0,  "maxSelections": 0,  "sortOrder": 0,  "modifierProductIds": [    "string"  ],  "requiredMode": "REQUIRED",  "behavior": "required",  "pricingStrategy": "no_charge",  "groupPrice": 0,  "sizePrices": [    {      "sizeName": "string",      "price": 0,      "modifierPrices": [        {          "modifierProductId": "string",          "price": 0        }      ]    }  ],  "sequencePrices": [    {      "ordinal": 1,      "price": 0    }  ],  "sizeSequencePrices": [    {      "sizeName": "string",      "sequencePrices": [        {          "ordinal": 1,          "price": 0        }      ]    }  ],  "defaultModifierProductIds": [    "string"  ],  "allowDuplicates": true,  "maxDuplicateQuantity": 1,  "perModifierDuplicateLimits": [    {      "modifierProductId": "string",      "allowDuplicates": true,      "maxQuantity": 1    }  ],  "preModifierGroupId": "string",  "displayOrder": "listed",  "visibility": {    "pos": true,    "online": true,    "kiosk": true,    "partners": true  },  "prepMode": "integral",  "prepTimeSeconds": 0,  "defaultModifierPricingMode": "charge",  "enableSubstitutionPricing": true,  "sizeSelectionMode": "inherit_parent",  "portionIds": [    "string"  ],  "modifierItemReferences": [    {      "productId": "string",      "overrideName": "string",      "overrideBasePrice": 0,      "pricingStrategy": "base",      "menuPrices": [        {          "menuId": "string",          "price": 0        }      ],      "locationPrices": [        {          "locationId": "string",          "price": 0        }      ],      "sizePrices": [        {          "sizeName": "string",          "price": 0        }      ],      "timePrices": [        {          "days": [            "mon"          ],          "startTime": "string",          "endTime": "string",          "price": 0        }      ]    }  ],  "routing": {    "prepStationIds": [      "string"    ],    "assemblyLineId": "string",    "modifierRouting": "inherit",    "ticketDestination": "prep_only"  },  "basedOnMenuGroupId": "string",  "metadata": {    "property1": null,    "property2": null  }}
DELETE
/catalog/modifier-groups/{id}

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.

Response Body

curl -X DELETE "https://example.com/catalog/modifier-groups/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"
Empty