Update a coupon
Change a coupon's discount, limits, or eligible products.
Change a coupon's discount, limits, or eligible products.
To scope a coupon, set store_wide to false, send product/listing IDs in products, and optionally send variant IDs in product_variants. Every variant must belong to one of the selected products.
Omitting product_variants preserves existing variant restrictions. Sending an empty product_variants array clears the restrictions, making every variant of the selected products eligible. Changing products automatically removes restrictions for products that are no longer selected.
Send maximum_discount_amount to set or change the cap of a PERCENTAGE coupon, or null to remove it. Changing a coupon's type to AMOUNT removes its cap, and it does not come back if you change the type back.
A store-wide coupon you retrieved can be sent back as it is: products may be empty when the same request sends store_wide: true.
Leaving out applies_to or subscription_payments keeps the coupon's current values. Switching a coupon to one_time clears subscription_payments, and switching it to subscriptions needs subscription_payments unless the coupon already has one. Products and variants you add must be of the coupon's kind.
AuthorizationBearer <API Key>Provide your SellApp API key as a bearer token.
coupon*integerThe coupon path parameter.
with_trashed?booleanInclude soft-deleted resources in the result.
falseonly_trashed?booleanReturn only soft-deleted resources. Ignored when with_trashed is true.
falseX-STORE?stringStore slug. Required for OAuth access tokens. API keys may omit it to use their current store, or the first accessible store when no current store is selected.
application/json- body
code?stringlength <= 255type?string"PERCENTAGE""AMOUNT"discount?|A decimal discount value of at least 1. Percentage discounts cannot exceed 100; amount discounts use the store currency's major unit. A subscriptions coupon cannot take 100% off: that returns 422 on discount, so offer a free trial instead.
1 <= valuelength <= 255store_wide?booleanproducts?array<integer>Product IDs the coupon applies to when store_wide is false. Each product you add must sell a variant of the coupon's kind: a subscription plan for a subscriptions coupon, or a one-time variant for a one_time one. Another product returns 422 on products. It may be an empty list when the same request sends store_wide: true, so a store-wide coupon you read can be sent back unchanged. Otherwise an empty list returns 422 on products.
product_variants?array<integer>Optional variant restrictions. Omit to preserve existing restrictions or send an empty array to allow every variant of the selected products. Each variant you add must be of the coupon's kind, a subscription plan or a one-time variant; another returns 422 on product_variants.
limit?|1 <= valueexpires_at?|A future date and time, or null for no expiry.
date-timeminimum_amount?||A decimal minimum amount in the store currency's major unit that the order lines of the coupon's kind must reach, or null for no minimum.
1 <= valuelength <= 255applies_to?stringWhat the coupon discounts: one_time for one-time purchases, or subscriptions for the first payments of a subscription plan. A new coupon defaults to one_time, and an update that leaves this out keeps the current kind. The coupon only discounts order lines of its kind.
"one_time""subscriptions"subscription_payments?|How many payments a subscriptions coupon discounts, counting the signup payment as the first, so 3 discounts the signup and the next two renewals. A subscriptions coupon needs one, and an update that leaves it out keeps the stored number. Missing on a subscriptions coupon, or outside 1 to 36, it returns 422 on subscription_payments with The number of discounted payments must be between 1 and 36. A one_time coupon always stores null here.
1 <= value <= 36maximum_discount_amount?||The most a percentage coupon takes off one order, as a decimal amount of at least 1 in the major unit of the order's currency, with at most two decimals: 15.50 caps the discount at 15.50. Send null to remove the cap. Only a PERCENTAGE coupon can have a cap: sending one for an AMOUNT coupon returns 422 on maximum_discount_amount, and changing a coupon to AMOUNT removes its cap.
1 <= valuelength <= 255Successful response.
application/json- response
data*curl -X PATCH 'https://sell.app/api/v2/coupons/1' \ -H 'X-STORE: launch-lab' \ -H 'Content-Type: application/json' \ -d '{ "store_wide": false, "products": [ 123 ], "product_variants": [ 1001, 1002 ]}'{ "data": { "id": 1, "code": "BAZINGA", "type": "PERCENTAGE", "discount": "80", "limit": null, "store_wide": false, "minimum_amount": null, "expires_at": null, "created_at": "2022-12-12T12:12:12.000000Z", "updated_at": "2026-08-30T12:00:01.000000Z", "store_id": 1, "deleted_at": null, "products": [ 123 ], "product_variants": [ 1001, 1002 ], "maximum_discount_amount": null, "applies_to": "one_time", "subscription_payments": null }}AuthorizationBearer <API Key>Provide your SellApp API key as a bearer token.
coupon*integerThe coupon path parameter.
with_trashed?booleanInclude soft-deleted resources in the result.
falseonly_trashed?booleanReturn only soft-deleted resources. Ignored when with_trashed is true.
falseX-STORE?stringStore slug. Required for OAuth access tokens. API keys may omit it to use their current store, or the first accessible store when no current store is selected.
application/json- body
code?stringlength <= 255type?string"PERCENTAGE""AMOUNT"discount?|A decimal discount value of at least 1. Percentage discounts cannot exceed 100; amount discounts use the store currency's major unit. A subscriptions coupon cannot take 100% off: that returns 422 on discount, so offer a free trial instead.
1 <= valuelength <= 255store_wide?booleanproducts?array<integer>Product IDs the coupon applies to when store_wide is false. Each product you add must sell a variant of the coupon's kind: a subscription plan for a subscriptions coupon, or a one-time variant for a one_time one. Another product returns 422 on products. It may be an empty list when the same request sends store_wide: true, so a store-wide coupon you read can be sent back unchanged. Otherwise an empty list returns 422 on products.
product_variants?array<integer>Optional variant restrictions. Omit to preserve existing restrictions or send an empty array to allow every variant of the selected products. Each variant you add must be of the coupon's kind, a subscription plan or a one-time variant; another returns 422 on product_variants.
limit?|1 <= valueexpires_at?|A future date and time, or null for no expiry.
date-timeminimum_amount?||A decimal minimum amount in the store currency's major unit that the order lines of the coupon's kind must reach, or null for no minimum.
1 <= valuelength <= 255applies_to?stringWhat the coupon discounts: one_time for one-time purchases, or subscriptions for the first payments of a subscription plan. A new coupon defaults to one_time, and an update that leaves this out keeps the current kind. The coupon only discounts order lines of its kind.
"one_time""subscriptions"subscription_payments?|How many payments a subscriptions coupon discounts, counting the signup payment as the first, so 3 discounts the signup and the next two renewals. A subscriptions coupon needs one, and an update that leaves it out keeps the stored number. Missing on a subscriptions coupon, or outside 1 to 36, it returns 422 on subscription_payments with The number of discounted payments must be between 1 and 36. A one_time coupon always stores null here.
1 <= value <= 36maximum_discount_amount?||The most a percentage coupon takes off one order, as a decimal amount of at least 1 in the major unit of the order's currency, with at most two decimals: 15.50 caps the discount at 15.50. Send null to remove the cap. Only a PERCENTAGE coupon can have a cap: sending one for an AMOUNT coupon returns 422 on maximum_discount_amount, and changing a coupon to AMOUNT removes its cap.
1 <= valuelength <= 255Successful response.
application/json- response
data*curl -X PUT 'https://sell.app/api/v2/coupons/1' \ -H 'X-STORE: launch-lab' \ -H 'Content-Type: application/json' \ -d '{ "store_wide": false, "products": [ 123 ], "product_variants": [ 1001, 1002 ]}'{ "data": { "id": 1, "code": "BAZINGA", "type": "PERCENTAGE", "discount": "80", "limit": null, "store_wide": false, "minimum_amount": null, "expires_at": null, "created_at": "2022-12-12T12:12:12.000000Z", "updated_at": "2026-08-30T12:00:01.000000Z", "store_id": 1, "deleted_at": null, "products": [ 123 ], "product_variants": [ 1001, 1002 ], "maximum_discount_amount": null, "applies_to": "one_time", "subscription_payments": null }}