API ReferenceCoupons
Retrieve coupon usage
Count the completed orders that used a coupon.
Find out how many completed orders used a coupon. Compare uses with the coupon's limit to see how many uses are left. A coupon nobody has used returns uses: 0, not an error.
GET
header
AuthorizationBearer <API Key>Provide your SellApp API key as a bearer token.
coupon*integerThe coupon ID.
X-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.
Successful response.
application/json- response
data*curl -X GET 'https://sell.app/api/v2/coupons/1/usage' \ -H 'X-STORE: launch-lab'used
{ "data": { "coupon_id": 1, "uses": 12 }}unused
{ "data": { "coupon_id": 1, "uses": 0 }}