Generate coupon
Generates a new coupon using a predefined generator configured in the restaurant backend
Authorizations
Restaurant API Key. Can be obtained from Tools > API Access in the xMenu dashboard.
Query Parameters
Unique restaurant identifier
Generator code created in the restaurant backend area (to generate the coupon according to the generator rules)
Email address of the customer. Coupon will be usable only by this customer.
Response
Coupon generation response
Operation result: true if successful, false if failed
Error code if the operation failed. Possible values:
NOT_FOUND= Generator not found
See Error codes for general error codes that may also occur.
Human-readable error description if the operation failed
Coupon object with details about discount code