Statuses and lifecycle
Customers, routes and transfers each have a small set of statuses. This page lists them, what they mean and how they change.
Locals keeps one status model per object, the same for every currency and rail. Build your logic on these values, not on the wording of bank or chain messages.
Watching for changes. Status changes arrive as events: customer.*, route.* and transfer.*. You can also read the object again with GET/v1/customers/{id}, GET/v1/routes/{id} and GET/v1/transfers/{id}, or the list endpoints with a status filter.
Customer
A customer's status summarises its verification. The detail is in verification.status and capabilities; verification.levels and entitlements are being retired.
| Status | Meaning |
|---|---|
pending | Verification is not finished |
active | Verified. The enabled capabilities can be used |
blocked | Blocked by Locals or by you, whatever its verification says. No payouts or new routes, and its routes are cut |
A blocked customer carries blocked: { by, reason, at }, where by is locals or tenant (you); it is null otherwise. When the block is lifted, status goes back to what the verification says. See Blocked customers.
Verification status
verification.status | Meaning |
|---|---|
processing | Being reviewed. Nobody has to do anything |
action_required | The customer has to do something: complete the hosted link, or send a document again. verification.reasons says why |
approved | Verified |
rejected | Not verified. verification.reasons says why |
Capabilities
Each entry in capabilities is one operation, payout or a route in one source currency, with its own status:
| Capability status | Meaning |
|---|---|
enabled | The customer can do it. A route needs the route capability of its currency enabled; a payout, the payout capability |
processing | Being reviewed or set up. Nobody has to do anything |
action_required | Something is missing or was refused, listed in requirements. With nothing listed: the customer finishes verification first if verification.status is action_required; otherwise Locals' support has to act, contact Locals |
rejected | The customer cannot do it |
Each requirement is missing (not sent yet) or rejected (sent and refused: send it again). An enabled capability has no requirements. See Capabilities.
The verification status and the capabilities follow the review: any value can change to any other when Locals reads the customer again. Build on the current value, and on version to tell an older event from a newer one.
Verification levels
Being retired: use verification.status. Each entry in verification.levels has its own status:
| Level status | Meaning | Final |
|---|---|---|
in_progress | Submitted and being reviewed | no |
requires_action | The reviewer needs something corrected. Goes back to in_progress once the customer fixes it | no |
approved | Verified. The level's entitlements are granted | yes |
rejected | Not verified | yes |
Entitlements
Being retired: use capabilities. Each entitlement (virtual_account, base_payout) is pending until the base level is approved, then approved. See Customers and verification.
Route
| Status | Meaning | Deposits |
|---|---|---|
pending | Being opened with the banking partner. Usually lasts minutes | Do not share the bank details yet |
active | Open | Credited and settled to USDC |
inactive | Deactivated | Do not send customers to it |
closed | Closed for good | Do not send customers to it |
Rules:
- A route starts as
pending. It does not need anything from you to becomeactive; poll GET/v1/routes/{id}, which refreshes a pending route before returning it. closedis final. A closed route never changes again, and POST/v1/routes opens a new route instead of returning it.- Changes are applied in the order they happened at the banking partner. A late, older update never overwrites a newer status.
Cut routes
blocked is not a status: it is a flag on the route, true while Locals has cut it because its customer is blocked or went over a deposit limit. The route keeps its status. Do not show its deposit instructions while blocked is true. It goes back to false when the block is lifted or Locals has reviewed the deposit. See Routes.
Transfer
Deposits (kind: route) and payouts (kind: quoted) share the same seven statuses.
| Status | Meaning | Final |
|---|---|---|
pending | Created, waiting for funds. Payouts: waiting for you to fund depositInstructions | no |
processing | Funds received, conversion and delivery in progress | no |
review | Held for a compliance check. Continues once the check ends | no |
complete | Delivered: USDC sent for a deposit, bank payment made for a payout | no, can be refunded |
refunding | A refund is in progress | no |
refunded | The funds were returned | yes |
failed | Did not complete. For payouts this includes cancelled and expired transfers | yes |
Allowed transitions
These are the only changes Locals applies to a transfer; any other change is ignored.
| From | Can move to |
|---|---|
pending | processing, review, complete, refunding, refunded, failed |
processing | review, complete, refunding, refunded, failed |
review | processing, complete, refunding, refunded, failed |
complete | refunding, refunded |
refunding | refunded, failed |
refunded | none, final |
failed | none, final |
processingandreviewcan alternate: a compliance hold can start while a transfer is processing, and processing resumes after it. That change is applied only when it is newer than the current status. A transfer never goes back topending.- A status can be skipped. A deposit can go straight from
processingtocomplete, so do not wait for every intermediate status. statusHistorylists every status the transfer went through, with the time of each at the banking partner.- A held payout can carry
actionRequired: something the end user has to do before it goes on. It goes back tonullonce the transfer moves on. See Wallet verification. refundReasonsays why a transfer failed or was refunded; it isnullotherwise.refundingandrefundedare part of the model, but the current rails do not produce them yet.
Deposits
A deposit appears when the bank payment reaches the route, already in processing.
If the deposit is held for review, it shows review and then continues to complete or failed.
Payouts
A payout starts as pending when you create it and stays there until the funds reach depositInstructions.address.
A compliance hold can come at any point before completion and moves the payout to review; afterwards it continues to processing, complete or failed.
A payout that is cancelled, expires before it is funded, or is rejected by the bank ends as failed.
Handling statuses in your code
- Treat
complete,refundedandfailedas the states to show your customer as finished;completecan still become a refund later. - Use
reviewto tell your customer that the transfer is delayed, not that it failed. If it hasactionRequired, show the link to the user. - Before a route or a payout, check that the capability it needs is
enabled. - Treat a
blockedcustomer, or a route withblocked: true, as on hold: no new payouts or routes, no deposit instructions. - Handle a value you do not recognise as "in progress" rather than failing, and check the Changelog for changes to the model.