Redemptions & holds
Goal: let a member spend points on a catalogue option — the burn-hold lifecycle described in Ledger & currencies: place a hold, then finalize or release it.
A request places one of two kinds of card, chosen by what you send: a Points value card
(you send requested_points) or a Fixed reward card (you send its option_id alone). Read each
card’s kind and placeable from GET /v1/rewards to choose.
Place a hold
Section titled “Place a hold”POST /v1/redemptions — full reference.
curl -X POST https://sandbox.usetessera.io/v1/redemptions \ -H "Authorization: Bearer $TESSERA_SECRET_KEY" \ -H "Idempotency-Key: 3f29b6b0-9e0a-4b0e-8f0a-6a0d5e6c7b8a" \ -H "Content-Type: application/json" \ -d '{ "option_id": "b2b17b7e-0000-4000-8000-000000000002", "customer_channel": "shopify", "customer_external_id": "cust_5512", "requested_points": 500, "cart": { "channel": "api", "lines": [{ "line_id": "l1", "product_id": "sku_42", "collection_ids": null, "quantity": 1, "line_subtotal_cents": 4200 }] } }'{ "redemption_id": "r3d3e123-0000-4000-8000-000000000003", "customer_uuid": "c0ffee00-0000-4000-8000-000000000001", "option_id": "b2b17b7e-0000-4000-8000-000000000002", "amount": 500, "discount_value_cents": 500, "mechanism": "function", "state": "held", "expires_at": "2026-07-27T12:00:00.000Z", "created_at": "2026-07-24T12:00:00.000Z"}const member = tessera.member('cust_5512', { channel: 'shopify' });const redemption = await member.redeem({ optionId: 'b2b17b7e-0000-4000-8000-000000000002', requestedPoints: 500, cart: { channel: 'api', lines: [{ lineId: 'l1', productId: 'sku_42', quantity: 1, lineSubtotalCents: 4200 }] },});When you don’t pass an idempotencyKey, the SDK generates one for you and holds it constant
across that call’s own retries.
amount is the points reserved; discount_value_cents is the resolved money value (null for
non-monetary perks). The hold expires on its own if never finalized or released.
Place a Fixed reward
Section titled “Place a Fixed reward”A Fixed reward card has a set price, so you place it by its option_id with no
requested_points. The amount reserved is the card’s points cost (less when the card’s shrink
setting is charge_for_used and the cart covers only part of its value), and
discount_value_cents is the value to apply. The 201
response has the same shape as above.
curl -X POST https://sandbox.usetessera.io/v1/redemptions \ -H "Authorization: Bearer $TESSERA_SECRET_KEY" \ -H "Idempotency-Key: 7c1d5a42-3b0e-4f0a-9a1f-2d6e8b9c0a11" \ -H "Content-Type: application/json" \ -d '{ "option_id": "b2b17b7e-0000-4000-8000-000000000004", "customer_channel": "shopify", "customer_external_id": "cust_5512", "cart": { "channel": "api", "lines": [{ "line_id": "l1", "product_id": "sku_42", "collection_ids": null, "quantity": 1, "line_subtotal_cents": 4200 }] } }'{ "redemption_id": "r3d3e123-0000-4000-8000-000000000005", "customer_uuid": "c0ffee00-0000-4000-8000-000000000001", "option_id": "b2b17b7e-0000-4000-8000-000000000004", "amount": 500, "discount_value_cents": 500, "mechanism": "function", "state": "held", "expires_at": "2026-07-27T12:00:00.000Z", "created_at": "2026-07-24T12:00:00.000Z"}const fixed = rewards.find((r) => r.kind === 'fixed_reward' && r.placeable);if (!fixed) throw new Error('no Fixed reward is placeable');const redemption = await member.redeem({ optionId: fixed.id, // no requestedPoints: the card sets the price cart: { channel: 'api', lines: [{ lineId: 'l1', productId: 'sku_42', quantity: 1, lineSubtotalCents: 4200 }] },});Requires @tesseraloyalty/sdk 0.7.0 or later. redemptions.place takes the same two shapes.
Finalizing and releasing work exactly as below, and the hold counts against active_holds like any
other. A request is refused with 422 option_not_eligible when its shape does not fit the card:
requested_points sent with a Fixed card’s option_id, or an option_id that names a Points value
card without requested_points, gives details.reason card_not_placeable. A Fixed card the
programme cannot price gives card_unpriceable.
Check a hold’s status
Section titled “Check a hold’s status”GET /v1/redemptions/{redemptionId} — full reference.
curl https://sandbox.usetessera.io/v1/redemptions/r3d3e123-0000-4000-8000-000000000003 \ -H "Authorization: Bearer $TESSERA_SECRET_KEY"{ "redemption_id": "r3d3e123-0000-4000-8000-000000000003", "state": "held", "amount": 500 }Finalize — the order completed
Section titled “Finalize — the order completed”POST .../finalize — full reference.
curl -X POST https://sandbox.usetessera.io/v1/redemptions/r3d3e123-0000-4000-8000-000000000003/finalize \ -H "Authorization: Bearer $TESSERA_SECRET_KEY" \ -H "Content-Type: application/json" \ -d '{ "source_channel": "shopify", "source_ref": "ord_9001" }'{ "redemption_id": "r3d3e123-0000-4000-8000-000000000003", "state": "finalized" }await redemption.finalize({ sourceChannel: 'shopify', sourceRef: 'ord_9001' });Finalizing is idempotent — finalizing an already-finalized hold is a 200 no-op.
Release — the cart was abandoned
Section titled “Release — the cart was abandoned”POST .../release — full reference.
curl -X POST https://sandbox.usetessera.io/v1/redemptions/r3d3e123-0000-4000-8000-000000000003/release \ -H "Authorization: Bearer $TESSERA_SECRET_KEY"{ "redemption_id": "r3d3e123-0000-4000-8000-000000000003", "state": "released", "available": 4200 }await redemption.release();Common errors
Section titled “Common errors”code | Status | Cause |
|---|---|---|
invalid_request | 400 | Missing Idempotency-Key header, or a malformed body. |
customer_not_found | 404 | No such member; or the option doesn’t exist in this tenant. |
tier_gated | 403 | The option requires a tier the member hasn’t reached. |
cap_reached | 409 | A per-member cap on this option was already hit. |
not_stackable | 409 | The option can’t combine with another the member is already redeeming. |
insufficient_balance | 422 | Not enough available points — see details.shortfall. |
option_not_eligible | 422 | The option isn’t eligible for this member/cart right now. details.reason says why, e.g. card_not_placeable (the body shape doesn’t place that card’s kind), card_unpriceable, not_offered. |
hold_already_released | 409 | Tried to finalize a hold that was already released (terminal). |
See Error handling for how to branch on these in your checkout flow.