Skip to content

A contact's saved cards

GET
/api/v1/contacts/{contactId}/cards
curl --request GET \
--url https://digize.com/api/v1/contacts/example/cards \
--header 'x-api-key: <x-api-key>'

The cards a contact saved for next time on an invoice’s pay page, newest first, with what they agreed to and when.

Needs the crm:read permission.

contactId
required
string
>= 1 characters <= 64 characters

Done

Media typeapplication/json
object
rows
required
Array<object>
object
id
required
string
contactId
required
string
brand
required
string
last4
required
string
expMonth
required
number | null
expYear
required
number | null
consentText
required

What the customer agreed to.

string
consentAt
required
string format: date-time
createdAt
required
string format: date-time

Example generated

{
"rows": [
{
"id": "example",
"contactId": "example",
"brand": "example",
"last4": "example",
"expMonth": 1,
"expYear": 1,
"consentText": "example",
"consentAt": "2026-04-15T12:00:00Z",
"createdAt": "2026-04-15T12:00:00Z"
}
]
}

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"
}
}