Create transfers
Move money between two accounts or out to a counterparty with POST /transfers, a rail, minor-unit string amounts, and an Idempotency-Key.
POST /api/v1/transfers creates one transfer: a book transfer between two of your accounts, or a withdrawal from an account to a counterparty.
Before you begin
- Get an API token with the
transfers:createscope. See Authentication. - Read the source account and confirm its
statusisactiveandbalance.available_minorcovers the amount. See Manage accounts. - For a withdrawal, read the counterparty and confirm its
statusisactiveand itssupported_railscovers the rail you will use. See Manage counterparties. - Generate a new
Idempotency-Keyfor each transfer. See Idempotency.
Request body
| Field | Required | Values |
|---|---|---|
source | Yes | {"type": "account", "id": "acct_..."} |
destination | Yes | {"type": "account", "id": "acct_..."} or {"type": "counterparty", "id": "cpty_..."} |
amount_minor | Yes | Minor units as a digit string, for example "125000" for 1,250.00 USD. No decimals, no leading zero, at most "99999999999". |
currency | No | usd, the default and only value. |
rail | For withdrawals | ach, sameday_ach, or fedwire. Omit it, or send internal, for account to account; any other rail is refused there. |
purpose | Yes | treasury, family_support, supplier_payment, payroll, intercompany, investment, trade_settlement, loan_repayment, goods_services, or other. |
description | When purpose is other | Your own note, up to 2,000 characters. Optional for any other purpose. It stays inside Roots and is never sent to the bank. |
memo | No | Text sent to the bank with the transfer, in the rail's free-text field. At most 80 characters on ach and sameday_ach and 140 on fedwire and internal. ACH and Fedwire carry printable ASCII only; a longer memo, or one with characters the rail cannot carry, is refused. |
external_id | No | Your reference: letters, digits, and ._:-, up to 64 characters. |
The endpoint pair sets the direction:
source → destination | direction | rail |
|---|---|---|
account → account | internal | internal |
account → counterparty | withdrawal | ach, sameday_ach, or fedwire |
The rail is the whole payment method; there is no separate speed. Pick the rail for how the money should move:
rail | Moves as | Counterparty must list in supported_rails |
|---|---|---|
ach | Standard ACH | ach |
sameday_ach | Same-day ACH | ach |
fedwire | Wire | fedwire |
Each client is enabled for its own set of rails. A rail that is not enabled for your client is refused with 409 rail_not_enabled; ask Roots to enable it.
Deposits cannot be created. They are recorded from the inbound rail event and read through GET /api/v1/transfers with direction deposit. In sandbox, POST /api/v1/sandbox/deposits with account_id and amount_minor simulates an inbound ach deposit to fund a test account and returns the deposit's transfer id; see Test scenarios.
Move money between two accounts
curl https://api.sandbox.roots.finance/api/v1/transfers \
-H "Authorization: Bearer $ROOTS_API_TOKEN" \
-H "Idempotency-Key: 2f7a9c1e-xfer-treasury-0001" \
-H "Content-Type: application/json" \
-d '{
"source": {"type": "account", "id": "acct_4d9e2b7c1a6f5e3d8b0c9a2f1e7d6c5b"},
"destination": {"type": "account", "id": "acct_9a1b2c3d4e5f46a7b8c9d0e1f2a3b4c5"},
"amount_minor": "500000",
"purpose": "treasury",
"external_id": "sweep-2026-10-07"
}'Both accounts must be active and in the same currency.
Pay a counterparty
curl https://api.sandbox.roots.finance/api/v1/transfers \
-H "Authorization: Bearer $ROOTS_API_TOKEN" \
-H "Idempotency-Key: 7b3e5d2a-xfer-northstar-inv-881" \
-H "Content-Type: application/json" \
-d '{
"source": {"type": "account", "id": "acct_4d9e2b7c1a6f5e3d8b0c9a2f1e7d6c5b"},
"destination": {"type": "counterparty", "id": "cpty_6b2e9d4a1c7f4b3e8d5a0c9f2e1b7a64"},
"amount_minor": "125050",
"rail": "ach",
"purpose": "supplier_payment",
"external_id": "inv-881"
}'A withdrawal is accepted only when:
- The source account is
active. - The rail is enabled for your client.
- The counterparty is
active, is held for the same person that owns the source account, and lists the rail (achforsameday_ach) inexternal_account_information.supported_rails. - The counterparty's
mailing_addresshasstateandpostal_code.
Withdrawals go over
ach,sameday_ach, orfedwire.swiftis refused with422.
Read the response
A 201 returns a TransferDetail:
{
"id": "xfer_3e7a1d9c5b2f4e8a9c6d0b1f2e3a4d5c",
"source": {
"type": "account",
"id": "acct_4d9e2b7c1a6f5e3d8b0c9a2f1e7d6c5b",
"person_id": "person_8a3c5e1b7d2f4a6c9e0b3d5f7a1c2e48",
"name": "Harbor Trading LLC",
"label": "Operating"
},
"destination": {
"type": "counterparty",
"id": "cpty_6b2e9d4a1c7f4b3e8d5a0c9f2e1b7a64",
"person_id": null,
"name": "Northwind Supplies Inc",
"label": null
},
"account_id": "acct_4d9e2b7c1a6f5e3d8b0c9a2f1e7d6c5b",
"destination_account_id": null,
"counterparty_id": "cpty_6b2e9d4a1c7f4b3e8d5a0c9f2e1b7a64",
"direction": "withdrawal",
"rail": "ach",
"amount_minor": "125050",
"fee_quoted_minor": "0",
"fee_charged_minor": "0",
"fee_mode": "on_top",
"status": "pending",
"status_detail": null,
"failure": null,
"rail_refs": {},
"parent_transfer_id": null,
"purpose": "supplier_payment",
"description": null,
"memo": null,
"external_id": "inv-881",
"uetr": null,
"created_by_identity_id": "ident_0c4f8a2e6b1d4c7a9e3f5b2d8a1c6e40",
"approved_by_identity_id": null,
"created_at": "2026-10-07T10:02:17Z",
"submitted_at": null,
"settled_at": null,
"failed_at": null,
"returned_at": null
}A 201 is not a settlement. It reports the state the transfer reached during the call, which may be in flight or already terminal: read status, status_detail, and, when it failed, failure. Follow the transfer with Track transfer status.
source and destination name both sides of the transfer: type is account, counterparty or external (a party outside Roots that nobody registered, such as an ACH originator), id is the party's own id (null for external), person_id is the owning person of an account, and label is your own name for an account, null when unset. account_id, destination_account_id and counterparty_id are deprecated in favour of source and destination.
fee_quoted_minor is the fee quoted from your fee schedule, in minor units, an estimate of what the transfer will cost. A withdrawal is "0" in the create response and is quoted a moment later. fee_charged_minor is the fee actually charged to the account: the sum of the transfer's posted fees, "0" until the fee posts. GET /api/v1/fees lists every charge. fee_mode on_top debits amount_minor plus fee from the payer; deducted takes the fee out of the amount, so the beneficiary receives amount_minor minus fee.
Handle refusals
| Status | code | Cause |
|---|---|---|
422 | insufficient_funds | available_minor, less withdrawals you already created that have not reached the bank, is below amount_minor. The transfer is kept as failed with failure.code insufficient_funds, and transfer.created and transfer.status.changed are sent. A retry with the same Idempotency-Key repeats the refusal even if the balance has changed; send a new key. |
409 | account_not_active | The source or destination account is not active (pending, frozen, closed, or failed). |
422 | validation | A malformed field, a non-active counterparty, a counterparty held for another person, a withdrawal without rail, or swift. violations lists each problem. |
400 | validation | A rail the counterparty does not support, a counterparty mailing_address without state or postal_code, or accounts in different currencies. detail says which. |
400 | insufficient_billing_balance | Your billing balance is below its minimum. See Reconcile balances and transfers. |
400 | insufficient_fraud_reserve | Your fraud reserve is below what Roots requires; detail says the shortfall. See Manage your billing balance and fraud reserve. |
404 | not_found | An id that does not exist in your client. |
409 | rail_not_enabled | The rail is not enabled for your client. Use an enabled rail, or ask Roots to enable this one. |
409 | idempotency_key_conflict | The Idempotency-Key was used with a different body. |
502 | backend_unavailable | The payments backend did not answer. Retry with the same Idempotency-Key. |
A retry with the same key and body returns the original response, or repeats the original refusal, and never creates a second transfer. See Idempotency. A transfer that ended failed stays that way; send a new transfer with a new key.
Next steps
Updated 8 days ago