Get Recovery Case
Returns one recovery case with its allocations. A case that belongs to another app returns 404, exactly as a case that does not exist.
Returns one recovery case with its allocations. A case that belongs to another app returns 404, as a case that does not exist does.
default response
The recovery case ID; the join key between Violet's records and yours.
Same as id, matching the webhook payload.
The refund that opened the case.
The refunded order and bag.
The refunded order and bag.
The retailer that owes the amount.
The retailer's payout account for the refunded sale.
The case currency: the currency of the payment connection the order was paid through. Where the order names no connection it is the currency of the channel's payout account, and for a channel that is not on platform payments it is USD. A case that is EXHAUSTED with exhausted_reason CURRENCY_UNKNOWN, because no currency could be worked out for it, is in the currency of the refunded bag.
The commission the channel kept on this refund, in minor units.
Any part of the sale's own reversal that came up short because an earlier recovery had already drawn on that transfer. Usually 0.
What the sale's own reversal returned, plus gap_amount, plus shortfall_amount.
The sale's own reversal plus every executed draw; the sum of the allocations whose status is EXECUTED.
amount_to_recover minus amount_recovered. Zero or less means nothing is owed.
The same amount in US cents, at rates fixed when the case opened. Null when a rate was unavailable.
The same amount in US cents, at rates fixed when the case opened. Null when a rate was unavailable.
The same amount in US cents, at rates fixed when the case opened. Null when a rate was unavailable.
True when the shortfall could not be measured.
OPENED, RECOVERING, RECOVERED or EXHAUSTED.
RUNGS_1_2_EXHAUSTED when the case is EXHAUSTED, otherwise null.
NO_DONOR_HEADROOM (can recover later, checked daily), TRANSFER_METHOD_NOT_AUTOMATIC, CURRENCY_UNKNOWN or SHORTFALL_UNKNOWN when EXHAUSTED, otherwise null.
Transfer reversal IDs: the sale's own reversal first, then each executed draw.
Time at which the object was created. In ISO-8601 format.
Time at which the object was last modified. In ISO-8601 format.
GET /v1/recovery_cases/{id} HTTP/1.1
Host: sandbox-api.violet.io
X-Violet-Token: text
X-Violet-App-Secret: text
X-Violet-App-Id: 1
Accept: */*
default response
{
"id": 1,
"recovery_case_id": 1,
"refund_id": 1,
"order_id": 1,
"bag_id": 1,
"merchant_id": 1,
"payout_account_id": 1,
"currency": "text",
"gap_amount": 1,
"shortfall_amount": 1,
"amount_to_recover": 1,
"amount_recovered": 1,
"remaining_gap": 1,
"gap_amount_usd": 1,
"shortfall_amount_usd": 1,
"amount_to_recover_usd": 1,
"shortfall_unknown": true,
"status": "text",
"escalation": "text",
"exhausted_reason": "text",
"transfer_reversal_ids": [
1
],
"date_created": "2026-01-01T00:00:00.000Z",
"date_last_modified": "2026-01-01T00:00:00.000Z",
"allocations": [
{
"id": 1,
"recovery_case_id": 1,
"seq": 1,
"funding_type": "text",
"window": "text",
"status": "text",
"amount": 1,
"currency": "text",
"stripe_transfer_reversal_id": "text",
"stripe_transfer_id": "text",
"funding_payout_transfer_id": 1,
"donor_order_id": 1,
"donor_bag_id": 1,
"failure_reason": "text",
"date_created": "2026-01-01T00:00:00.000Z",
"date_last_modified": "2026-01-01T00:00:00.000Z"
}
]
}Last updated
Was this helpful?