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
pageintegerNoqueryPage number to retrieve in the paginated result set.

Example response

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

Response fields

FieldTypeDescription
pageInfoPageInfoPagination metadata for the result set.
pageInfo.perPageintegerNumber of coupons returned per page.
pageInfo.currentPageintegerThe current page number in the result set.
pageInfo.totalintegerTotal number of coupons across all pages.
pageInfo.hasMorebooleanIndicates whether additional pages of results are available.
couponsCoupon[]Array of coupon objects returned for the current page.
coupons.iduuidUnique identifier for the coupon.
coupons.activebooleanIndicates whether the coupon is currently active and available for use.
coupons.allowMultipleInCartbooleanIndicates whether the coupon can be applied alongside other coupons in the same cart.
coupons.appliesToUserAppliesToUserSpecifies which users the coupon applies to (e.g., existing users only or new users).
coupons.codestringThe redemption code learners enter to apply the coupon.
coupons.timesRedeemedintegerNumber of times the coupon has been redeemed to date.
coupons.maxRedemptionsintegerMaximum number of times the coupon can be redeemed in total.
coupons.redeemByISO 8601 timestampExpiration date and time after which the coupon can no longer be redeemed, in ISO 8601 format.
coupons.percentOffnumberPercentage discount applied to the purchase price when the coupon is redeemed.
coupons.amountOffInCentsintegerFixed discount amount in cents applied to the purchase price when the coupon is redeemed.
coupons.multicurrencyAmountOffobjectFixed discount amounts keyed by currency code, used when multi-currency pricing is enabled.