localsDocs Get sandbox keys
Concepts/Routes (virtual accounts)

Routes (virtual accounts)

A route is a virtual account: local bank details that belong to one customer and settle every deposit to a stablecoin address.

A route gives one customer their own local bank details. The customer pays into them with an ordinary bank transfer, and Locals settles each deposit in the stablecoin and on the chain you chose when you opened the route, to the address you gave.

AUD bank transfer→route_3f9a→USDC on Polygon→0x7a3f…91c2

Each deposit becomes a transfer with kind: route, so you track deposits with the same endpoints and status model as payouts.

Before you start

Open a route

Call POST/v1/routes with the customer, the currency they pay in and where the stablecoin goes: destination.currency is USDC or USDT, destination.chain one of arbitrum, avalanche, base, ethereum, optimism or polygon. Only EVM chains: solana, tron and any other are 400.

curl -X POST https://api.locals.money/v1/routes \
  -H "Authorization: Bearer $LOCALS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "customerId": "cus_8Hq2Lm",
    "source": { "currency": "AUD" },
    "destination": {
      "currency": "USDC",
      "chain": "polygon",
      "address": "0x7a3f0000000000000000000000000000000091c2"
    }
  }'
const res = await fetch('https://api.locals.money/v1/routes', {
  method: 'POST',
  headers: {
    Authorization: `Bearer ${process.env.LOCALS_KEY}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    customerId: 'cus_8Hq2Lm',
    source: { currency: 'AUD' },
    destination: { currency: 'USDC', chain: 'polygon', address: '0x7a3f0000000000000000000000000000000091c2' },
  }),
});
const route = await res.json();
import os, requests

res = requests.post(
    "https://api.locals.money/v1/routes",
    headers={"Authorization": f"Bearer {os.environ['LOCALS_KEY']}"},
    json={
        "customerId": "cus_8Hq2Lm",
        "source": {"currency": "AUD"},
        "destination": {
            "currency": "USDC",
            "chain": "polygon",
            "address": "0x7a3f0000000000000000000000000000000091c2",
        },
    },
)
route = res.json()
Response · 201
{
  "id": "route_3f9a",
  "customerId": "cus_8Hq2Lm",
  "status": "pending",
  "blocked": false,
  "source": { "currency": "AUD", "rail": "local_transfer" },
  "destination": { "currency": "USDC", "chain": "polygon", "address": "0x7a3f0000000000000000000000000000000091c2" },
  "depositInstructions": {
    "accountName": "Harbour & Co",
    "bankName": "Partner bank AU",
    "accountNumber": "12345678",
    "routingNumber": "000-000"
  },
  "whitelist": null,
  "createdAt": "2026-10-21T09:12:44.120Z",
  "updatedAt": "2026-10-21T09:12:44.120Z"
}

Reuse rule

A customer has at most one open route per source currency and destination. If the customer already has a pending or active route with the same source.currency and the same destination (currency, chain and address), POST/v1/routes returns that route with 200 instead of creating a new one. A new route answers 201; an inactive or closed route is not reused, so you get a new one.

This makes the call safe to repeat: if a request times out, send it again and you get the same route. To give one customer two sets of bank details in the same currency, use two destinations: another address, chain or stablecoin.

Wait until the route is active

A new route starts as pending and becomes active within minutes. Show the depositInstructions to your customer only once the route is active and not blocked.

pending→active

Locals sends route.activated when the route becomes active. You can also read GET/v1/routes/{id}: a pending route is refreshed from the banking partner before it is returned, so each read gives you the current state. Reading every 30 to 60 seconds for the first few minutes is enough.

Poll the route
curl https://api.locals.money/v1/routes/route_3f9a \
  -H "Authorization: Bearer $LOCALS_KEY"

Deposit instructions

depositInstructions holds the bank details your customer pays into. Only the keys that apply to the currency are present:

KeyMeaningAUD
accountNameName on the account the customer pays toyes
bankNameBank that holds the accountyes
accountNumberAccount numberyes
routingNumberBank routing code. In Australia this is the BSByes
ibanIBAN, where the currency uses itno
bicBIC / SWIFT code, where the currency uses itno
bankAddressBank address, where the currency needs itno

For an Australian route, show the customer account name, BSB (routingNumber, for example 000-000) and account number (for example 12345678). Render only the keys you receive; do not hard-code a layout per currency.

Australian allow-list

Each Australian route allows one sending account. Register the account your customer will pay from, before their first deposit: once a route has an allowed account, deposits from any other account are returned to the sender. A deposit into an AUD route without an allowed account is not guaranteed to be credited.

Allow the customer's account
curl -X POST https://api.locals.money/v1/routes/route_3f9a/whitelist \
  -H "Authorization: Bearer $LOCALS_KEY" \
  -H "Content-Type: application/json" \
  -d '{ "accountNumber": "87654321", "bsbNumber": "062-000" }'
Response · 201
{ "id": "wl_4410", "accountNumber": "••••4321", "bsbNumber": "062-000", "bankName": "Commonwealth Bank of Australia", "status": "enabled" }
Warning

Deposits from any account other than the allowed one are returned to the sender: they are not credited to the route and do not settle to USDC. Tell your customer to pay only from the account you registered.

Source rails

source.rail says how the customer pays into the route. For AUD it is local_transfer: an ordinary Australian bank transfer to the BSB and account number.

Settlement

Every deposit is converted and sent in the route's destination.currency, on its destination.chain, to destination.address.

Each deposit appears as a transfer with kind: route and the route's routeId. The source side carries the bank details of the payment, and the destination side the stablecoin sent, its chain (rail) and the transaction hash:

GET /v1/transfers/trf_91kd
{
  "id": "trf_91kd",
  "kind": "route",
  "routeId": "route_3f9a",
  "status": "complete",
  "source": { "amount": "12500.00", "currency": "AUD", "rail": "local_transfer", "reference": "HC-2210", "senderName": "HARBOUR AND CO" },
  "destination": { "amount": "8137.50", "currency": "USDC", "rail": "polygon", "address": "0x7a3f0000000000000000000000000000000091c2", "txHash": "0x5e0c…a7d4" },
  "statusHistory": [
    { "status": "processing", "at": "2026-10-21T09:41:07Z" },
    { "status": "complete", "at": "2026-10-21T09:44:52Z" }
  ]
}

Here A$12,500.00 settled as 8,137.50 USDC, a rate of 0.6510. Use source.reference and source.senderName to match the deposit to the invoice or account on your side, and list a route's deposits with GET /v1/transfers?routeId=route_3f9a. Each new deposit sends route.deposit.received, and its status changes send transfer.* events. See Transfers and payouts.

Cut routes

Locals cuts a route while its customer is blocked, or when one of its deposits goes over a limit. A cut route shows blocked: true and keeps its status.

Warning

Do not show the deposit instructions of a route with blocked: true. Tell your customer not to pay into it until it opens again.

Cutting or opening a route sends no route event: read blocked on the route.

Reconciliation

GET/v1/routes/{id}/reconciliation compares the deposits Locals recorded on a route with the banking partner's view of the same account. It covers the latest 100 deposits.

GET /v1/routes/route_3f9a/reconciliation
{
  "routeId": "route_3f9a",
  "differences": [
    { "transferId": "trf_a20c", "depositedAt": "2026-10-21T10:02:15Z", "amount": "640.00", "currency": "AUD", "recorded": "processing", "bank": "complete" }
  ],
  "deposits": [
    { "transferId": "trf_a20c", "status": "complete", "depositedAt": "2026-10-21T10:02:15Z", "amount": "640.00", "currency": "AUD" },
    { "transferId": "trf_91kd", "status": "complete", "depositedAt": "2026-10-21T09:41:07Z", "amount": "12500.00", "currency": "AUD" }
  ]
}

Route status

StatusMeaning
pendingBeing opened. Do not show the bank details yet
activeReady to receive deposits
inactiveDeactivated. Do not send customers to it
closedClosed for good. A closed route never changes again

blocked: true on any of them means the route is cut: see Cut routes. See Statuses and lifecycle for the rules.