Skip to main content
https://.thoughtindustries.com

Coupons

Returns a paginated list of coupons defined in your catalog

Returns a paginated list of coupons defined in your catalog.

GEThttps://example.thoughtindustries.com/incoming/v2/coupons

Example request

curl "https://example.thoughtindustries.com/incoming/v2/coupons" \
  -H 'Authorization: Bearer YOUR_API_KEY'

Parameters

NameTypeRequiredLocationDescription
cursorstringNoqueryOpaque cursor for the next page of results. Omit to fetch the first page.

Example response

{
  "pageInfo": {
    "total": 0,
    "hasMore": true,
    "cursor": "string"
  },
  "coupons": [
    {
      "id": "00000000-0000-0000-0000-000000000000",
      "active": true,
      "allowMultipleInCart": true,
      "amountOffInCents": 0,
      "multicurrencyAmountOff": {},
      "appliesToUser": true,
      "code": "string",
      "maxRedemptions": 0,
      "percentOff": 0,
      "redeemBy": "2024-01-01T00:00:00.000Z",
      "timesRedeemed": 0
    }
  ]
}

Response fields

FieldTypeDescription
pageInfoobjectCursor-based pagination metadata for the result set.
pageInfo.totalintegerTotal number of records matching the query.
pageInfo.hasMorebooleanWhether additional pages of results are available.
pageInfo.cursorstringOpaque cursor to pass on the next request. Present when hasMore is true.
couponsobject[]Array of coupon objects for the current page.
coupons.iduuidIdentifier of the coupon.
coupons.activebooleanWhether the coupon is currently active.
coupons.allowMultipleInCartbooleanWhether multiple uses are allowed in a single cart.
coupons.amountOffInCentsintegerFlat discount amount in cents.
coupons.multicurrencyAmountOffobjectPer-currency flat discount amounts.
coupons.appliesToUserbooleanWhether the coupon applies to the current user.
coupons.codestringRedemption code for the coupon.
coupons.maxRedemptionsintegerMaximum number of redemptions allowed.
coupons.percentOffnumberPercentage discount applied.
coupons.redeemByISO 8601 timestampDate by which the coupon must be redeemed.
coupons.timesRedeemedintegerNumber of times the coupon has been redeemed.