Skip to Content
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
/v2/coupons/{coupon}/usage

Authorization

headerAuthorizationBearer <API Key>

Provide your SellApp API key as a bearer token.

Path Parameters

coupon*integer

The coupon ID.

Header Parameters

X-STORE?string

Store 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.

Response Body

Successful response.

application/json
  1. response
data*
Example Request
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  }}