This guide will be removed on April 29, 2022. Please use our new, easier-to-use Toast technical documentation site. All updated content is on the new site.
The example below shows a modifier group, Toppings, whose
modifier options are individually priced. One of the modifier options
in the Toppings group, Goat Cheese, uses the
TIME_SPECIFIC_PRICE
pricing strategy. When the Goat
Cheese modifier option is ordered between noon and 2pm, it costs $1.
During the rest of the day, it costs $2.
Sample JSON for a modifier option that inherits a Time Specific Price from its item reference
{ "restaurantGuid": "2071fb81-988b-4d75-b8dc-c5c17cff9706", ... "menus": [ { "name": "Dinner", "guid": "ddd681de-3c12-4d45-b8b1-a5b2ea898210", ... "menuGroups": [ { "name": "Pizza", "guid": "dc868006-919a-4950-a4cc-3a03f9770fd7", ... "menuItems": [ { "name": "Cheese Pizza", "guid": "95c5d500-8d92-46f2-bec4-fb2a42a46621", ... "price": null, "pricingStrategy": "SIZE_PRICE","pricingRules": { "timeSpecificPricingRules": [], "sizeSpecificPricingGuid": "23c02762-9d6a-4d3f-a298-71c989bf31b0",
"sizeSequencePricingRules": [] }, ... "modifierGroupReferences": [ 2,
6,
... ], ... } ] } ] } ], "modifierGroupReferences": { "6": {
"referenceId": 6, "name": "Toppings", "guid": "a1778e92-7ce9-4b1e-867d-c1effd7478b8", ... "pricingStrategy": "NONE",
"pricingRules": null, ... "modifierOptionReferences": [ 18,
... ], ... }, "2": {
"referenceId": 2, "name": "Size", "guid": "23c02762-9d6a-4d3f-a298-71c989bf31b0", ... "pricingStrategy": "NONE",
"pricingRules": null, ... "modifierOptionReferences": [ 12,
13
], ... }, }, "modifierOptionReferences": { "18": { "referenceId": 18, "name": "Goat Cheese", "guid": "0ca19f15-184c-4b69-8049-cd50bf96c39e", ... "price": null, "pricingStrategy": "TIME_SPECIFIC_PRICE",
"pricingRules": { "timeSpecificPricingRules": [ { "timeSpecificPrice": 1.0,
"basePrice": 2.0,
"schedule": [
{ "days": [
"MONDAY", "TUESDAY", "WEDNESDAY", "THURSDAY", "FRIDAY", "SATURDAY", "SUNDAY" ], "timeRanges": [
{ "start": "12:00", "end": "14:00" } ] } ] } ], "sizeSpecificPricingGuid": null, "sizeSequencePricingRules": [] }, ... }, "12": { "referenceId": 12, "name": "Small",
"guid": "352244f2-a952-4a3a-a3ae-7775fa221ce7", ... "price": 8.0,
"pricingStrategy": "BASE_PRICE", "pricingRules": null, ... "modifierGroupReferences": [] }, "13": { "referenceId": 13, "name": "Large", "guid": "4ff89bca-b448-4892-bc4c-62c37a28ac44", ... "price": 10.0, "pricingStrategy": "BASE_PRICE", "pricingRules": null, ... "modifierGroupReferences": [] } } }
Indicates that the pricing strategy for the Cheese Pizza
menu item is |
|
The |
|
Reference to the Size modifier group in the
|
|
Reference to the Toppings modifier group. |
|
The Toppings modifier group. |
|
A price is defined on the Goat Cheese modifier option
itself, so the |
|
Reference to the Goat Cheese modifier option. |
|
The Size modifier group that defines sizes and prices for the Cheese Pizza menu item. |
|
Prices are defined on the Small and Large modifier options
themselves, so the |
|
Reference to the Small modifier option for the Cheese Pizza menu item. |
|
Reference to the Large modifier option for the Cheese Pizza menu item. |
|
Indicates that the pricing strategy for the Goat Cheese
modifier option is |
|
The price of the Goat Cheese modifier option during the time period defined by the schedule value ($1). |
|
The base price of the Goat Cheese modifier option ($2), used for time periods when a time-specific price has not been defined. |
|
The schedule for this time-specific price, which defines the days and times the price applies. |
|
The days this time-specific price applies (Monday through Sunday). |
|
The times this time-specific price applies (noon to 2pm), in the restaurant's local time. |
|
The modifier option that defines the price of a Small cheese pizza. |
|
The price of a Small cheese pizza ($8). |