Skip to content

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.

object
option_id

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.

string format: uuid
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
customer_channel
required
string
customer_external_id
required
string
requested_points

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).

integer
> 0 <= 1000000
cart
required
object
channel
required

The channel the lines’ product and collection ids belong to.

string
Allowed values: shopify lightspeed pos api
lines
required
Array<object>
object
line_id
required
string
product_id
required
string
collection_ids
required

Null = membership unknown (never eligible).

array | null
quantity
required
integer
> 0
line_subtotal_cents
required
integer
compare_at_price_cents

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.

integer

Hold placed.

object
redemption_id
required
string format: uuid
customer_uuid
required
string format: uuid
option_id
required

The card the redemption is pinned to.

string format: uuid
amount
required

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.

integer
discount_value_cents
required
integer | null
mechanism
required
string
Allowed values: discount_code function webhook
state
required
string
Allowed values: held
expires_at
required
string | null format: date-time
created_at
required
string format: date-time

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
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:write scope — a publishable key (publishable_key_forbidden), or an OAuth token, which is always read-only in v1 (insufficient_scope).

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

The 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
error
required
object
code
required
string
Example
not_found
message
required
string
details
request_id
required
string
Example
req_9f8e7d6c5b4a3210

Insufficient 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
error
required
object
code
required
string
Example
not_found
message
required
string
details
request_id
required
string
Example
req_9f8e7d6c5b4a3210

The member’s redemption velocity limit was reached (rate_limited, with Retry-After).

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