Skip to main content
POST
Reverse a redemption
Reverses a COMPLETED or PARTIALLY_REVERSED redemption, either in full or in part.
  • Full vs. partial: Omit amount, quantity, and face_value to reverse all remaining value, or send at most one of them for a partial reversal. Multiple partial reversals are allowed up to the original redemption amount (409 already_reversed once fully reversed). Delivered gift cards cannot be reversed (409 fulfillment_delivered).
  • Lots and inventory: LOT-mode assets restore the consumed lots in reverse spend order. UNIT_BASED catalog items decrement committed_units and delivered_units, returning an OUT_OF_STOCK reward to ACTIVE if committed inventory drops below max_total.
  • Idempotency: idempotency_key is scoped to the redemption. Reusing a key with the same request returns 201 with Idempotent-Replayed: true; reusing it with a different request returns 409 idempotency_conflict.
For usage patterns and examples, see the Redemptions guide.

Authorizations

Authorization
string
header
default:sk_...
required

Send your API key as Authorization: Bearer <key>.

Headers

Idempotency-Key
string

Unique key (1-255 printable ASCII characters) to make retries safe. Repeating the same request with the same key returns the original result; reusing the key with different fields returns 409 idempotency_conflict. When the body also accepts idempotency_key, supply either or both with the same value.

Maximum string length: 255

Path Parameters

redemption_id
string<uuid>
required

The redemption's id.

Body

application/json

Reversal details

Reverses a redemption, all of it or part of it. Send one of amount (points), quantity (units) or face_value (money), or none to reverse all that is left.

reason
string
required

Why this reversal is being made (1-500 chars)

Required string length: 1 - 500
Example:

"Customer refund request"

amount
string

Points to reverse for raw or AMOUNT_BASED redemptions (omit for full reversal, decimal string)

Example:

"500.00"

face_value
object

The money to reverse, for a redemption made with a face_value. Scrip returns the same share of the redemption's points, rounded down, at the rate fixed when the points were held. The currency must match the redemption's. Send the most the remaining points are worth, shown as details.remaining on a 409 response, to return all of them. To return points that rounding left behind, or to reverse a redemption made with amount, send amount.

idempotency_key
string

Your key for this reversal. You can send it in the Idempotency-Key header instead; when both are sent they must match.

Example:

"reverse-12345"

quantity
integer

Units to reverse for UNIT_BASED catalog redemptions (omit for full reversal)

Example:

1

Response

Reversal created

A reversal of all or part of a redemption.

amount
string

Amount credited back to the participant's balance (decimal string)

Example:

"500.00"

created_at
string<date-time>

When this reversal was created

Example:

"2027-01-15T10:30:00Z"

id
string<uuid>

Unique identifier for this reversal

Example:

"9e3c5b71-6d28-4a94-8f1e-0c7b2a4d6e11"

journal_entry_id
string<uuid>

The ledger journal entry created by this reversal

Example:

"657a0312-1aaa-4ba7-842b-edfbb39edf14"

quantity
integer

Units reversed (UNIT_BASED catalog redemptions only)

Example:

1

reason
string

Why this reversal was made

Example:

"Customer refund request"

redemption_id
string<uuid>

The redemption that was reversed

Example:

"7f422b43-4ba2-41c7-b05d-e4e90b68e978"