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.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Example
shopifyExample
cust_123Query Parameters
Section titled “Query Parameters ”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 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.
Responses
Section titled “ Responses ”The held redemptions.
object
Oldest first.
object
The redemption ref (the hold id): the value to pass to POST /v1/checkout-redemptions/{ref}/cancel.
Equal to ref.
The handle of the programme the redemption sits in.
Example
vvunknown is a hold whose pinned card can no longer be read. It still holds points, and cancel releases it.
The points the hold reserves.
The discount the checkout will apply, at most. Null if none was resolved.
The Idempotency-Key the redemption was placed with. Null for a redemption placed without one. Untrusted text: do not log it.
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
object
Example
not_foundExample
req_9f8e7d6c5b4a3210Missing or invalid API key or OAuth credential.
object
object
Example
not_foundExample
req_9f8e7d6c5b4a3210The credential lacks the loyalty:read scope — a publishable key (publishable_key_forbidden).
object
object
Example
not_foundExample
req_9f8e7d6c5b4a3210No such customer in this tenant (customer_not_found), or the program names no programme of this workspace (not_found).
object
object
Example
not_foundExample
req_9f8e7d6c5b4a3210