localsDocs Get sandbox keys
Concepts/Statuses and lifecycle

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.

Note

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.

StatusMeaning
pendingVerification is not finished
activeVerified. The enabled capabilities can be used
blockedBlocked 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.statusMeaning
processingBeing reviewed. Nobody has to do anything
action_requiredThe customer has to do something: complete the hosted link, or send a document again. verification.reasons says why
approvedVerified
rejectedNot 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 statusMeaning
enabledThe customer can do it. A route needs the route capability of its currency enabled; a payout, the payout capability
processingBeing reviewed or set up. Nobody has to do anything
action_requiredSomething 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
rejectedThe 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:

in_progress→approvedrejected
Level statusMeaningFinal
in_progressSubmitted and being reviewedno
requires_actionThe reviewer needs something corrected. Goes back to in_progress once the customer fixes itno
approvedVerified. The level's entitlements are grantedyes
rejectedNot verifiedyes

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

pending→active→inactiveclosed
StatusMeaningDeposits
pendingBeing opened with the banking partner. Usually lasts minutesDo not share the bank details yet
activeOpenCredited and settled to USDC
inactiveDeactivatedDo not send customers to it
closedClosed for goodDo not send customers to it

Rules:

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.

StatusMeaningFinal
pendingCreated, waiting for funds. Payouts: waiting for you to fund depositInstructionsno
processingFunds received, conversion and delivery in progressno
reviewHeld for a compliance check. Continues once the check endsno
completeDelivered: USDC sent for a deposit, bank payment made for a payoutno, can be refunded
refundingA refund is in progressno
refundedThe funds were returnedyes
failedDid not complete. For payouts this includes cancelled and expired transfersyes

Allowed transitions

These are the only changes Locals applies to a transfer; any other change is ignored.

FromCan move to
pendingprocessing, review, complete, refunding, refunded, failed
processingreview, complete, refunding, refunded, failed
reviewprocessing, complete, refunding, refunded, failed
completerefunding, refunded
refundingrefunded, failed
refundednone, final
failednone, final

Deposits

A deposit appears when the bank payment reaches the route, already in processing.

processing→completefailed

If the deposit is held for review, it shows review and then continues to complete or failed.

processing→review→completefailed

Payouts

A payout starts as pending when you create it and stays there until the funds reach depositInstructions.address.

pending→processing→completefailed

A compliance hold can come at any point before completion and moves the payout to review; afterwards it continues to processing, complete or failed.

pending→review→processing→complete

A payout that is cancelled, expires before it is funded, or is rejected by the bank ends as failed.

Handling statuses in your code