Skip to content

List coupons

GET
/api/v1/coupons
curl --request GET \
--url https://digize.com/api/v1/coupons \
--header 'x-api-key: <x-api-key>'

Coupon codes customers can use on an invoice’s pay page, newest first, with how often each was used.

Needs the crm:read permission.

Done

Media typeapplication/json
object
rows
required
Array<object>
object
id
required
string
code
required
string
percentOff
required

Basis points off, or null for an amount.

number | null
amountOff
required
Any of:

In the workspace currency’s minor unit: 2000 is $20.00.

integer
<= 100000000
maxRedemptions
required
number | null
redemptions
required
number
expiresAt
required
Any of:
string format: date-time
active
required
boolean
createdAt
required
string format: date-time
total
required
number

Example generated

{
"rows": [
{
"id": "example",
"code": "example",
"percentOff": 1,
"amountOff": 1,
"maxRedemptions": 1,
"redemptions": 1,
"expiresAt": "2026-04-15T12:00:00Z",
"active": true,
"createdAt": "2026-04-15T12:00:00Z"
}
],
"total": 1
}

What was sent isn’t valid (invalid).

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

No key, or one that’s unknown, off or expired.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

The key doesn’t have the permission this needs.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

Nothing has that id (not_found).

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}

Over the rate limit; see retry-after.

Media typeapplication/json
object
error
required
object
code
required
string
Allowed values: invalid unauthorized forbidden not_found conflict too_large rate_limited unavailable internal
message
required
string
details
object
key
additional properties
any

Example

{
"error": {
"code": "invalid"
}
}