Skip to main content
PUT
Deactivate or reactivate a coupon
Flips whether a coupon can still be redeemed. active: false stops new subscriptions from applying the code; subscriptions that already carry the discount keep it — nothing already booked changes. active: true restores redeemability. The coupon’s code, discount and duration are immutable after creation; read the current state with Get Coupon.

Parameters

Request Body

Example Request

Response

The response is an action shape, not the coupon object:

Errors

Errors use the standard envelope — see Errors.

Authorizations

Authorization
string
header
required

Tenant API key obtained from POST /auth/register or POST /v1/developer/keys.

Path Parameters

id
string<uuid>
required

Body

application/json
active
boolean
required

Response

Coupon updated.

status
enum<string>
Available options:
activated,
deactivated