# Reverse Standalone Transfer

Fully or partially reverse a `PLATFORM_TO_RECIPIENT` transfer, subject to its status and remaining reversible amount.

A `RECIPIENT_TO_PLATFORM` parent cannot be reversed: both full and partial reversal requests return `400 INVALID_PARAMETERS`. To return a separately collected fee, [create a new transfer](/reference/transfers/create-standalone-transfer) with `direction: PLATFORM_TO_RECIPIENT`.

The reversal HTTP response describes the parent after the reversal and does not include `direction`. Use [GET](/reference/transfers/get-standalone-transfer) to read the unchanged parent direction. The reversal notification includes the parent's `PLATFORM_TO_RECIPIENT` direction.

**POST** `/split-marketplace/transfers/{transfer_id}/reverse`

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

Fully or partially reverse a PLATFORM_TO_RECIPIENT transfer. A RECIPIENT_TO_PLATFORM parent returns 400 INVALID_PARAMETERS. To return a separately collected fee, create a new PLATFORM_TO_RECIPIENT transfer. The reversal HTTP response does not include direction; read the parent transfer to retrieve it.

## Authorization

- PUBLIC-API-KEY (apiKey in header)
- PRIVATE-SECRET-KEY (apiKey in header)

## Header parameters

- `X-Idempotency-Key` (string, required)
  Unique key for request idempotency.

## Path parameters

- `transfer_id` (string, required)
  The unique ID of the transfer flow to reverse.

## Body

Content type: `application/json`

- `account_id` (string, required)
  The unique identifier of the account.
- `amount` (object)
  - `value` (number, required)
  - `currency` (string, required)
- `reason` (string)
  The reason for the reversal.
- `description` (string)
  A human-readable description for the reversal.
- `merchant_reference` (string)
  Merchant's unique identifier for tracking this reversal.

Example:

```json
{
  "account_id": "string",
  "amount": {
    "value": 150,
    "currency": "USD"
  },
  "reason": "string",
  "description": "string",
  "merchant_reference": "string"
}
```

## Responses

### 201

Reversal processed

- `id` (string)
- `recipient_id` (string<uuid>)
- `amount` (object)
  - `value` (number, required)
  - `currency` (string, required)
- `status` (string)
- `reason` (string)
- `description` (string)
- `merchant_reference` (string)
- `provider_data` (object,null)
- `created_at` (string<date-time>)
- `updated_at` (string<date-time>)
- `transactions` (object[])
  - `code` (string)
  - `type` (string)
  - `status` (string)
  - `provider_transfer_id` (string)
  - `provider_response_message` (string)
  - `provider_raw_response` (string)
  - `parent_transaction_code` (string)
    Code of the original transaction that a SPLIT_TRANSFER_REVERSE transaction reverses. Absent on the original transaction.
  - `reason` (string)
    Reason given in the reverse request. Present on SPLIT_TRANSFER_REVERSE transactions.
  - `created_at` (string<date-time>)
  - `updated_at` (string<date-time>)

Example:

```json
{
  "id": "550e8400-e29b-41d4-a716-446655440000",
  "recipient_id": "550e8400-e29b-41d4-a716-446655440000",
  "amount": {
    "value": 150,
    "currency": "USD"
  },
  "status": "REVERSED_PARTIAL",
  "reason": "ORDER_CANCELLED",
  "description": "Weekly marketplace earnings",
  "merchant_reference": "TRANSFER-2026-02-15-001",
  "provider_data": {
    "id": "string",
    "recipient_id": "string",
    "transaction_id": "string",
    "response_code": "string",
    "response_message": "string"
  },
  "created_at": "2026-02-16T10:30:00Z",
  "updated_at": "2026-02-16T10:30:15Z",
  "transactions": [
    {
      "code": "9eee65d1-6c3a-4076-9ef9-fa4bff73d597",
      "type": "SPLIT_TRANSFER",
      "status": "ERROR",
      "provider_transfer_id": "tr_1T9PTLIiMnPsFcbbFKyh1Nds",
      "provider_response_message": "...",
      "provider_raw_response": "{.... }",
      "parent_transaction_code": "cb5fd244-90fd-49b0-a160-a9d9f764eb9e",
      "reason": "ORDER_CANCELLED",
      "created_at": "2026-03-10T13:39:19.342902Z",
      "updated_at": "2026-03-10T13:39:19.342914Z"
    }
  ]
}
```

### 400

Bad Request

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

Example:

```json
{
  "code": "string",
  "messages": [
    "string"
  ]
}
```

### 404

Not Found

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

Example:

```json
{
  "code": "string",
  "messages": [
    "string"
  ]
}
```

### 502

Bad Gateway

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

Example:

```json
{
  "code": "string",
  "messages": [
    "string"
  ]
}
```