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
Was this page helpful?