> ## Documentation Index
> Fetch the complete documentation index at: https://docs.orum.io/llms.txt
> Use this file to discover all available pages before exploring further.

# Cancellations

> How to cancel a transfer. 

The only transfers that can be canceled are:

<Tabs>
  <Tab title="ACH/SDACH Transfers">
    ACH and SDACH transfers can be cancelled if it has not yet been submitted to the processor. For more details, review the [cutoff times](/guides/transfer-speed#speed-and-delivery-time-by-use-case).
  </Tab>

  <Tab title="A2A Transfers">
    The credit leg of an A2A transfer may be canceled regardless of the payment method if the debit leg has not yet been completed. For more details, review the [cutoff times](/guides/transfer-speed#speed-and-delivery-time-by-use-case).
  </Tab>
</Tabs>

<Tip>
  Looking to cancel a transfer through Monitor? See [this guide](/guides/monitor/money-movement/cancellations)
</Tip>

## Steps To Cancel A Transfer

<Steps>
  <Step title="Request Cancel">
    [Call the cancellation endpoint](/api-reference/deliver/transfers/post-transfer-cancel).
  </Step>

  <Step title="Get Response">
    Communication on whether it was successful will be available via webhook or a GET call.

    <CodeGroup>
      ```json Succesful 202 Reponse theme={null}
      {
        "message": "The transfer cancellation request was successful."
      }
      ```

      ```json Not Successful 400 Resopnse theme={null}
      {
        "error_code": "cancellation_not_available",
        "message": "Transfer cannot be canceled."
      }
      ```
    </CodeGroup>

    <Note>
      Upon success, the transfer status will be updated to `Failed`.
    </Note>
  </Step>
</Steps>

## Webhook Example

```json theme={null}
{
    "event_id": "cl0e13b9-7311-440b-828a-a5c13c4e342p",
    "event_type": "transfer_updated",
    "created_at": "2024-08-26T18:57:18.087Z",
    "event_data": {
        "transfer": {
            "id": "542dbbe3-cf18-4d94-a490-7dde26f5b5bp",
            "transfer_reference_id": "test",
            "amount": 200,
            "currency": "USD",
            "speed": "same_day",
            "destination": {
                "account_reference_id": "p7db1-2n38ywn",
                "customer_reference_id": "5jd29a-ja2qof612"
            },
            "status": "failed",
            "status_reasons": [
                {
                    "destination": {
                        "reason_code": "canceled_transfer",
                        "reason_code_message": "The transfer cancellation request was successful",
                    }
                }
            ]
        }
    }
}
```
