Skip to main content
GET
/
v1
/
promotions
List
curl --request GET \
  --url https://{defaultHost}/v1/promotions \
  --header 'Authorization: Bearer <token>'
{
  "object": "list",
  "pagination": {
    "count": 1,
    "limit": 20,
    "page": 1,
    "url": "/v1/promotions"
  },
  "data": [
    {
      "id": "96e082dd-9a0d-45d7-b8e3-1a4c1b36efb4",
      "object": "promotion",
      "archived": false,
      "archived_at": null,
      "code": "TESTCODE",
      "expired": false,
      "max_redemptions": null,
      "metadata": {},
      "redeem_by": null,
      "times_redeemed": 0,
      "affiliation": null,
      "coupon": "288f4b0d-8d54-4969-a5b7-276f69b206e5",
      "customer": null,
      "discarded_at": null,
      "created_at": 1772113002,
      "updated_at": 1772113002
    }
  ]
}

Authorizations

Authorization
string
header
required

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

Query Parameters

affiliation_ids[]
string[]

Only return objects that belong to the given affiliations.

archived
boolean

Only return objects that are archived or not archived.

coupon_ids[]
string[]

Only return objects with the given coupon IDs.

customer_ids[]
string[]

Only return objects that belong to the given customers.

ids[]
string[]

Only return objects with the given IDs.

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.

query
string

The query to be used for full text search of this collection.

Response

200 - application/json

Success

object
string

A string describing the object type returned.

pagination
object
data
array

An array of objects.