> For the complete documentation index, see [llms.txt](https://docs.txn.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.txn.io/accounts/creating-account-transfer.md).

# Creating account transfer

<mark style="color:green;">`POST`</mark> `/api/public/v1/transfers`

Creates an instant transfer between two of your accounts in the same currency — between a master account and a subaccount, or between two subaccounts. The transfer produces two account transactions: a debit on the source account and a credit on the destination account.

**Headers**

| Name          | Value                      |
| ------------- | -------------------------- |
| Content-Type  | `application/vnd.api+json` |
| Authorization | `Bearer <api_key>`         |

**Body**

<table><thead><tr><th>Name</th><th width="116">Type</th><th>Description</th></tr></thead><tbody><tr><td>data</td><td>object</td><td>Request data object.</td></tr><tr><td>data.type</td><td>string</td><td>Resource type. Always <code>transfers</code>.</td></tr><tr><td>data.attributes</td><td>object</td><td>Transfer attributes.</td></tr><tr><td>data.attributes.from_account</td><td>string</td><td>ID of the account to debit.</td></tr><tr><td>data.attributes.to_account</td><td>string</td><td>ID of the account to credit. Must hold the same currency as the source account.</td></tr><tr><td>data.attributes.amount</td><td>number</td><td>Amount to transfer.</td></tr><tr><td>data.attributes.currency</td><td>string</td><td>Transfer currency. Must match the currency of both accounts.</td></tr><tr><td>data.attributes.reference</td><td>string</td><td>Your unique reference for this transfer. Included in downloadable CSV transaction reports.</td></tr></tbody></table>

**Request JSON**

```json
{
  "data": {
    "type": "transfers",
    "attributes": {
      "from_account": "13a85b45-8543-41c7-b963-394d4ea128ae",
      "to_account": "dd5016e1-43bb-4be5-b6d6-79e8d0f662b1",
      "amount": 10,
      "currency": "EUR",
      "reference": "c9807056-88da-409e-b628-732adbe76be5"
    }
  }
}
```

**cURL**

```bash
curl -X "POST" "https://api.sandbox.txn.io/api/public/v1/transfers" \
     -H 'Content-Type: application/vnd.api+json' \
     -H 'Authorization: Bearer <api_key>' \
     -d $'{
  "data": {
    "type": "transfers",
    "attributes": {
      "from_account": "13a85b45-8543-41c7-b963-394d4ea128ae",
      "to_account": "dd5016e1-43bb-4be5-b6d6-79e8d0f662b1",
      "amount": 10,
      "currency": "EUR",
      "reference": "c9807056-88da-409e-b628-732adbe76be5"
    }
  }
}'
```

**Response**

{% tabs %}
{% tab title="HTTP 201" %}

```json
{
  "data": {
    "id": "0ae28217-bbd9-40a1-9311-bc73d7d8559e",
    "type": "accountTransfers",
    "attributes": {
      "reference": "c9807056-88da-409e-b628-732adbe76be5"
    },
    "relationships": {
      "accountTransactions": {
        "data": [
          {
            "type": "accountTransactions",
            "id": "ad7bff0d-e113-4706-afd1-9eaeb72e77ea"
          },
          {
            "type": "accountTransactions",
            "id": "8b26a919-be88-4a29-8466-0a52142b45e6"
          }
        ]
      }
    }
  },
  "included": [
    {
      "id": "ad7bff0d-e113-4706-afd1-9eaeb72e77ea",
      "type": "accountTransactions",
      "attributes": {
        "createdAt": "2026-11-01T13:26:37.150Z",
        "amount": "-10.00"
      },
      "relationships": {
        "account": {
          "data": {
            "type": "accounts",
            "id": "13a85b45-8543-41c7-b963-394d4ea128ae"
          }
        },
        "accountTransfer": {
          "meta": {
            "included": false
          }
        }
      }
    },
    {
      "id": "8b26a919-be88-4a29-8466-0a52142b45e6",
      "type": "accountTransactions",
      "attributes": {
        "createdAt": "2026-11-01T13:26:37.170Z",
        "amount": "10.00"
      },
      "relationships": {
        "account": {
          "data": {
            "type": "accounts",
            "id": "dd5016e1-43bb-4be5-b6d6-79e8d0f662b1"
          }
        },
        "accountTransfer": {
          "meta": {
            "included": false
          }
        }
      }
    },
    {
      "id": "13a85b45-8543-41c7-b963-394d4ea128ae",
      "type": "accounts",
      "attributes": {
        "master": true,
        "currencyCode": "EUR",
        "label": "master",
        "bankReference": "BDR6421088115176062",
        "balance": "39261.07",
        "totalBalance": null,
        "bankWithdrawalAvailable": true,
        "bankDepositAvailable": true,
        "transferAvailable": true,
        "currencyType": "fiat"
      },
      "relationships": {
        "company": {
          "meta": {
            "included": false
          }
        },
        "networks": {
          "meta": {
            "included": false
          }
        },
        "txnBankCredentials": {
          "meta": {
            "included": false
          }
        }
      }
    },
    {
      "id": "dd5016e1-43bb-4be5-b6d6-79e8d0f662b1",
      "type": "accounts",
      "attributes": {
        "master": false,
        "currencyCode": "EUR",
        "label": "EUR_1",
        "bankReference": "BDR4778763138567183",
        "balance": "195.70",
        "totalBalance": null,
        "bankWithdrawalAvailable": true,
        "bankDepositAvailable": true,
        "transferAvailable": true,
        "currencyType": "fiat"
      },
      "relationships": {
        "company": {
          "meta": {
            "included": false
          }
        },
        "networks": {
          "meta": {
            "included": false
          }
        },
        "txnBankCredentials": {
          "meta": {
            "included": false
          }
        }
      }
    }
  ],
  "meta": {},
  "jsonapi": {
    "version": "1.0"
  }
}
```

{% endtab %}

{% tab title="HTTP 422" %}

```json
{
  "errors": [
    {
      "status": 422,
      "title": "Insufficient balance",
      "code": "account_has_insufficient_balance",
      "detail": "EUR account has insufficient balance",
      "source": {
        "pointer": "/data/attributes/amount"
      }
    }
  ]
}
```

{% endtab %}

{% tab title="HTTP 404" %}

```json
{
  "errors": [
    {
      "status": 404,
      "title": "Record not found",
      "code": "account_not_found",
      "detail": "Account not found"
    }
  ]
}
```

Either the source or destination account does not exist.
{% endtab %}
{% endtabs %}

**Response Body**

| Name                                                                 | Type    | Description                                                                                                                                                                                                                     |
| -------------------------------------------------------------------- | ------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `data.id`                                                            | string  | Transfer ID.                                                                                                                                                                                                                    |
| `data.type`                                                          | string  | Entity type returned. Always `accountTransfers`.                                                                                                                                                                                |
| `data.attributes.reference`                                          | string  | The reference you supplied in the request.                                                                                                                                                                                      |
| `data.relationships.accountTransactions`                             | array   | The two legs of the transfer, the debit and the credit; `data[].type` is `accountTransactions`. The entities are returned in `included[]`.                                                                                      |
| `included[].type(accountTransactions)`                               | object  | One leg of the transfer. Its `id` is the ID of the account transaction, which [Listing account transactions](https://docs.txn.io/accounts/listing-account-transactions.md) returns with `transactionType` `AccountTransaction`. |
| `included[].type(accountTransactions).attributes.createdAt`          | string  | When the leg was booked.                                                                                                                                                                                                        |
| `included[].type(accountTransactions).attributes.amount`             | string  | Amount in the account currency: negative on the source account, positive on the destination account.                                                                                                                            |
| `included[].type(accountTransactions).relationships.account`         | object  | The account debited or credited. `data.type` is `accounts`; the entity is returned in `included[]`.                                                                                                                             |
| `included[].type(accountTransactions).relationships.accountTransfer` | object  | Not expanded (`meta.included` is `false`). It is the transfer itself, `data.id`.                                                                                                                                                |
| `included[].type(accounts)`                                          | object  | The source and destination accounts (`included[].type(accountTransactions).relationships.account`), with balances updated for the transfer.                                                                                     |
| `included[].type(accounts).attributes.master`                        | boolean | `true` for the master account, `false` for a subaccount.                                                                                                                                                                        |
| `included[].type(accounts).attributes.currencyCode`                  | string  | Account currency code.                                                                                                                                                                                                          |
| `included[].type(accounts).attributes.label`                         | string  | Account label. Master accounts use `master`.                                                                                                                                                                                    |
| `included[].type(accounts).attributes.bankReference`                 | string  | Unique bank deposit reference of the account.                                                                                                                                                                                   |
| `included[].type(accounts).attributes.balance`                       | string  | Account balance at the time of the request.                                                                                                                                                                                     |
| `included[].type(accounts).attributes.totalBalance`                  | string  | Always `null` when the account is returned in `included[]`. Read the account to get it.                                                                                                                                         |
| `included[].type(accounts).attributes.bankWithdrawalAvailable`       | boolean | If `true`, bank withdrawals can be initiated from the account.                                                                                                                                                                  |
| `included[].type(accounts).attributes.bankDepositAvailable`          | boolean | If `true`, the account can receive bank deposits.                                                                                                                                                                               |
| `included[].type(accounts).attributes.transferAvailable`             | boolean | If `true`, the account can send and receive internal transfers.                                                                                                                                                                 |
| `included[].type(accounts).attributes.currencyType`                  | string  | `fiat` or `crypto`.                                                                                                                                                                                                             |
| `included[].type(accounts).relationships`                            | object  | `company`, `networks` and `txnBankCredentials`: not expanded (`meta.included` is `false`).                                                                                                                                      |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.txn.io/accounts/creating-account-transfer.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
