Update coupon

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…

Some attributes can be updated on an active coupon.

Errors

The operation can generate the following errors beside the generic HTTP error codes described here.

Error code HTTP codeDescription
86404Coupon not found
90400Coupon not active
91400Coupon cannot be updated because maximum redemptions is below the current number of redemptions
Path Params
string
required

Coupon handle

Body Params
string
required
length ≥ 1

Internal name for the coupon.

boolean

Whether all plans are eligible for this coupon. Defaults to false.

eligible_plans
array of strings

If not all_plans are set to true, then the set of eligible plan handles must be defined.

eligible_plans
int32
≥ 1

Optional maximum number of times this coupon can be redeemed.

string

Optional date and time until which the coupon is redeemable. Date and time on the form yyyy-MM-dd, yyyyMMdd, yyyy-MM-ddTHH:mm and yyyy-MM-ddTHH:mm:ss.

Responses

Language
Credentials
Basic
base64
:
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json