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": "d880bdc6-1d0c-41b0-a6be-b0d87caa1e73",
      "object": "discount",
      "discount_amount": -500,
      "primary": true,
      "redeemable_status": "redeemable",
      "redeemed_at": 1782209175,
      "used_up": false,
      "checkout": "30f492c6-8760-4f97-872f-42fe0cb98f59",
      "coupon": "e2abc277-a48c-4ca6-99f5-8cbd7a039cea",
      "customer": "d89ce672-86bd-4da8-b34c-82d9b2f18bc4",
      "primary_discount": null,
      "promotion": null,
      "created_at": 1782209235,
      "updated_at": 1782209235
    }
  ]
}

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.