Skip to content

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.

POST /v1/redemptions — full reference.

Terminal window
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 }] }
}'
201
{
"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"
}

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.

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.

Terminal window
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 }] }
}'
201
{
"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"
}

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.

GET /v1/redemptions/{redemptionId} — full reference.

Terminal window
curl https://sandbox.usetessera.io/v1/redemptions/r3d3e123-0000-4000-8000-000000000003 \
-H "Authorization: Bearer $TESSERA_SECRET_KEY"
200
{ "redemption_id": "r3d3e123-0000-4000-8000-000000000003", "state": "held", "amount": 500 }

POST .../finalize — full reference.

Terminal window
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" }'
200
{ "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.

POST .../release — full reference.

Terminal window
curl -X POST https://sandbox.usetessera.io/v1/redemptions/r3d3e123-0000-4000-8000-000000000003/release \
-H "Authorization: Bearer $TESSERA_SECRET_KEY"
200
{ "redemption_id": "r3d3e123-0000-4000-8000-000000000003", "state": "released", "available": 4200 }
await redemption.release();
codeStatusCause
invalid_request400Missing Idempotency-Key header, or a malformed body.
customer_not_found404No such member; or the option doesn’t exist in this tenant.
tier_gated403The option requires a tier the member hasn’t reached.
cap_reached409A per-member cap on this option was already hit.
not_stackable409The option can’t combine with another the member is already redeeming.
insufficient_balance422Not enough available points — see details.shortfall.
option_not_eligible422The 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_released409Tried to finalize a hold that was already released (terminal).

See Error handling for how to branch on these in your checkout flow.