Skip to content

Read a member's paginated point history

GET
/customers/{channel}/{externalId}/history
channel
required
string
Example
shopify
externalId
required
string
Example
cust_123
limit
integer
>= 1 <= 100
cursor
string
type
string
since
string format: date-time
until
string format: date-time
program

The programme to act in: its handle (for example vv) or its lower-case id. Optional on a workspace with one programme; on a workspace with several, a call that names none is refused with 400 program_required. A programme that is not this workspace’s is 404 not_found.

string

The programme to act in: its handle (for example vv) or its lower-case id. Optional on a workspace with one programme; on a workspace with several, a call that names none is refused with 400 program_required. A programme that is not this workspace’s is 404 not_found.

One page of ledger entries.

object
data
required
Array<object>
object
id
required
string format: uuid
type
required
string
Example
earn
currency
required
string
Allowed values: spendable qualifying
amount
required
integer
state
required
string
source_channel
required
string | null
source_ref
required
string | null
source_event_id
required
string | null
created_at
required
string
page
required
object
next_cursor
required
string | null
has_more
required
boolean

Invalid history query (bad limit/since/until), or the program is malformed (not a lower-case programme id or a programme handle), or a workspace with several programmes was given none (program_required).

object
error
required
object
code
required
string
Example
not_found
message
required
string
details
request_id
required
string
Example
req_9f8e7d6c5b4a3210

Missing or invalid API key or OAuth credential.

object
error
required
object
code
required
string
Example
not_found
message
required
string
details
request_id
required
string
Example
req_9f8e7d6c5b4a3210

The credential lacks the loyalty:read scope — a publishable key (publishable_key_forbidden).

object
error
required
object
code
required
string
Example
not_found
message
required
string
details
request_id
required
string
Example
req_9f8e7d6c5b4a3210

No such customer in this tenant, or the program names no programme of this workspace (not_found).

object
error
required
object
code
required
string
Example
not_found
message
required
string
details
request_id
required
string
Example
req_9f8e7d6c5b4a3210