Skip to main content
GET
/
v1
/
discounts
List Discounts
curl --request GET \
  --url https://{defaultHost}/v1/discounts \
  --header 'Authorization: Bearer <token>'
{
  "object": "list",
  "pagination": {
    "count": 1,
    "limit": 20,
    "page": 1,
    "url": "/v1/discounts"
  },
  "data": [
    {
      "id": "16b1af65-c1f5-4aa3-b758-95be5b222b56",
      "object": "discount",
      "discount_amount": -500,
      "primary": true,
      "redeemable_status": "redeemable",
      "redeemed_at": 1773903481,
      "used_up": false,
      "checkout": "ebac12c7-87f6-4929-a687-7a96f337ddb0",
      "coupon": "3830c256-64d6-408b-9426-9ede528ce708",
      "customer": "c2346151-2804-43cf-884a-2544f8828d4c",
      "primary_discount": null,
      "promotion": null,
      "created_at": 1773903542,
      "updated_at": 1773903542
    }
  ]
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Query Parameters

coupon_ids[]
string[]

Only return objects with the given coupon IDs.

customer_ids[]
string[]

Only return objects that belong to the given customers.

limit
integer

A limit on the number of items to be returned, between 1 and 100.

page
integer

The page of items you want returned.

primary
boolean

Only return the primary discounts, the first one when the coupon is recurring.

primary_discount_ids[]
string[]

Only return objects that belong to the given primary discount.

promotion_ids[]
string[]

Only return objects with the given promotion IDs.

Response

200 - application/json

Success

object
string

A string describing the object type returned.

pagination
object
data
array

An array of objects.