Zum Hauptinhalt springen
PUT
/
coupons
/
{id}
/
toggle
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.

Autorisierungen

Authorization
string
header
erforderlich

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Pfadparameter

id
string
erforderlich

Coupon identifier

Body

The updated Coupon resource

isEnabled
boolean
Standard:true

Whether this coupon is enabled or not.

Beispiel:

true

Antwort