Skip to main content

Price groups

Defines price groups and VAT configurations. A price group assigns a price to each item in a specific currency.

Top-level structure:

{
"priceGroups": {
"<priceGroupId>": { ... }
},
"vatConfigurations": {
"<vatConfigurationId>": { ... }
}
}

Price group fields​

PropertyTypeRequiredDescription
namestringYesInternal name used for administration purposes; not displayed to guests.
currencystringYesISO 4217 currency code (e.g. "SEK", "NOK").
itemPricesobjectYesMap of item ID → price. Every item included in a menu must have an entry here for the menu to be generated correctly.
fallback.referencedPriceGroupIdintegerNoID of a fallback price group used when an item has no price entry in this group.

Price fields​

PropertyTypeRequiredDescription
amountintegerYesPrice in the lowest monetary unit of the currency (e.g. 1400 for 14.00 SEK).
vat.referencedVatIdstring (numeric)YesID of the VAT configuration to apply.

VAT configuration fields​

PropertyTypeRequiredDescription
namestringYesInternal name used for administration purposes; not displayed to guests.
typestringYesVAT calculation type. Currently only "percent" is supported.
valuestringYesThe VAT rate. For "percent" type, the percentage as a string (e.g. "25" for 25%).

Example:

{
"priceGroups": {
"20": {
"name": "SEK-PG1-TakeAway",
"currency": "SEK",
"itemPrices": {
"1001": {
"amount": 4500,
"vat": { "referencedVatId": "300" }
},
"1002": {
"amount": 0,
"vat": { "referencedVatId": "300" }
}
}
}
},
"vatConfigurations": {
"300": {
"name": "VAT-25P",
"type": "percent",
"value": "25"
}
}
}