For the complete documentation index, see llms.txt. This page is also available as Markdown.

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.

Get Recovery Case

get

Returns one recovery case with its allocations. A case that belongs to another app returns 404, as a case that does not exist does.

Path parameters
idinteger · int64Required
Query parameters
app_idinteger · int32Optional
Header parameters
X-Violet-TokenstringRequired
X-Violet-App-SecretstringRequired
X-Violet-App-Idinteger · int32Required
Responses
default

default response

application/json
idinteger · int64Optional

The recovery case ID; the join key between Violet's records and yours.

recovery_case_idinteger · int64Optional

Same as id, matching the webhook payload.

refund_idinteger · int64Optional

The refund that opened the case.

order_idinteger · int64Optional

The refunded order and bag.

bag_idinteger · int64Optional

The refunded order and bag.

merchant_idinteger · int32Optional

The retailer that owes the amount.

payout_account_idinteger · int32Optional

The retailer's payout account for the refunded sale.

currencystringOptional

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.

gap_amountinteger · int64Optional

The commission the channel kept on this refund, in minor units.

shortfall_amountinteger · int64Optional

Any part of the sale's own reversal that came up short because an earlier recovery had already drawn on that transfer. Usually 0.

amount_to_recoverinteger · int64Optional

What the sale's own reversal returned, plus gap_amount, plus shortfall_amount.

amount_recoveredinteger · int64Optional

The sale's own reversal plus every executed draw; the sum of the allocations whose status is EXECUTED.

remaining_gapinteger · int64Optional

amount_to_recover minus amount_recovered. Zero or less means nothing is owed.

gap_amount_usdinteger · int64Optional

The same amount in US cents, at rates fixed when the case opened. Null when a rate was unavailable.

shortfall_amount_usdinteger · int64Optional

The same amount in US cents, at rates fixed when the case opened. Null when a rate was unavailable.

amount_to_recover_usdinteger · int64Optional

The same amount in US cents, at rates fixed when the case opened. Null when a rate was unavailable.

shortfall_unknownbooleanOptional

True when the shortfall could not be measured.

statusstringOptional

OPENED, RECOVERING, RECOVERED or EXHAUSTED.

escalationstringOptional

RUNGS_1_2_EXHAUSTED when the case is EXHAUSTED, otherwise null.

exhausted_reasonstringOptional

NO_DONOR_HEADROOM (can recover later, checked daily), TRANSFER_METHOD_NOT_AUTOMATIC, CURRENCY_UNKNOWN or SHORTFALL_UNKNOWN when EXHAUSTED, otherwise null.

transfer_reversal_idsinteger · int64[]Optional

Transfer reversal IDs: the sale's own reversal first, then each executed draw.

date_createdstring · date-timeOptional

Time at which the object was created. In ISO-8601 format.

date_last_modifiedstring · date-timeOptional

Time at which the object was last modified. In ISO-8601 format.

get/recovery_cases/{id}
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

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?