localsDocs Get sandbox keys
Concepts/Transfers and payouts

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}.

KindWhat it isCreated byRoute idQuote
routeA deposit into a route, settled in USDCLocals, when the bank payment arrivesThe routenull
quotedA payout from a stablecoin to a bank accountYou, with POST/v1/transfersnullThe accepted quote

Deposits need nothing from you after the route is open: see Routes. The rest of this page is about payouts.

Note

Payouts are in early access. Quoted payouts are available on request. The currencies are listed in Coverage.

How a payout works

  1. Get a quote. POST/v1/quotes prices the payout: what you send, what arrives, the rate, the fees and when the quote expires.
  2. Accept it. POST/v1/transfers with the quote, a purpose code and the bank account that receives the money. The transfer starts as pending and returns depositInstructions.
  3. Fund it. Send exactly depositInstructions.amount of depositInstructions.currency to depositInstructions.address on depositInstructions.chain, before the quote expires. The address is single-use: it belongs to this transfer only.
  4. Locals pays out. When the funds arrive the transfer moves to processing, the bank payment is made, and it ends as complete or failed.
pending→processing→completefailed

Get a quote

POST /v1/quotes
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" }
  }'
Response · 201
{
  "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.

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()
Response · 201
{
  "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.

Note

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 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.

FieldRequiredNotes
accountHolderNameyesName on the receiving account, 1 to 140 characters
accountNumberone of the twoRequired unless iban is sent
ibanone of the twoRequired unless accountNumber is sent
bankNameyesReceiving bank
bankCountryyesISO 3166-1 alpha-2, for example PH
currencyyesCurrency that arrives: the quote's destination.currency, or 400
recipientTypesome currenciesindividual or business
dateOfBirthsome currenciesYYYY-MM-DD, individual recipients only
addressnostreet, city, state, postalCode, country, all required when you send it
accountTypenosavings, checking or payment
swiftCode, bicCodeno8 or 11 characters
bsbCode, abaCode, sortCodenoBank codes, where the country uses them: 000-000, 9 digits, 00-00-00

Extra fields by currency

CurrencyRecipient typeDate of birth
AEDrequiredrequired for individuals
CADrequiredrequired for individuals
EURrequiredrequired for individuals
GBPrequiredrequired for individuals
MXNrequiredrequired for individuals
USDrequiredrequired 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:

actionRequired
{
  "type": "wallet_verification",
  "url": "https://…",
  "expiresAt": "2026-10-21T10:13:02.000Z"
}
Warning

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.

Track transfers

Payouts that need attention
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.