Condiment Prefixes
You can enable condiment prefixes by including the following header and value the request:
Simphony-Features:enable-condiment-prefix
The following example shows prefixes in a POST/checks
request:
"menuItems": [
{
"menuItemId": 152,
"quantity": 2,
"seat": 2,
"condiments": [
{
"condimentId": 1011,
"definitionSequence": 1,
"quantity": 1,
"prefixes": [
{
"prefixId": 10001
}
]
}
]
}
]
If enable-condiment-prefix
is not included in the
Simphony-Features
header, prefixes are ignored and condiments are
not updated to indicate they are a default.
The following code shows a sample response:
"menuItems": [
{
"menuItemId": 152,
"definitionSequence": 1,
"name": "Pretzel Baconator (a la carte)",
"quantity": 1,
"unitPrice": 10.0000,
"priceSequence": 1,
"total": 10.0000,
"seat": 0,
"surcharge": 0,
"condiments": [
{
"condimentId": 1011,
"definitionSequence": 1,
"name": "American Cheese",
"quantity": 1,
"unitPrice": 0,
"priceSequence": 1,
"total": 0,
"seat": 0,
"surcharge": 0,
"isDefault": false,
"atDefaultSetting": false
}
If enable-condiment-prefix
is included in the header, prefixes are
processed and condiments are updated to indicate their default status.
The following code shows a sample response:
"menuItems": [
{
"menuItemId": 152,
"definitionSequence": 1,
"name": "Pretzel Baconator (a la carte)",
"quantity": 1,
"unitPrice": 10.0000,
"priceSequence": 1,
"total": 10.0000,
"seat": 0,
"surcharge": 0,
"condiments": [
{
"condimentId": 1011,
"definitionSequence": 1,
"name": "American Cheese",
"quantity": 1,
"unitPrice": 0,
"priceSequence": 0,
"total": 0,
"seat": 0,
"surcharge": 0,
"prefixes": [
{
"prefixId": 10001,
"name": "No"
}
],
"isDefault": true,
"atDefaultSetting": false
}