Authorizations
Value for the Authorization header parameter.
Path Parameters
Coupon identifier
Body
The updated Coupon resource
Whether this coupon is enabled or not.
Example:
true
curl -X PUT \
/coupons/{id}/toggle \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"isEnabled": "1"
}'
This response has no body data.
Toggle a coupon.
Required permissions:coupon:write
curl -X PUT \
/coupons/{id}/toggle \
--header "Content-Type: application/json" \
--header "Authorization: Bearer <token>" \
--data '{
"isEnabled": "1"
}'
This response has no body data.
Value for the Authorization header parameter.
Coupon identifier
The updated Coupon resource
Whether this coupon is enabled or not.
true
Was this page helpful?