localsDocs Get sandbox keys
Concepts/Customers and verification

Customers and verification

A customer is the person or business that owns routes and transfers. Every customer is verified before it can move money.

Every route and every transfer belongs to a customer. You create the customer once, the customer completes verification, and Locals enables the capabilities that unlock routes and payouts.

Customer types

TypeWhoVerificationStatus
businessA company you serveHosted KYB link: you send the customer to a Locals pageAvailable
individualA person you serveThe verification data you already hold, sent in kycAvailable with a compliance agreement
individualA person you serveHosted KYC linkPlanned
Note

Individuals. The hosted verification link for individuals is designed but not built. Today an individual is created from the verification you already did for that person, sent in kyc: only for partners whose compliance agreement with Locals allows it. Other partners get 400 on kyc. If you need to onboard individuals, talk to us before you build the flow.

One customer per externalId

externalId is your own id for the customer, for example the account id in your system. It is unique per partner: creating a second customer with the same externalId returns 409 customer_exists. Store the Locals id (cus_…) next to your own record and reuse it.

Find a customer

GET/v1/customers lists your customers, newest first, and externalId finds one by your own id: GET /v1/customers?externalId=acct_1042. Filter with status (one value) and type. The list returns customers as Locals stored them; GET/v1/customers/{id} reads the verification live.

Create a business customer

Call POST/v1/customers with type: business, a contact email and your externalId. redirect is optional: it is where the hosted page sends the customer when they finish.

curl -X POST https://api.locals.money/v1/customers \
  -H "Authorization: Bearer $LOCALS_KEY" \
  -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}`,
    'Content-Type': 'application/json',
  },
  body: JSON.stringify({
    type: 'business',
    email: 'finance@harbour.example',
    externalId: 'acct_1042',
    redirect: { successUrl: 'https://app.example/kyb/done' },
  }),
});
const customer = await res.json();
import os, requests

res = requests.post(
    "https://api.locals.money/v1/customers",
    headers={"Authorization": f"Bearer {os.environ['LOCALS_KEY']}"},
    json={
        "type": "business",
        "email": "finance@harbour.example",
        "externalId": "acct_1042",
        "redirect": {"successUrl": "https://app.example/kyb/done"},
    },
)
customer = res.json()

The response is 201 with the customer in pending and a hosted verification link. verification.status is action_required: the link waits for the customer.

Response · 201
{
  "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"
}

Create an individual customer

With a compliance agreement that allows it, send the verification you already did for the person in kyc: name, date of birth, nationality, address, identity document and selfie. Images are JPEG or PNG data URLs; the body can be up to 15 MB.

POST /v1/customers
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": "individual",
    "email": "maria@example.com",
    "externalId": "user_5521",
    "kyc": {
      "firstName": "Maria",
      "lastName": "Santos",
      "dateOfBirth": "1990-04-12",
      "nationality": "PH",
      "phone": "+61412345678",
      "address": { "line1": "12 Harbour St", "city": "Sydney", "state": "New South Wales", "postalCode": "2000", "country": "AU" },
      "idDocument": { "type": "PASSPORT", "country": "PH", "frontImage": "data:image/jpeg;base64,/9j/4AAQ…" },
      "selfieImage": "data:image/jpeg;base64,/9j/4AAQ…"
    }
  }'

Change a customer

PATCH/v1/customers/{id} changes only what you send: email, and for individuals, if your account sends verification data, any of the fields of kyc, in the same formats. address and idDocument go whole. Use it to correct data or to send a new document.

PATCH /v1/customers/{id}
curl -X PATCH https://api.locals.money/v1/customers/cus_8Hq2Lm \
  -H "Authorization: Bearer $LOCALS_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "kyc": {
      "idDocument": { "type": "PASSPORT", "country": "PH", "frontImage": "data:image/jpeg;base64,/9j/4AAQ…" }
    }
  }'

Verification flow

  1. Create the customer. POST/v1/customers returns verification.link.
  2. Send the customer to the link. They complete the KYB form and upload documents on the hosted page. Open it in the same browser session; do not email it for later, it is short-lived.
  3. The customer comes back. When they finish, the page redirects to redirect.successUrl, or to redirect.rejectUrl if the verification is rejected. A redirect to successUrl means the submission is complete, not that it is approved.
  4. Wait for approval. Locals sends customer.updated when the verification, a capability or a block changes. You can also read GET/v1/customers/{id}: verification is read live on every call. Wait until the capability you need is enabled.
  5. Move money. With the route capability of a currency enabled you can open routes in that currency; with the payout capability enabled you can create payouts.
Tip

Register an endpoint for customer.updated and you do not need to poll. Business reviews can take a while; keep a slow check on pending customers as a safety net. See Events.

The hosted link lasts about 30 minutes by default (subject to change). There is no endpoint to issue a new link for an existing customer today.

Verification status

verification.status says where the customer's verification stands:

StatusMeaningWhat you can do
processingBeing reviewed. Nobody has to do anythingWait
action_requiredThe customer has to do something: complete the hosted link, or send a document againSend the customer to verification.link; for an individual, send the new data with PATCH/v1/customers/{id}
approvedVerifiedCheck the capability you need
rejectedNot verifiedNothing

verification.reasons says why the verification waits on the customer or was rejected, as lower case codes, for example bad_proof_of_identity. It is [] otherwise. The list of codes is open: show the ones you know and handle any other as a generic reason.

Capabilities

capabilities says what the customer can do: one entry per operation Locals offers, the ones the customer cannot do included. Today that is one payout and one route per source currency, AUD and AED.

FieldDescription
operationpayout: quoted payouts to bank accounts. route: routes that collect in currency and settle in stablecoins
currencyThe source currency of the route, for example AUD. null for payout
statusenabled, processing, action_required or rejected
requirementsWhat is missing or was refused, as { code, status }. Always [] when the capability is enabled
StatusMeaningWhat you can do
enabledThe customer can do itOpen routes in that currency, or create payouts
processingBeing reviewed or set up. Nobody has to do anythingWait for customer.updated
action_requiredSomething is missing or was refused: see requirementsAsk the customer for what is listed. With nothing listed, the customer finishes verification first if verification.status is action_required; otherwise Locals' support has to act: contact Locals
rejectedThe customer cannot do itNothing

Each requirement has a code: name, date_of_birth, nationality, email, phone, address, id_document, selfie, liveness, proof_of_address, source_of_wealth, questionnaire, tax_id, occupation, business_documents, beneficial_owners or other. Its status is missing (not sent yet) or rejected (sent and refused: send it again). For individuals, PATCH/v1/customers/{id} sends new data or a new document.

POST/v1/routes needs the route capability of its source currency enabled, and POST/v1/transfers the payout capability. Otherwise they return 422 customer_not_ready, and the message names the capability and its status: Customer cus_8Hq2Lm is not enabled for AED routes (action_required), or … is not enabled for payouts (processing). not offered in place of the status means Locals does not offer that operation.

A block takes over: a blocked customer shows status: "blocked" and moves no money, whatever its capabilities say. See Blocked customers.

Being reviewed
{
  "id": "cus_4Tn7Qp",
  "type": "individual",
  "status": "pending",
  "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": [] }
  ]
}
Verification rejected
{
  "id": "cus_4Tn7Qp",
  "type": "individual",
  "status": "pending",
  "verification": { "status": "rejected", "reasons": ["bad_proof_of_identity"], "link": null, "levels": [ { "level": "individual_base", "status": "rejected" } ] },
  "capabilities": [
    { "operation": "payout", "currency": null, "status": "rejected", "requirements": [] },
    { "operation": "route", "currency": "AUD", "status": "rejected", "requirements": [] },
    { "operation": "route", "currency": "AED", "status": "rejected", "requirements": [] }
  ]
}

A customer stored before these fields existed shows verification.status: null, reasons: [] and capabilities: [] until Locals reads it again, shortly after they were released.

Version

version goes up with every change of the customer. Events can arrive out of order: keep the version you hold for each customer, and a customer.updated whose data.version is lower is older than what you have: ignore it.

Verification levels

Note

Being retired. verification.levels still comes in every response while partners move to verification.status and capabilities. Build new code on those.

verification.levels lists each level the customer goes through and its status. There is one base level per type:

LevelCustomer typeGrants
business_basebusinessvirtual_account, base_payout
individual_baseindividualvirtual_account, base_payout

A level moves from in_progress to approved or rejected, which are final. It can also go to requires_action when the reviewer needs something corrected; once the customer fixes it, it returns to in_progress. See Statuses.

Entitlements

Note

Being retired. entitlements still comes in every response while partners move to capabilities, which decide whether a route or a payout can go ahead. Build new code on those.

Entitlements say what an approved customer was granted. Locals requests both on creation and grants them when the base level is approved.

EntitlementUnlocksNow read
virtual_accountOpening routes (collect local currency, settle in stablecoins)The route capabilities
base_payoutQuoted payouts to bank accountsThe payout capability

Customer status

StatusMeaningWhat you can do
pendingVerification is not finishedWait; send the customer to verification.link if they have not finished
activeVerifiedOpen routes and create payouts, per capability
blockedBlocked by Locals or by youNothing new: no payouts or routes. See Blocked customers

Before you open a route or create a payout, check the capability it needs: status alone does not say it.

GET /v1/customers/cus_8Hq2Lm
{
  "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"
}

Here AED routes are action_required with nothing listed: Locals' support has to act, so contact Locals if you need them. verification.link stays the one issued on creation. If the banking partner does not answer, GET/v1/customers/{id} returns the last state Locals stored.

Blocked customers

Locals can block a customer, and so can you, from the backoffice. A blocked customer:

A blocked customer
{
  "id": "cus_8Hq2Lm",
  "status": "blocked",
  "blocked": { "by": "locals", "reason": "Under review", "at": "2026-10-22T08:30:00.000Z" }
}

Locals sends customer.updated, and customer.blocked and customer.unblocked while they are being retired. You unblock the customers you blocked; a block by Locals is lifted only by Locals. GET/v1/customers with status=blocked lists them; active and pending leave them out.

Limits

Locals sets limits in USD on what each customer moves, per operation, per 24 hours and per 30 days, for deposits and for payouts, plus a cap on your whole volume. GET/v1/customers/{id}/limits shows each limit, what is used and what is left, and available: the most one operation can move now. asOf says when the volume was measured: the answer is a picture of that moment, and a payout is checked again when it is made, never against it. See Limits and blocks.

Sandbox behaviour

In sandbox, business verifications go to manual review, so a sandbox KYB stays pending until it is reviewed. Plan your tests around that, or use a customer that is already approved. See Test in sandbox.