> ## Documentation Index
> Fetch the complete documentation index at: https://developer-embed.kolomonimfb.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Inter Bank Transfer

> This endpoint initiates a bank funds transfer from an Embed wallet account within your organization, to an external bank account.

> [!NOTE]
>
> ### **Transaction Reference (transactionRef)**
>
> When a payout transaction is successfully submitted, a `transactionRef` is included in the response payload under the `data` object.
>
> #### **Key Considerations:**
>
> * **Store the `transactionRef` securely** on your end. It acts as the unique identifier for that specific transaction.
> * The `transactionRef` can be used to **confirm the status** of the transaction at a later time.
> * It is also essential for **mapping webhook notifications** to the correct payout transaction—especially for tracking successful debits.
>
> #### **Note:**
>
> On Staging environment, you must include the stagingStatus field in the request body. This allows you to simulate either a successful or failed payout. In both cases, a webhook notification will be sent indicating the outcome of the payout. On Production, you must skip this field entirely. Please ensure that you have configured your webhook URL on your staging dashboard in order to receive webhook notifications.

## Destination account

The destination account must be one of your organisation's **active, approved payout accounts** at the same bank. It does not have to be your default payout account. If the destination is not one of your approved payout accounts, the request is rejected with `403`:

`The destination account is not one of your organisation's payout accounts. Add it on the portal or contact support.`

Add the account on the portal, or contact support if your organisation needs to pay out to other destinations.

## OTP verification (opt-in)

If your organisation has opted in to payout OTP verification, a transfer is not queued straight away. Contact support to opt in or out.

**1. Initiate the transfer**

Call this endpoint as usual. Limits, wallet, KYC, balance and duplicate-reference checks run first, so a transfer that would fail returns its error without sending an OTP.

If the checks pass, the response is `202` with status `PENDING_OTP` and a `pendingReference`. A 6-digit OTP is emailed to your organisation's email on file. It is valid for **2 minutes**.

**2. Complete the transfer**

Send the `pendingReference` and the OTP to [Complete Inter Bank Transfer](https://developer-embed.kolomonimfb.com/api-reference/playground/payout/complete_interbank_transfer.md). Every check runs again, then the response is `200` and the payout is queued.

> [!NOTE]
>
> If your organisation has not opted in, this endpoint returns `200` and queues the payout immediately. No OTP is sent and no further call is needed.

> [!WARNING]
>
> If `customerTransactionReference` has already been used, use a new reference before starting another transfer.

**destinationBankCode** `string` *required*

**Example:** `000010`

**destinationAccountNumber** `string` *required*

**Example:** `1111111111`

**destinationAccountName** `string` *required*

**Example:** `Bruce Banner`

**sourceAccountNumber** `string` *required*

**Example:** `9666055662`

**sourceAccountName** `string` *required*

**Example:** `Tony Stark`

**remarks** `string` *required*

**Example:** `Hello World`

**amount** `integer` *required*

**Example:** `100000`

**currencyId** `string` *required*

**Example:** `3fa85f64-5717-4562-b3fc-2c963f66afa6`

**customerTransactionReference** `string`

**Example:** `3fa85f64-5717-4562-b3fc-2c963f66afa6`

**stagingStatus** `string`

The status of the staging process. Possible values are
`success` or `failed`.

**Note:** This field doesn't apply on production and
should be removed entirely.

**Example:** `success`

```json 200 Success theme={null}
{
    "data": "EMBe66029d4f6e2432a905a3642fa0dd380",
    "statusCode": 200,
    "code": "00",
    "message": "Request is being processed.",
    "succeeded": true
}
```

```json 202 Pending OTP theme={null}
{
    "data": {
        "status": "PENDING_OTP",
        "pendingReference": "3fa85f64-5717-4562-b3fc-2c963f66afa6"
    },
    "statusCode": 202,
    "message": "An OTP has been sent to your organisation's email.",
    "succeeded": true
}
```

```json 403 Destination not approved theme={null}
{
    "statusCode": 403,
    "message": "The destination account is not one of your organisation's payout accounts. Add it on the portal or contact support.",
    "succeeded": false
}
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.