Skip to content

A customer's points

GET
/api/v1/commerce/customers/{id}/points
curl --request GET \
--url https://digize.com/api/v1/commerce/customers/example/points \
--header 'x-api-key: <x-api-key>'

A customer’s loyalty points and their history.

Needs the commerce:read permission.

id
required
string
>= 1 characters <= 64 characters

Done

Media typeapplication/json
object
points
required
number
held
required
number
lifetime
required
number
value
required

What the points they can spend take off.

number
transactions
required
Array<object>
object
id
required
string
kind
required
string
Allowed values: earned redeemed reversed restored adjusted
points
required
number
orderId
required
string | null
orderNumber
required
number | null
note
required
string | null
actorName
required
string
at
required
string format: date-time

Example

{
"transactions": [
{
"kind": "earned"
}
]
}

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