patch
https://{url}/core/v1/partner/coupons/
Recent Requests
Log in to see full request history
| Time | Status | User Agent | |
|---|---|---|---|
Retrieving recent requests… | |||
Loading…
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
nullis cleared, e.g."code": null,"store_listing_id": null(the whole store) or"ends_at": null. active: falsestops the coupon at once;activecannot benull.amount_offwithoutcurrencyis in the coupon's currency.currencywithoutamount_offkeeps the amount in major units, e.g. 5 USD becomes 5 JPY. If the amount does not fit the new currency's decimals, sendamount_offtoo.- Changing
discount_typeclears the other type's fields:percent_offon a switch tofixed_amount,amount_offandcurrencyon a switch topercent. - Dates follow the rules of Create Coupon. For "valid through Dec 31", send
ends_atas2026-12-31T23:59:59.999with 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_idorstore_listing_idis 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.
