This API call updates your coupon configurations, allowing you to modify details about how coupons are structured, authenticated, and mapped within Gameball.
put/api/v4.0/integrations/configurations/coupon
Request body
Example request
{
"url": "https://api.mywebsite.com/coupons",
"method": "POST",
"queryParams": [
{
"key": "appId",
"value": "12345"
}
],
"headers": [
{
"key": "X-Client-Version",
"value": "1.0"
}
],
"payload": "{ \"couponCode\": \"DISCOUNT10\" }",
"couponMapping": {
"fixed": "fixed_discount",
"percentage": "percentage_discount",
"freeProduct": "free_product",
"freeShipping": "free_delivery"
},
"enableFreeProduct": true,
"enableFixedRate": true,
"enableFreeShipping": true,
"enablePercentage": true
}Response
Coupon configurations updated successfully
Changes
Changed in 3 of the 38 revisions of this API.14
- ○
the endpoint scheme security
apiKey AND secretKeywas added to the APIapi-security-added
- ○
the endpoint scheme security
apiKeywas removed from the APIapi-security-removed
- ○
the endpoint scheme security
secretKeywas removed from the APIapi-security-removed
- ○
- ○
endpoint added
endpoint-added
- ○
- ▲
api path removed without deprecation
api-path-removed-without-deprecation
This revision also has 38 changes that name no endpoint, such as unreferenced schemas being removed. See the revision's changelog
- ▲