Cancel a redemption placed through /checkout-redemptions
POST /checkout-redemptions/{ref}/cancel
Releases the redemption ref placed for the named customer, then asks Shopify to remove it from the checkout metafield. The removal is best-effort: if Shopify is unreachable or the workspace’s Shopify connection needs re-authorising, the redemption is still released, the entry stays on the metafield until the next sync can write, and a checkout that completes with the discount in that window is recorded as an anomaly and the points are clawed back from the member. A secret key can cancel any codeless redemption of its workspace for the customer it names, including one the Online Store placed. A redemption that is already resolved answers released: false. A ref that is another customer’s, was placed through POST /v1/redemptions (use /redemptions/{id}/release) or is unknown is 404 not_found.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Request Body
Section titled “Request Body ”object
The Shopify customer’s numeric id the redemption was placed for.
Example
7894561230Responses
Section titled “ Responses ”Cancelled, or already resolved.
object
False when the redemption was already resolved (released, finalized or expired).
Ref is not a valid UUID, or customer_external_id is malformed.
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:write scope — a publishable key (publishable_key_forbidden), or an OAuth token, which is always read-only in v1 (insufficient_scope).
object
object
Example
not_foundExample
req_9f8e7d6c5b4a3210No such customer in this tenant (customer_not_found), or no such checkout redemption for that customer (not_found).
object
object
Example
not_foundExample
req_9f8e7d6c5b4a3210