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
}
]Returns reusable discounts for the organization. One-off discounts are excluded.
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
}
]Organization API key using Authorization: Bearer sk_....
A qs-encoded discountFilter object.
"active[equals]=true"
Pagination offset.
x >= 00
Pagination limit.
1 <= x <= 10020
A qs-encoded discountOrderBy object.
"createdAt=desc"
Discounts list
Unique identifier of the discount.
"disc_1234567890abcdefghij"
When the discount was created.
"2025-01-01T00:00:00.000Z"
When the discount was last updated.
"2025-01-01T00:00:00.000Z"
Display name of the discount.
"Buen Fin 20%"
Identifier of the owning organization.
"org_1234567890abcdefghij"
Whether the discount is a fixed amount (FIXED) or a percentage (PERCENTAGE).
FIXED, PERCENTAGE "PERCENTAGE"
Whether the discount is currently available for new applications.
true
Whether this discount was created for a single-use custom charge.
false
When the discount was deleted, if applicable.
null
Optional description of the discount.
null
Fixed discount amount in minor currency units. Only set when type is FIXED.
30000
Percentage to discount. Only set when type is PERCENTAGE.
20
Optional date after which the discount can no longer be applied.
null
Maximum total number of times this discount can be applied across all customers.
3
Was this page helpful?