Update Coupon

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

Requires the Store plan feature and store coupons enabled for the partner (403 otherwise).

Body

Takes the fields of Create Coupon. Only the fields sent change:

  • An omitted field keeps its value.
  • A field sent as null is cleared, e.g. "code": null, "store_listing_id": null (the whole store) or "ends_at": null.
  • active: false stops the coupon at once; active cannot be null.
  • amount_off without currency is in the coupon's currency.
  • currency without amount_off keeps the amount in major units, e.g. 5 USD becomes 5 JPY. If the amount does not fit the new currency's decimals, send amount_off too.
  • Changing discount_type clears the other type's fields: percent_off on a switch to fixed_amount, amount_off and currency on a switch to percent.
  • Dates follow the rules of Create Coupon. For "valid through Dec 31", send ends_at as 2026-12-31T23:59:59.999 with the user's UTC offset.
  • When a discount field changes, the free and minimum-price checks of Create Coupon run again.

Sending the same body again changes nothing and returns the same coupon.

Success

200 OK — the coupon, in the shape of Get Coupons.

Errors

  • 404 — the coupon, organization_tag_id or store_listing_id is not the partner's.
  • 422 — validation, e.g. Code is not available, active must be true or false, percent_off must be a whole number.
Path Params
string
required

Coupon ID

Body Params
string
integer
string | null
boolean
string | null
string
number
string
string | null
string | null
string | null
Responses

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