Generates a new coupon using a predefined generator configured in the restaurant backend
Restaurant API Key. Can be obtained from Tools > API Access in the xMenu dashboard.
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.
Coupon generation response
Operation result: true if successful, false if failed
Error code if the operation failed. Possible values:
NOT_FOUND = Generator not foundSee 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