# Cancel Entity Transfer (Banking Connectivity)

Cancel a pending transfer. Only transfers in `PENDING` status can be cancelled. Transfers that have moved to `PROCESSING` or later statuses cannot be cancelled.

**POST** `/banking/accounts/{account_id}/transfers/{transfer_id}/cancel`

Base URL: `https://api-sandbox.whitelabel.com/v1`

Cancel Entity Transfer (Banking Connectivity)

## Authorization

- public-api-key (apiKey in header)
- private-secret-key (apiKey in header)

## Path parameters

- `account_id` (string, required)
  The unique identifier of the account. Found on the [WHITELABEL dashboard](https://dashboard.whitelabel.com/) (UUID, 36 chars).
- `transfer_id` (string, required)
  The `id` of the transfer obtained from [Initiate Entity Transfer](/reference/initiate-entity-transfer) (UUID, 36 chars).

## Responses

### 200

### 400

Bad Request

- `code` (string)
- `messages` (string[])
- `http_code` (integer)

Example:

```json
{
  "code": "VALIDATION_ERROR",
  "messages": [
    "Only transfers in PENDING status can be cancelled"
  ],
  "http_code": 400
}
```

### 404

Not Found

- `code` (string)
- `messages` (string[])
- `http_code` (integer)

Example:

```json
{
  "code": "ACCOUNT_NOT_FOUND",
  "messages": [
    "Account not found"
  ],
  "http_code": 404
}
```