Create an addon group
Partner key + restaurant key. scope is GLOBAL (every product), CATEGORY (with categoryId) or PRODUCT (with productIds, the restaurant’s active products). minSelect defaults to 0 and maxSelect to 1; without isRequired, the group is required when minSelect is above 0. 1–20 addons with unique names and prices in øre, without id. Size prices cannot be set through the API. At most 100 groups per restaurant. The checkout requires minSelect among the available addons regardless of isRequired, so isRequired: false with minSelect above 0, and minSelect above the number of available addons (isAvailable not false), give 422 (paths isRequired and minSelect). warnings says when a GLOBAL group is required. Names and descriptions are trimmed and cleaned (links, email addresses, HTML, javascript: and invisible direction marks are removed); the count is in textCleaned, and a name that ends up empty gives 422. GET /api/v1/menu is CDN-cached (s-maxage=30, stale-while-revalidate=300, at most 330 seconds), so the website can show the old menu for up to six minutes; the response has notice about it.
Authentication
The partner key (lbp_test_… or lbp_live_…), sent as Authorization: Bearer lbp_… and created in LettBestilt Partner under Partner key. It belongs to the whole partner, not to a restaurant, and only works against /api/v1/partner. Server to server only: a request with an Origin header is rejected with 403 FORBIDDEN, and the key must never be in a browser. A TEST key sees and creates only sandboxes; LIVE keys work once LettBestilt Partner is open. A suspended or archived partner, a revoked key and a restaurant key (lbs_…) here give 401 UNAUTHORIZED; an expired key gives 401 KEY_EXPIRED.
The restaurant’s own key (lbs_test_… or lbs_live_…) for calls about one restaurant in the partner API, sent together with the partner key. The key must have full access (scope *, otherwise 403 INSUFFICIENT_SCOPE), belong to a restaurant the partner owns and be in the same environment as the partner key. A restaurant that does not exist, belongs to another partner or does not match the key always gives the same 404 RESTAURANT_NOT_FOUND. Older keys without an environment in the prefix (lbs_<random>) are not accepted here; rotate them in LettBestilt Partner.
Path parameters
The restaurant’s slug. It must match the restaurant key in X-LettBestilt-Restaurant-Key.
Request
GLOBAL = every product, CATEGORY = the products in categoryId, PRODUCT = the products in productIds.
Unique names (case-insensitive), without id.
Left out = minSelect > 0. Required with minSelect 0 gives minSelect 1. false with minSelect above 0 gives 422.

