Transfers and payouts
A transfer is money moving. Deposits into a route and payouts from a quote share one object and one status model.
A transfer is one movement of money. There are two kinds, and both are read with GET/v1/transfers and GET/v1/transfers/{id}.
| Kind | What it is | Created by | Route id | Quote |
|---|---|---|---|---|
route | A deposit into a route, settled in USDC | Locals, when the bank payment arrives | The route | null |
quoted | A payout from a stablecoin to a bank account | You, with POST/v1/transfers | null | The accepted quote |
Deposits need nothing from you after the route is open: see Routes. The rest of this page is about payouts.
Payouts are in early access. Quoted payouts are available on request. The currencies are listed in Coverage.
How a payout works
- Get a quote. POST/v1/quotes prices the payout: what you send, what arrives, the rate, the fees and when the quote expires.
- Accept it. POST/v1/transfers with the quote, a purpose code and the bank account that receives the money. The transfer starts as
pendingand returnsdepositInstructions. - Fund it. Send exactly
depositInstructions.amountofdepositInstructions.currencytodepositInstructions.addressondepositInstructions.chain, before the quote expires. The address is single-use: it belongs to this transfer only. - Locals pays out. When the funds arrive the transfer moves to
processing, the bank payment is made, and it ends ascompleteorfailed.
Get a quote
curl -X POST https://api.locals.money/v1/quotes \
-H "Authorization: Bearer $LOCALS_KEY" \
-H "Content-Type: application/json" \
-d '{
"source": { "currency": "USDC", "chain": "polygon", "amount": "3200.00" },
"destination": { "currency": "PHP", "country": "PH", "rail": "bank" }
}'{
"id": "quo_7d2e",
"source": { "amount": "3200.00", "currency": "USDC", "chain": "polygon" },
"destination": { "amount": "182400.00", "currency": "PHP", "rail": "bank" },
"rate": 57.0,
"fees": { "total": { "amount": "0.00", "currency": "USDC" } },
"localsFee": { "percent": "0.3", "amount": "9.60", "currency": "USDC" },
"tenantFee": null,
"expiresAt": "2026-10-21T09:27:44Z"
}3,200 USDC sent on Polygon arrives as ₱182,400.00 at a rate of 57.00 PHP per USDC.
source.currencyisUSDCorUSDT: limits are measured in USD, and they count 1:1. Any other is400.source.chainis the chain you will fund from:arbitrum,avalanche,base,ethereum,optimism,polygon,solanaortron.destination.railisbankfor local bank payouts, orswiftfor international wires.swiftis for business customers only.feeshasfxFee,platformFee,paymentMethodFeeandnetworkFeewhen they apply, each with itsamountandcurrency, andtotal: what the banking partner takes.localsFeeis Locals' fee on the payout,{ percent, amount, currency }: a percentage ofsource.amount, in its currency, ornullwhen you have none. It is billed to you on your monthly statement, not taken from the payout:source.amountanddestination.amountdo not include it. The quote keeps it: a price change after the quote does not reach its payout.tenantFeeis your own fee on the payout, in the same shape. It is alwaysnullfor now: the banking partner cannot collect a fee of yours on the quote yet.ratecan benullwhen no rate is given; rely onsource.amountanddestination.amount.- Quotes are short-lived. Accept one before
expiresAt, or ask for a new one: an expired quote is422 quote_expired. - A quote belongs to your account: another partner's quote is
404. It is not tied to a customer until you accept it. - The quote is checked against the cap on your whole payout volume (
422 limit_exceeded); the customer's own limits are checked when you accept it. See Limits.
Create the transfer
curl -X POST https://api.locals.money/v1/transfers \
-H "Authorization: Bearer $LOCALS_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"customerId": "cus_8Hq2Lm",
"quoteId": "quo_7d2e",
"purposeCode": "TRANSFER_TO_OWN_ACCOUNT",
"payoutAccount": {
"accountHolderName": "Maria Santos",
"accountNumber": "000123456789",
"bankName": "Sample Bank PH",
"bankCountry": "PH",
"currency": "PHP"
}
}'const res = await fetch('https://api.locals.money/v1/transfers', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.LOCALS_KEY}`,
'Idempotency-Key': crypto.randomUUID(),
'Content-Type': 'application/json',
},
body: JSON.stringify({
customerId: 'cus_8Hq2Lm',
quoteId: 'quo_7d2e',
purposeCode: 'TRANSFER_TO_OWN_ACCOUNT',
payoutAccount: {
accountHolderName: 'Maria Santos',
accountNumber: '000123456789',
bankName: 'Sample Bank PH',
bankCountry: 'PH',
currency: 'PHP',
},
}),
});
const transfer = await res.json();import os, uuid, requests
res = requests.post(
"https://api.locals.money/v1/transfers",
headers={
"Authorization": f"Bearer {os.environ['LOCALS_KEY']}",
"Idempotency-Key": str(uuid.uuid4()),
},
json={
"customerId": "cus_8Hq2Lm",
"quoteId": "quo_7d2e",
"purposeCode": "TRANSFER_TO_OWN_ACCOUNT",
"payoutAccount": {
"accountHolderName": "Maria Santos",
"accountNumber": "000123456789",
"bankName": "Sample Bank PH",
"bankCountry": "PH",
"currency": "PHP",
},
},
)
transfer = res.json(){
"id": "trf_4b7q",
"kind": "quoted",
"customerId": "cus_8Hq2Lm",
"routeId": null,
"status": "pending",
"source": { "amount": "3200.00", "currency": "USDC", "rail": "polygon" },
"destination": { "amount": "182400.00", "currency": "PHP", "rail": "bank" },
"quote": { "id": "quo_7d2e", "rate": 57.0, "expiresAt": "2026-10-21T09:27:44Z" },
"depositInstructions": {
"address": "0x91c2000000000000000000000000000000007a3f",
"amount": "3200.00",
"currency": "USDC",
"chain": "polygon"
},
"payoutAccount": { "bankName": "Sample Bank PH", "accountHolderName": "Maria Santos", "last4": "6789", "country": "PH", "currency": "PHP" },
"refundReason": null,
"actionRequired": null,
"statusHistory": [ { "status": "pending", "at": "2026-10-21T09:13:02Z" } ],
"createdAt": "2026-10-21T09:13:02.207Z",
"updatedAt": "2026-10-21T09:13:02.207Z"
}The customer needs the payout capability enabled; otherwise the call returns 422 customer_not_ready. A blocked customer gets 403 customer_blocked. See Capabilities.
One transfer per quote. The quote is taken by the first request that reaches the banking partner. Retrying POST/v1/transfers with the same quote, customer, purpose code and payout account, every field the same, returns the transfer already created with 200, also after a timeout and after the quote expired. The same quote with any other detail is 409 quote_already_used, even when the first request got no answer. If the banking partner refuses the payout account, the quote is freed and a corrected account can use it. Send an Idempotency-Key too, and never fund two transfers for one payout.
Fund the transfer
Send exactly depositInstructions.amount to depositInstructions.address, on depositInstructions.chain, in depositInstructions.currency.
- The address is single-use. Do not reuse it for another payout and do not save it as a contact.
- Send one on-chain transfer for the full amount, not several partial ones.
- Fund before the quote's
expiresAt, also in the transfer'squote.expiresAt. A transfer that is not funded in time ends asfailed. - A
failedtransfer still returns itsdepositInstructions: do not show them or send to them.
The payout starts when the funds arrive. Follow it with the transfer.* events, or by reading GET/v1/transfers/{id}.
Payout accounts
payoutAccount is the bank account that receives the money.
| Field | Required | Notes |
|---|---|---|
accountHolderName | yes | Name on the receiving account, 1 to 140 characters |
accountNumber | one of the two | Required unless iban is sent |
iban | one of the two | Required unless accountNumber is sent |
bankName | yes | Receiving bank |
bankCountry | yes | ISO 3166-1 alpha-2, for example PH |
currency | yes | Currency that arrives: the quote's destination.currency, or 400 |
recipientType | some currencies | individual or business |
dateOfBirth | some currencies | YYYY-MM-DD, individual recipients only |
address | no | street, city, state, postalCode, country, all required when you send it |
accountType | no | savings, checking or payment |
swiftCode, bicCode | no | 8 or 11 characters |
bsbCode, abaCode, sortCode | no | Bank codes, where the country uses them: 000-000, 9 digits, 00-00-00 |
Extra fields by currency
| Currency | Recipient type | Date of birth |
|---|---|---|
AED | required | required for individuals |
CAD | required | required for individuals |
EUR | required | required for individuals |
GBP | required | required for individuals |
MXN | required | required for individuals |
USD | required | required for individuals |
Without them the request is 400 validation_failed on the missing field. A payout account the banking partner refuses is 400 on payoutAccount, with a reference to quote when you contact us.
Full account numbers are never returned
Responses return payoutAccount.last4, the last four digits of the account number or IBAN, never the full number. Keep the full details in your own system if you need them again.
Purpose codes
Every payout needs a purposeCode that says why the money moves. Use the code that describes the real reason for the payment; any other value is 400:
ADVANCE_PAYMENTS_FOR_GOODS, ADVERTISING_PR_EXPENSES, ADVISOR_TECHNICAL_FEES, BROKER_COMMITMENT_FEES, CONSTRUCTION_COSTS, CURRENCY_EXCHANGE, DONATIONS, EDUCATION_EXPENSES, FAMILY_MAINTENANCE, GENERAL_GOODS_TRADES, INFORMATION_SERVICE_CHARGES, INSURANCE_CLAIMS_PAYMENT, INSURANCE_PREMIUM, INVESTMENT_IN_SHARES, MEDICAL_TREATMENT, MERCHANT_SETTLEMENT, MUTUAL_FUND_INVESTMENT, PAYMENT_FOR_IMPORTED_GOODS, PAYMENT_FOR_SERVICES, PAYMENT_FOR_SOFTWARE, PAYMENT_OF_PROPERTY_RENTAL, PERSONAL_REMITTANCE, PURCHASE_OF_PROPERTY, REPATRIATION_FUND_SETTLEMENT, REPAYMENT_OF_LOANS, REPRESENTATIVE_OFFICE_EXPENSES, RETURN_OF_FUNDS, ROYALTY_FEES, SALARY, TAX_PAYMENT, TRANSFER_TO_OWN_ACCOUNT, TRANSPORTATION_FEES_FOR_GOODS, TRAVEL_SERVICES, USER_WITHDRAWAL, VENDOR_CONTRACTOR_PAYOUTS, VENDOR_CONTRACTOR_SOFTWARE_PAYOUTS.
Wallet verification
A payout can be held until the end user proves they control the destination wallet, a Travel Rule check for self-custody wallets. While it is held, the transfer carries actionRequired and Locals sends transfer.action_required, with the transfer in data:
{
"type": "wallet_verification",
"url": "https://…",
"expiresAt": "2026-10-21T10:13:02.000Z"
}Show the link to the user. They sign with that wallet on the url page, before expiresAt. Until they do, the payout stays on hold.
wallet_verification is the only type today; handle any other as "needs a person". The field goes back to null once the transfer moves on, and that change comes with its own transfer.* event. A new link sends another transfer.action_required.
Limits
Locals sets limits in USD on payouts, for each customer and on your whole volume: per operation, per 24 hours and per 30 days, rolling. See Limits and blocks.
- POST/v1/quotes checks the cap on your volume; POST/v1/transfers checks the customer's limits too, before the banking partner is called.
- A payout over a limit is
422 limit_exceeded, with the limit and what is left inlimit. - GET/v1/customers/{id}/limits shows what the customer can still send:
offramp.available. - A payout whose answer was lost keeps counting: the transfer may exist. Failed and refunded transfers do not count.
Track transfers
- GET/v1/transfers/{id} returns one transfer with its
statusHistory, andrefundReasonwhen it failed or was refunded. - GET/v1/transfers lists transfers, most recently updated first. Filter with
kind,customerId,routeIdandstatus(comma-separated), and page withpageandlimit(1 to 100, default 20), or walk the whole list withcursor, newest created first. See Pagination. - Each status change sends a
transfer.*event.
curl "https://api.locals.money/v1/transfers?kind=quoted&status=processing,review" \
-H "Authorization: Bearer $LOCALS_KEY"Statuses, their meaning and the allowed transitions are in Statuses and lifecycle.