Deactivate Coupon

View as Markdown
Manually deactivate an active coupon.

Authentication

AuthorizationBearer

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

Path parameters

coupon_idstringRequired
account_idstringRequired

Response

Successful Response
idstring
statusstring
namestring or null
discount_typestring
amount_atom_offinteger or null
percent_offdouble or null
trial_days_offinteger or null
currencyenum or null
ISO 4217 currency codes.
durationstring
duration_in_monthsinteger or null
max_redemptionsinteger or null
redemption_countinteger
valid_fromdatetime or null
valid_untildatetime or null
validity_period_daysinteger or null
productslist of strings
metadatamap from strings to any or null
created_atdatetime
updated_atdatetime
promotion_code_countintegerOptionalDefaults to 0
product_detailslist of objectsOptional

Errors

422
Unprocessable Entity Error