cURL
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.
coupon:write
Value for the Authorization header parameter.
Coupon identifier
The updated Coupon resource
Whether this coupon is enabled or not.
true
Was this page helpful?