Sign up for the newsletter
Adds the customer to the restaurant’s newsletter and returns the welcome coupon. Signing up again with the same email is safe: it returns the welcome coupon again and keeps the address subscribed.
The newsletter popup must be enabled in the restaurant’s dashboard and linked to an active coupon. Otherwise the response is 404 POPUP_NOT_AVAILABLE and nothing is stored. Check restaurant.newsletterPopup in GET /restaurant before you show a signup form; it also holds the popup’s texts.
Rate limits: 5 requests per 60 seconds per IP, and 200 per hour per restaurant.
Authentication
Either this or a trusted browser origin. The restaurant’s API key, sent as Authorization: Bearer lbs_…. Use it from your server only, never in browser code. Keys are issued per restaurant by LettBestilt.
Either this or an API key. No key is needed when the request’s Origin header is trusted for this restaurant: https://{slug}.lettbestilt.no, a verified domain of the restaurant, or a partner origin LettBestilt has bound to the restaurant. Browsers set Origin themselves; it is not something you configure. Not accepted by GET /site-gate, which requires an API key.
Query parameters
Request
Response
PERCENT: percent. FIXED: øre.
The restaurant’s thank-you text. Replace {{code}} and {{discount}} before you show it.

