API reference
Every endpoint of the Locals API v1, with request and response examples.
All requests go to https://api.locals.money/v1 with JSON bodies and Authorization: Bearer <secret key>. That is the live environment: sandbox runs on its own deployment, with its own keys. See Environments and keys.
Amounts are decimal strings in major units ("12500.00"). Ids are opaque strings with a prefix. Every endpoint can also answer 401 unauthorized, 403 forbidden (suspended account), 403 ip_not_allowed and 429 rate_limited; they are not repeated below. Idempotency, pagination and the error body are in Requests, idempotency and errors.
Customers
A customer is the person or business that owns routes and transfers. Every customer is verified before it can move money, and Locals sets limits on what it moves. See Customers and verification.
POST/v1/customersAvailable
Create a customer and start their verification.
Businesses get a hosted verification (KYB) link to complete. Individuals are created from the verification data you already hold, sent in kyc: only for partners whose compliance agreement allows it, other partners get 400 on kyc. The hosted link for individuals is planned: an individual without kyc is 400.
One customer per externalId: creating it twice returns 409 customer_exists. This endpoint takes bodies up to 15 MB, for the images in kyc.
Request body
typestringindividualbusinessrequiredWhat kind of customer this is.
emailstringrequiredContact email of the customer. Up to 254 characters.
externalIdstringrequiredYour own id for this customer, unique per partner. 1 to 128 printable ASCII characters, without spaces.
redirectobjectoptionalWhere the hosted verification sends the customer when it ends.
redirect.successUrlstringoptionalHTTPS URL after a successful submission.
redirect.rejectUrlstringoptionalHTTPS URL after a rejection.
kycobjectoptionalIndividuals only, and required for them: the verification data you hold for the person.
kyc.firstNamestringrequired1 to 100 characters.
kyc.middleNamestringoptional1 to 100 characters.
kyc.lastNamestringrequired1 to 100 characters.
kyc.dateOfBirthstringrequiredYYYY-MM-DD.kyc.nationalitystringrequiredISO 3166-1 alpha-2.
kyc.phonestringoptionalE.164, for example
+61412345678.kyc.addressobjectrequiredline1,city,state(the region name),postalCodeandcountry(ISO 3166-1 alpha-2), all required.kyc.idDocumentobjectrequiredkyc.idDocument.typestringPASSPORTDRIVERS_LICENSENATIONAL_IDRESIDENCE_PERMITrequiredkyc.idDocument.countrystringrequiredISO 3166-1 alpha-2 country that issued it.
kyc.idDocument.frontImagestringrequiredJPEG or PNG as a data URL:
data:image/jpeg;base64,….kyc.idDocument.backImagestringoptionalJPEG or PNG as a data URL:
data:image/jpeg;base64,….kyc.selfieImagestringrequiredJPEG or PNG as a data URL:
data:image/jpeg;base64,….
Response · 201
idstringoptionalCustomer id.
externalIdstringoptionalYour own id for the customer.
typestringindividualbusinessoptionalstatusstringpendingactiveblockedoptionalCustomer status, see Statuses.
blockedobject | nulloptionalWhile Locals or you block the customer:
by(localsortenant, that is you),reasonandat.nullwhen it is not blocked.verificationobjectoptionalverification.statusstring | nullprocessingaction_requiredapprovedrejectedoptionalWhere the verification stands, see Verification status.
nullon a customer stored before this field, until Locals reads it again.verification.reasonsarrayoptionalWhy the verification waits on the customer or was rejected, as lower case codes (
bad_proof_of_identity…).[]otherwise.verification.linkstring | nulloptionalHosted verification URL to send the customer to.
verification.levelsarrayoptionalBeing retired: use
verification.status. Verification levels and their status.capabilitiesarrayoptionalWhat the customer can do: one per operation Locals offers, the ones it cannot do included. A route needs the
routecapability of its source currencyenabled, a payout thepayoutcapability. See Capabilities.capabilities.operationstringpayoutrouteoptionalcapabilities.currencystring | nulloptionalThe source currency of the route (
AUD,AED).nullforpayout.capabilities.statusstringenabledprocessingaction_requiredrejectedoptionalaction_requiredwith norequirements: the customer finishes verification first ifverification.statusisaction_required; otherwise Locals' support has to act, contact Locals.capabilities.requirementsarrayoptionalWhat is missing or was refused.
[]when the capability isenabled.capabilities.requirements.codestringnamedate_of_birthnationalityemailphoneaddressid_documentselfielivenessproof_of_addresssource_of_wealthquestionnairetax_idoccupationbusiness_documentsbeneficial_ownersotheroptionalcapabilities.requirements.statusstringmissingrejectedoptionalmissing: not sent yet.rejected: sent and refused, send it again.entitlementsarrayoptionalBeing retired: use
capabilities. What the customer was granted once approved (virtual_account,base_payout).versionintegeroptionalGoes up with every change of the customer. A
customer.updatedwith a lowerversionthan the one you hold is older: ignore it.createdAtstringoptionalISO 8601.
updatedAtstringoptionalISO 8601.
Errors
| Status | When |
|---|---|
400 | validation_failed: a field is missing or malformed, an individual without kyc, or kyc when your account does not send verification data. |
403 | forbidden: Locals does not allow customers from that country. |
409 | customer_exists: a customer with this externalId already exists. |
413 | payload_too_large: the body is over 15 MB. |
502 | upstream_unavailable or upstream_rejected: the banking partner did not answer or refused. The externalId stays free: retry. |
503 | service_unavailable: with Retry-After, the banking partner is busy or failing and nothing was sent: send the request again after that many seconds. Without it, the customer could not be saved. Retry later. |
curl -X POST https://api.locals.money/v1/customers \
-H "Authorization: Bearer $LOCALS_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"type": "business",
"email": "finance@harbour.example",
"externalId": "acct_1042",
"redirect": {
"successUrl": "https://app.example/kyb/done"
}
}'const res = await fetch('https://api.locals.money/v1/customers', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.LOCALS_KEY}`,
'Idempotency-Key': crypto.randomUUID(),
'Content-Type': 'application/json',
},
body: JSON.stringify({
"type": "business",
"email": "finance@harbour.example",
"externalId": "acct_1042",
"redirect": {
"successUrl": "https://app.example/kyb/done"
}
}),
});
const data = await res.json();{
"id": "cus_8Hq2Lm",
"externalId": "acct_1042",
"type": "business",
"status": "pending",
"blocked": null,
"verification": {
"status": "action_required",
"reasons": [],
"link": "https://verify.locals.money/s/9f2c…",
"levels": []
},
"capabilities": [
{
"operation": "payout",
"currency": null,
"status": "action_required",
"requirements": []
},
{
"operation": "route",
"currency": "AUD",
"status": "action_required",
"requirements": []
},
{
"operation": "route",
"currency": "AED",
"status": "action_required",
"requirements": []
}
],
"entitlements": [
{
"name": "virtual_account",
"status": "pending"
},
{
"name": "base_payout",
"status": "pending"
}
],
"version": 1,
"createdAt": "2026-10-21T09:12:44.120Z",
"updatedAt": "2026-10-21T09:12:44.120Z"
}GET/v1/customersAvailable
List your customers, newest first.
Customers as Locals stored them: the verification is read live only by GET/v1/customers/{id}. A customer whose creation is still under way can show as pending without capabilities.
Path and query parameters
externalIdstringqueryoptionalFind a customer by your own id.
statusstringpendingactiveblockedqueryoptionalOne value.
pendingandactiveleave blocked customers out.typestringindividualbusinessqueryoptionalpageintegerqueryoptionalPage number, from 1. Default 1. Not together with
cursor.limitintegerqueryoptional1 to 100. Default 20.
cursorstringqueryoptionalThe
nextCursorof the previous answer, for the next page by cursor: newest created first, and a page by cursor haspage,totalCountandtotalPagesset tonull. A cursor that cannot be read, or one sent withpage, is400. See Pagination.
Errors
| Status | When |
|---|---|
400 | validation_failed: an unknown filter or value, or a cursor that cannot be read or sent with page. |
curl https://api.locals.money/v1/customers?externalId=acct_1042 \
-H "Authorization: Bearer $LOCALS_KEY"const res = await fetch('https://api.locals.money/v1/customers?externalId=acct_1042', {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.LOCALS_KEY}`,
},
});
const data = await res.json();{
"data": [
{
"id": "cus_8Hq2Lm",
"externalId": "acct_1042",
"type": "business",
"status": "active",
"blocked": null,
"verification": {
"status": "approved",
"reasons": [],
"link": "https://verify.locals.money/s/9f2c…",
"levels": [
{
"level": "business_base",
"status": "approved"
}
]
},
"capabilities": [
{
"operation": "payout",
"currency": null,
"status": "enabled",
"requirements": []
},
{
"operation": "route",
"currency": "AUD",
"status": "enabled",
"requirements": []
},
{
"operation": "route",
"currency": "AED",
"status": "action_required",
"requirements": []
}
],
"entitlements": [
{
"name": "virtual_account",
"status": "approved"
},
{
"name": "base_payout",
"status": "approved"
}
],
"version": 4,
"createdAt": "2026-10-21T09:12:44.120Z",
"updatedAt": "2026-10-21T09:44:52.318Z"
}
],
"page": 1,
"totalCount": 1,
"totalPages": 1,
"hasMore": false,
"nextCursor": null
}GET/v1/customers/{id}Available
Retrieve a customer with its verification and capabilities.
Verification is read live on every call, so this returns the current state; if the banking partner does not answer, you get the last state Locals stored. verification.link stays the one issued on creation.
Path and query parameters
idstringpathrequiredCustomer id.
Errors
| Status | When |
|---|---|
404 | not_found: no customer with this id. |
curl https://api.locals.money/v1/customers/cus_8Hq2Lm \
-H "Authorization: Bearer $LOCALS_KEY"const res = await fetch('https://api.locals.money/v1/customers/cus_8Hq2Lm', {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.LOCALS_KEY}`,
},
});
const data = await res.json();{
"id": "cus_8Hq2Lm",
"externalId": "acct_1042",
"type": "business",
"status": "active",
"blocked": null,
"verification": {
"status": "approved",
"reasons": [],
"link": "https://verify.locals.money/s/9f2c…",
"levels": [
{
"level": "business_base",
"status": "approved"
}
]
},
"capabilities": [
{
"operation": "payout",
"currency": null,
"status": "enabled",
"requirements": []
},
{
"operation": "route",
"currency": "AUD",
"status": "enabled",
"requirements": []
},
{
"operation": "route",
"currency": "AED",
"status": "action_required",
"requirements": []
}
],
"entitlements": [
{
"name": "virtual_account",
"status": "approved"
},
{
"name": "base_payout",
"status": "approved"
}
],
"version": 4,
"createdAt": "2026-10-21T09:12:44.120Z",
"updatedAt": "2026-10-21T09:44:52.318Z"
}PATCH/v1/customers/{id}Available
Change a customer's email or verification data.
Only what you send changes. kyc takes any of the fields of kyc on creation, with the same rules; address and idDocument go whole. It is for individuals of partners whose compliance agreement allows sending verification data: other partners, and business customers, get 400 on kyc.
New verification data can start a new review: the answer carries the verification read right after the change, and Locals sends customer.updated when it changes. This endpoint takes bodies up to 15 MB, for the images in kyc.
Path and query parameters
idstringpathrequiredCustomer id.
Request body
emailstringoptionalContact email of the customer. Up to 254 characters.
kycobjectoptionalIndividuals only: the verification data to change. Any of
firstName,middleName,lastName,dateOfBirth,nationality,phone,address,idDocumentandselfieImage, in the formats of POST/v1/customers.
Errors
| Status | When |
|---|---|
400 | validation_failed: nothing to change, a field is malformed, or kyc on a business customer or when your account does not send verification data. |
403 | customer_blocked: the customer is blocked. forbidden: Locals does not allow customers from that country. |
404 | not_found: no customer with this id. |
413 | payload_too_large: the body is over 15 MB. |
422 | customer_not_ready: the customer is still being created. |
502 | upstream_unavailable or upstream_rejected: the banking partner did not answer or refused. Nothing changed on a refusal. When it did not answer, send the same changes again: they leave the customer the same. |
503 | service_unavailable: with Retry-After, the banking partner is busy or failing and nothing was sent: send the request again after that many seconds. |
curl -X PATCH https://api.locals.money/v1/customers/cus_8Hq2Lm \
-H "Authorization: Bearer $LOCALS_KEY" \
-H "Content-Type: application/json" \
-d '{
"email": "jane.doe@example.com",
"kyc": {
"lastName": "Smith",
"address": {
"line1": "2 Pitt St",
"city": "Sydney",
"state": "NSW",
"postalCode": "2001",
"country": "AU"
}
}
}'const res = await fetch('https://api.locals.money/v1/customers/cus_8Hq2Lm', {
method: 'PATCH',
headers: {
Authorization: `Bearer ${process.env.LOCALS_KEY}`,
'Content-Type': 'application/json',
},
body: JSON.stringify({
"email": "jane.doe@example.com",
"kyc": {
"lastName": "Smith",
"address": {
"line1": "2 Pitt St",
"city": "Sydney",
"state": "NSW",
"postalCode": "2001",
"country": "AU"
}
}
}),
});
const data = await res.json();{
"id": "cus_8Hq2Lm",
"externalId": "acct_1042",
"type": "individual",
"status": "pending",
"blocked": null,
"verification": {
"status": "processing",
"reasons": [],
"link": null,
"levels": [
{
"level": "individual_base",
"status": "in_progress"
}
]
},
"capabilities": [
{
"operation": "payout",
"currency": null,
"status": "processing",
"requirements": []
},
{
"operation": "route",
"currency": "AUD",
"status": "processing",
"requirements": []
},
{
"operation": "route",
"currency": "AED",
"status": "action_required",
"requirements": []
}
],
"entitlements": [
{
"name": "virtual_account",
"status": "pending"
},
{
"name": "base_payout",
"status": "pending"
}
],
"version": 2,
"createdAt": "2026-10-21T09:12:44.120Z",
"updatedAt": "2026-10-28T10:05:13.402Z"
}GET/v1/customers/{id}/limitsAvailable
What the customer can still move, against the limits Locals sets.
Limits are in USD, per operation, for the last 24 hours (daily) and for the last 30 days (monthly), both rolling, separately for deposits (onramp) and payouts (offramp). customer are the customer's own limits and tenant the cap on your whole volume. A limit of null is no limit, and then remaining is null too. See Limits and blocks.
Path and query parameters
idstringpathrequiredCustomer id.
Response · 200
customerIdstringoptionalcurrencystringoptionalAlways
USD. USDC and USDT count 1:1.onrampobjectoptionalDeposits into the customer's routes.
onramp.blockedbooleanoptionaltruewhile the customer is blocked, or has a deposit over a limit that Locals has not reviewed yet.onramp.availablestring | nulloptionalThe most one operation can move now.
null: no limit;"0"whileblocked.onramp.customerobjectoptionalperOperation, anddailyandmonthly, each withlimit,usedandremaining.onramp.tenantobjectoptionalThe cap on your whole volume, in the same shape.
offrampobjectoptionalPayouts of the customer, in the same shape.
blockedistruewhile the customer is blocked.asOfstringoptionalISO 8601. When the volume was measured:
used,remainingandavailableare as of then. A payout is checked again when it is made, never against this answer.
Errors
| Status | When |
|---|---|
404 | not_found: no customer with this id. |
curl https://api.locals.money/v1/customers/cus_8Hq2Lm/limits \
-H "Authorization: Bearer $LOCALS_KEY"const res = await fetch('https://api.locals.money/v1/customers/cus_8Hq2Lm/limits', {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.LOCALS_KEY}`,
},
});
const data = await res.json();{
"customerId": "cus_8Hq2Lm",
"currency": "USD",
"onramp": {
"blocked": false,
"available": "10000",
"customer": {
"perOperation": "10000",
"daily": {
"limit": "25000",
"used": "12500.00",
"remaining": "12500.00"
},
"monthly": {
"limit": "100000",
"used": "12500.00",
"remaining": "87500.00"
}
},
"tenant": {
"perOperation": null,
"daily": {
"limit": null,
"used": "48200.00",
"remaining": null
},
"monthly": {
"limit": "2000000",
"used": "310400.00",
"remaining": "1689600.00"
}
}
},
"offramp": {
"blocked": false,
"available": "800.00",
"customer": {
"perOperation": "5000",
"daily": {
"limit": "8000",
"used": "7200.00",
"remaining": "800.00"
},
"monthly": {
"limit": "50000",
"used": "21000.00",
"remaining": "29000.00"
}
},
"tenant": {
"perOperation": null,
"daily": {
"limit": null,
"used": "95000.00",
"remaining": null
},
"monthly": {
"limit": null,
"used": "402000.00",
"remaining": null
}
}
},
"asOf": "2026-10-21T10:15:30.512Z"
}Routes
A route is a virtual account: local bank details that belong to one customer and settle every deposit to a stablecoin address. Locals cuts a route (blocked: true) while its customer is blocked or over a deposit limit. See Routes.
POST/v1/routesAvailable
Open a route: local bank details that settle in USDC or USDT on an EVM chain.
If the customer already has a pending or active route with the same source currency and the same destination (currency, chain and address), that route is returned with 200 instead of creating a new one; an inactive or closed route is not reused.
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.
Request body
customerIdstringrequiredA customer with the
routecapability of the source currencyenabled.sourceobjectrequiredsource.currencystringAUDAEDrequiredCurrency the customer pays in. AED needs its own
routecapability and is not live yet; see Coverage.destinationobjectrequireddestination.currencystringUSDCUSDTrequiredStablecoin each deposit settles in.
destination.chainstringarbitrumavalanchebaseethereumoptimismpolygonrequiredEVM chain the stablecoin is sent on. Other chains, such as
solanaortron, are400.destination.addressstringrequiredEVM address (
0xand 40 hex characters) that receives the settlement.
Response · 201
idstringoptionalcustomerIdstringoptionalstatusstringpendingactiveinactiveclosedoptionalblockedbooleanoptionaltruewhile Locals has cut the route: its customer is blocked, or went over a deposit limit. Do not show the deposit instructions while it istrue.sourceobjectoptionalcurrencyandrailthe customer pays with.destinationobjectoptionalcurrency,chainandaddressthat receive the settlement.depositInstructionsobjectoptionalBank details to show the customer. Only the keys that apply to the currency are present:
accountName,bankName,accountNumber,routingNumber(BSB in Australia),iban,bic,bankAddress.whitelistobject | nulloptionalAUD routes: the one sending account deposits are credited from,
id,accountNumber(masked),bsbNumber,bankNameandstatus, the same as GET/v1/routes/{id}/whitelist;nullwhen there is none, and always on AED routes. Itsstatusisdisabledwhile the route is cut and the banking partner sends deposits back. A change of the account sends no event: read the route.createdAtstringoptionalISO 8601.
updatedAtstringoptionalISO 8601.
Errors
| Status | When |
|---|---|
400 | validation_failed: missing field, invalid address, unsupported currency or chain. |
403 | customer_blocked: the customer is blocked. forbidden: Locals does not allow the destination wallet. |
404 | not_found: unknown customerId. |
422 | customer_not_ready: the customer is still being created, or its route capability of the source currency is not enabled, for example "Customer cus_8Hq2Lm is not enabled for AUD routes (processing)". limit_exceeded: a deposit of the customer, or of your account past its cap, went over a limit and Locals has not reviewed it yet. |
429 | rate_limited: more than 10 requests for the same route are waiting at once. Nothing was done: send it again after Retry-After seconds. |
502 | upstream_unavailable or upstream_rejected: the banking partner did not answer or refused. |
503 | service_unavailable with Retry-After: the request waited too long behind others for the same route, or the banking partner is busy or failing. Nothing was done: send it again after Retry-After seconds. |
curl -X POST https://api.locals.money/v1/routes \
-H "Authorization: Bearer $LOCALS_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-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}`,
'Idempotency-Key': crypto.randomUUID(),
'Content-Type': 'application/json',
},
body: JSON.stringify({
"customerId": "cus_8Hq2Lm",
"source": {
"currency": "AUD"
},
"destination": {
"currency": "USDC",
"chain": "polygon",
"address": "0x7a3f0000000000000000000000000000000091c2"
}
}),
});
const data = await res.json();{
"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"
}GET/v1/routesAvailable
List routes, newest first.
Routes as Locals stored them: GET/v1/routes/{id} refreshes a pending route.
Path and query parameters
customerIdstringqueryoptionalOnly this customer's routes.
statusstringqueryoptionalComma-separated or repeated:
pending,active,inactive,closed.pageintegerqueryoptionalPage number, from 1. Default 1. Not together with
cursor.limitintegerqueryoptional1 to 100. Default 20.
cursorstringqueryoptionalThe
nextCursorof the previous answer, for the next page by cursor: newest created first, and a page by cursor haspage,totalCountandtotalPagesset tonull. A cursor that cannot be read, or one sent withpage, is400. See Pagination.
Errors
| Status | When |
|---|---|
400 | validation_failed: an unknown filter or value, or a cursor that cannot be read or sent with page. |
curl https://api.locals.money/v1/routes?customerId=cus_8Hq2Lm&status=active \
-H "Authorization: Bearer $LOCALS_KEY"const res = await fetch('https://api.locals.money/v1/routes?customerId=cus_8Hq2Lm&status=active', {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.LOCALS_KEY}`,
},
});
const data = await res.json();{
"data": [
{
"id": "route_3f9a",
"status": "active",
"blocked": false,
"source": {
"currency": "AUD",
"rail": "local_transfer"
}
}
],
"page": 1,
"totalCount": 1,
"totalPages": 1,
"hasMore": false,
"nextCursor": null
}GET/v1/routes/{id}Available
Retrieve a route. A pending route is refreshed before it is returned.
Path and query parameters
idstringpathrequired
Errors
| Status | When |
|---|---|
404 | not_found: no route with this id. |
curl https://api.locals.money/v1/routes/route_3f9a \
-H "Authorization: Bearer $LOCALS_KEY"const res = await fetch('https://api.locals.money/v1/routes/route_3f9a', {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.LOCALS_KEY}`,
},
});
const data = await res.json();{
"id": "route_3f9a",
"customerId": "cus_8Hq2Lm",
"status": "active",
"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": {
"id": "wl_4410",
"accountNumber": "••••4321",
"bsbNumber": "062-000",
"bankName": "Commonwealth Bank of Australia",
"status": "enabled"
},
"createdAt": "2026-10-21T09:12:44.120Z",
"updatedAt": "2026-10-21T09:14:03.551Z"
}GET/v1/routes/{id}/reconciliationAvailable
Compare the deposits Locals recorded on a route with the bank's view.
Covers the latest 100 deposits. deposits is the bank's view of the account. differences lists what does not match: a deposit whose status at Locals differs from the bank's, a deposit the bank shows that Locals has not recorded (recorded is null), or a recorded transfer the bank does not list (bank is null). It is empty when both sides agree.
Path and query parameters
idstringpathrequired
Response · 200
routeIdstringoptionaldifferencesarrayoptionaltransferId(nullwhen Locals has not recorded the deposit),depositedAt,amount,currency,recorded(the status at Locals) andbank(the status at the bank).depositsarrayoptionaltransferId(nullwhen not recorded),status,depositedAt,amountandcurrency, as the bank shows them.
Errors
| Status | When |
|---|---|
404 | not_found: no route with this id. |
502 | upstream_unavailable: the bank's history could not be read. Retry. |
curl https://api.locals.money/v1/routes/route_3f9a/reconciliation \
-H "Authorization: Bearer $LOCALS_KEY"const res = await fetch('https://api.locals.money/v1/routes/route_3f9a/reconciliation', {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.LOCALS_KEY}`,
},
});
const data = await res.json();{
"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"
}
]
}GET/v1/routes/{id}/whitelistAvailable
List the sending accounts allowed to pay into an AUD route.
Only AUD routes have an allow-list. Account numbers come back masked; bankName is the bank of the BSB, from the official BSB directory, or null when the BSB is not in it. The route carries the same account in whitelist.
Path and query parameters
idstringpathrequired
Errors
| Status | When |
|---|---|
400 | validation_failed: the route is not an AUD route. |
404 | not_found: no route with this id. |
curl https://api.locals.money/v1/routes/route_3f9a/whitelist \
-H "Authorization: Bearer $LOCALS_KEY"const res = await fetch('https://api.locals.money/v1/routes/route_3f9a/whitelist', {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.LOCALS_KEY}`,
},
});
const data = await res.json();{
"data": [
{
"id": "wl_4410",
"accountNumber": "••••4321",
"bsbNumber": "062-000",
"bankName": "Commonwealth Bank of Australia",
"status": "enabled"
}
]
}POST/v1/routes/{id}/whitelistAvailable
Allow the account your customer pays from (Australia).
One allowed sending account per Australian route: once a route has one, deposits from any other account are returned to the sender. 201 when it is added, 200 when it is already the allowed account, and a different account replaces the current one (200).
Refused while the route is cut (blocked: true): allowing an account would let deposits in again.
Path and query parameters
idstringpathrequired
Request body
accountNumberstringrequired4 to 12 digits.
bsbNumberstringrequired000-000or000000.
Response · 201
idstringoptionalaccountNumberstringoptionalMasked: the last 4 digits.
bsbNumberstringoptional000-000.bankNamestring | nulloptionalThe bank of the BSB, from the official BSB directory;
nullwhen the BSB is not in it.statusstringoptionalenabledonce the account is allowed;disabledwhile the route is cut and the banking partner sends deposits back.
Errors
| Status | When |
|---|---|
400 | validation_failed: account or BSB malformed, or the route is not an AUD route. |
403 | customer_blocked: the customer is blocked. |
404 | not_found: no route with this id. |
409 | conflict: the route is cut. |
422 | limit_exceeded: a deposit over a limit is waiting for Locals' review. |
curl -X POST https://api.locals.money/v1/routes/route_3f9a/whitelist \
-H "Authorization: Bearer $LOCALS_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"accountNumber": "87654321",
"bsbNumber": "062-000"
}'const res = await fetch('https://api.locals.money/v1/routes/route_3f9a/whitelist', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.LOCALS_KEY}`,
'Idempotency-Key': crypto.randomUUID(),
'Content-Type': 'application/json',
},
body: JSON.stringify({
"accountNumber": "87654321",
"bsbNumber": "062-000"
}),
});
const data = await res.json();{
"id": "wl_4410",
"accountNumber": "••••4321",
"bsbNumber": "062-000",
"bankName": "Commonwealth Bank of Australia",
"status": "enabled"
}Quotes
A quote prices a payout before you commit: what you send, what arrives, the rate and the fees, until it expires. See Transfers and payouts.
POST/v1/quotesAvailable
Price a payout from USDC or USDT to a local currency.
Quotes are short-lived: accept one with POST/v1/transfers before expiresAt, or request a new one. A quote belongs to your account and to no customer until you accept it.
The quote is checked against the cap on your whole payout volume; the customer's own limits are checked when you accept it.
Request body
sourceobjectrequiredsource.currencystringUSDCUSDTrequiredStablecoin you send. Only these two: limits are measured in USD.
source.chainstringarbitrumavalanchebaseethereumoptimismpolygonsolanatronrequiredsource.amountstringrequiredDecimal string, major units.
destinationobjectrequireddestination.currencystringrequiredISO 4217 code of the local currency that arrives, e.g.
PHP.destination.countrystringrequiredISO 3166-1 alpha-2 country of the receiving bank.
destination.railstringbankswiftrequiredswiftis for business customers.
Response · 201
idstringoptionalsourceobjectoptionalamount,currency,chain.destinationobjectoptionalamount,currency,railthat arrive.ratenumber | nulloptionalDestination units per source unit.
nullwhen no rate is given.feesobjectoptionalfxFee,platformFee,paymentMethodFeeandnetworkFeewhen they apply, each withamountandcurrency, andtotal.localsFeeobject | nulloptionalLocals' fee on this payout:
percent, andamountandcurrency(that percentage ofsource.amount, in its currency). Billed to you on your statement, not taken from the payout:source.amountanddestination.amountdo not include it.nullwhen you have none.tenantFeeobject | nulloptionalYour own fee on this payout, in the same shape. Always
nullfor now: the banking partner cannot collect it on the quote yet.expiresAtstringoptionalISO 8601. After this, the quote cannot be accepted.
Errors
| Status | When |
|---|---|
400 | validation_failed: unsupported chain, a source currency other than USDC or USDT, or a malformed amount. |
403 | forbidden: Locals does not allow payouts to that country. |
422 | limit_exceeded: the payout would go over the cap on your volume. The body says which limit and what is left. |
502 | upstream_rejected or upstream_unavailable: the banking partner refused the quote or did not answer. Quote the reference in the message when you contact us. |
503 | service_unavailable with Retry-After: the banking partner is busy or failing. Nothing was sent: request the quote again after Retry-After seconds. |
curl -X POST https://api.locals.money/v1/quotes \
-H "Authorization: Bearer $LOCALS_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"source": {
"currency": "USDC",
"chain": "polygon",
"amount": "3200.00"
},
"destination": {
"currency": "PHP",
"country": "PH",
"rail": "bank"
}
}'const res = await fetch('https://api.locals.money/v1/quotes', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.LOCALS_KEY}`,
'Idempotency-Key': crypto.randomUUID(),
'Content-Type': 'application/json',
},
body: JSON.stringify({
"source": {
"currency": "USDC",
"chain": "polygon",
"amount": "3200.00"
},
"destination": {
"currency": "PHP",
"country": "PH",
"rail": "bank"
}
}),
});
const data = await res.json();{
"id": "quo_7d2e",
"source": {
"amount": "3200.00",
"currency": "USDC",
"chain": "polygon"
},
"destination": {
"amount": "182400.00",
"currency": "PHP",
"rail": "bank"
},
"rate": 57,
"fees": {
"total": {
"amount": "0.00",
"currency": "USDC"
}
},
"localsFee": {
"percent": "0.3",
"amount": "9.60",
"currency": "USDC"
},
"tenantFee": null,
"expiresAt": "2026-10-21T09:27:44Z"
}Transfers
A transfer is money moving. kind: route transfers are deposits into a route; kind: quoted transfers are payouts created from a quote. Both share one status model.
POST/v1/transfersAvailable
Accept a quote and get the exact funding instructions.
Send the exact depositInstructions.amount to depositInstructions.address on the quoted chain. The payout starts when the funds arrive.
One transfer per quote: retrying with the same quote, customer, purpose code and payout account (every field) returns the transfer already created with 200, also after the quote expired. The same quote with any other detail is 409 quote_already_used, even when the first request got no answer. A payout account the banking partner refuses frees the quote, so a corrected account can use it.
The customer's limits and blocks are checked before the banking partner is called.
Request body
customerIdstringrequiredA customer with the
payoutcapabilityenabled.quoteIdstringrequiredAn unexpired quote.
purposeCodestringrequiredWhy the money moves: one of the purpose codes, e.g.
TRANSFER_TO_OWN_ACCOUNT.payoutAccountobjectrequiredThe bank account that receives the money.
payoutAccount.accountHolderNamestringrequired1 to 140 characters.
payoutAccount.accountNumberstringoptionalRequired unless
ibanis sent. 4 to 34 letters, digits, spaces or dashes.payoutAccount.ibanstringoptionalRequired unless
accountNumberis sent.payoutAccount.bankNamestringrequired1 to 140 characters.
payoutAccount.bankCountrystringrequiredISO 3166-1 alpha-2.
payoutAccount.currencystringrequiredThe quote's
destination.currency; any other is400.payoutAccount.recipientTypestringindividualbusinessoptionalRequired for AED, CAD, EUR, GBP, MXN and USD. See Payout accounts.
payoutAccount.dateOfBirthstringoptionalYYYY-MM-DD. Required for individual recipients in AED, CAD, EUR, GBP, MXN and USD.payoutAccount.accountTypestringsavingscheckingpaymentoptionalpayoutAccount.swiftCodestringoptional8 or 11 characters.
payoutAccount.bicCodestringoptional8 or 11 characters.
payoutAccount.bsbCodestringoptional000-000or000000.payoutAccount.abaCodestringoptional9 digits.
payoutAccount.sortCodestringoptional00-00-00or000000.payoutAccount.addressobjectoptionalOptional:
street,city,state,postalCodeandcountry, all required when you send it.
Response · 201
idstringoptionalkindstringroutequotedoptionalcustomerIdstringoptionalrouteIdstring | nulloptionalSet for deposits;
nullfor quoted payouts.statusstringpendingprocessingreviewcompleterefundingrefundedfailedoptionalsourceobjectoptionalamount,currency,rail; deposits addreferenceandsenderName.destinationobjectoptionalamount,currency,rail; settlements addaddressandtxHash.quoteobject | nulloptionalid,rate,expiresAtfor quoted transfers.depositInstructionsobject | nulloptionalSingle-use
address, exactamount,currency,chainto fund a quoted transfer.payoutAccountobject | nulloptionalbankName,accountHolderName,last4,country,currency. Full numbers are never returned.refundReasonstring | nulloptionalWhy the transfer failed or was refunded;
nullotherwise.actionRequiredobject | nulloptionalWhat the end user has to do for a held payout to go on:
type(wallet_verification),urlandexpiresAt.nullotherwise. See Wallet verification.statusHistoryarrayoptionalEvery status the transfer went through, with
attimestamps.createdAtstringoptionalISO 8601.
updatedAtstringoptionalISO 8601.
Errors
| Status | When |
|---|---|
400 | validation_failed: missing or malformed payout account fields, recipientType or dateOfBirth missing for the currency, a payoutAccount.currency other than the quote's, or a payout account the banking partner refused (with a reference). |
403 | customer_blocked: the customer is blocked. forbidden: Locals does not allow the bank country, the address country or the account. |
404 | not_found: unknown quote or customer. |
409 | quote_already_used: the quote is already used for another customer, purpose code or account. operation_in_doubt: what became of an earlier attempt of the same payout at the banking partner is not known yet; nothing was sent this time and the quote stays taken by that payout. Send the same payout again later: it is looked up again. Not kept for the Idempotency-Key, so a retry with the same key runs again. If it does not settle, contact Locals with the quote id. |
422 | quote_expired, customer_not_ready (the customer is still being created, or its payout capability is not enabled: "Customer cus_8Hq2Lm is not enabled for payouts (processing)"), or limit_exceeded with the limit and what is left. |
429 | rate_limited: more than 10 requests for the same quote are waiting at once. Nothing was done: send it again after Retry-After seconds. |
502 | upstream_unavailable or upstream_rejected: the banking partner did not answer or refused. Retry with the same body: one quote is one transfer. |
503 | service_unavailable with Retry-After: the request waited too long behind others for the same quote, or the banking partner is busy or failing. Nothing was done and the quote is not used: send the same request again after Retry-After seconds. |
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 data = await 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,
"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"
}GET/v1/transfersAvailable
List transfers, most recently updated first.
By page, sorted by the time of each transfer's latest update at the banking partner. By cursor, newest created first: the nextCursor of an answer by page starts that walk from the newest transfer, so drop duplicates by id.
Path and query parameters
kindstringroutequotedqueryoptionalcustomerIdstringqueryoptionalrouteIdstringqueryoptionalDeposits of one route.
statusstringqueryoptionalComma-separated statuses.
pageintegerqueryoptionalPage number, from 1. Default 1. Not together with
cursor.limitintegerqueryoptional1 to 100. Default 20.
cursorstringqueryoptionalThe
nextCursorof the previous answer, for the next page by cursor: newest created first, and a page by cursor haspage,totalCountandtotalPagesset tonull. A cursor that cannot be read, or one sent withpage, is400. See Pagination.
Errors
| Status | When |
|---|---|
400 | validation_failed: an unknown filter or value, or a cursor that cannot be read or sent with page. |
curl https://api.locals.money/v1/transfers?kind=quoted&status=processing,review \
-H "Authorization: Bearer $LOCALS_KEY"const res = await fetch('https://api.locals.money/v1/transfers?kind=quoted&status=processing,review', {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.LOCALS_KEY}`,
},
});
const data = await res.json();{
"data": [
{
"id": "trf_91kd",
"kind": "route",
"routeId": "route_3f9a",
"status": "complete",
"source": {
"amount": "12500.00",
"currency": "AUD",
"reference": "HC-2210"
},
"destination": {
"amount": "8137.50",
"currency": "USDC",
"txHash": "0x5e0c…a7d4"
}
}
],
"page": 1,
"totalCount": 1,
"totalPages": 1,
"hasMore": false,
"nextCursor": null
}GET/v1/transfers/{id}Available
Retrieve a transfer with its status history.
Path and query parameters
idstringpathrequired
Errors
| Status | When |
|---|---|
404 | not_found: no transfer with this id. |
curl https://api.locals.money/v1/transfers/trf_91kd \
-H "Authorization: Bearer $LOCALS_KEY"const res = await fetch('https://api.locals.money/v1/transfers/trf_91kd', {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.LOCALS_KEY}`,
},
});
const data = await res.json();{
"id": "trf_91kd",
"kind": "route",
"customerId": "cus_8Hq2Lm",
"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"
},
"refundReason": null,
"actionRequired": null,
"statusHistory": [
{
"status": "processing",
"at": "2026-10-21T09:41:07Z"
},
{
"status": "complete",
"at": "2026-10-21T09:44:52Z"
}
],
"createdAt": "2026-10-21T09:41:07.903Z",
"updatedAt": "2026-10-21T09:44:52.318Z"
}Events
Locals tells you when something changes by sending signed events to your HTTPS endpoints. Each event has an id, and GET/v1/events lists them to catch up. See Events.
POST/v1/webhook-endpointsAvailable
Register an HTTPS endpoint that receives events.
Up to 10 active endpoints per account. The response carries the signing secret, shown only here: store it with your other secrets.
Request body
urlstringrequiredPublic HTTPS URL, up to 2048 characters, without credentials or a fragment. Private and reserved addresses are refused.
eventsarrayoptionalEvent types to send, without repeats. Leave it out to receive every type.
Response · 201
idstringoptionalurlstringoptionaleventsarrayoptionalThe event types it receives. Empty: every type.
statusstringactivedisabledoptionaldisabledReasonstring | nulloptionalWhy it is
disabled: deleted, or every delivery failed for 3 days.secretsarrayoptionalid,prefix(the first 10 characters) andcreatedAtof each signing secret, never the secret itself.createdAtstringoptionalISO 8601.
updatedAtstringoptionalISO 8601.
secretstringoptionalThe signing secret,
whsec_…. Only in this response.
Errors
| Status | When |
|---|---|
400 | validation_failed: url is not public HTTPS or has credentials or a fragment, or an unknown event type. |
409 | conflict: you already have 10 active endpoints. |
curl -X POST https://api.locals.money/v1/webhook-endpoints \
-H "Authorization: Bearer $LOCALS_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"url": "https://app.example/hooks/locals",
"events": [
"transfer.completed",
"route.activated"
]
}'const res = await fetch('https://api.locals.money/v1/webhook-endpoints', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.LOCALS_KEY}`,
'Idempotency-Key': crypto.randomUUID(),
'Content-Type': 'application/json',
},
body: JSON.stringify({
"url": "https://app.example/hooks/locals",
"events": [
"transfer.completed",
"route.activated"
]
}),
});
const data = await res.json();{
"id": "we_2c81",
"url": "https://app.example/hooks/locals",
"events": [
"transfer.completed",
"route.activated"
],
"status": "active",
"disabledReason": null,
"secrets": [
{
"id": "whs_51ad",
"prefix": "whsec_AbCd",
"createdAt": "2026-10-21T09:12:44.120Z"
}
],
"createdAt": "2026-10-21T09:12:44.120Z",
"updatedAt": "2026-10-21T09:12:44.120Z",
"secret": "whsec_…"
}GET/v1/webhook-endpointsAvailable
List your endpoints, newest first, deleted ones included.
curl https://api.locals.money/v1/webhook-endpoints \
-H "Authorization: Bearer $LOCALS_KEY"const res = await fetch('https://api.locals.money/v1/webhook-endpoints', {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.LOCALS_KEY}`,
},
});
const data = await res.json();{
"data": [
{
"id": "we_2c81",
"url": "https://app.example/hooks/locals",
"events": [
"transfer.completed",
"route.activated"
],
"status": "active",
"disabledReason": null,
"secrets": [
{
"id": "whs_51ad",
"prefix": "whsec_AbCd",
"createdAt": "2026-10-21T09:12:44.120Z"
}
],
"createdAt": "2026-10-21T09:12:44.120Z",
"updatedAt": "2026-10-21T09:12:44.120Z"
}
]
}DELETE/v1/webhook-endpoints/{id}Available
Delete an endpoint: it stops receiving events.
The endpoint is kept as disabled, with disabledReason: "Deleted", so its deliveries stay readable. Repeating the call answers 200 again.
Path and query parameters
idstringpathrequiredEndpoint id.
Errors
| Status | When |
|---|---|
404 | not_found: no endpoint with this id. |
curl -X DELETE https://api.locals.money/v1/webhook-endpoints/we_2c81 \
-H "Authorization: Bearer $LOCALS_KEY"const res = await fetch('https://api.locals.money/v1/webhook-endpoints/we_2c81', {
method: 'DELETE',
headers: {
Authorization: `Bearer ${process.env.LOCALS_KEY}`,
},
});
const data = await res.json();{
"id": "we_2c81",
"url": "https://app.example/hooks/locals",
"events": [
"transfer.completed",
"route.activated"
],
"status": "disabled",
"disabledReason": "Deleted",
"secrets": [
{
"id": "whs_51ad",
"prefix": "whsec_AbCd",
"createdAt": "2026-10-21T09:12:44.120Z"
}
],
"createdAt": "2026-10-21T09:12:44.120Z",
"updatedAt": "2026-10-21T09:44:52.318Z"
}POST/v1/webhook-endpoints/{id}/secretsAvailable
Rotation, step 1: add a second signing secret.
While an endpoint has two secrets, every event is signed with both: see Rotate the secret. At most two per endpoint. No body.
Path and query parameters
idstringpathrequiredEndpoint id.
Response · 201
idstringoptionalSecret id, to retire it later.
prefixstringoptionalThe first 10 characters, as the endpoint lists it.
createdAtstringoptionalISO 8601.
secretstringoptionalThe new signing secret. Only in this response.
Errors
| Status | When |
|---|---|
404 | not_found: no endpoint with this id. |
409 | conflict: the endpoint already has two secrets, or it is deleted. |
curl -X POST https://api.locals.money/v1/webhook-endpoints/we_2c81/secrets \
-H "Authorization: Bearer $LOCALS_KEY" \
-H "Idempotency-Key: $(uuidgen)"const res = await fetch('https://api.locals.money/v1/webhook-endpoints/we_2c81/secrets', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.LOCALS_KEY}`,
'Idempotency-Key': crypto.randomUUID(),
},
});
const data = await res.json();{
"id": "whs_7e30",
"prefix": "whsec_Zx9q",
"createdAt": "2026-10-21T09:44:52.318Z",
"secret": "whsec_…"
}DELETE/v1/webhook-endpoints/{id}/secrets/{secretId}Available
Rotation, step 2: retire a signing secret.
Retire the old secret once your receiver checks the new one. The last secret cannot be retired. Answers the endpoint.
Path and query parameters
idstringpathrequiredEndpoint id.
secretIdstringpathrequiredSecret id, from
secrets.
Errors
| Status | When |
|---|---|
404 | not_found: unknown endpoint or secret. |
409 | conflict: it is the last secret. |
curl -X DELETE https://api.locals.money/v1/webhook-endpoints/we_2c81/secrets/whs_51ad \
-H "Authorization: Bearer $LOCALS_KEY"const res = await fetch('https://api.locals.money/v1/webhook-endpoints/we_2c81/secrets/whs_51ad', {
method: 'DELETE',
headers: {
Authorization: `Bearer ${process.env.LOCALS_KEY}`,
},
});
const data = await res.json();{
"id": "we_2c81",
"url": "https://app.example/hooks/locals",
"events": [
"transfer.completed",
"route.activated"
],
"status": "active",
"disabledReason": null,
"secrets": [
{
"id": "whs_7e30",
"prefix": "whsec_Zx9q",
"createdAt": "2026-10-21T09:44:52.318Z"
}
],
"createdAt": "2026-10-21T09:12:44.120Z",
"updatedAt": "2026-10-21T09:44:52.318Z"
}POST/v1/webhook-endpoints/{id}/testAvailable
Send a signed test event to one endpoint, now.
Sends a webhook.test event, with data: { endpointId }, to that endpoint only, whatever event types it takes, signed like every other event. Answers with the result, 200 also when the endpoint failed. The test event is not stored, not retried and not listed in GET/v1/events. Works on an endpoint disabled after failures, not on a deleted one. No body.
Path and query parameters
idstringpathrequiredEndpoint id.
Response · 200
eventIdstringoptionalokbooleanoptionaltruewhen the endpoint answered2xxin time.statusCodeinteger | nulloptionalWhat the endpoint answered;
nullwithout an answer.durationMsintegeroptionalerrorstring | nulloptionalWhy it failed;
nullwhenok.
Errors
| Status | When |
|---|---|
404 | not_found: no endpoint with this id. |
409 | conflict: the endpoint is deleted. |
curl -X POST https://api.locals.money/v1/webhook-endpoints/we_2c81/test \
-H "Authorization: Bearer $LOCALS_KEY" \
-H "Idempotency-Key: $(uuidgen)"const res = await fetch('https://api.locals.money/v1/webhook-endpoints/we_2c81/test', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.LOCALS_KEY}`,
'Idempotency-Key': crypto.randomUUID(),
},
});
const data = await res.json();{
"eventId": "evt_9b0e",
"ok": true,
"statusCode": 200,
"durationMs": 184,
"error": null
}GET/v1/eventsAvailable
List your events, to catch up after downtime.
Every event of your account, delivered or not, with the full object in data. Without after, newest first. With after, the events after that one oldest first: page forward with the last id you got until hasMore is false.
Path and query parameters
typestringcustomer.updatedcustomer.verification.updatedcustomer.blockedcustomer.unblockedroute.activatedroute.closedroute.deposit.receivedtransfer.processingtransfer.reviewtransfer.action_requiredtransfer.completedtransfer.failedtransfer.refundedqueryoptionalOne event type.
afterstringqueryoptionalOnly events after this event id.
limitintegerqueryoptional1 to 100. Default 20.
Errors
| Status | When |
|---|---|
400 | validation_failed: an unknown type, or page, which this list does not take. |
404 | not_found: no event with the after id. |
curl https://api.locals.money/v1/events?after=evt_6f1a&limit=100 \
-H "Authorization: Bearer $LOCALS_KEY"const res = await fetch('https://api.locals.money/v1/events?after=evt_6f1a&limit=100', {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.LOCALS_KEY}`,
},
});
const data = await res.json();{
"data": [
{
"id": "evt_6f1a",
"type": "transfer.completed",
"createdAt": "2026-10-21T09:44:52.318Z",
"data": {
"id": "trf_91kd",
"kind": "route",
"customerId": "cus_8Hq2Lm",
"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"
},
"refundReason": null,
"actionRequired": null,
"statusHistory": [
{
"status": "processing",
"at": "2026-10-21T09:41:07Z"
},
{
"status": "complete",
"at": "2026-10-21T09:44:52Z"
}
],
"createdAt": "2026-10-21T09:41:07.903Z",
"updatedAt": "2026-10-21T09:44:52.318Z"
}
}
],
"hasMore": false
}GET/v1/events/{id}Available
Retrieve one event.
Path and query parameters
idstringpathrequiredEvent id.
Errors
| Status | When |
|---|---|
404 | not_found: no event with this id. |
curl https://api.locals.money/v1/events/evt_6f1a \
-H "Authorization: Bearer $LOCALS_KEY"const res = await fetch('https://api.locals.money/v1/events/evt_6f1a', {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.LOCALS_KEY}`,
},
});
const data = await res.json();{
"id": "evt_6f1a",
"type": "transfer.completed",
"createdAt": "2026-10-21T09:44:52.318Z",
"data": {
"id": "trf_91kd",
"kind": "route",
"customerId": "cus_8Hq2Lm",
"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"
},
"refundReason": null,
"actionRequired": null,
"statusHistory": [
{
"status": "processing",
"at": "2026-10-21T09:41:07Z"
},
{
"status": "complete",
"at": "2026-10-21T09:44:52Z"
}
],
"createdAt": "2026-10-21T09:41:07.903Z",
"updatedAt": "2026-10-21T09:44:52.318Z"
}
}GET/v1/events/{id}/deliveriesAvailable
How an event was delivered: one delivery per endpoint.
Up to 50, newest first.
Path and query parameters
idstringpathrequiredEvent id.
Response · 200
dataarrayoptionaldata.idstringoptionaldata.endpointIdstringoptionaldata.statusstringpendingsendingsucceededfailedoptionaldata.attemptsintegeroptionaldata.nextAttemptAtstring | nulloptionalWhen the next attempt goes, while
pending.data.lastAttemptAtstring | nulloptionaldata.lastStatusCodeinteger | nulloptionalWhat your endpoint answered last.
data.lastErrorstring | nulloptionaldata.lastDurationMsinteger | nulloptionaldata.createdAtstringoptional
Errors
| Status | When |
|---|---|
404 | not_found: no event with this id. |
curl https://api.locals.money/v1/events/evt_6f1a/deliveries \
-H "Authorization: Bearer $LOCALS_KEY"const res = await fetch('https://api.locals.money/v1/events/evt_6f1a/deliveries', {
method: 'GET',
headers: {
Authorization: `Bearer ${process.env.LOCALS_KEY}`,
},
});
const data = await res.json();{
"data": [
{
"id": "dlv_3a7c",
"endpointId": "we_2c81",
"status": "succeeded",
"attempts": 1,
"nextAttemptAt": null,
"lastAttemptAt": "2026-10-21T09:44:53.104Z",
"lastStatusCode": 200,
"lastError": null,
"lastDurationMs": 212,
"createdAt": "2026-10-21T09:44:53.020Z"
}
]
}POST/v1/events/{id}/redeliverAvailable
Send an event again, to every endpoint or to one.
Without endpointId, every delivery of the event goes again. With it, only the one to that endpoint, created if the endpoint did not take the event then, for example an endpoint created after the event. The event keeps its id, so your duplicate check still works. Asking again for the same endpoint reopens its delivery, never a second one.
While 50 or more deliveries of your account are waiting to go out now, of any event, the call is 409 too_many_pending_deliveries and nothing changes; retries scheduled for later do not count. Send it again once those have gone out.
Path and query parameters
idstringpathrequiredEvent id.
Request body
endpointIdstringoptionalOne active endpoint of yours.
Response · 200
eventIdstringoptionaldeliveriesintegeroptionalHow many deliveries go again because of this call: the one created plus the ones reopened. One still
pendingorsendingis not counted.
Errors
| Status | When |
|---|---|
404 | not_found: unknown event or endpoint. |
409 | conflict: the endpoint is not active. too_many_pending_deliveries: 50 or more deliveries of your account are waiting to go out now; nothing changed. |
curl -X POST https://api.locals.money/v1/events/evt_6f1a/redeliver \
-H "Authorization: Bearer $LOCALS_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"endpointId": "we_2c81"
}'const res = await fetch('https://api.locals.money/v1/events/evt_6f1a/redeliver', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.LOCALS_KEY}`,
'Idempotency-Key': crypto.randomUUID(),
'Content-Type': 'application/json',
},
body: JSON.stringify({
"endpointId": "we_2c81"
}),
});
const data = await res.json();{
"eventId": "evt_6f1a",
"deliveries": 1
}Sandbox
Only with sandbox keys. Nothing here moves real money.
POST/v1/test/routes/{id}/simulateAvailable
Simulate an incoming bank transfer on a route.
Produces the same transfer and events as a real deposit, a moment later. Only on the sandbox deployment: on live it returns 404.
Path and query parameters
idstringpathrequired
Request body
amountstringrequiredDecimal string in the route's currency.
scenariostringcreate_onlycompletedfailedrequiredcreate_onlyleaves the deposit in progress;completedsettles it;failedfails it.
Errors
| Status | When |
|---|---|
400 | validation_failed: malformed amount or unknown scenario. |
404 | not_found: on the live deployment, or unknown route. |
502 | upstream_unavailable: the simulator did not answer. Retry. |
curl -X POST https://api.locals.money/v1/test/routes/route_3f9a/simulate \
-H "Authorization: Bearer $LOCALS_KEY" \
-H "Idempotency-Key: $(uuidgen)" \
-H "Content-Type: application/json" \
-d '{
"amount": "250.00",
"scenario": "completed"
}'const res = await fetch('https://api.locals.money/v1/test/routes/route_3f9a/simulate', {
method: 'POST',
headers: {
Authorization: `Bearer ${process.env.LOCALS_KEY}`,
'Idempotency-Key': crypto.randomUUID(),
'Content-Type': 'application/json',
},
body: JSON.stringify({
"amount": "250.00",
"scenario": "completed"
}),
});
const data = await res.json();{
"routeId": "route_3f9a",
"amount": "250.00",
"scenario": "completed",
"accepted": true
}