Skip to main content
GET
/
v1
/
discounts
List discounts
curl --request GET \
  --url https://api.quentli.com/v1/discounts \
  --header 'Authorization: Bearer <token>'
[
  {
    "id": "disc_1234567890abcdefghij",
    "createdAt": "2025-01-01T00:00:00.000Z",
    "updatedAt": "2025-01-01T00:00:00.000Z",
    "name": "Buen Fin 20%",
    "organizationId": "org_1234567890abcdefghij",
    "type": "PERCENTAGE",
    "active": true,
    "oneOff": false,
    "deletedAt": null,
    "description": null,
    "amountOff": 30000,
    "percentageOff": 20,
    "expiresAt": null,
    "maxApplications": 3
  }
]

Authorizations

Authorization
string
header
required

Organization API key using Authorization: Bearer sk_....

Query Parameters

filter
string

A qs-encoded discountFilter object.

Example:

"active[equals]=true"

skip
number
default:0

Pagination offset.

Required range: x >= 0
Example:

0

take
number
default:20

Pagination limit.

Required range: 1 <= x <= 100
Example:

20

orderBy
string

A qs-encoded discountOrderBy object.

Example:

"createdAt=desc"

Response

Discounts list

id
string
required

Unique identifier of the discount.

Example:

"disc_1234567890abcdefghij"

createdAt
required

When the discount was created.

Example:

"2025-01-01T00:00:00.000Z"

updatedAt
required

When the discount was last updated.

Example:

"2025-01-01T00:00:00.000Z"

name
string
required

Display name of the discount.

Example:

"Buen Fin 20%"

organizationId
string
required

Identifier of the owning organization.

Example:

"org_1234567890abcdefghij"

type
enum<string>
required

Whether the discount is a fixed amount (FIXED) or a percentage (PERCENTAGE).

Available options:
FIXED,
PERCENTAGE
Example:

"PERCENTAGE"

active
boolean
required

Whether the discount is currently available for new applications.

Example:

true

oneOff
boolean
required

Whether this discount was created for a single-use custom charge.

Example:

false

deletedAt

When the discount was deleted, if applicable.

Example:

null

description
string | null

Optional description of the discount.

Example:

null

amountOff
integer | null

Fixed discount amount in minor currency units. Only set when type is FIXED.

Example:

30000

percentageOff
number | null

Percentage to discount. Only set when type is PERCENTAGE.

Example:

20

expiresAt

Optional date after which the discount can no longer be applied.

Example:

null

maxApplications
integer | null

Maximum total number of times this discount can be applied across all customers.

Example:

3