Skip to content

List a customer's held checkout redemptions

GET
/customers/{channel}/{externalId}/checkout-redemptions

The codeless checkout redemptions the customer holds now in the named programme, oldest first: the ones POST /v1/checkout-redemptions places and the Online Store places, so a caller that lost a place response can find its ref and cancel it. A customer who is not a member of the programme has none: data is []. Match your own placement on idempotency_key EXACTLY. A redemption with a different key may be the member’s newer redemption: do not cancel it, and never place again with the old key to recover. A redemption past expires_at that the expiry sweep has not yet released is listed: it still holds points and can still be cancelled. A list taken while the original place is still running can be empty: list again after a short delay before concluding there is none. Cancel names the customer by its Shopify id, so list with channel = shopify and the same id you cancel with. This is a read: it writes nothing and does not call Shopify.

channel
required
string
Example
shopify
externalId
required
string
Example
cust_123
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.

The held redemptions.

object
data
required

Oldest first.

Array<object>
object
ref
required

The redemption ref (the hold id): the value to pass to POST /v1/checkout-redemptions/{ref}/cancel.

string format: uuid
redemption_id
required

Equal to ref.

string format: uuid
program
required

The handle of the programme the redemption sits in.

string
Example
vv
kind
required

unknown is a hold whose pinned card can no longer be read. It still holds points, and cancel releases it.

string
Allowed values: points fixed_reward product_reward unknown
points
required

The points the hold reserves.

integer
value_cents
required

The discount the checkout will apply, at most. Null if none was resolved.

integer | null
created_at
required
string format: date-time
expires_at
required
string | null format: date-time
idempotency_key
required

The Idempotency-Key the redemption was placed with. Null for a redemption placed without one. Untrusted text: do not log it.

string | null

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 (customer_not_found), 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