Skip to main content
POST
Reverse an event's awards
Claws back value credited by a COMPLETED event’s rules, updating the event’s reversal.status to PARTIAL or FULL. Call Get an event with expand[]=reversals to inspect up to the 100 most recent reversals.
  • Recovery and shortfall: Recovery targets the lots created by the original awards while that value is still available to the credited participant or group. Value already spent, expired, transferred, or in HELD status is reported as shortfall_amount and is never forced negative. Cumulative reversals are capped at each original award.
  • Partial fractions and rounding: Omit fraction to reverse all remaining value, or pass a decimal string like "0.5" to reverse that share of each award line (rounded half up per line to the asset’s scale). Exceeding any line’s remaining reversible value returns 409 reversal_exceeds_remaining rather than clamping; if every line rounds to zero, the request returns 422 fraction_rounds_to_zero.
  • State changes: The response lists non-reversible credit entries and the event’s state changes, but state changes are never reverted automatically. Send a compensating event if your program logic requires reversing state.
For worked rounding examples and when to use reversals versus compensating events, see Reversing an event and Refunds and clawbacks.

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

event_id
string<uuid>
required

The event's id.

Body

application/json

Reversal details

Reverses the awards an event issued, all of them or a fraction.

idempotency_key
string
required

Your key for this reversal. Send it here or in the Idempotency-Key header. The same key returns the first reversal again; the same key with different fields is rejected.

Required string length: 1 - 255
Example:

"refund-order-456-1"

fraction
string

Fraction of each original award to reverse, as a decimal string greater than 0 and at most 1. Each award's share is rounded half up to the asset's scale. Omit to reverse all remaining value.

Example:

"0.5"

reason
string

Optional context recorded on the reversal and its ledger entries.

Maximum string length: 500
Example:

"partial refund"

shortfall_policy
enum<string>

What Scrip does when a participant has already spent part of an award. Defaults to report.

Available options:
report
Example:

"report"

Response

Reversal created

The result of reversing the awards an event issued, with the amount recovered for each original award.

created_at
string<date-time>

When the reversal was created.

Example:

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

event_id
string<uuid>

The event whose awards were reversed.

Example:

"e5dc1b6a-7f3d-4e2a-8c1b-9a0f4d7e6c05"

fraction
string

The fraction you sent, with 18 decimal places, such as 0.500000000000000000. It is absent for a full reversal.

Example:

"0.500000000000000000"

id
string<uuid>

The id of the reversal. Use it to find the reversal again.

Example:

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

idempotency_key
string

The key you sent for this reversal.

Example:

"refund-order-456-1"

ineligible_entries
object[]

CREDIT entries of the event this reversal did not process, with reasons

lines
object[]

Per original award line accounting

reason
string

Why you reversed the event.

Example:

"partial refund"

shortfall_policy
enum<string>

What Scrip does when a participant has already spent part of an award.

Available options:
report
Example:

"report"

state_changes
object[]

The original event's state changes (counters, tags, attributes, tiers). Reversals never revert state automatically; send a compensating event if your program logic requires it.

status
enum<string>

The outcome of the reversal.

Available options:
COMPLETED
Example:

"COMPLETED"