Update coupon system configuration settings for the loyalty program.
The URL of your API endpoint where coupons are created. Gameball will send requests to this endpoint whenever a coupon needs to be generated.
"https://api.mywebsite.com/coupons"
The HTTP method used to send requests to the coupon creation endpoint. Allowed values are POST, PUT or GET.
"POST"
List of query parameters used in the request. Those that will be appended to the URL endpoint. These are used to pass specific parameters required by your coupon system as part of the URL itself, often for identification, filtering, or configuration purposes. Each query parameter is defined by a key-value pair, allowing you to tailor requests based on requirements in your API.
List of headers used in the request.
This specifies the structure of the JSON body Gameball will send to your endpoint when creating a coupon. Since different systems may use varying parameter names and structures, you can customize this payload to align with your system's requirements. You should define the JSON payload with placeholders that Gameball will replace with actual data when sending the request. Example: { "customerId": "{{playerUniqueId}}", "amount": "{{value}}", "code": "{{code}}" }
"{ \"couponCode\": \"DISCOUNT10\" }"
A dictionary mapping coupon attributes to specific keys in your system.
Indicates whether free product coupons are enabled.
true
Indicates whether fixed-rate discount coupons are enabled.
true
Indicates whether free shipping coupons are enabled.
true
Indicates whether percentage-based discount coupons are enabled.
true
List of platforms for which the coupon configurations are applied in your system.
Coupon configurations updated successfully