---
title: "Cancel a transfer"
method: POST
path: "/cases/{case_id}/transfers/{transfer_id}/cancel"
tags: ["Transfers"]
---

# Cancel a transfer

`POST /cases/{case_id}/transfers/{transfer_id}/cancel`

## Request

- Base URL: `https://api.example.com/v1`
- URL: `https://api.example.com/v1/cases/{case_id}/transfers/{transfer_id}/cancel`
- Auth: none declared

Cancel a transfer that has not yet been submitted to the ACH network. Transfers in
`requested`, `verifying`, or `approved` may be cancelled; once the status is `submitted`
the transfer can no longer be stopped.

Transfers are not deleted. A cancelled transfer stays on the case for audit purposes.

## Request body

- object
  - `reason` string

## Response `200`

Transfer cancelled.

- object
  - `data` Transfer: An Instant Inheritance transfer pulling funds from a deceased account holder's bank account into the case's estate account.
    - `id` string
    - `case_id` string
    - `bank_account_id` string: The deceased's bank account the funds are pulled from.
    - `estate_account_id` string: The FDIC-insured Sunset estate account the funds land in.
    - `method` 'ach_debit': Transfer rail. ACH debit is the only method at launch.
    - `amount_requested` number, double
    - `amount_settled` number, double, nullable: Amount actually credited to the estate account. Null until the transfer settles.
    - `currency` string
    - `status` 'requested' | 'verifying' | 'approved' | 'submitted' | 'in_transit' | 'completed' | 'returned' | 'rejected' | 'cancelled'
    - `status_reason` string, nullable: Explanation for a `rejected`, `returned`, or `cancelled` transfer.
    - `return_code` 'R01' | 'R02' | 'R03' | 'R04' | 'R08' | 'R10' | 'R16' | 'R20' | 'R29' | 'null', nullable: NACHA return code when `status` is `returned`.
    - `requested_by` string: User who requested the transfer.
    - `requested_at` string, date-time
    - `submitted_at` string, date-time, nullable
    - `expected_settlement_date` string, date, nullable: Business day the funds are expected in the estate account.
    - `settled_at` string, date-time, nullable
    - `trace_number` string, nullable: ACH trace number, available once submitted.
    - `created_at` string, date-time
    - `updated_at` string, date-time

## Other responses

- `404`: Resource not found.
- `422`: The transfer has already been submitted and cannot be cancelled.

---

[API](https://skmtc.dev/hellosunset/apis/sunset-api.md) - [All operations](https://skmtc.dev/hellosunset/apis/sunset-api/llms.txt) - [OpenAPI document](https://skmtc.dev/hellosunset/apis/sunset-api/revisions/f128e5526efe?raw)
