Place a redemption hold
POST /redemptions
Places a Points value or a Fixed reward redemption on the spend programme in force, priced against cart. The body picks which: requested_points places a Points value redemption; omit it and name a Fixed reward card in option_id to place that card at the price it fixes. The Idempotency-Key header is REQUIRED — a duplicate replays the same hold, and the same key with the other body shape is idempotency_key_reuse. program names the programme the hold is placed in; the same key replays whether it spells that programme as a handle or as an id, and a key first used with no program is idempotency_key_reuse if it is replayed naming one.
Authorizations
Section titled “Authorizations ”Request Body
Section titled “Request Body ”object
The card id shown to the member. With requested_points, a Points value card, refused (422) unless it is the card the spend programme picks; without it, a Fixed reward card, placed at its own price.
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 points to spend. Required for a Points value card, and whenever option_id is absent. Omit it for a Fixed reward card, whose cost the card fixes: sending it with a Fixed reward option_id is refused (422 card_not_placeable).
object
The channel the lines’ product and collection ids belong to.
object
Null = membership unknown (never eligible).
The variant’s compare-at price per unit (minor units). Omitted means the line has none: a percentage card priced on compare-at takes its percentage of the selling price.
Responses
Section titled “ Responses ”Hold placed.
object
The card the redemption is pinned to.
Points reserved. A Points value redemption reserves at most requested_points, less when the cart or card caps the value; a Fixed reward reserves the card’s points cost, or less when its shrink setting prices a partial cover.
Missing Idempotency-Key header, a malformed body, 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
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, or the program names no programme of this workspace (not_found).
object
object
Example
not_foundExample
req_9f8e7d6c5b4a3210The Idempotency-Key was used with a different request (idempotency_key_reuse), a per-customer limit was reached (cap_reached), or the member already has an active redemption (not_stackable).
object
object
Example
not_foundExample
req_9f8e7d6c5b4a3210Insufficient balance (insufficient_balance), or nothing is redeemable (option_not_eligible, with details.reason: no_spend_programme, no_matching_card, nothing_redeemable, cart_does_not_cover, card_not_in_force, card_not_placeable (this body shape does not place that card’s kind, with details.kind), card_unpriceable, card_kind_changed, not_offered or card_not_selected).
object
object
Example
not_foundExample
req_9f8e7d6c5b4a3210The member’s redemption velocity limit was reached (rate_limited, with Retry-After).
object
object
Example
not_foundExample
req_9f8e7d6c5b4a3210