List coupons
GET
/api/v1/coupons
const url = 'https://digize.com/api/v1/coupons';const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}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.
Authorizations
Section titled “Authorizations”Responses
Section titled “Responses”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
maxRedemptions
required
number | null
redemptions
required
number
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
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
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
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
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
message
required
string
details
object
key
additional properties
any
Example
{ "error": { "code": "invalid" }}