# Create API Key (/api-reference/api-keys/create-api-key) # Get API Key (/api-reference/api-keys/get-api-key) # List API Keys (/api-reference/api-keys/list-api-keys) # Revoke API Key (/api-reference/api-keys/revoke-api-key) # Balance Deposit Wallet (/api-reference/balances/balance-deposit-wallet) Request your balance's deposit wallet on a network, then poll until it is `active`. Deposits only credit when they come from a [whitelisted wallet](/api-reference/balances/list-whitelisted-wallets). # Create Transfer from Balance (/api-reference/balances/create-transfer-from-balance) Pay for a transfer from the balance your organisation already holds instead of collecting a deposit from your customer. This is the standard [Create Transfer](/api-reference/transfers/create-transfer) endpoint with `funding_source` set. #### Funding source [#funding-source] | Value | Behaviour | | ------------------- | -------------------------------------------------------------------------------------------- | | `fund_transfer` | Default. Stables issues single-use `source_deposit_instructions` and waits for the deposit. | | `prefund_balance` | Debits your balance of the quote's source asset on its network. No deposit instructions; starts immediately. | The legacy value `customer_deposit` is still accepted as a deprecated alias of `fund_transfer`. The response reports it as `source.funding_source` (`prefund_balance` or `fund_transfer`), and `source_deposit_instructions` is `null` for balance-funded transfers. #### Requirements [#requirements] * `transfers_enabled` is `true` on [Get Balance](/api-reference/balances/get-balance). * The quote's source is USDC or USDT on Ethereum, Polygon or Solana, or USDT on Tron. * You hold an **active** deposit address on that network, with enough of that asset to cover the source amount. Assets and networks are not pooled. #### Errors [#errors] Balance funding is checked before the transfer is created. Each failure returns **422**, with the code as a prefix of `message`. There is no separate `code` field. | Code | Meaning | | ------------------------------- | ---------------------------------------------------------------------------------------------- | | `PREFUND_INSUFFICIENT_BALANCE` | Your balance of the source asset on the source network is below the source amount. | | `PREFUND_UNSUPPORTED_ASSET` | The quote's source is not a supported balance asset. | | `PREFUND_WALLET_NOT_ACTIVE` | You have no active deposit address on the source network. | | `PREFUND_TRANSFERS_NOT_ENABLED` | Paying transfers from your balance is not enabled for your organisation. | | `PREFUND_NOT_ENABLED` | Balances are not enabled for your organisation. | | `PREFUND_UNSUPPORTED_ROUTE` | This corridor cannot be paid from a balance. | The pre-creation balance check is advisory. The authoritative debit happens atomically when the transfer runs, so a transfer created against a balance spent concurrently can still fail after creation. Creating one spends real funds immediately, with no deposit step to abandon. When retrying, reuse the same `Idempotency-Key` (required on this endpoint) so a retry cannot pay twice. See [Idempotency](/api-reference/idempotency). Related: [Transfer from balance](/developer-platform/payments/balances/pay-from-balance) walks through the full flow with examples. # Get Balance (/api-reference/balances/get-balance) Returns one entry per asset and network you hold, read from the ledger. The list is **empty until your first deposit credits** — an asset you have never funded is absent rather than reported as zero. Use `amount_minor` for arithmetic; `amount` is the same value in major units as a decimal string. #### Response fields [#response-fields] | Field | Description | | ---------------------- | --------------------------------------------------------------------------------------------------------- | | `balances` | One entry per asset and network held, each with `currency`, `amount`, `amount_minor` and `network`. | | `transfers_enabled` | Whether you may fund transfers from this balance — see [Create Transfer from Balance](/api-reference/balances/create-transfer-from-balance). | `fee_network`, `fee_currency` and `withdrawal_fee_minor` are also returned. They relate to features that are not currently available and can be ignored. Balances are enabled per organisation. If this endpoint returns `404`, the feature is not switched on for your account — contact your Stables representative. Related: [Balances](/developer-platform/payments/balances) in the Developer Platform guide covers topping up, checking your balance and reconciling activity. # List Balance Activity (/api-reference/balances/list-balance-activity) # List Pending Deposits (/api-reference/balances/list-pending-deposits) # List Whitelisted Wallets (/api-reference/balances/list-whitelisted-wallets) Returns the wallets you have whitelisted for deposits into and withdrawals from your balance, newest first. Only wallets with status `active` can deposit or receive withdrawals. Archived wallets are left out unless you pass `status=archived`. Results are cursor-paginated. Pass `next_page_token` as `page_token` on the next request. See [Pagination](/api-reference/pagination). #### Response fields [#response-fields] | Field | Description | | ------------------ | --------------------------------------------------------------------------- | | `name` | The label given when it was whitelisted. | | `status` | One of `pending_review`, `active`, `rejected`, `deactivated`, `archived`. See the [Balances guide](/developer-platform/payments/balances#whitelist-a-wallet). | | `rejection_reason` | Why Stables declined it. `null` unless `status` is `rejected`. | Whitelisting a wallet is done in the dashboard. There is no endpoint to add one. Whitelisting is enabled per organisation. If this endpoint returns `404`, it is not switched on for your account. Contact your Stables representative. Related: [Balances](/developer-platform/payments/balances) in the Developer Platform guide covers whitelisting, topping up and withdrawing. # Archive Beneficiary (/api-reference/beneficiaries/archive-beneficiary) Archives a saved beneficiary. It disappears from active listings and is refused as a transfer destination. Transfers already made to it are unaffected. Archiving an archived beneficiary is a no-op. Nothing is deleted. Saving the same account again restores the beneficiary. Related: [Beneficiaries](/developer-platform/payments/transfers/beneficiaries) in the Developer Platform guide. # Get Beneficiary (/api-reference/beneficiaries/get-beneficiary) Returns one saved beneficiary, including its `validation` result: whether its stored details still satisfy today's payout rules for its currency and network. When `valid` is `false`, save the beneficiary again with the missing details. A beneficiary belonging to another organisation returns `404`. Related: [Beneficiaries](/developer-platform/payments/transfers/beneficiaries) in the Developer Platform guide. # List Beneficiaries (/api-reference/beneficiaries/list-beneficiaries) Returns your organisation's saved beneficiaries, most recently paid first. Beneficiaries that have never been paid follow, newest first. Filter by `currency`, `network` or `status`, or use `search` to match the label, account holder name or bank name. `status` defaults to `active`; pass `archived` or `all` to include archived beneficiaries. Results are paged with `page_size` and `page_token`. See [Pagination](/api-reference/pagination). Related: [Beneficiaries](/developer-platform/payments/transfers/beneficiaries) in the Developer Platform guide explains how beneficiaries are created, matched and paid. # Save Beneficiary (/api-reference/beneficiaries/save-beneficiary) Saves a recipient and their bank account for a currency and network, so later transfers can pay it by `beneficiary_id`. You don't need to call this before paying someone: every bank transfer saves its destination automatically. The details are validated exactly as a transfer on that network would validate them. See [Beneficiary Requirements](/developer-platform/payments/transfers/beneficiary-requirements). Saving an account your organisation already has returns the existing beneficiary, with its contact details refreshed and its label updated if you send one. An archived beneficiary is restored. PayID aliases can't be saved as beneficiaries. Related: [Beneficiaries](/developer-platform/payments/transfers/beneficiaries) in the Developer Platform guide. # Get Evidence Form (/api-reference/compliance-requests-rfis/get-evidence-form) Build the body for [Submit Evidence](/api-reference/compliance-requests-rfis/submit-evidence) from the form's fields and documents. Evidence applies to one payment: what you sent for an earlier payment does not answer this one. # Get RFI (/api-reference/compliance-requests-rfis/get-rfi) Each RFI lists one or more `requirements`. Answer each one according to its `type`: | `type` | How to answer it | | --- | --- | | `evidence` | Fetch the form with [Get Evidence Form](/api-reference/compliance-requests-rfis/get-evidence-form), then send the answers and documents with [Submit Evidence](/api-reference/compliance-requests-rfis/submit-evidence). | | `kyc_level` | Pass `action.verification_type` to [Create Verification Link](/api-reference/customers/create-verification-link) and send the customer the link. The requirement is satisfied when they complete it. | | `kyc_capability` | Same as `kyc_level`, using the suggested `action` when one is present. `resubmission` or `rejection_reason` means Stables wants the data sent again. | | `manual_review` | Nothing to submit. Stables compliance is reviewing. | The RFI resolves once every requirement is `satisfied` or `waived`, and any payment it held is released. For the full lifecycle, statuses and webhooks, see [Requests for Information (RFIs)](/developer-platform/customer/compliance/requests-for-information). # List Customer RFIs (/api-reference/compliance-requests-rfis/list-customer-rfis) # List RFIs (/api-reference/compliance-requests-rfis/list-rfis) Requests for information (RFIs) are what Stables compliance needs before it can release a held payment or a held verification level. This lists your organisation's RFIs across all customers, open ones first by default. Subscribe to the `rfi.created`, `rfi.updated` and `rfi.resolved` [webhooks](/api-reference/webhooks/create-webhook) to hear about new RFIs as they happen. # Submit Evidence (/api-reference/compliance-requests-rfis/submit-evidence) # Create Customer via Link (/api-reference/customers/create-customer-via-link) # Create Customer (/api-reference/customers/create-customer) # Create Verification Link (/api-reference/customers/create-verification-link) Generate a hosted verification link for a customer who already exists. Use it to send the customer into a verification level, for example the `verification_type` named by an RFI requirement's `action`. # Get All Customers (/api-reference/customers/get-all-customers) # Get Customer (/api-reference/customers/get-customer) #### Query Parameters [#query-parameters] | Parameter | Type | Description | | --------- | ------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `include` | string | Expand the response. One or more of `verification-profile` (normalized KYC/KYB data, flattened onto the response), `doc-images` (submitted document images), or `all`. Accepts a comma-separated list or repeated `include` keys. Optional. | `include` returns a larger, slower response. Only use it when you need to sync your customer's verification data — for a routine status check, call this endpoint without `include`. # Get KYC Capabilities (/api-reference/customers/get-kyc-capabilities) The verification capabilities a customer holds, such as `proof_of_address`. A `kyc_capability` requirement on an [RFI](/api-reference/compliance-requests-rfis/get-rfi) is satisfied once the customer holds that capability. #### Capabilities you submit through the API [#capabilities-you-submit-through-the-api] | Capability | Submit with | | --- | --- | | `age_risk_acknowledgement` | `age_risk_acknowledged: true` on [Update Customer](/api-reference/customers/update-customer) | | `reason_for_use` | `reason_for_use` on [Update Customer](/api-reference/customers/update-customer) | Other capabilities, such as `proof_of_address`, come from the verification flow. See [Older customers](/developer-platform/customer/compliance/individuals#older-customers). # Update Customer Metadata (/api-reference/customers/update-customer-metadata) Store your own key-value pairs on a customer, such as your internal user id. Metadata is returned on the customer and is never used by Stables. # Update Customer (/api-reference/customers/update-customer) # Errors (/api-reference/errors) The Stables API returns error objects with a consistent structure. #### Error Object Schema [#error-object-schema] ```json { "statusCode": 404, "error": "Not Found", "message": "string", "code": "NOT_FOUND" } ``` Validation errors (`400 Bad Request`) may also include a `fields` array with per-field details: ```json { "statusCode": 400, "error": "Bad Request", "message": "string", "code": "string", "fields": [ { "field": "string", "message": "string" } ] } ``` #### Fields [#fields] | Field | Type | Description | | ------------ | ------ | --------------------------------------------------------------- | | `statusCode` | number | HTTP status code | | `error` | string | HTTP reason phrase (e.g. `"Not Found"`, `"Bad Request"`) | | `message` | string | Human-readable explanation. It can change, so do not parse it, except for the code prefixes described under each endpoint | | `code` | string | *(optional)* Machine-readable error code, safe to branch on (e.g. `NOT_FOUND`, `UNPROCESSABLE_ENTITY`). Some endpoint-specific errors omit it and prefix the code to `message` instead | | `fields` | array | *(optional, validation errors only)* Field-level errors: `{ field, message }` | #### Common Error Responses [#common-error-responses] * `400`: Bad Request / Validation Error * `401`: Unauthorized * `402`: Payment Required (your balance cannot cover a fee charged for the request) * `403`: Forbidden * `404`: Not Found * `409`: Conflict * `422`: Unprocessable Entity * `500`: Internal Server Error * `502`: Bad Gateway * `503`: Service Unavailable (retry shortly) * `504`: Gateway Timeout For unexpected `5xx` errors `message` is a generic description and `code` is the status name (for example `INTERNAL_SERVER_ERROR`). _(More specific error messages appear under each endpoint's response schema.)_ # Idempotency (/api-reference/idempotency) Idempotency ensures that retrying the same request does not create multiple resources or double-execute an action. Stables follows the standard HTTP idempotency pattern: ### Idempotency Key Header [#idempotency-key-header] Endpoints that create or change a resource require an `Idempotency-Key` header. Use a new unique value (for example a UUID) for each distinct operation, and reuse it only when retrying that same operation. ```http Idempotency-Key: 12bd9e7c-02fe-4ea9-84e2-52264aaf8790 ``` #### Which Endpoints Require It [#which-endpoints-require-it] The header is required on: * Transfer creation, and the sandbox transfer deposit simulation * Quote creation * Customer creation, verification links, and customer metadata updates * Entitlement requests and entitlement requirement submissions * RFI evidence submission * Virtual account creation, destination updates, PayID registration, and whitelist account creation and updates * Webhook creation and deletion * API key creation and revocation Each endpoint's API reference shows whether `Idempotency-Key` is required. On these endpoints a request without the header is rejected with `400 Bad Request` and the message `Missing Idempotency-Key header`. Other endpoints ignore the header. #### Idempotency Guarantees [#idempotency-guarantees] | Behavior | Guarantee | | ---------------------- | -------------------------------------------------------------------------------------------------- | | Suppressed duplicates | Only the first request executes | | Same response returned | Retries of a successful (`2xx`) request return the original status code and body | | Failures are not kept | If the original request failed (any non-`2xx` response), a retry with the same key runs again | | Concurrent retries | A retry sent while the original is still processing returns `409 Conflict` (`Idempotent request already in progress`) | | Stored for 24 hours | Based on Stables platform retention | Keys are scoped to your organisation and to the kind of operation, so the same key sent to, say, Create Quote and Create Transfer is treated as two separate requests. On most endpoints the request body is not compared on replay. Reusing a key with a different body returns the response stored for the first request, without applying the new body. The sandbox deposit simulation is the exception: reusing a key there with a different body returns `409 Conflict` (`Idempotency-Key corresponds to a different request payload`). # Authentication (/api-reference) All requests to the Stables API must be authenticated using an **API key**.\ Provide your API key using **either** of the following methods (both are accepted; you only need one): ```http X-Api-Key: YOUR_API_KEY ``` or ```http Authorization: Bearer YOUR_API_KEY ``` #### Authentication Requirements [#authentication-requirements] | Requirement | Description | | ----------- | ----------------------------------------------------------------------------- | | HTTPS only | All requests must be sent over TLS/SSL | | API Key | Required for all endpoints. Send via `X-Api-Key` **or** `Authorization: Bearer`. If both are sent, `X-Api-Key` is used | #### Example Request [#example-request] ```bash curl -X GET "https://api.sandbox.stables.money/api/v1/customers/{customerId}" \ -H "Authorization: Bearer sti_test_abc123_yoursecretkey" \ -H "Content-Type: application/json" ``` If authentication fails, the API returns: ```json { "statusCode": 401, "error": "Unauthorized", "message": "Invalid API key" } ``` A key that is not in the `sti_...` format returns `Invalid API key format`, and a request with no credentials returns `Invalid or missing authorization credentials`. #### Postman collection [#postman-collection] Every endpoint in this reference is also available as a Postman collection, with the key integration flows set up as ordered requests. See [Postman collection](/api-reference/postman-collection) for how to import and use it. }>Download the Postman collection # Pagination (/api-reference/pagination) Some list endpoints return paginated results. Stables uses cursor-based pagination, with two styles depending on the endpoint group. Pagination parameter names vary by endpoint group. Always refer to the individual endpoint's API reference for the exact query parameter and response field names. ### Page tokens [#page-tokens] Used by [List Transfers](/api-reference/transfers/get-transfers), [List Customers](/api-reference/customers/get-all-customers) and the balance lists (`/api/v1/prefund/activity`, `/api/v1/prefund/whitelisted-wallets`). #### Query Parameters [#query-parameters] | Parameter | Type | Description | | ------------ | ------- | ------------------------------------------------------------ | | `page_size` | integer | Maximum number of records to return (1 to 100) | | `page_token` | string | Opaque token from the previous response's `next_page_token` | #### Pagination Fields in Response [#pagination-fields-in-response] | Endpoint group | Next token | Also returned | Last page | | -------------------- | ------------------------- | -------------- | ----------------------------- | | Transfers, Customers | `page.next_page_token` | `page.total` | `next_page_token` is empty | | Balances | `next_page_token` | `has_more` | `has_more` is `false` | On List Customers, `page` is only returned when you pass `page_size`. Without it, every customer is returned in one response. ### Starting after an id [#starting-after-an-id] Used by the virtual account lists and virtual account history. #### Query Parameters [#query-parameters-1] | Parameter | Type | Description | | ---------------- | ------- | ------------------------------------------------------------ | | `limit` | integer | Maximum number of records to return (1 to 100, default 10) | | `starting_after` | string | Cursor: the `id` of the last item from the previous page | | `ending_before` | string | Cursor: the `id` of the first item from the previous page | #### Pagination Fields in Response [#pagination-fields-in-response-1] | Endpoint | Fields | | ------------------------- | ---------------------------------------------------------------------- | | List Virtual Accounts | `data`, and `count` (the total number of matching virtual accounts) | | Virtual account history | `data`, and `has_more` (whether more results exist) | #### Example [#example] ```bash GET /api/v1/customers/{customerId}/virtual-accounts?limit=20&starting_after=550e8400-e29b-41d4-a716-446655440000 ``` ### Other lists [#other-lists] * List RFIs takes `limit` (default 50) and `cursor`, and returns `next_cursor`, which is absent on the last page. * List webhook deliveries takes `pageSize` and `pageToken`, and returns `page.nextPageToken`, which is empty on the last page. # Create Virtual Accounts (/api-reference/payment-routes/create-virtual-accounts) # Deposit Documents (/api-reference/payment-routes/deposit-documents) Attach an invoice or other supporting document to a payment route deposit, for example when Stables compliance asks for one. # Get Transactions (/api-reference/payment-routes/get-transactions) # Get Virtual Accounts (/api-reference/payment-routes/get-virtual-accounts) # Register PayID (/api-reference/payment-routes/register-payid) # Simulate Deposit (/api-reference/payment-routes/simulate-deposit) Sandbox only. This endpoint does not exist in production. # Update Virtual Account (/api-reference/payment-routes/update-virtual-account) # Virtual Account Whitelisting (/api-reference/payment-routes/virtual-account-whitelisting) # Postman collection (/api-reference/postman-collection) Try the Stables API without writing code. The Postman collection has every endpoint in the API reference, plus the main integration flows set up as ordered requests that pass IDs from one step to the next. }>Download the Postman collection The collection is generated from the same OpenAPI spec as the endpoint pages in this reference, so it is updated whenever the API is. ### Import it into Postman [#import-it-into-postman] 1. Download the collection above. 2. In Postman, select **Import** and drop in `stables-api.postman_collection.json`. 3. Open the **Stables API** collection, go to the **Variables** tab and set `api_key` to your sandbox key (it starts with `sti_test_`). See [Setup a sandbox environment](/get-started/getting-started/quickstart/setup-a-sandbox-environment) to create one. 4. Save the collection. `base_url` is set to sandbox (`https://api.sandbox.stables.money`). To call production, change it to `https://api.stables.money` and use a production key. To update the collection later, download it again and import it. Postman offers to replace the existing copy; your variable values are replaced too, so note your `api_key` first. ### Key flows [#key-flows] The **Key flows** folder follows the [quickstart](/get-started/getting-started/quickstart). Run each folder's requests from top to bottom. Each step saves the IDs it returns, such as `customer_id`, `quote_id` and `transfer_id`, into collection variables, so the next request works without copying values. | Flow | What it does | | ---- | ------------ | | 1. Onboard an individual customer | Create a customer with KYC details, then check their entitlements and KYC capabilities | | 2. Onboard with a hosted verification link | Create a customer and get a hosted link where they complete verification | | 3. Off-ramp: stablecoin to bank | Validate bank details, quote USDT to AUD, create the transfer and simulate the customer's deposit | | 4. Pay out from your balance | Check your balance, request a deposit wallet, and create a transfer paid from your balance | | 5. Payment routes | Create an AUD virtual account, simulate a deposit and read its transaction history | | 6. Webhooks | Create a webhook subscription, list deliveries, then delete it | | 7. Compliance requests (RFIs) | List RFIs, read one and fetch the evidence form for a requirement | Flows 3, 4 and 5 need a customer approved for the right entitlement, so run flow 1 or 2 first. In sandbox, individual customers are approved automatically when you send one of the [Sandbox Test Documents](/get-started/getting-started/quickstart/setup-a-sandbox-environment/sandbox-test-documents): replace the `BASE64_...` placeholders in **Create Customer** with a base64 data URI of a test document and selfie. The simulate-deposit requests only work in sandbox. In production, **Create Transfer from Balance** spends real funds as soon as it is sent. ### API reference [#api-reference] The **API reference** folder has a request for every endpoint, grouped by resource like the sections of this reference. Request bodies are filled in with example values from the spec; edit them before sending. Path parameters use the same collection variables as the flows, so IDs saved by a flow are reused here. ### Authentication and idempotency [#authentication-and-idempotency] The collection sends your key in the `X-Api-Key` header on every request. See [Authentication](/api-reference). Requests that require an `Idempotency-Key` header send a new UUID each time (`{{$guid}}`). To retry an operation without repeating it, replace `{{$guid}}` with a fixed value and send it again. See [Idempotency](/api-reference/idempotency). # Create Quote (/api-reference/transfers/create-quote) # Create Transfer (/api-reference/transfers/create-transfer) # Get Quote (/api-reference/transfers/get-quote) # Get Transfer (/api-reference/transfers/get-transfer) # Get Transfers (/api-reference/transfers/get-transfers) # Simulate Transfer Deposit (/api-reference/transfers/simulate-transfer-deposit) Sandbox only. This endpoint does not exist in production. # Transfer Documents (/api-reference/transfers/transfer-documents) Attach an invoice or other supporting document to a transfer, for example when Stables compliance asks for one. # Validate Payment Method (/api-reference/transfers/validate-payment-method) Check beneficiary bank details against the payout rules for a currency before you create a quote. Nothing is stored. # Create Webhook (/api-reference/webhooks/create-webhook) # Delete Webhook (/api-reference/webhooks/delete-webhook) # List Webhook Deliveries (/api-reference/webhooks/list-webhook-deliveries) The first place to look when your endpoint is not receiving events: each attempt shows the HTTP status your endpoint returned and its retry state. # List Webhook (/api-reference/webhooks/list-webhook) # Business (/developer-platform/customer/compliance/business) ### Onboarding Requirements [#onboarding-requirements] Stables requires the following information for standard business onboarding: * Company name * Email * Country (company country of registration) * Registration number * Legal address (street address, city, postal code, province/state, country) * Date of incorporation (YYYY-MM-DD) * Company type * Phone * Tax ID * Registration location (e.g. state for USA) * Website * At least one company registration document (e.g. information statement, incorporation certificate) * Beneficiaries (UBOs, shareholders, directors) * For each UBO (and any other individual beneficiary), the individual onboarding requirements apply. Refer to the individual onboarding requirements document for the required fields. *** ### Business Questionnaire [#business-questionnaire] In addition to the fields above, the following questionnaire fields are accepted as part of the business verification request: | Field | Type | Description | | --- | --- | --- | | `describe_business` | string | A description of the business and its activities. | | `conduct_money_services` | boolean | Whether the business conducts money services. If `true`, `describe_money_services` is also required. | | `describe_money_services` | string | Description of money services conducted. Required if `conduct_money_services` is `true`. | | `describe_compliance_controls` | string | Description of the business's compliance controls. | | `source_of_funds` | enum | Source of funds. See [Source of Funds values](#source-of-funds-values) below. | | `source_of_funds_description` | string | Description of where the business funds come from. | | `account_purpose` | enum | Intended use of the Stables account. See [Account Purpose values](#account-purpose-values) below. | | `account_purpose_other` | string | Required if `account_purpose` is `OTHER`. | | `expected_annual_revenue` | enum | Estimated annual revenue in USD. See [Annual Revenue values](#annual-revenue-values) below. | | `expected_monthly_payments` | string | Expected monthly payment volume through Stables in USD (numeric string, e.g. `"50000"`). | | `operate_in_prohibited_country` | boolean | Whether the business operates in any prohibited countries. | | `does_your_business_engage_in_high_risk_activities` | `"yes"` \| `"no"` | Whether the business engages in any high-risk activities. | | `high_risk_activities` | array | Required if `does_your_business_engage_in_high_risk_activities` is `"yes"`. See [High Risk Activity values](#high-risk-activity-values) below. | | `accept_terms` | boolean | Acceptance of Stables' terms of service and privacy policy. | | `bank_statement_file_data` | string | Optional bank statement as a base64 data URL (e.g. `data:application/pdf;base64,...`). | | `flow_of_funds_file_data` | string | Flow of funds document as a base64 data URL. Required if `conduct_money_services` is `true`. | *** #### Source of Funds values [#source-of-funds-values] | Value | Description | | --- | --- | | `BUSINESS_LOANS` | Business loans | | `GRANTS` | Grants | | `INTER_COMPANY_FUNDS` | Inter-company funds | | `INVESTMENT_PROCEEDS` | Investment proceeds | | `LEGAL_SETTLEMENT` | Legal settlement | | `OWNERS_CAPITAL` | Owner's capital | | `PENSION_RETIREMENT` | Pension / retirement | | `SALE_OF_ASSETS` | Sale of assets | | `SALES_OF_GOODS_AND_SERVICES` | Sales of goods and services | | `THIRD_PARTY_FUNDS` | Third-party funds | | `TREASURY_RESERVES` | Treasury reserves | *** #### Account Purpose values [#account-purpose-values] | Value | Description | | --- | --- | | `CHARITABLE_DONATIONS` | Charitable donations | | `ECOMMERCE_RETAIL_PAYMENTS` | E-commerce / retail payments | | `INVESTMENT_PURPOSES` | Investment purposes | | `PAYMENTS_TO_FRIENDS_OR_FAMILY_ABROAD` | Payments to friends or family abroad | | `PAYROLL` | Payroll | | `PERSONAL_OR_LIVING_EXPENSES` | Personal or living expenses | | `PROTECT_WEALTH` | Protect wealth | | `PURCHASE_GOODS_AND_SERVICES` | Purchase goods and services | | `RECEIVE_PAYMENTS_FOR_GOODS_AND_SERVICES` | Receive payments for goods and services | | `TAX_OPTIMIZATION` | Tax optimization | | `THIRD_PARTY_MONEY_TRANSMISSION` | Third-party money transmission | | `TREASURY_MANAGEMENT` | Treasury management | | `OTHER` | Other (requires `account_purpose_other`) | *** #### Annual Revenue values [#annual-revenue-values] | Value | USD Range | | --- | --- | | `0_99999` | Under $100,000 | | `100000_999999` | $100,000 – $999,999 | | `1000000_9999999` | $1,000,000 – $9,999,999 | | `10000000_49999999` | $10,000,000 – $49,999,999 | | `50000000_249999999` | $50,000,000 – $249,999,999 | | `250000000_plus` | $250,000,000 and above | *** #### High Risk Activity values [#high-risk-activity-values] | Value | Description | | --- | --- | | `ADULT_ENTERTAINMENT` | Adult entertainment | | `GAMBLING` | Gambling | | `HOLD_CLIENT_FUNDS` | Holding client funds | | `INVESTMENT_SERVICES` | Investment services | | `LENDING_BANKING` | Lending / banking | | `MARIJUANA_OR_RELATED_SERVICES` | Marijuana or related services | | `MONEY_SERVICES` | Money services | | `NICOTINE_TOBACCO_OR_RELATED_SERVICES` | Nicotine, tobacco, or related services | | `OPERATE_FOREIGN_EXCHANGE_VIRTUAL_CURRENCIES_BROKERAGE_OTC` | Foreign exchange / virtual currency brokerage / OTC | | `PHARMACEUTICALS` | Pharmaceuticals | | `PRECIOUS_METALS_PRECIOUS_STONES_JEWELRY` | Precious metals, stones, or jewelry | | `SAFE_DEPOSIT_BOX_RENTALS` | Safe deposit box rentals | | `THIRD_PARTY_PAYMENT_PROCESSING` | Third-party payment processing | | `WEAPONS_FIREARMS_AND_EXPLOSIVES` | Weapons, firearms, and explosives | # Country Restrictions & Sanctions Screening (/developer-platform/customer/compliance/country-restrictions-and-sanctions-screening) Stables enforces strict geographic and sanctions-based restrictions to comply with global AML/CTF regulations, FATF guidelines, UN sanctions, OFAC requirements, and local licensing rules. This page explains how country restrictions work, how they impact the API, and what your application should expect when onboarding customers or executing payments. *** ## **1. Why Country Restrictions Exist** [#1-why-country-restrictions-exist] Stables must block access for users in certain regions due to: * OFAC sanctions * UN Security Council sanctions * EU, UK, and AU regulator restrictions * High-risk FATF jurisdictions * Local licensing compliance requirements * Geo-blocks from banking partners * Correspondent banking limitations Because payments and digital assets interact with regulated financial infrastructure, these restrictions are legally mandatory. *** ## **2. Types of Geographic Controls** [#2-types-of-geographic-controls] Stables applies geographic restrictions at **three layers**: ### **2.1 Account Creation Layer** [#21-account-creation-layer] Certain countries cannot create Stables accounts at all. If attempted: ```json { "error": "restricted_region" } ``` ### **2.2 Payment Corridor Layer** [#22-payment-corridor-layer] Some country → country corridors are blocked or require additional KYC/KYB. Example:\ User in Country A cannot send to Country B due to AML risk. The API will return: ```json { "error": "corridor_not_supported" } ``` ### **2.3 Rail & Network Layer** [#23-rail--network-layer] Some local bank rails impose their own geo-restrictions. Examples: * SEPA only for EEA countries * ACH only for US users * PIX only for Brazilian recipients If a rail is unavailable: ```json { "error": "unsupported_route" } ``` *** ## **3. Full Sanctions Screening Logic** [#3-full-sanctions-screening-logic] Every customer is screened against: * OFAC SDN list * EU sanctions lists * UK HMT * UN sanctions lists * Domestic watchlists (depending on region) * Politically Exposed Persons (PEP) datasets Screening occurs: * At signup * At KYC submission * Continuously in the background * Before high-value payments If a sanctions match occurs: ``` error: "sanctions_match" ``` or ``` error: "compliance_block" ``` User account is frozen until manually reviewed. *** ## **4. High-Risk and Restricted Countries** [#4-high-risk-and-restricted-countries] Stables restricts usage for: #### **Comprehensively Sanctioned Countries** [#comprehensively-sanctioned-countries] * Cuba * Iran * North Korea * Syria * Crimea, Donetsk, Luhansk regions * Any other region under active UN/OFAC comprehensive sanctions #### **High-Risk FATF Jurisdictions** [#high-risk-fatf-jurisdictions] Enhanced checks or complete restrictions apply. Examples: * Myanmar * Yemen * Ethiopia * South Sudan * Pakistan (limited depending on corridor) * Turkey (risk-based, not fully blocked) Actual list may change based on regulatory updates. *** ## **5. How Restrictions Affect API Behavior** [#5-how-restrictions-affect-api-behavior] The API enforces restrictions automatically. #### **During Customer Creation** [#during-customer-creation] If a user is in a blocked country: ```json { "error": "restricted_region", "message": "Your region is not supported due to regulatory requirements." } ``` #### **During KYC / KYB** [#during-kyc--kyb] If document country = sanctioned country: ``` error: "restricted_jurisdiction" ``` #### **During Payment Creation** [#during-payment-creation] If the corridor is not allowed: ``` error: "corridor_not_supported" ``` If the payment destination is sanctioned: ``` error: "sanctions_match" ``` If the payment rail is unavailable: ``` error: "unsupported_route" ``` *** ## **6. IP, GPS & Device-Based Geolocation Checks** [#6-ip-gps--device-based-geolocation-checks] Stables uses multiple signals to determine a user’s country: * IP address * Device location * Document issuing country * SIM card information (mobile usage) * Card issuing country (BIN-based geolocation) * Bank account country * Transaction patterns If inconsistencies arise (e.g., IP in Iran but document from Singapore): ``` error: "geo_mismatch" ``` or a manual review is triggered. *** ## **7. Edge Cases Developers Should Handle** [#7-edge-cases-developers-should-handle] #### **VPN usage** [#vpn-usage] Users on VPN may trigger geo-blocks.\ Prompt users to disable VPN if flagged. #### **Dual residency** [#dual-residency] User may live in one country but hold a document from another.\ Allowed but may require L2 verification. #### **Temporary travel** [#temporary-travel] User may travel to a restricted region.\ Platform must prevent transacting from blocked IP ranges. #### **Virtual offices** [#virtual-offices] Virtual/PO Box addresses often rejected for KYB.\ Must provide a real operating address. *** ## **8. Webhooks for Sanctions & Geo Events** [#8-webhooks-for-sanctions--geo-events] All blocks or escalations appear in: ``` kyc.updated payment.updated customer.updated ``` #### Example: Sanctions Match Detected [#example-sanctions-match-detected] ```json { "event": "customer.updated", "data": { "customerId": "cus_001", "status": "frozen", "reason": "sanctions_match" } } ``` #### Example: Geo Restriction [#example-geo-restriction] ```json { "event": "payment.updated", "data": { "paymentId": "pay_001", "status": "failed", "errorCode": "restricted_region" } } ``` *** ## **9. Developer Best Practices** [#9-developer-best-practices] * Always check and store the user’s country in your DB * Geofence high-risk corridors in your app UI * Validate recipient country before calling `POST /payments` * Educate users about VPN issues * Use clear messaging: _“This corridor is not supported in your region.”_ * Regularly sync lists of restricted jurisdictions * Build graceful fallbacks when a corridor can't be used # Country Restrictions (/developer-platform/customer/compliance/country-restrictions) Stables enforces geographic and sanctions-based restrictions in to ensure safe and legal operations. Customers in certain countries or jurisdictions may be blocked from using the platform due to sanctions, regulatory requirements, or high-risk classifications. ### Restricted and High-Risk Countries [#restricted-and-high-risk-countries] Stables enforces restrictions for certain regions and high-risk jurisdictions. These restrictions are updated regularly based on UN, OFAC, EU, UK, AU, and local regulatory guidance. | Country | | ------- | | Afghanistan | | Albania | | Angola | | Belarus | | Bhutan | | Myanmar | | Cameroon | | Central African Republic | | Congo (Kinshasa) | | Congo (Brazzaville) | | Cuba | | Eritrea | | Eswatini | | Ethiopia | | Guinea-Bissau | | Haiti | | Iran | | Iraq | | Lebanon | | Liberia | | Libya | | Madagascar | | Malawi | | Mali | | Mauritania | | Mozambique | | Nicaragua | | Niger | | North Korea | | Russia | | Saint Kitts and Nevis | | Sierra Leone | | Somalia | | South Sudan | | Syrian Arab Republic | | Tajikistan | | Yemen | | Cabo Verde | | Bosnia and Herzegovina | | Bulgaria | | Kosovo | | Montenegro | | North Macedonia | | Sudan | | Slovenia | > **Note:** Other regions may be restricted based on evolving regulatory guidance or local licensing rules. ### Regulatory and Compliance Requirements [#regulatory-and-compliance-requirements] These restrictions are legally mandatory as payments and digital assets interact with regulated financial infrastructure. Stables enforces these restrictions to comply with: * OFAC and UN sanctions * EU, UK, and AU regulatory rules * High-risk FATF jurisdictions * Local licensing requirements * Geo-blocks imposed by banking partners * Correspondent banking limitations ### Sanctions Screening [#sanctions-screening] All customers are screened against OFAC, UN, EU, UK, and domestic watchlists, as well as Politically Exposed Persons (PEP) datasets. Screening occurs at signup, during KYC/KYB submission, periodically in the background, and prior to high-value payments. If a sanctions match occurs, the customer account may be frozen until manually reviewed. # Compliance (/developer-platform/customer/compliance) Compliance ensures your customer’s funding source and intended use meet regulatory requirements across all supported jurisdictions. Compliance is triggered when: * User reaches a specific threshold * The corridor requires enhanced checks * Suspicious activity is detected * AML rules require additional documentation Stables automatically evaluates and manages compliance workflows. *** ## **Types of Compliance Checks** [#types-of-compliance-checks] #### **Source of Funds (SOF)** [#source-of-funds-sof] Explains _where the money for the transaction comes from_. Examples: * Salary * Savings * Business income * Freelance income #### **Source of Wealth (SOW)** [#source-of-wealth-sow] Explains _how the user acquired their total wealth over time_. Examples: * Investments * Real estate sale * Long-term savings * Inheritance #### **Transaction Monitoring** [#transaction-monitoring] Ongoing evaluations based on: * Amount * Frequency * Behavior pattern * Corridor risk score # Individuals (/developer-platform/customer/compliance/individuals) ### Onboarding Requirements [#onboarding-requirements] Stables requires the following information for standard individual onboarding: * First and last name * Email * Date of birth (YYYY-MM-DD) * Nationality (country code) * Street address * City * Postal code * Province / State * Country * At least one ID document (e.g. passport) for identity verification * Selfie photo * Account purpose (`account_purpose`), with a description (`account_purpose_other`) when the purpose is `OTHER`. See [References](/developer-platform/customer/compliance/individuals/individual-references) for the values * Expected monthly volume (`expected_monthly_volume`). See [References](/developer-platform/customer/compliance/individuals/individual-references) for the values * Occupation (`occupation`), as a standardised occupation code. See [Occupation Codes](/developer-platform/customer/compliance/individuals/individual-occupation-codes) for the codes * Annual income (`annual_income`). See [References](/developer-platform/customer/compliance/individuals/individual-references) for the values ### Older customers [#older-customers] For older individual customers, Stables may ask for two extra items before `individual_base` verification can complete: | Requirement | What the customer provides | How to submit | | --- | --- | --- | | `proof_of_address` | A recent proof of residential address | Through the verification flow | | `age_risk_acknowledgement` | Confirmation that they understand the age-related risks of transacting in crypto, plus their intended use of the service | `PATCH /api/v1/customer/{customerId}` | The Stables compliance team can also request these as an [RFI](/api-reference/compliance-requests-rfis/get-rfi). Each appears as a `kyc_capability` requirement and clears once the customer holds that capability. #### Submitting the age-risk acknowledgement [#submitting-the-age-risk-acknowledgement] The acknowledgement is a declaration, not a document. Send both fields in one request: ``` PATCH /api/v1/customer/{customerId} ``` ```json { "age_risk_acknowledged": true, "reason_for_use": "Sending money to family overseas" } ``` `reason_for_use` is free text in the customer's own words. Stables compliance reviews both answers, and the customer gains the `age_risk_acknowledgement` and `reason_for_use` capabilities once they are approved. Only set `age_risk_acknowledged` to `true` after the customer has seen and accepted the acknowledgement in your product. Do not set it on their behalf. The hosted `age_risk` verification action still works but is deprecated. Use the `PATCH` above for new integrations. See [Update Customer](/api-reference/customers/update-customer). # Occupation Codes (/developer-platform/customer/compliance/individuals/individual-occupation-codes) Accepted values for the `occupation` field on an individual customer. Send the code, for example `"occupation": "132011"`. The codes are based on the US Standard Occupational Classification (SOC 2018). Some closely related occupations share one code, shown with a trailing `X` in place of the merged digits (for example `3940XX`). Use `999999` for a customer who is unemployed. To find a code, search this page by job title or code (Ctrl+F / Cmd+F), or use the docs search. | Occupation | Code | | --- | --- | | Accountant and auditor | `132011` | | Actor | `272011` | | Actuary | `152011` | | Acupuncturist | `291291` | | Adhesive bonding machine operator and tender | `519191` | | Administrative services manager | `113012` | | Advertising and promotions manager | `112011` | | Advertising sales agent | `413011` | | Aerospace engineer | `172011` | | Agent and business manager of artists, performers, and athletes | `131011` | | Agricultural and food science technician | `194010` | | Agricultural and food scientist | `191010` | | Agricultural engineer | `172021` | | Agricultural inspector | `452011` | | Air traffic controller and airfield operations specialist | `532020` | | Aircraft mechanic and service technician | `493011` | | Aircraft pilots and flight engineer | `532010` | | Aircraft structure, surfaces, rigging, and systems assembler | `512011` | | Ambulance driver and attendant, except emergency medical technician | `533011` | | Animal breeder | `452021` | | Animal caretaker | `392021` | | Animal control worker | `339011` | | Animal trainer | `392011` | | Architect, except landscape and naval | `171011` | | Architectural and civil drafter | `173011` | | Architectural and engineering manager | `119041` | | Archivist, curator, and museum technician | `254010` | | Artist and related worker | `271010` | | Astronomer and physicist | `192010` | | Athletes and sports competitor | `272021` | | Atmospheric and space scientist | `192021` | | Audiologist | `291181` | | Audiovisual equipment installer and repairer | `492097` | | Automotive body and related repairer | `493021` | | Automotive glass installer and repairer | `493022` | | Automotive service technician and mechanic | `493023` | | Avionics technician | `492091` | | Baggage porter, bellhop, and concierge | `396010` | | Bailiff | `333011` | | Baker | `513011` | | Barber | `395011` | | Bartender | `353011` | | Bill and account collector | `433011` | | Billing and posting clerk | `433021` | | Bioengineer and biomedical engineer | `172031` | | Biological scientist | `191020` | | Biological technician | `194021` | | Boilermaker | `472011` | | Bookkeeping, accounting, and auditing clerk | `433031` | | Brickmason, blockmason, and stonemason | `472020` | | Broadcast announcer and radio disc jockey | `273011` | | Broadcast, sound, and lighting technician | `274010` | | Brokerage clerk | `434011` | | Budget analyst | `132031` | | Bus and truck mechanic and diesel engine specialist | `493031` | | Business operations specialist, other | `131199` | | Butcher and other meat, poultry, and fish processing worker | `513020` | | Buyer and purchasing agent, farm products | `131021` | | Cabinetmaker and bench carpenter | `517011` | | Cardiovascular technologist and technician | `292031` | | Cargo and freight agent | `435011` | | Carpenter | `472031` | | Carpet, floor, and tile installer and finisher | `472040` | | Cashier | `412010` | | Cement mason, concrete finisher, and terrazzo worker | `472050` | | Chef and head cook | `351011` | | Chemical engineer | `172041` | | Chemical processing machine setter, operator, and tender | `519010` | | Chemical technician | `194031` | | Chemist and materials scientist | `192030` | | Chief executive | `111011` | | Child, family, and school social worker | `211021` | | Childcare worker | `399011` | | Chiropractor | `291011` | | Civil engineer | `172051` | | Claims adjuster, appraiser, examiner, and investigator | `131030` | | Cleaner of vehicles and equipment | `537061` | | Clergy | `212011` | | Clinical and counseling psychologist | `193033` | | Clinical laboratory technologist and technician | `292010` | | Coaches and scout | `272022` | | Coin, vending, and amusement machine servicer and repairer | `499091` | | Commercial and industrial designer | `271021` | | Commercial diver | `499092` | | Communications equipment operator, other | `432099` | | Compensation and benefits manager | `113111` | | Compensation, benefits, and job analysis specialist | `131141` | | Compliance officer | `131041` | | Computer and information research scientist | `151221` | | Computer and information systems manager | `113021` | | Computer hardware engineer | `172061` | | Computer network architect | `151241` | | Computer numerically controlled tool operator and programmer | `519160` | | Computer occupation, other | `151299` | | Computer programmer | `151251` | | Computer support specialist | `151230` | | Computer systems analyst | `151211` | | Computer, automated teller, and office machine repairer | `492011` | | Conservation scientist and forester | `191030` | | Construction and building inspector | `474011` | | Construction equipment operator | `472070` | | Construction laborer | `472061` | | Construction manager | `119021` | | Control and valve installer and repairer | `499010` | | Conveyor, dredge, and hoist and winch operator | `5370XX` | | Cook | `352010` | | Correctional officer and jailer | `333012` | | Correspondence clerk | `434021` | | Cost estimator | `131051` | | Counselor, other | `211019` | | Counter and rental clerk | `412021` | | Courier and messenger | `435021` | | Court reporter and simultaneous captioner | `273092` | | Court, municipal, and license clerk | `434031` | | Crane and tower operator | `537021` | | Credit analyst | `132041` | | Credit authorizer, checker, and clerk | `434041` | | Credit counselor and loan officer | `132070` | | Crossing guard and flagger | `339091` | | Crushing, grinding, polishing, mixing, and blending worker | `519020` | | Customer service representative | `434051` | | Cutting worker | `519030` | | Cutting, punching, and press machine setter, operator, and tender, metal and plastic | `514031` | | Dancer and choreographer | `272030` | | Data labeler and data entry keyer | `439021` | | Database administrator and architect | `15124X` | | Dental and ophthalmic laboratory technician and medical appliance technician | `519080` | | Dental assistant | `319091` | | Dental hygienist | `291292` | | Dentist | `291020` | | Derrick, rotary drill, and service unit operator, oil and gas | `475010` | | Desktop publisher | `439031` | | Detective and criminal investigator | `333021` | | Diagnostic medical sonographer | `292032` | | Dietetic technician and ophthalmic medical technician | `29205X` | | Dietitian and nutritionist | `291031` | | Dining room and cafeteria attendant and bartender helper | `359011` | | Director, religious activities and education | `212021` | | Disc jockey, except radio | `272091` | | Dishwasher | `359021` | | Dispatcher, except police, fire, and ambulance | `435032` | | Door-to-door sales worker, news and street vendor, and related worker | `419091` | | Driver/sales worker and truck driver | `533030` | | Drywall installer, ceiling tile installer, and taper | `472080` | | Earth driller, except oil and gas | `475023` | | Economist | `193011` | | Editor | `273041` | | Education and childcare administrator | `119030` | | Educational, guidance, and career counselor and advisor | `211012` | | Electric motor, power tool, and related repairer | `492092` | | Electrical and electronic engineering technologist and technician | `173023` | | Electrical and electronics engineer | `172070` | | Electrical and electronics installer and repairer, transportation equipment | `492093` | | Electrical and electronics repairer, industrial and utility | `49209X` | | Electrical power-line installer and repairer | `499051` | | Electrical, electronics, and electromechanical assembler | `512020` | | Electrician | `472111` | | Electronic equipment installer and repairer, motor vehicles | `492096` | | Elementary and middle school teacher | `252020` | | Elevator and escalator installer and repairer | `474021` | | Eligibility interviewer, government programs | `434061` | | Embalmer, crematory operator and funeral attendant | `3940XX` | | Emergency management director | `119161` | | Emergency medical technician | `292042` | | Emergency medicine physician | `291214` | | Engine and other machine assembler | `512031` | | Engineer, other | `172199` | | Entertainer and performer, sports and related worker, other | `272099` | | Entertainment and recreation manager | `119070` | | Environmental engineer | `172081` | | Environmental science and geoscience technician | `194040` | | Environmental scientist and specialist, including health | `192041` | | Etcher and engraver | `519194` | | Excavating and loading machine and dragline operator, surface mining | `475022` | | Executive secretary and executive administrative assistant | `436011` | | Exercise physiologist | `291128` | | Exercise trainer and group fitness instructor | `399031` | | Explosives worker, ordnance handling expert, and blaster | `475032` | | Extruding, forming, pressing, and compacting machine setter, operator, and tender | `519041` | | Facilities manager | `113013` | | Farmer, rancher, and other agricultural manager | `119013` | | Fashion designer | `271022` | | Fast food and counter worker | `353023` | | Fence erector | `474031` | | File clerk | `434071` | | Financial and investment analyst | `132051` | | Financial clerk, other | `433099` | | Financial examiner | `132061` | | Financial manager | `113031` | | Fire inspector | `332020` | | Firefighter | `332011` | | First-line enlisted military supervisor | `552010` | | First-line supervisor of construction trades and extraction worker | `471011` | | First-line supervisor of correctional officer | `331011` | | First-line supervisor of farming, fishing, and forestry worker | `451011` | | First-line supervisor of firefighting and prevention worker | `331021` | | First-line supervisor of food preparation and serving workers | `351012` | | First-line supervisor of housekeeping and janitorial workers | `371011` | | First-line supervisor of landscaping, lawn service, and groundskeeping workers | `371012` | | First-line supervisor of mechanics, installers, and repairers | `491011` | | First-line supervisor of non-retail sales workers | `411012` | | First-line supervisor of office and administrative support workers | `431011` | | First-line supervisor of police and detective | `331012` | | First-line supervisor of production and operating worker | `511011` | | First-line supervisor of protective service worker, other | `331099` | | First-line supervisor of retail sales workers | `411011` | | First-line supervisor of security worker | `331091` | | Fish and game warden | `333031` | | Fishing and hunting worker | `453031` | | Flight attendant | `532031` | | Floral designer | `271023` | | Food and tobacco roasting, baking, and drying machine operator and tender | `513091` | | Food batchmaker | `513092` | | Food cooking machine operator and tender | `513093` | | Food preparation and serving related worker, other | `359099` | | Food preparation worker | `352021` | | Food processing worker, other | `513099` | | Food server, nonrestaurant | `353041` | | Food service manager | `119051` | | Forest and conservation worker | `454011` | | Forming machine setter, operator, and tender, metal and plastic | `514020` | | Fundraiser | `131131` | | Funeral home manager | `119171` | | Furnace, kiln, oven, drier, and kettle operator and tender | `519051` | | Furniture finisher | `517021` | | Gambling cage worker | `433041` | | Gambling services worker | `393010` | | General and operations manager | `111021` | | Geoscientist and hydrologist, except geographer | `19204X` | | Glazier | `472121` | | Grader and sorter, agricultural product | `452041` | | Graphic designer | `271024` | | Grinding, lapping, polishing, and buffing machine tool setter, operator, and tender, metal and plastic | `514033` | | Hairdresser, hairstylist, and cosmetologist | `395012` | | Hazardous materials removal worker | `474041` | | Healthcare diagnosing or treating practitioner, other | `291299` | | Healthcare social worker | `211022` | | Heating, air conditioning, and refrigeration mechanic and installer | `499021` | | Heavy vehicle and mobile equipment service technician and mechanic | `493040` | | Helper, construction trade | `473010` | | Helper--installation, maintenance, and repair worker | `499098` | | Helper--production worker | `519198` | | Highway maintenance worker | `474051` | | Home appliance repairer | `499031` | | Home health aide | `311121` | | Host and hostess, restaurant, lounge, and coffee shop | `359031` | | Hotel, motel, and resort desk clerk | `434081` | | Human resources assistant, except payroll and timekeeping | `434161` | | Human resources manager | `113121` | | Human resources worker | `131070` | | Industrial and refractory machinery mechanic | `49904X` | | Industrial engineer, including health and safety | `172110` | | Industrial production manager | `113051` | | Industrial truck and tractor operator | `537051` | | Information and record clerk, other | `434199` | | Information security analyst | `151212` | | Inspector, tester, sorter, sampler, and weigher | `519061` | | Insulation worker | `472130` | | Insurance claims and policy processing clerk | `439041` | | Insurance sales agent | `413021` | | Insurance underwriter | `132053` | | Interior designer | `271025` | | Interpreter and translator | `273091` | | Interviewer, except eligibility and loan | `434111` | | Janitor and building cleaner | `37201X` | | Jeweler and precious stone and metal worker | `519071` | | Judge, magistrate, and other judicial worker | `231020` | | Judicial law clerk | `231012` | | Laborer and freight, stock, and material mover, hand | `537062` | | Landscape architect | `171012` | | Landscaping and groundskeeping worker | `373011` | | Laundry and dry-cleaning worker | `516011` | | Lawyer | `231011` | | Legal secretary and administrative assistant | `436012` | | Legal support worker, other | `232099` | | Legislator | `111031` | | Librarian and media collections specialist | `254022` | | Library assistant, clerical | `434121` | | Library technician | `254031` | | Licensed practical and licensed vocational nurse | `292061` | | Life scientist, other | `191099` | | Loan interviewer and clerk | `434131` | | Locksmith and safe repairer | `499094` | | Locomotive engineer and operator | `534010` | | Lodging manager | `119081` | | Logging worker | `454020` | | Logistician | `131081` | | Machine feeder and offbearer | `537063` | | Machinist | `514041` | | Magnetic resonance imaging technologist | `292035` | | Maids and housekeeping cleaner | `372012` | | Mail clerk and mail machine operator, except postal service | `439051` | | Maintenance and repair worker, general | `499071` | | Maintenance worker, machinery | `499043` | | Management analyst | `131111` | | Manager, other | `119199` | | Manicurist and pedicurist | `395092` | | Manufactured building and mobile home installer | `499095` | | Marine engineer and naval architect | `172121` | | Market research analyst and marketing specialist | `131161` | | Marketing manager | `112021` | | Marriage and family therapist | `211013` | | Massage therapist | `319011` | | Materials engineer | `172131` | | Mathematician | `152021` | | Mechanical engineer | `172141` | | Media and communication equipment worker, other | `274099` | | Media and communication worker, other | `273099` | | Medical and health services manager | `119111` | | Medical assistant | `319092` | | Medical records specialist | `292072` | | Medical scientist | `191040` | | Medical secretary and administrative assistant | `436013` | | Medical transcriptionist | `319094` | | Meeting, convention, and event planner | `131121` | | Mental health and substance abuse social worker | `211023` | | Mental health counselor | `211014` | | Merchandise displayer and window trimmer | `271026` | | Metal furnace operator, tender, pourer, and caster | `514050` | | Meter reader, utilities | `435041` | | Military enlisted tactical operations and air/weapons specialist and crew member | `553010` | | Military officer special and tactical operations leader | `551010` | | Military, rank not specified | `554010` | | Millwright | `499044` | | Mining and geological engineer, including mining safety engineer | `172151` | | Miscellaneous agricultural worker | `452090` | | Miscellaneous construction and related worker | `474090` | | Miscellaneous health technologist and technician | `292090` | | Miscellaneous plant and system operator | `518090` | | Miscellaneous social scientist and related worker | `193090` | | Miscellaneous vehicle and mobile equipment mechanic, installer, and repairer | `493090` | | Model maker and patternmaker, metal and plastic | `514060` | | Model, demonstrator, and product promoter | `419010` | | Molder and molding machine setter, operator, and tender, metal and plastic | `514070` | | Molder, shaper, and caster, except metal and plastic | `519195` | | Mortician, undertaker, and funeral arranger | `394031` | | Motor vehicle operator, other | `533099` | | Music director and composer | `272041` | | Musician and singer | `272042` | | Natural sciences manager | `119121` | | Network and computer systems administrator | `151244` | | New accounts clerk | `434141` | | News analyst, reporter, and journalist | `273023` | | Nuclear engineer | `172161` | | Nuclear medicine technologist and medical dosimetrist | `29203X` | | Nuclear technician | `194051` | | Nurse anesthetist | `291151` | | Nurse midwife | `291161` | | Nurse practitioner | `291171` | | Nursing assistant | `311131` | | Occupational health and safety specialist and technician | `195010` | | Occupational therapist | `291122` | | Occupational therapy assistant and aide | `312010` | | Office and administrative support worker, other | `439199` | | Office clerk, general | `439061` | | Office machine operator, except computer | `439071` | | Operations research analyst | `152031` | | Optician, dispensing | `292081` | | Optometrist | `291041` | | Order clerk | `434151` | | Orderly and psychiatric aide | `31113X` | | Other assembler and fabricator | `5120XX` | | Other community and social service specialist | `21109X` | | Other designer | `27102X` | | Other drafter | `17301X` | | Other educational instruction and library worker | `2590XX` | | Other engineering technologist and technician | `17302X` | | Other entertainment attendant and related worker | `3930XX` | | Other extraction worker | `4750XX` | | Other financial specialist | `1320XX` | | Other grounds maintenance worker | `37301X` | | Other healthcare practitioner and technical occupation | `299000` | | Other healthcare support worker | `31909X` | | Other installation, maintenance, and repair worker | `49909X` | | Other life, physical, and social science technician | `1940XX` | | Other machine tool setter, operator, and tender, metal and plastic | `51403X` | | Other material moving worker | `5371XX` | | Other mathematical science occupation | `1520XX` | | Other metal worker and plastic worker | `514XXX` | | Other personal appearance worker | `39509X` | | Other physician | `2912XX` | | Other production equipment operator and tender | `51919X` | | Other production worker | `5191XX` | | Other protective service worker | `33909X` | | Other psychologist | `19303X` | | Other rail transportation worker | `5340XX` | | Other teacher and instructor | `2530XX` | | Other textile, apparel, and furnishings worker | `51609X` | | Other transportation worker | `5360XX` | | Other woodworker | `5170XX` | | Packaging and filling machine operator and tender | `519111` | | Packer and packager, hand | `537064` | | Painter and paperhanger | `472140` | | Painting worker | `519120` | | Paper goods machine setter, operator, and tender | `519196` | | Paralegal and legal assistant | `232011` | | Paramedic | `292043` | | Parking attendant | `536021` | | Parking enforcement worker | `333041` | | Parts salesperson | `412022` | | Passenger attendant | `536061` | | Payroll and timekeeping clerk | `433051` | | Personal care and service worker, other | `399099` | | Personal financial advisor | `132052` | | Personal service manager, other | `119179` | | Pest control worker | `372021` | | Petroleum engineer | `172171` | | Pharmacist | `291051` | | Pharmacy aide | `319095` | | Pharmacy technician | `292052` | | Phlebotomist | `319097` | | Photographer | `274021` | | Photographic process worker and processing machine operator | `519151` | | Physical scientist, other | `192099` | | Physical therapist | `291123` | | Physical therapist assistant and aide | `312020` | | Physician assistant | `291071` | | Pipelayer | `472151` | | Plasterer and stucco mason | `472161` | | Plumber, pipefitter, and steamfitter | `472152` | | Podiatrist | `291081` | | Police officer | `333050` | | Postal service clerk | `435051` | | Postal service mail carrier | `435052` | | Postal service mail sorter, processor, and processing machine operator | `435053` | | Postmaster and mail superintendent | `119131` | | Postsecondary teacher | `251000` | | Power plant operator, distributor, and dispatcher | `518010` | | Precision instrument and equipment repairer | `499060` | | Prepress technician and worker | `515111` | | Preschool and kindergarten teacher | `252010` | | Presser, textile, garment, and related material | `516021` | | Print binding and finishing worker | `515113` | | Printing press operator | `515112` | | Private detective and investigator | `339021` | | Probation officer and correctional treatment specialist | `211092` | | Procurement clerk | `433061` | | Producer and director | `272012` | | Production, planning, and expediting clerk | `435061` | | Project management specialist | `131082` | | Proofreader and copy marker | `439081` | | Property appraiser and assessor | `132020` | | Property, real estate, and community association manager | `119141` | | Psychiatric technician | `292053` | | Public relations and fundraising manager | `112030` | | Public relations specialist | `273031` | | Public safety telecommunicator | `435031` | | Pumping station operator | `537070` | | Purchasing agent, except wholesale, retail, and farm products | `131023` | | Purchasing manager | `113061` | | Radiation therapist | `291124` | | Radio and telecommunications equipment installer and repairer | `492020` | | Radiologic technologist and technician | `292034` | | Radiologist | `291224` | | Rail-track laying and maintenance equipment operator | `474061` | | Railroad conductor and yardmaster | `534031` | | Real estate broker and sales agent | `419020` | | Receptionist and information clerk | `434171` | | Recreation worker | `399032` | | Recreational therapist | `291125` | | Refuse and recyclable material collector | `537081` | | Registered nurse | `291141` | | Rehabilitation counselor | `211015` | | Reinforcing iron and rebar worker | `472171` | | Religious worker, other | `212099` | | Reservation and transportation ticket agent and travel clerk | `434181` | | Residential advisor | `399041` | | Respiratory therapist | `291126` | | Retail salesperson | `412031` | | Rigger | `499096` | | Roofer | `472181` | | Roustabout, oil and gas | `475071` | | Sailor and marine oiler | `535011` | | Sales and related worker, other | `419099` | | Sales engineer | `419031` | | Sales manager | `112022` | | Sales representative of services, except advertising, insurance, financial services, and travel | `413091` | | Sales representatives, wholesale and manufacturing | `414010` | | Sawing machine setter, operator, and tender, wood | `517041` | | School bus driver | `533051` | | School bus monitor | `339094` | | School psychologist | `193034` | | Secondary school teacher | `252030` | | Secretary and administrative assistant, except legal, medical, and executive | `436014` | | Securities, commodities, and financial services sales agent | `413031` | | Security and fire alarm systems installer | `492098` | | Security guard and gambling surveillance officer | `339030` | | Septic tank servicer and sewer pipe cleaner | `474071` | | Sewing machine operator | `516031` | | Sheet metal worker | `472211` | | Ship and boat captain and operator | `535020` | | Ship engineer | `535031` | | Shipping, receiving, and inventory clerk | `435071` | | Shoe and leather worker | `516040` | | Shuttle driver and chauffeur | `533053` | | Skincare specialist | `395094` | | Small engine mechanic | `493050` | | Social and community service manager | `119151` | | Social and human service assistant | `211093` | | Social science research assistant | `194061` | | Social worker, other | `211029` | | Sociologist | `193041` | | Software developer | `151252` | | Software quality assurance analyst and tester | `151253` | | Solar photovoltaic installer | `472231` | | Special education teacher | `252050` | | Speech-language pathologist | `291127` | | Stationary engineer and boiler operator | `518021` | | Statistical assistant | `439111` | | Statistician | `152041` | | Stocker and order filler | `537065` | | Structural iron and steel worker | `472221` | | Structural metal fabricator and fitter | `512041` | | Substance abuse and behavioral disorder counselor | `211011` | | Supervisor of personal care and service worker | `391000` | | Supervisor of transportation and material moving worker | `531000` | | Surgeon | `291240` | | Surgical technologist | `292055` | | Survey researcher | `193022` | | Surveying and mapping technician | `173031` | | Surveyor, cartographer, and photogrammetrist | `171020` | | Switchboard operator, including answering service | `432011` | | Tailor, dressmaker, and sewer | `516050` | | Tax examiner and collector, and revenue agent | `132081` | | Tax preparer | `132082` | | Taxi driver | `533054` | | Teaching assistant | `259040` | | Technical writer | `273042` | | Telecommunications line installer and repairer | `499052` | | Telemarketer | `419041` | | Telephone operator | `432021` | | Television, video, and film camera operator and editor | `274030` | | Teller | `433071` | | Textile machine setter, operator, and tender | `516060` | | Therapist, other | `291129` | | Tire builder | `519197` | | Title examiner, abstractor, and searcher | `232093` | | Tool and die maker | `514111` | | Tour and travel guide | `397010` | | Training and development manager | `113131` | | Training and development specialist | `131151` | | Transit and intercity bus driver | `533052` | | Transportation inspector | `536051` | | Transportation security screener | `339093` | | Transportation service attendant | `536030` | | Transportation, storage, and distribution manager | `113071` | | Travel agent | `413041` | | Tree trimmer and pruner | `373013` | | Tutor | `253041` | | Umpire, referee, and other sports official | `272023` | | Underground mining machine operator | `475040` | | Unemployed, with no work experience in the last 5 years or earlier or never worked | `999999` | | Upholsterer | `516093` | | Urban and regional planner | `193051` | | Usher, lobby attendant, and ticket taker | `393031` | | Veterinarian | `291131` | | Veterinary assistant and laboratory animal caretaker | `319096` | | Veterinary technologist and technician | `292056` | | Waiter or waitress | `353031` | | Water and wastewater treatment plant and system operator | `518031` | | Web and digital interface designer | `151255` | | Web developer | `151254` | | Weigher, measurer, checker, and sampler, recordkeeping | `435111` | | Welding, soldering, and brazing worker | `514120` | | Wholesale and retail buyer, except farm products | `131022` | | Wind turbine service technician | `499081` | | Woodworking machine setter, operator, and tender, except sawing | `517042` | | Word processor and typist | `439022` | | Writer and author | `273043` | # References (/developer-platform/customer/compliance/individuals/individual-references) Values for the `account_purpose`, `expected_monthly_volume` and `annual_income` fields on an individual customer. For `occupation`, see [Occupation Codes](/developer-platform/customer/compliance/individuals/individual-occupation-codes). ## Account Purpose [#account-purpose] | Value | Description | | --- | --- | | `PERSONAL_OR_LIVING_EXPENSES` | Personal or living expenses | | `RECEIVE_SALARY` | Receive salary or employment income | | `PAYMENTS_TO_FRIENDS_OR_FAMILY_ABROAD` | Payments to friends or family abroad | | `PURCHASE_GOODS_AND_SERVICES` | Purchase goods and services | | `RECEIVE_PAYMENTS_FOR_GOODS_AND_SERVICES` | Receive payments for goods and services | | `INVESTMENT_PURPOSES` | Investment | | `PROTECT_WEALTH` | Protect wealth | | `CHARITABLE_DONATIONS` | Charitable donations | | `OTHER` | Other. Requires `account_purpose_other`. | ## Expected Monthly Volume [#expected-monthly-volume] | Value | Description | | --- | --- | | `0_9999` | Under $10,000 | | `10000_49999` | $10,000 – $49,999 | | `50000_99999` | $50,000 – $99,999 | | `100000_249999` | $100,000 – $249,999 | | `250000_999999` | $250,000 – $999,999 | | `1000000_plus` | $1,000,000 or more | ## Annual Income [#annual-income] | Value | Description | | --- | --- | | `0_24999` | Under $25,000 | | `25000_49999` | $25,000 – $49,999 | | `50000_99999` | $50,000 – $99,999 | | `100000_249999` | $100,000 – $249,999 | | `250000_499999` | $250,000 – $499,999 | | `500000_999999` | $500,000 – $999,999 | | `1000000_plus` | $1,000,000 or more | # Requests for Information (RFIs) (/developer-platform/customer/compliance/requests-for-information) A request for information (RFI) is how Stables compliance asks for something it needs before a customer or a payment can go further. Each RFI belongs to one customer and lists the `requirements` to answer. You answer them through the API or a hosted link, and the RFI resolves once every requirement is met. *** ### When you receive an RFI [#when-you-receive-an-rfi] | `type` | What it is about | What is held | | --- | --- | --- | | `verification` | A verification level the customer is completing, for example a [step-up requirement](/developer-platform/customer/compliance/step-up-requirements) found during onboarding | The verification level named in `kyc_level` | | `transaction` | One payment: a transfer (`transfer_id`) or a deposit into a virtual account (`virtual_account_id`) | That payment | | `manual` | A request raised by Stables compliance, about the customer or one of their payments. `message` explains why | Nothing. Manual RFIs never hold a payment | `subject` tells you whether the RFI is about the `customer` or one `payment` (`transaction_reference_id`). `reasons` lists why it was raised. A transfer held by an RFI shows the `compliance_hold` status. Its `compliance_hold` object gives the `rfi_id` and the outstanding `requirements`. *** ### Find out about RFIs [#find-out-about-rfis] Subscribe to these [webhooks](/developer-platform/customer/customer/webhooks): | Event | When it fires | | --- | --- | | `rfi.created` | An RFI was opened | | `rfi.updated` | An RFI changed | | `rfi.resolved` | An RFI was resolved | | `transfer.action_required` | A transfer needs action from you before it can continue | You can also list them: [List RFIs](/api-reference/compliance-requests-rfis/list-rfis) across all customers, or [List Customer RFIs](/api-reference/compliance-requests-rfis/list-customer-rfis) for one customer. Fetch one with [Get RFI](/api-reference/compliance-requests-rfis/get-rfi). *** ### Answer each requirement [#answer-each-requirement] Every requirement has a `type` that tells you how to answer it: | Requirement `type` | How to answer it | | --- | --- | | `kyc_level` | Create a [verification link](/api-reference/customers/create-verification-link) with the `verification_type` from the requirement's `action`, and send it to the customer. | | `kyc_capability` | The customer must hold `required_capability`. Use the suggested `action` when one is present, or submit the data through the API. See [Step-up requirements](/developer-platform/customer/compliance/step-up-requirements) for each capability. | | `evidence` | Fetch the form from `action.form` ([Get Evidence Form](/api-reference/compliance-requests-rfis/get-evidence-form)), then send the answers and documents to `action.submit` ([Submit Evidence](/api-reference/compliance-requests-rfis/submit-evidence)). `required_evidence` is `source_of_funds` for the money behind a held payment, or `ad_hoc` for an item Stables compliance wrote, described by `label`, `instructions` and `answer_type`. | | `manual_review` | Nothing to submit. Stables compliance is reviewing. | A requirement moves from `pending` to `submitted` when you answer it, then to `satisfied` once Stables approves it. Stables can also mark it `waived`. If Stables sends something back, the requirement returns to `pending` with a `rejection_reason`. When `resubmission` is `true`, Stables is asking for data it already holds to be sent again. Submit it again to clear the requirement. *** ### RFI statuses [#rfi-statuses] | Status | Meaning | | --- | --- | | `open` | Waiting for you to answer one or more requirements | | `submitted` | You have submitted information and Stables compliance is reviewing it | | `satisfied` | Every requirement is satisfied or waived. Anything the RFI held is released | | `waived` | Stables closed the RFI without needing the information | | `rejected` | Stables rejected the information. `rejection_reason` says why | | `expired` | The RFI passed its `expires_at` deadline before it was resolved | A rejected RFI can be reopened for you to answer again. While it is open again, `rejection_reason` shows what to fix. `expires_at` is the response deadline. Manual RFIs stay open past it and show as overdue. Some RFIs carry a compliance fee, charged when the RFI resolves. Check `billable` and `fee` on the RFI. *** ### Good practice [#good-practice] * Subscribe to the RFI webhooks rather than polling, and route new RFIs to whoever handles compliance in your team. * Answer early: a held payment does not move until its RFI is satisfied. * Collect from the customer in your product where you can, so they are not surprised by a request from Stables. * Never answer on the customer's behalf for declarations such as the [age-risk acknowledgement](/developer-platform/customer/compliance/individuals#older-customers). ### Related [#related] * [Step-up requirements](/developer-platform/customer/compliance/step-up-requirements) * [SOF & SOW](/developer-platform/customer/compliance/sof-and-sow) * [Transfer states](/developer-platform/payments/transfers/transfer-states) * [Get KYC Capabilities](/api-reference/customers/get-kyc-capabilities) # SOF & SOW (/developer-platform/customer/compliance/sof-and-sow) SOF (Source of Funds) and SOW (Source of Wealth) are enhanced due-diligence requirements triggered by the Stables risk engine during high-risk or high-value activity. In some cases customer verifications or transactions may be blocked until either SOW or SOF documents are provided.
### Source of Wealth [#source-of-wealth] Source of Wealth (SOW) is an enhanced due-diligence (EDD) requirement that verifies **how a user accumulated their overall wealth** and therefore is applicable at the customer profile level. #### Requirements [#requirements] Source of wealth documents can be submitted in order to enable higher-transaction limits for a customer as part of the enhanced verification flow. However in some cases they may also be **required** for example:
* Customer is from a high-risk regional area * Business has a complicated corporate structure * Customer has surpassed monthly, weekly or yearly limits #### Documents [#documents] Documents must demonstrate **origin of total wealth, evidence of long-term accumulation** all of which is consistent with the customers transaction activity. Examples of SOW documents: * Tax returns * Business ownership documentation * Financial statements * Property ownership deeds * Investment portfolio statements * Inheritance documentation * Long-term savings statements #### Submitting source of wealth [#submitting-source-of-wealth] Source of wealth is the `source_of_wealth` capability. When Stables needs it, it appears as a [step-up requirement](/developer-platform/customer/compliance/step-up-requirements), usually on an [RFI](/developer-platform/customer/compliance/requests-for-information). Submit it in either of these ways: * Send `source_of_wealth_documents` on [Update Customer](/api-reference/customers/update-customer) (PDF, JPEG, PNG or HEIC, up to 5MB each). * Create a [verification link](/api-reference/customers/create-verification-link) with `verification_type: source_of_wealth` and send it to the customer. ``` PATCH /api/v1/customer/{customerId} ``` ```json { "source_of_wealth_documents": [ { "front_image_data": "data:application/pdf;base64,JVBERi0xLjQK...", "country": "SG" } ] } ``` Stables compliance reviews the documents, and the requirement is satisfied once the customer holds the capability. *** ### Source of Funds [#source-of-funds] **Source of Funds (SOF)** is an enhanced due-diligence requirement that verifies the origin of funds used in a specific transaction #### Requirements [#requirements-1] Source of Funds documentation may be required by the Stables risk engine or requested manually by the Stables Operations team. When requested, the relevant transaction will be held until the required documentation is submitted and approved. For transfers, this is the `compliance_hold` status, and the transfer's `compliance_hold` object lists the `rfi_id` and the outstanding `requirements`. SOF may be triggered, for example, when: * A transaction exceeds defined value thresholds * There is unusual transaction velocity or volume * Large cross-border or stablecoin transfers are initiated * Activity is inconsistent with the customer’s profile * Regulatory thresholds are met *** #### Documents [#documents-1] Documents must demonstrate the origin of the specific transaction funds and show clear traceability to the customer. Examples of SOF documents: * Recent bank statements (1–3 months) * Payslips or salary slips * Invoice and proof of payment * Sale contract (property, vehicle, assets) * Crypto exchange withdrawal receipt * Dividend statement * Proof of remittance inflows * Tax return extracts Documentation must show: * Full legal name * Account ownership * Amount consistency with the transaction * Clear linkage to the customer #### Submitting source of funds [#submitting-source-of-funds] Source of funds is requested per payment. The payment is held by a `transaction` [RFI](/developer-platform/customer/compliance/requests-for-information), and the RFI has an `evidence` requirement with `required_evidence: source_of_funds`. 1. Fetch the form from the requirement's `action.form` with [Get Evidence Form](/api-reference/compliance-requests-rfis/get-evidence-form). 2. Send the answers and documents to `action.submit` with [Submit Evidence](/api-reference/compliance-requests-rfis/submit-evidence). Evidence applies to one payment only. What you sent for an earlier payment does not answer a new request. The payment is released once Stables approves the evidence and the RFI is satisfied. # Step-up Requirements (/developer-platform/customer/compliance/step-up-requirements) Base verification (`individual_base` or `business_base`) covers most customers. Stables may ask some customers for more, based on their profile or activity. These extra items are step-up requirements. A step-up requirement reaches you in one of two ways: * During verification: the customer's base level stays pending until the requirement is met, and a `verification` [RFI](/developer-platform/customer/compliance/requests-for-information) lists what is missing. * Later, as an RFI: Stables compliance or the risk engine asks for it on an existing customer or a held payment. Either way, the requirement names a capability (`required_capability`) or a level (`required_level`). Once the customer holds the capability, the requirement is satisfied. You can check what a customer already holds with [Get KYC Capabilities](/api-reference/customers/get-kyc-capabilities). Stables compliance sets the rules that decide who is asked for what, and can change them. Build your integration around the requirements on the RFI, not around guesses about who will be asked. *** ### Individuals [#individuals] | Capability | What the customer provides | How to submit | | --- | --- | --- | | `proof_of_address` | A recent proof of residential address, such as a utility bill | `proof_of_address_documents` on [Update Customer](/api-reference/customers/update-customer), or a verification link with `verification_type: proof_of_address` | | `source_of_wealth` | Documents showing how the customer built their overall wealth. See [SOF & SOW](/developer-platform/customer/compliance/sof-and-sow) | `source_of_wealth_documents` on [Update Customer](/api-reference/customers/update-customer), or a verification link with `verification_type: source_of_wealth` | | `liveness` | A fresh liveness check, completed by the customer | A verification link with `verification_type: liveness` | | `id_document:passport` | A passport (or, where accepted, an Emirates ID) | A verification link with `verification_type: passport` | | `edd_questionnaire` | An enhanced due diligence questionnaire, completed by the customer | The verification link from the requirement's `action` | | `age_risk_acknowledgement`, `reason_for_use` | A declaration that the customer understands the risks of transacting in crypto, and their intended use of the service. Asked of some older customers | `age_risk_acknowledged` and `reason_for_use` on [Update Customer](/api-reference/customers/update-customer). See [Older customers](/developer-platform/customer/compliance/individuals#older-customers) | Verification links are created with [Create Verification Link](/api-reference/customers/create-verification-link) and completed by the customer in a hosted flow. Documents sent through Update Customer are PDF, JPEG, PNG or HEIC, up to 5MB each, and are reviewed by Stables compliance before the capability is granted. *** ### Businesses [#businesses] Business enhanced due diligence (EDD) can be requested for a business customer that already has base verification. It covers: | Capability | What the business provides | | --- | --- | | `business_edd_questionnaire` | The due diligence questionnaire: what the business does, where its funds come from, expected volumes, and its compliance controls | | `business_document:bank_statements` | Recent company bank statements | | `business_document:aml_bsa_policy` | The company's written AML / BSA policy, when it conducts money services or has higher-risk activity | | `all_ubos_have_identity` | An identity document for every beneficial owner | | `all_ubos_have_proof_of_address` | Proof of residential address for every beneficial owner | | `all_ubos_have_tax_id` | A tax ID for every beneficial owner | Submit it in one of two ways: * Hosted: a verification link with `verification_type: business_edd`, completed by the business. * API: `enhanced_due_diligence` (answers and documents) and `beneficiaries` (owner documents and tax IDs) on [Update Customer](/api-reference/customers/update-customer). Answers are saved cumulatively, so you can send them in parts. Use a fresh `Idempotency-Key` for each part. *** ### Related [#related] * [Requests for Information (RFIs)](/developer-platform/customer/compliance/requests-for-information) * [Identity Verification (KYC/KYB)](/developer-platform/customer/customer/identity-verification-kyc-kyb) * [Individuals](/developer-platform/customer/compliance/individuals) * [Business](/developer-platform/customer/compliance/business) # Supported Document Types (/developer-platform/customer/compliance/supported-document-types) Stables supports a range of document types for both individual and business verification. Documents are required depending on the verification level and type (KYC for individuals, KYB for businesses). All documents must be submitted in supported formats. *** #### Individual ID Verification [#individual-id-verification] Used for individual KYC (identity verification). Acceptable document types include: | Value | Description | | ----------------- | --------------------------------------------------------------- | | PASSPORT | Passport | | DRIVERS\_LICENSE | Driver's license | | NATIONAL\_ID | National ID card (both front and back of the document required) | | RESIDENCE\_PERMIT | Residence permit (both front and back of the document required) | > **Selfie photo:** A selfie is submitted separately via the `selfie_photo` field (not as a `document_type` value). See the individual onboarding requirements for details. *** #### Proof of Address [#proof-of-address] Used to verify the customer’s address. Acceptable document types include: | Value | Description | | ------------- | ------------------------------- | | UTILITY\_BILL | Utility bill | | OTHER | Other proof-of-address document | *** #### Company Registration (KYB) [#company-registration-kyb] Used for business verification. The document type for all business registration documents is always `COMPANY_DOC`, with the following required sub-types: | Sub-type | Description | | ---------------------- | ------------------------- | | INFORMATION\_STATEMENT | Information statement | | INCORPORATION\_CERT | Incorporation certificate | *** ## Image Format Requirements [#image-format-requirements] All document images must be submitted in **base64 with a data URI prefix**. **Allowed MIME types:** * JPEG / JPG * PNG * PDF **Maximum file size:** 5 MB per document image. # Transaction Monitoring & Risk Rules (/developer-platform/customer/compliance/transaction-monitoring-and-risk-rules) Stables screens customers and monitors payments for money laundering, fraud, sanctions exposure and activity that does not fit a customer's profile. Most payments pass without you noticing. This page explains what happens when one does not, and what your integration needs to handle. Stables compliance sets the risk rules and changes them as risks change. The rules themselves are not published, so build around the outcomes below rather than around specific thresholds. *** ### What is checked [#what-is-checked] * Customers, when they are verified and on an ongoing basis: identity, sanctions and politically exposed person (PEP) screening, and whether their profile calls for more information. See [Country Restrictions & Sanctions Screening](/developer-platform/customer/compliance/country-restrictions-and-sanctions-screening). * Payments, as they are created and processed: amounts and frequency against the customer's profile and history, the countries and parties involved, and, for stablecoin transfers, screening of the wallets involved. See [Travel Rule](/developer-platform/customer/compliance/travel-rule). *** ### What can happen [#what-can-happen] | Outcome | When | What you see | What to do | | --- | --- | --- | --- | | Step-up at verification | A customer's profile needs more than base verification | The verification level stays pending, with a `verification` RFI | Answer the [step-up requirements](/developer-platform/customer/compliance/step-up-requirements) | | Payment held | A payment needs more information or a manual review | A transfer moves to `compliance_hold`, or a virtual account deposit is held, with a `transaction` RFI | Answer the RFI, for example with [source of funds](/developer-platform/customer/compliance/sof-and-sow) evidence | | Request from compliance | Stables compliance needs something about a customer or a payment | A `manual` RFI. Nothing is held | Answer the RFI | | Payment declined | A held payment does not pass review | The transfer leaves `compliance_hold` without completing | Contact Stables support if you need more detail | Every outcome that needs something from you arrives as a [Request for Information (RFI)](/developer-platform/customer/compliance/requests-for-information). *** ### Handle it in your integration [#handle-it-in-your-integration] * Subscribe to the RFI webhooks (`rfi.created`, `rfi.updated`, `rfi.resolved`) and to `transfer.updated.status_transitioned`. See [Webhooks](/developer-platform/customer/customer/webhooks). * Treat `compliance_hold` as a normal transfer state, not an error. A transfer can resume from it once its RFI is satisfied. See [Transfer states](/developer-platform/payments/transfers/transfer-states). * Show the customer what is needed: tell them their payment is under review, and collect any information the RFI asks for in your product. * Keep customer profiles current: expected volumes, account purpose and occupation set the baseline that activity is compared with. Activity far outside it is more likely to be held. * Declare the sending wallet on stablecoin transfers with `source_wallet`, so the wallet can be attributed correctly. See [Travel Rule](/developer-platform/customer/compliance/travel-rule). # Travel Rule (/developer-platform/customer/compliance/travel-rule) The Travel Rule requires virtual asset service providers (VASPs) to collect and exchange identifying information about the sender and the recipient of a virtual asset transfer. The Financial Action Task Force (FATF) sets the international standard in Recommendation 16, and regulators apply it to virtual asset service providers across the markets Stables serves. Stables applies the Travel Rule with **no minimum amount**. Every stablecoin transfer Stables processes is in scope, regardless of value. Stables collects the required originator and beneficiary information, screens wallets and transactions, attributes the counterparty wallet to a provider, and exchanges a Travel Rule message with that provider where one exists. Your integration supplies a small amount of data to make this work, described below. Even if your business is not itself a regulated entity, Stables must hold originator and beneficiary information for every transfer it processes. The fields on this page are a condition of processing stablecoin transfers. *** ### Which transfers are covered [#which-transfers-are-covered] Any transfer with a crypto leg: | Transfer | Stables' role | Originator | Beneficiary | | --- | --- | --- | --- | | **Stablecoin to fiat** (Transfers API) | Beneficiary VASP. Stables receives the deposit. | Your customer and the wallet they send from | Stables | | **Fiat to stablecoin** (Virtual Accounts) | Originating VASP. Stables sends the payout. | Stables, on behalf of your customer | Your customer and the destination wallet | Transfers paid from your [balance](/developer-platform/payments/balances) have no customer crypto leg and are not subject to Travel Rule exchange. *** ### How Stables complies [#how-stables-complies] For every covered transfer Stables performs the following: * **Wallet screening.** The customer wallet is screened with blockchain analytics for sanctions exposure, risk scoring and entity clustering. Flagged wallets may hold the transfer for review. * **Wallet attribution.** Stables determines whether the customer wallet is hosted by another VASP or self-custodied. For hosted wallets it identifies the provider so the Travel Rule message can be delivered. * **Travel Rule message.** Where the counterparty is a VASP, originator, beneficiary and transaction details are exchanged over an encrypted protocol before the payout is released (fiat to stablecoin) or recorded against the settled deposit (stablecoin to fiat). * **Self-custody verification.** For payouts to a self-custodied wallet, Stables may ask the customer to prove they control the wallet before releasing funds. * **Record keeping.** Originator, beneficiary and transaction records are retained for seven years. Originator and beneficiary identity is sourced from the customer's completed [KYC or KYB](/developer-platform/customer/customer/identity-verification-kyc-kyb) record. You do not pass identity fields on the transfer. *** ### What the Travel Rule message includes [#what-the-travel-rule-message-includes] | Data | What is shared | Source | | --- | --- | --- | | Customer | Full name, and one of residential or business address, date and place of birth, or an identifier, as required by applicable regulation | Customer KYC or KYB record | | Customer wallet | Wallet address (and memo or tag where the network uses one) | Deposit detected on chain, or the virtual account destination | | Stables | Legal entity name and the Stables custody wallet address | Stables | | Transaction | Amount, currency, blockchain network, transaction hash, timestamp | Transfer and on-chain settlement | | Counterparty provider | Provider name and directory id, when the customer wallet is hosted | Your `source_wallet` or virtual account `destination` declaration, and wallet attribution | *** ### Stablecoin to fiat: declare the sending wallet [#stablecoin-to-fiat-declare-the-sending-wallet] When you create a transfer, tell Stables who controls the wallet the customer will send from. This drives wallet attribution and whether a Travel Rule message is exchanged. | Field | Values | Required | | --- | --- | --- | | `source_wallet.type` | `hosted` when the wallet belongs to an exchange or other VASP. `self_hosted` when the customer holds the keys. | Recommended. Defaults to `self_hosted` when omitted. | | `source_wallet.vasp_id` | Travel Rule directory id of the provider hosting the wallet. When present Stables skips address attribution and sends the message straight to that provider. | Optional. Only when `type` is `hosted` | | `source_wallet.vasp_name` | Name of the provider hosting the wallet, for example `Binance` | When `type` is `hosted` | The declaration is echoed back as `source.wallet` on the transfer resource. ```json { "quote_id": "550e8400-e29b-41d4-a716-446655440000", "customer_id": "550e8400-e29b-41d4-a716-446655440001", "source_wallet": { "type": "hosted", "vasp_name": "Binance" }, "destination": { "type": "bank", "account_holder_name": "Nikos Papadopoulos", "iban": "GR1601101250000000012300695", "bank_name": "National Bank of Greece", "bank_country": "GR", "currency": "EUR", "swift_code": "ETHNGRAA" } } ``` What happens after the deposit lands: * **Hosted wallet.** Stables exchanges the Travel Rule message with the sending provider. The transfer moves to `COMPLIANCE_HOLD` until the exchange completes, then continues to payout. * **Self-custodied wallet.** No counterparty VASP exists. Stables records the originator data from the customer's KYC record and screens the wallet. The transfer continues unless screening raises a flag. * **Declaration does not match the chain.** If a wallet declared `self_hosted` is attributed to a VASP, or the reverse, the transfer may be held while Stables reconciles the two. Ask your customer to confirm which wallet they will send from. *** ### Fiat to stablecoin: declare the destination wallet [#fiat-to-stablecoin-declare-the-destination-wallet] Payouts from a virtual account go to the destination wallet configured on the account. Stables treats that wallet as belonging to your customer. Declare who controls it on the `destination` object when you [create the virtual account](/api-reference/payment-routes/create-virtual-accounts) or [replace its destination](/api-reference/payment-routes/update-virtual-account). | Field | Values | Required | | --- | --- | --- | | `destination.wallet_type` | `hosted` when the wallet belongs to an exchange or other VASP. `self_hosted` when the customer holds the keys. | Recommended. Defaults to `self_hosted` when omitted. | | `destination.vasp_id` | Travel Rule directory id of the provider hosting the wallet | Optional. Only when `wallet_type` is `hosted` | | `destination.vasp_name` | Name of the provider hosting the wallet, for example `Kraken` | When `wallet_type` is `hosted` | The declaration is echoed back on the virtual account `destination`. A payout to a hosted wallet declared as `self_hosted`, or left undeclared, never reaches the receiving provider as a Travel Rule message, and that provider may reject or freeze the funds. ```json { "source": { "currency": "AUD" }, "workflow_type": "fiat_to_crypto", "destination": { "currency": "usdc", "payment_rail": "ethereum", "address": "0x7df6af1c17ac9f86f8b3fbbc25253b8b5df2f3a1", "wallet_type": "hosted", "vasp_name": "Kraken" } } ``` Before the payout is released: 1. The customer's identity and the destination wallet are screened. 2. If the wallet is attributed to another VASP, Stables sends the Travel Rule message and waits for the receiving provider to confirm the beneficiary before broadcasting. 3. If the wallet is self-custodied, Stables may require the customer to prove ownership. The payout stays in `COMPLIANCE_HOLD` and Stables emits `travel_rule.wallet_verification_required` with a verification link and its expiry: ```json { "event_category": "travel_rule", "event_type": "travel_rule.wallet_verification_required", "event_object_id": "txn-ref-8842", "event_object": { "transaction_reference_id": "txn-ref-8842", "verification_url": "https://verify.example.com/payment-sources/confirm?token=abc123", "expires_at": "2026-08-02T02:20:00.000Z" } } ``` Surface `verification_url` to the customer. They sign a message with the destination wallet to prove control. Once verified the payout resumes. If the link expires unverified the transaction stays on hold for manual review. See [Webhooks](/developer-platform/customer/customer/webhooks#travel-rule-events) for the full event envelope. *** ### Transfer states and webhooks [#transfer-states-and-webhooks] Travel Rule outcomes surface through the normal transfer lifecycle. No new terminal states are introduced. | Outcome | Transfer status | Webhook | | --- | --- | --- | | Exchange completed, screening clear | Continues normal progression | `transfer.updated.status_transitioned` | | Awaiting counterparty VASP, wallet verification or compliance review | `COMPLIANCE_HOLD` | `transfer.updated.status_transitioned` (status `COMPLIANCE_HOLD`), plus `travel_rule.wallet_verification_required` when the customer must act | | Counterparty declined, information mismatch, or screening failed | Held for resolution by Stables compliance. May end in `FAILED`, with deposited funds returned where applicable. | `transfer.updated.status_transitioned` | A hold can last from minutes to a few hours depending on the counterparty provider. Build a pending state in your product rather than treating `COMPLIANCE_HOLD` as a failure. See [Transfer states](/developer-platform/payments/transfers/transfer-states). *** ### Integration checklist [#integration-checklist] * **Complete KYC or KYB before transfers.** Originator and beneficiary identity comes from the verified customer record. A customer without a completed verification cannot transact. * **Declare the sending wallet** on every stablecoin to fiat transfer with `source_wallet.type`, and `source_wallet.vasp_name` for hosted wallets. Ask the customer which wallet or exchange they will send from. * **Declare the destination wallet** on every fiat to stablecoin virtual account with `destination.wallet_type`, and `destination.vasp_name` for hosted wallets. * **Handle `COMPLIANCE_HOLD`** in your transfer flow and subscribe to `transfer.updated.status_transitioned`. * **Subscribe to `travel_rule.wallet_verification_required`** if your customers hold funds in self-custody wallets, and surface the verification link before `expires_at`. * **Keep your own references.** Store `transaction_reference_id` and transfer ids so you can match Stables records if a regulator or your own auditors ask. In sandbox, Travel Rule messages go to a test provider instead of real VASPs. Sandbox accepts the test provider's trigger addresses on Ethereum-compatible networks, including a `-` suffix or an upper-case `0X` prefix, so you can rehearse each exchange outcome. Pass `from_address` when you [simulate a transfer deposit](/api-reference/transfers/simulate-transfer-deposit) to exercise the stablecoin to fiat check. *** ### Related [#related] * [Create Transfer](/api-reference/transfers/create-transfer) * [Transfer states](/developer-platform/payments/transfers/transfer-states) * [Webhooks](/developer-platform/customer/customer/webhooks) * [Identity Verification (KYC/KYB)](/developer-platform/customer/customer/identity-verification-kyc-kyb) * [FATF Recommendation 16](https://www.fatf-gafi.org/) # Customer Types (/developer-platform/customer/customer/customer-types) ### Individual Customers [#individual-customers] Individual customers represent natural persons onboarded through consumer-facing products. These customer types are typically associated with personal financial activity and direct end-user access to services. #### Common use cases [#common-use-cases] * Consumer and fintech applications * Digital wallets and stored-value accounts * Domestic and cross-border remittance flows * Payroll, contractor, and gig-economy payouts *** ### Business Customers [#business-customers] Business customers represent registered legal entities accessing platform, payment, or payout infrastructure. These customers typically support higher transaction volumes and more complex operational structures. #### Common use cases [#common-use-cases-1] * Small and medium-sized businesses (SMEs) and enterprises * Marketplaces and platform operators * Payment service providers (PSPs) and liquidity partners * Web3, blockchain, and digital-asset businesses * High-volume or mass payout workflows # Entitlements (/developer-platform/customer/customer/entitlements) Entitlements represent an approval for a customer to transact on the Stables platform.\ In order for an entitlement to be granted, the necessary verification data must be submitted via the **Customers API.** #### Entitlement Types [#entitlement-types] Below are the entitlements that can be requested when creating a customer | Entitlement | Description | Required Verification Level | Notes / Additional Info | | ----------------- | ------------------------------------------------------------------------------------------------------------------ | --------------------------------------------- | --------------------------------------------------------- | | `base_payout` | Allows users to initiate payouts in a variety of fiat currencies, supporting both SWIFT and local payment methods. | `individual_base` or `business_base` | Standard entitlement for both individuals and businesses. | | `virtual_account` | Allows users to create and receive funds into a virtual account. | `individual_base` or `business_base` | Standard entitlement for both individuals and businesses | > Additional entitlements exist for specific payment rails and currencies (for example, `aed_local`) and can be requested independently of customer creation using the Entitlements API described below. #### Requesting an Entitlement [#requesting-an-entitlement] Entitlements can also be requested independently of customer creation, for example to add a new product or rail to an existing, already-verified customer. **1. Check available products** Check which entitlements are currently available for the customer to request. ``` GET /api/v1/customers/{customer_id}/entitlements/available ``` **2. Request an entitlement** ```json POST /api/v1/customers/{customer_id}/entitlements Content-Type: application/json Authorization: Bearer { "entitlements": ["aed_local"] } ``` **3. Submit additional requirements** If Stables needs further verification data before the entitlement can be granted, submit it via: ``` PATCH /api/v1/customers/{customer_id}/entitlements/{entitlement}/requirements ``` **4. Check the entitlement phase** ``` GET /api/v1/customers/{customer_id} ``` Payment routes and virtual accounts should only be created once the entitlement's phase is `ready`. Attempting to create them earlier may fail. Existing customer create and update requests that include an `entitlements` array will continue to work during the transition to this dedicated Entitlements API. # Identity Verification (KYC/KYB) (/developer-platform/customer/customer/identity-verification-kyc-kyb) To transact on the Stables platform, customers must first submit the required data for each applicable verification level and successfully complete the verification process. Successful verification grants the entitlements necessary to access platform functionality. Stables supports separate verification flows for individuals (KYC – Know Your Customer) and businesses (KYB – Know Your Business). Verification is processed through [Sumsub](https://sumsub.com/), a leading identity verification platform. For details on supported document types and requirements, see [Sumsub's verification document templates](https://docs.sumsub.com/docs/verification-document-templates). Two verification levels are available — one for individuals and one for businesses. Each level requires specific information and documentation. ### Verification Flow [#verification-flow] Upon customer creation, Stables reviews all submitted KYC or KYB information and returns a `verification_levels` array on the customer, where each entry's `status` indicates the current verification state for that level (`in_progress`, `approved`, `rejected` or `requires_action`). Webhooks report the same states in uppercase (`VERIFICATION_IN_PROGRESS`, `VERIFICATION_APPROVED`, `VERIFICATION_REJECTED`, `VERIFICATION_REQUIRES_ACTION`), which is the form used below. The average decision time for KYC is typically less than one minute when processed automatically. If manual review is required, a decision may take up to the next business day. KYB reviews are typically completed within the same business day and may take up to the next business day. While verification is generally fast, integrators must account for possible state transitions. The verification lifecycle follows the model below: **Verification Lifecycle** * A customer begins with no verification record. * Once verification is initiated, the status becomes `VERIFICATION_IN_PROGRESS`. * From `VERIFICATION_IN_PROGRESS`, the verification will resolve to one of the following states: * `VERIFICATION_APPROVED` — terminal. * `VERIFICATION_REJECTED` — terminal. * `VERIFICATION_REQUIRES_ACTION` — not terminal; the applicant must correct and resubmit information (e.g. a poor-quality document), after which verification returns to `VERIFICATION_IN_PROGRESS`. **Important Notes** * `VERIFICATION_IN_PROGRESS` includes automated checks, pending states, and any manual review steps. * `VERIFICATION_APPROVED` indicates the customer has successfully passed verification. * `VERIFICATION_REJECTED` is a final state. Resubmission is not permitted unless a new verification process is initiated. * `VERIFICATION_REQUIRES_ACTION` is not final: check the level's `sub_status` array for the specific reason (e.g. `BAD_PROOF_OF_IDENTITY`, `DOCUMENT_PAGE_MISSING`) and prompt the customer to resubmit. ### Verification Levels [#verification-levels] Stables supports two verification levels, each mapped to specific platform entitlements, as we can see below.
| Verification Level | Applies To | Required For Entitlements | Notes | | ------------------- | ---------- | --------------------------------- | ------------------------------------------------------- | | `individual_base` | Individual | `base_payout`, `virtual_account` | Required to access standard individual functionality. | | `business_base` | Business | `base_payout`, `virtual_account` | Required to access standard business functionality. | The specific data fields and documentation required for each verification level are outlined in the **Compliance** section of this documentation. Customers must submit all required data for the applicable verification level before the corresponding entitlements can be granted.
Stables may ask some customers for more than base verification, such as proof of address or enhanced due diligence. See [Step-up Requirements](/developer-platform/customer/compliance/step-up-requirements) and [Requests for Information (RFIs)](/developer-platform/customer/compliance/requests-for-information). # Customer (/developer-platform/customer/customer) The **Customers API** allows you to register a customer on the Stables platform and submit the required **verification data.** Stables evaluates whether a customer is eligible to use the platform by validating the submitted **verification data** against the requested **entitlements**. If the verification data is successfully validated, the customer is approved and **granted entitlement**s for use within the Stables platform. ### Individual customer creation [#individual-customer-creation] You can use the following endpoint to create a new **individual** with `base_payout` and `virtual_account` **entitlements.** ```json POST /api/v1/customer Content-Type: application/json Authorization: Bearer Idempotency-Key: { "external_customer_id": "INDIVIDUAL_001", "customer_type": "individual", "email": "john.doe@example.com", "first_name": "John", "last_name": "Doe", "middle_name": "Michael", "phone": "+1234567890", "entitlements": ["base_payout", "virtual_account"], "dob": "1990-01-15", "nationality": "US", "address": { "line1": "123 Main Street", "line2": "Apt 4B", "city": "San Francisco", "state": "CA", "postal_code": "94105", "country": "US" }, "id_documents": [ { "document_type": "PASSPORT", "front_image_data": "base64...", "back_image_data": "base64...", "country": "US" } ], "proof_of_address_documents": [ { "document_type": "UTILITY_BILL", "front_image_data": "base64...", "country": "US" } ], "selfie_photo": { "data": "base64..." }, "metadata": { "custom_field": "value" } } ``` ### Business [#business] You can use the following to register a business customer with `base_payout` and `virtual_account` **entitlements** ```json POST /api/v1/customer Content-Type: application/json Authorization: Bearer Idempotency-Key: { "external_customer_id": "BUSINESS_001", "customer_type": "business", "email": "contact@acmecorp.com", "company_name": "Acme Corporation", "phone": "+1234567890", "entitlements": ["base_payout", "virtual_account"], "country": "US", "registration_number": "12345678", "legal_address": { "line1": "123 Business St", "city": "San Francisco", "state": "CA", "postal_code": "94105", "country": "US" }, "incorporated_on": "2020-01-15", "type": "Private Company Limited by Shares", "tax_id": "12-3456789", "registration_location": "CA", "website": "https://www.acmecorp.com", "account_purpose": "RECEIVE_PAYMENTS_FOR_GOODS_AND_SERVICES", "source_of_funds": "SALES_OF_GOODS_AND_SERVICES", "expected_annual_revenue": "1000000_9999999", "does_your_business_engage_in_high_risk_activities": "no", "beneficiaries": [ { "category": "directors", "individual": { "first_name": "John", "last_name": "Doe", "dob": "1980-05-15", "email": "john.doe@acmecorp.com", "nationality": "US" } } ], "company_registration_documents": [ { "document_type": "COMPANY_DOC", "id_doc_sub_type": "INFORMATION_STATEMENT", "front_image_data": "base64...", "country": "US" } ] } ``` ### Updating Customers [#updating-customers] Customer information can be updated at `PATCH /api/v1/customer/:customerId.` This endpoint accepts the same shape of data as the creation endpoint. Notes: * Even if information was submitted in the first attempt and has not changed, it must still be submitted in the update. * Updating the customer object won't clear their rejection reasons from earlier attempts, but that won't prevent them passing KYC. ### Customer status [#customer-status] Upon customer creation, Stables reviews the submitted customer information and returns a verification-status representing the overall KYC/KYB status, as well as individual statuses for each requested entitlement. Integrators should evaluate both the verification-status and the entitlement-level statuses to determine a customer's ability to access and use specific functionality on the Stables platform. | Status | Description | | ----------------- | ----------------------------------------------- | | `in_progress` | Verification is underway | | `approved` | Customer passed verification | | `rejected` | Customer failed verification | | `requires_action` | Additional information needed from the customer | The table above applies to each entry in `verification_levels`. Each entitlement in `entitlements` has its own `status`: `pending`, `submitted`, `in_progress`, `approved` or `rejected`. # Webhooks (/developer-platform/customer/customer/webhooks) Stables sends a webhook event whenever something meaningful happens in your account — a customer is created, a verification status changes, a transfer progresses, or a deposit arrives in a virtual account. Every event is delivered as a common envelope with a full resource snapshot in `event_object`. For how to subscribe, verify signatures and inspect deliveries, see the [**Configure webhooks**](/get-started/getting-started/quickstart/configure-webhooks) guide. ### Event Types [#event-types] | Event type | Description | | ------------------------------------------------------- | ----------------------------------------------------------------------------------------------------------------- | | `customer.created` | A customer record was created. | | `customer.updated` | A customer record was updated. | | `kyc_link.updated.status_transitioned` | A customer's KYC/KYB verification status changed. | | `transfer.created` | A transfer (onramp or offramp) was initiated. | | `transfer.updated.status_transitioned` | A transfer's status changed (e.g. funds collected, completed, failed). | | `transfer.action_required` | A transfer needs action from you before it can continue (for example, information requested in an RFI). | | `virtual_account.created` | A virtual account was created for a customer. | | `virtual_account.activity.created` | A deposit was received into a virtual account. | | `virtual_account.activity.updated.status_transitioned` | A virtual account deposit's payout progressed (processing, completed, or failed). | | `virtual_account.fee_charge_failed` | A virtual account fee could not be charged (insufficient balance). Carries the billing month, amount and grace deadline. | | `virtual_account.deactivated` | A virtual account was deactivated. `reason` is `tenant_request`, `customer_request` or `nonpayment`. | | `virtual_account.reactivated` | A deactivated virtual account was reactivated. | | `travel_rule.wallet_verification_required` | A transaction is held pending Travel Rule wallet ownership verification. Only relevant for self-custody withdrawals. | | `rfi.created` / `rfi.updated` / `rfi.resolved` | A request for information (RFI) was opened, changed, or resolved. | | `entitlement.requested` | An entitlement was requested for a customer. | | `entitlement.updated.status_transitioned` | An entitlement moved to a new phase (`event_object_status` carries the phase). | | `entitlement.updated.requirements_changed` | An entitlement's outstanding requirements changed without a phase change. | | `prefund.wallet.created` | A balance (prefund) deposit wallet was created. | | `prefund.deposit.received` | A deposit was credited to your balance. | | `prefund.withdrawal.completed` / `prefund.withdrawal.failed` | A withdrawal from your balance completed or failed. | | `quote.created` | Reserved for future use — not yet emitted. | | `quote.updated.status_transitioned` | Reserved for future use — not yet emitted. | On status-transition events, the envelope's `event_object_status` field carries the new status that triggered the event; `event_object.status` is the current, authoritative state of the resource. ### Customer events [#customer-events] `customer.created` fires when a customer record is created; `customer.updated` fires on any update. Both carry the customer resource: | Field | Description | | ---------------------- | -------------------------------------------------------------------- | | `customer_id` | Customer UUID. | | `external_customer_id` | Your own reference for this customer; `null` if you didn't set one. | | `customer_type` | `CUSTOMER_TYPE_INDIVIDUAL` or `CUSTOMER_TYPE_BUSINESS`. | | `email` | Customer email. | | `phone` | Omitted when not set. | | `first_name` / `last_name` | Individuals only; omitted when not set. | | `company_name` | Businesses only; omitted when not set. | | `created_at` / `updated_at` | ISO 8601 timestamps. | #### Example [#example] ```json { "api_version": "v1", "event_id": "0f4b2b1e-6a1c-4bd0-9a4d-8f2f4f4a9c1b", "event_developer_id": "3f6e2d8a-9b3c-4c2f-8a1d-5e7f9b2c4d6e", "event_category": "customer", "event_type": "customer.created", "event_object_id": "b7a1c9d3-2e4f-4a6b-8c0d-1e3f5a7b9c2d", "event_object": { "customer_id": "b7a1c9d3-2e4f-4a6b-8c0d-1e3f5a7b9c2d", "external_customer_id": "cust-1042", "customer_type": "CUSTOMER_TYPE_INDIVIDUAL", "email": "jane.doe@example.com", "first_name": "Jane", "last_name": "Doe", "created_at": "2026-08-01T02:15:00.000Z", "updated_at": "2026-08-01T02:15:00.000Z" }, "event_created_at": "2026-08-01T02:15:00.000Z" } ``` ### Verification (KYC/KYB) events [#verification-kyckyb-events] When subscribed to `kyc_link.updated.status_transitioned`, your webhook endpoint receives an event each time a customer's verification (KYC/KYB) status changes. Use the `event_object_status` field to identify the transition: | `event_object_status` | Meaning | | ------------------------------- | --------------------------------------------------------------------------------- | | `VERIFICATION_IN_PROGRESS` | Verification submitted and awaiting review (or still in review). | | `VERIFICATION_APPROVED` | Verification approved. | | `VERIFICATION_REJECTED` | Verification rejected (final decision, no further review). | | `VERIFICATION_REQUIRES_ACTION` | The applicant must take action — typically correct and resubmit their documents. | The `event_object` is the KYC link resource: `kyc_link_id`, `customer_id`, `kyc_level`, `status`, and lifecycle timestamps. `submitted_at`, `approved_at` and `rejected_at` are omitted until the corresponding step has happened. On `VERIFICATION_REQUIRES_ACTION` events, the object also carries `reasons` (each with a `reason_code` and `description`) and `requirements` (what the customer needs to resubmit). Webhooks use the uppercase forms above (`VERIFICATION_APPROVED`, `INDIVIDUAL_BASE`). The REST customer resource reports the same state in lowercase, under `verification_levels[].level` and `verification_levels[].status` (for example `individual_base` and `approved`). #### Example [#example-1] ```json { "api_version": "v1", "event_id": "5b9d3f1a-7c2e-4a8b-9d0f-3e5a7c9b1d4f", "event_developer_id": "3f6e2d8a-9b3c-4c2f-8a1d-5e7f9b2c4d6e", "event_category": "kyc_link", "event_type": "kyc_link.updated.status_transitioned", "event_object_id": "8e2a4c6d-9f1b-4d3e-8a5c-7b9d1f3a5c7e", "event_object_status": "VERIFICATION_APPROVED", "event_object": { "kyc_link_id": "8e2a4c6d-9f1b-4d3e-8a5c-7b9d1f3a5c7e", "customer_id": "b7a1c9d3-2e4f-4a6b-8c0d-1e3f5a7b9c2d", "kyc_level": "INDIVIDUAL_BASE", "status": "VERIFICATION_APPROVED", "submitted_at": "2026-08-01T03:00:00.000Z", "approved_at": "2026-08-01T03:45:00.000Z", "created_at": "2026-08-01T02:15:00.000Z", "updated_at": "2026-08-01T03:45:00.000Z" }, "event_created_at": "2026-08-01T03:45:00.000Z" } ``` ### Transfer events [#transfer-events] `transfer.created` fires when a transfer is initiated; `transfer.updated.status_transitioned` fires on each status change. The `event_object` is the transfer resource: | Field | Description | | ------------- | --------------------------------------------------- | | `transfer_id` | Transfer UUID. | | `customer_id` | Customer the transfer belongs to. | | `type` | `TRANSFER_TYPE_ONRAMP` or `TRANSFER_TYPE_OFFRAMP`. | | `status` | Current transfer status — see [Transfer states](/developer-platform/payments/transfers/transfer-states). | | `fees` | Fee breakdown; included only when the transfer carries a withdrawal fee. | | `refund` | Refund details; included on `REFUND_PENDING`, `REFUNDED` and `REFUND_FAILED` transitions — see [Refunds](/developer-platform/payments/transfers/transfer-states#refunds). | | `created_at` / `updated_at` | ISO 8601 timestamps. | The webhook uses uppercase values for `type` and `status`, while the REST transfer resource returns them in lowercase (`offramp`, `completed`). Status values: `CREATED`, `COMPLIANCE_HOLD`, `AWAITING_FUNDS_COLLECTION`, `FUNDS_COLLECTED`, `IN_PROGRESS`, `PAYMENT_SUBMITTED`, `PAYMENT_PROCESSED`, `COMPLETED`, `FAILED`, `CANCELLED`, `EXPIRED`, `REFUND_PENDING`, `REFUNDED`, `REFUND_FAILED`. `transfer.updated.status_transitioned` is emitted on the transitions into `COMPLETED`, `FAILED` and the three refund statuses. Accounts on the legacy payment flow receive a payment resource instead: `payment_id`, `customer_id`, `payment_type` (`PAYMENT_TYPE_ONRAMP` / `PAYMENT_TYPE_OFFRAMP`), and `status` (`PAYMENT_STATUS_PENDING`, `PAYMENT_STATUS_COMPLETED`, `PAYMENT_STATUS_FAILED`, `PAYMENT_STATUS_CANCELLED`). #### Example [#example-2] ```json { "api_version": "v1", "event_id": "9f3b5d7c-1e4a-4d8b-9a2c-5e7f9b1d3a6c", "event_developer_id": "3f6e2d8a-9b3c-4c2f-8a1d-5e7f9b2c4d6e", "event_category": "transfer", "event_type": "transfer.updated.status_transitioned", "event_object_id": "4c8d2e6f-0a1b-4c3d-8e5f-7a9b1c3d5e7f", "event_object_status": "COMPLETED", "event_object": { "transfer_id": "4c8d2e6f-0a1b-4c3d-8e5f-7a9b1c3d5e7f", "customer_id": "b7a1c9d3-2e4f-4a6b-8c0d-1e3f5a7b9c2d", "type": "TRANSFER_TYPE_OFFRAMP", "status": "COMPLETED", "created_at": "2026-08-01T02:20:00.000Z", "updated_at": "2026-08-01T02:45:00.000Z" }, "event_created_at": "2026-08-01T02:45:00.000Z" } ``` ### Virtual account events [#virtual-account-events] **`virtual_account.created`** fires when a virtual account is provisioned for a customer. The payload includes the deposit instructions (fields not applicable to the account's payment rails are `null`) and the deposit handling mode (`auto_payout`, `hold`, or `manual`). ```json { "api_version": "v1", "event_id": "5a9c1e3f-7b0d-4e6a-9f8b-0c2e4a6c8e1b", "event_developer_id": "3f6e2d8a-9b3c-4c2f-8a1d-5e7f9b2c4d6e", "event_category": "virtual_account", "event_type": "virtual_account.created", "event_object_id": "2e4a6c8b-0d3f-4a5c-8e7f-9b1d3f5a7c9e", "event_object": { "virtual_account_id": "2e4a6c8b-0d3f-4a5c-8e7f-9b1d3f5a7c9e", "customer_id": "b7a1c9d3-2e4f-4a6b-8c0d-1e3f5a7b9c2d", "status": "activated", "currency": "AUD", "deposit_handling_mode": "auto_payout", "workflow_type": "fiat_to_crypto", "source_deposit_instructions": { "payment_rails": ["au_bank_transfer"], "bank_beneficiary_name": "Jane Doe", "bank_account_number": "12345678", "bank_routing_number": "062000", "iban": null, "bic": null, "pix_key": null, "clabe": null, "account_holder_name": "Jane Doe", "pay_id": null }, "created_at": "2026-08-01T02:30:00.000Z" }, "event_created_at": "2026-08-01T02:30:00.000Z" } ``` **`virtual_account.activity.created`** fires when a deposit is received into a virtual account (`event_object_status: "received"`). The payload includes the deposit amount and, when known, the sender's name and payment reference. **`virtual_account.activity.updated.status_transitioned`** fires as the deposit's payout progresses — `event_object_status` is `processing`, `completed`, or `failed`. Completed payouts include the on-chain details (`payout_amount` with `network`, `payout_transaction_hash`, `payout_address`); failed payouts include `payout_error`. ```json { "api_version": "v1", "event_id": "9e3a5c7d-1f4b-4d0e-8b2f-4a6c8e0b2f5a", "event_developer_id": "3f6e2d8a-9b3c-4c2f-8a1d-5e7f9b2c4d6e", "event_category": "virtual_account.activity", "event_type": "virtual_account.activity.updated.status_transitioned", "event_object_id": "4a6c8e0b-2d5f-4c7a-9e1b-3f5a7c9e1b4d", "event_object_status": "completed", "event_object": { "deposit_id": "4a6c8e0b-2d5f-4c7a-9e1b-3f5a7c9e1b4d", "virtual_account_id": "2e4a6c8b-0d3f-4a5c-8e7f-9b1d3f5a7c9e", "deposited_at": "2026-08-01T05:00:00.000Z", "deposit_amount": { "amount": "150.00", "currency": "AUD" }, "handling_mode": "auto_payout", "status": "completed", "sender_name": "Jane Doe", "sender_reference": "INV-2091", "payout_amount": { "amount": "97.85", "currency": "USDT", "network": "polygon" }, "payout_transaction_hash": "0x6f9a1c3e5b7d9f1a3c5e7b9d1f3a5c7e9b1d3f5a7c9e1b3d5f7a9c1e3b5d7f9a", "payout_address": "0x1a2B3c4D5e6F7a8B9c0D1e2F3a4B5c6D7e8F9a0B" }, "event_created_at": "2026-08-01T05:02:00.000Z" } ``` Amounts are decimal strings in major units (e.g. `"150.00"`). ### Travel Rule events [#travel-rule-events] `travel_rule.wallet_verification_required` is optional — it's only relevant if your customers withdraw to self-custody (unhosted) wallets. It fires when a transaction is held pending Travel Rule wallet ownership verification. The payload includes the verification URL the customer must complete and when it expires: ```json { "api_version": "v1", "event_id": "1a5c7e9b-3f6d-4e2a-9c4b-6e8a0c2e4a7c", "event_developer_id": "3f6e2d8a-9b3c-4c2f-8a1d-5e7f9b2c4d6e", "event_category": "travel_rule", "event_type": "travel_rule.wallet_verification_required", "event_object_id": "txn-ref-8842", "event_object": { "transaction_reference_id": "txn-ref-8842", "verification_url": "https://verify.example.com/payment-sources/confirm?token=abc123", "expires_at": "2026-08-02T02:20:00.000Z" }, "event_created_at": "2026-08-01T02:20:00.000Z" } ``` ### Quote events [#quote-events] `quote.created` and `quote.updated.status_transitioned` are reserved for future use and are not yet emitted. Don't build against them until they ship. # Overview (/developer-platform) The **Customers API** enables you to register your end users with Stables and submit them for verification. Stables manages the full KYC (Know Your Customer) and KYB (Know Your Business) verification process on your behalf, reviewing the required information to ensure your users meet compliance requirements before transacting. *** #### **Key Concepts** [#key-concepts] **Customers:** Represents the end user of your platform, which could be either an individual or business **KYC/KYB:** Mandatory verification process of individuals (KYC) and businesses (KYB) to ensure global regulatory compliance standards are met. **Entitlements:** Used to verify if a customer is eligible to transact on specific rails or services *** #### **Customer Registration** [#customer-registration] To register a user, use the **Customers API** or the **Customer Verification Links.** On registration: Customers must provide some basic information such as: * Full name * Email address * Date of Birth This is sufficient to register a customer within the Stables platform. However in order to transact further verification details may be required such as: * Id Documents * Nationality To learn more about the requirements please refer to our [Compliance documentation](/developer-platform/customer/compliance)
*** #### Checking Customer Eligibility (Entitlements) [#checking-customer-eligibility-endorsements] Use **Entitlements** to verify whether a specific customer is eligible to interact with a particular service, rail, or transaction type.This step ensures the customer has passed all necessary checks before you attempt any transactions via Stables *** ### High Level Customer Flow [#high-level-customer-flow] Customer onboarding in Stables combines customer creation, verification, and entitlement requests into a single flow. 1. The integrator creates a new customer, submitting customer data and any requested entitlements to the `POST /api/v1/customer` endpoint. 2. Stables creates the customer and sends a `customer.created` webhook. 3. If entitlements are requested, Stables validates that all required data has been provided. 4. If verification is required, Stables submits the customer for KYC or KYB review. 5. When verification is approved, Stables sends a `kyc_link.updated.status_transitioned` webhook. 6. Once approved, Stables grants the requested **entitlements** based on the approved **KYC or KYB level.** Once an entitlement is granted then the customer is able to transact on that rail. # Balances (/developer-platform/payments/balances) Stables can hold a **balance** that you can use to initiate transfers for your customers. Balances can be held in the following assets: | Network | Assets | | -------- | ------------ | | Ethereum | USDC, USDT | | Polygon | USDC, USDT | | Solana | USDC, USDT | | Tron | USDT | Each network has its own deposit address and each asset its own balance. They are not pooled. A transfer draws only on the balance of the asset and network it is sent from. Money moves in and out of a balance only through wallets you have whitelisted. Whitelist the wallet first, then deposit from it or withdraw to it. *** ### Whitelist a wallet [#whitelist-a-wallet] Stables only credits deposits that come from a wallet you have whitelisted, and only sends withdrawals to one. This protects your balance from unknown senders and from typos in a withdrawal address. One whitelisted wallet covers both directions and every asset on its network. Whitelist a Polygon wallet once and it can send USDC and USDT to your Polygon deposit address, and receive both from your balance. **Whitelist a wallet in the dashboard** 1. Open **Balances** and switch to the **Manage** tab. 2. Click **+ Whitelist wallet**. 3. Give it a name, choose the network, and paste the address. 4. Submit. The wallet shows as **In review** until Stables approves it. Editing the address of an approved wallet sends it back to review. Name changes do not. Whitelisting is a dashboard action. There is no API endpoint to add a wallet. **Wallet statuses** | Status | Meaning | | ---------------- | ------------------------------------------------------------------------------ | | `pending_review` | Submitted and waiting for Stables to approve it. | | `active` | Approved. Deposits from it credit, and withdrawals to it are allowed. | | `rejected` | Stables declined it. The reason is shown in the dashboard and in the API. | | `deactivated` | Switched off. If you deactivated it you can reactivate it from the dashboard. If Stables did, contact your representative. | | `archived` | Removed. Archived wallets are hidden by default. | Only `active` wallets count. **List your whitelisted wallets via the API** ``` GET /api/v1/prefund/whitelisted-wallets ``` ```json { "data": [ { "id": "2697eff1-ac30-41db-94b7-d615133a5c9e", "name": "Treasury", "network": "polygon", "address": "0x2205844f0b80798F0e187c260753191eb668a495", "status": "active", "rejection_reason": null, "created_at": "2026-09-20T11:51:11.604Z", "updated_at": "2026-09-21T09:12:08.299Z" } ], "has_more": false } ``` Results are newest-first and cursor-paginated. Pass `next_page_token` from one response as `page_token` on the next request. Narrow with `status`, `network` or `page_size` (1 to 100, default 20): ``` GET /api/v1/prefund/whitelisted-wallets?status=active&network=polygon ``` Archived wallets are left out unless you ask for them with `status=archived`. See [List Whitelisted Wallets](/api-reference/balances/list-whitelisted-wallets) and [Pagination](/api-reference/pagination). **Deposits from a wallet that is not whitelisted** The deposit is not lost. Stables holds it instead of crediting it. Whitelist the sending wallet and, once it is approved, the held deposit credits your balance on its own. Held deposits show as **On hold** on the Balances page, and via the API: ``` GET /api/v1/prefund/deposits/pending ``` ```json { "data": [ { "id": "8f1c9b2e-4d3a-4f6b-9c1d-2e3f4a5b6c7d", "network": "polygon", "currency": "usdt", "amount": "250.000000", "from_address": "0x9a1b2c3d4e5f60718293a4b5c6d7e8f901234567", "tx_hash": "0x5e0b...c21a", "reason": "sender_not_whitelisted", "whitelist_account": null, "created_at": "2026-09-22T08:30:00.000Z" } ] } ``` `reason` is `sender_not_whitelisted` or `compliance_review` (held for a compliance check). `whitelist_account` is filled in once you have submitted the sender, so you can see whether it is still in review. Addresses are matched exactly on Solana and Tron. On Ethereum and Polygon the match ignores letter case. *** ### Top Up [#top-up] Each network has a dedicated deposit address that belongs to your organisation and stays the same between deposits. One address per network accepts every asset listed for that network. **Get your deposit address** ``` GET /api/v1/prefund/wallet?network=tron ``` `network` is one of `ethereum`, `polygon`, `solana` or `tron`, and defaults to `polygon` if omitted. ```json { "status": "active", "wallet": { "address": "TS3LXBdvh3qLnYourDepositAddressHere", "network": "tron", "currencies": ["usdt"] }, "min_deposit": { "amount": "5", "currency": "usdt" } } ``` `status` is one of `not_created`, `creating`, `active` or `failed`. The `wallet` object is present **only** when `status` is `active`. Treat it as absent in every other state. `wallet.currencies` lists the assets credited when sent to that address. If no address exists yet, create one with: ``` POST /api/v1/prefund/wallet ``` ```json { "network": "tron" } ``` Creation is asynchronous. The first call returns `status: "creating"`; poll `GET /api/v1/prefund/wallet` until it becomes `active`, then read the address. Calling `POST` again while creation is in flight is safe. It returns the current state rather than creating a second wallet. You can also create a wallet and see your wallets in the Stables Dashboard. Send a supported asset on the matching network to that address. The deposit credits your balance once it confirms on chain. Send from a wallet you have already whitelisted. Deposits from any other wallet are held until you whitelist the sender and Stables approves it. `min_deposit` is a display hint for your own UI, not a floor enforced by the API. Deposits below it are still credited. Send only an asset listed for that network, and only on the **network the address was issued for**. Funds sent on another network, or in another asset, cannot be credited or recovered. *** ### Checking your balance [#checking-your-balance] ``` GET /api/v1/prefund/balance ``` ```json { "balances": [ { "currency": "usdc", "amount": "1250.500000", "amount_minor": "1250500000", "available": "1250.500000", "available_minor": "1250500000", "pending": "0.000000", "pending_minor": "0", "network": "polygon" }, { "currency": "usdt", "amount": "300.000000", "amount_minor": "300000000", "available": "200.000000", "available_minor": "200000000", "pending": "100.000000", "pending_minor": "100000000", "network": "tron" } ], "fee_network": "tron", "fee_currency": "usdt", "withdrawal_fee_minor": "0", "transfers_enabled": true, "withdrawals_enabled": true } ``` | Field | Meaning | | ------------------- | ---------------------------------------------------------------------------------------------------------------- | | `balances` | One entry per asset and network held. Empty until your first deposit credits; an asset you have never funded is absent rather than reported as zero. | | `available`, `available_minor` | Spendable balance: `amount` minus funds reserved by withdrawal requests awaiting review. Transfers, withdrawals and fees draw from this. | | `pending`, `pending_minor` | Funds reserved by withdrawal requests awaiting review. Returned to `available` if the request is cancelled or rejected. | | `transfers_enabled` | Whether you may pay for transfers from your balance. See [Transfer from balance](/developer-platform/payments/balances/pay-from-balance). | | `withdrawals_enabled` | Whether you may withdraw from your balance. See [Withdraw](#withdraw). | | `fee_network`, `fee_currency` | The asset Stables debits platform fees from, if you are billed from your balance. | | `withdrawal_fee_minor` | Flat fee taken out of every withdrawal, in minor units. `"0"` when there is no fee. | Amounts are given both in major units (`amount`) and minor units (`amount_minor`). Every supported asset has 6 decimal places. Use `amount_minor` for arithmetic, as it avoids the rounding errors that decimal strings invite. *** ### Activity [#activity] ``` GET /api/v1/prefund/activity ``` Deposits that have credited your balance, with the amount, currency, network, transaction hash, sending address, and when it landed. Results are newest-first and cursor-paginated. Pass `next_page_token` from one response as `page_token` on the next request, and optionally narrow with `page_size` (1–100, default 20) or `network`: ``` GET /api/v1/prefund/activity?network=polygon&page_size=50 ``` See [Pagination](/api-reference/pagination). *** ### Withdraw [#withdraw] You can send funds from your balance to any of your active whitelisted wallets. Withdrawals are made in the dashboard. There is no API endpoint for them yet. 1. Open **Balances** and click **Withdraw**. 2. Choose the wallet to send to. Wallets still in review are greyed out. 3. Choose the asset and enter the amount. 4. Click **Review withdrawal**, check the details, then **Confirm withdrawal**. Stables reviews every withdrawal before it is sent. The wallet receives the amount minus `withdrawal_fee_minor`. You can cancel a withdrawal from the **History** tab while it is still waiting for review. A withdrawal moves through `pending_approval`, `approved`, `processing` and then `completed` or `failed`. Stables can also mark it `rejected`, and you can mark it `cancelled` while it is pending. # Transfer from balance (/developer-platform/payments/balances/pay-from-balance) You can pay for a transfer directly from your organisation's [balance](/developer-platform/payments/balances). Funds are taken from your balance once the transfer is created. *** ### Requirements [#requirements] * The quote's source is a [supported balance asset](/developer-platform/payments/balances): USDC or USDT on Ethereum, Polygon or Solana, or USDT on Tron. * You hold an **active** deposit address on that network. * Your balance of **that asset on that network** covers the source amount. Assets and networks are not pooled. *** ### Create in the dashboard [#create-in-the-dashboard] 1. Start a **New transfer**, from the dashboard home or from a customer's page, and choose the customer. 2. On **Get a quote**, pick the stablecoin and network you want to send from, and the currency to pay out in. 3. If you hold a balance in that asset on that network, a switch appears above the amount. Select **Use balance** instead of **Fund transfer**. It shows your balance of that asset, and is disabled if the balance is zero. 4. Enter the amount. It cannot exceed your balance, and the dashboard shows how much will be left after the transfer. 5. Enter the **Destination** details and create the transfer. No deposit address is shown. Funds are taken from your balance once the transfer is created. *** ### Create via the API [#create-via-the-api] Request a quote exactly as you would normally, then pass `funding_source` when creating the transfer. **Request** ``` POST /api/v1/transfer Idempotency-Key: ``` ```json { "quote_id": "550e8400-e29b-41d4-a716-446655440000", "customer_id": "550e8400-e29b-41d4-a716-446655440001", "funding_source": "prefund_balance", "destination": { "type": "bank", "account_holder_name": "Nikos Papadopoulos", "iban": "GR1601101250000000012300695", "bank_name": "National Bank of Greece", "bank_country": "GR", "currency": "EUR", "swift_code": "ETHNGRAA" } } ``` **Response** ```json { "id": "550e8400-e29b-41d4-a716-446655440002", "tenant_id": "550e8400-e29b-41d4-a716-446655440003", "customer_id": "550e8400-e29b-41d4-a716-446655440001", "quote_id": "550e8400-e29b-41d4-a716-446655440000", "type": "offramp", "status": "created", "origin": "api", "created_at": "2026-09-16T04:12:08Z", "updated_at": "2026-09-16T04:12:08Z", "source": { "amount": "1000.000000", "currency": "usdt", "network": "polygon", "funding_source": "prefund_balance" }, "source_deposit_instructions": null, "destination": { "account_holder_name": "Nikos Papadopoulos", "iban": "GR1601101250000000012300695", "bank_name": "National Bank of Greece", "bank_country": "GR", "currency": "EUR" }, "exchange_rate": 0.922 } ``` Two things to note in the response: * **`source.funding_source` is `prefund_balance`.** This marks the transfer as paid from your balance. * **`source_deposit_instructions` is `null`.** There is nothing to collect, so there is no address to show anyone. Do not present a deposit target for these transfers. The `source` object is where the amount and asset taken from your balance are reported. Once the transfer is created, your balance is debited and the transfer proceeds to conversion and payout. *** ### Errors [#errors] Balance funding is checked before the transfer is created. Each of these failures returns **422**, with the code as a prefix of `message`: ```json { "statusCode": 422, "error": "Unprocessable Entity", "message": "PREFUND_INSUFFICIENT_BALANCE: polygon prefund balance is lower than the transfer source amount" } ``` | Code | Meaning | | ------------------------------- | ---------------------------------------------------------------------------------------------- | | `PREFUND_INSUFFICIENT_BALANCE` | Your balance of the source asset on the source network is below the source amount. Top up, or send a smaller amount. | | `PREFUND_UNSUPPORTED_ASSET` | The quote's source is not a supported balance asset. | | `PREFUND_WALLET_NOT_ACTIVE` | You have no active deposit address on the source network. | | `PREFUND_TRANSFERS_NOT_ENABLED` | Paying transfers from your balance is not enabled for your organisation. | | `PREFUND_NOT_ENABLED` | Balances are not enabled for your organisation. | | `PREFUND_UNSUPPORTED_ROUTE` | This corridor cannot be paid from a balance. | # Fees (/developer-platform/payments/fees) Stables collects fees on each transaction. This section outlines the different types of fees that may apply. ### 1. Conversion Fees [#1-conversion-fees] The conversion fee is the margin Stables charges above the benchmark exchange rate on each transaction. The applicable rate is defined in your agreement with Stables. ### 2. Processing Fees [#2-processing-fees] Processing fees are pass-through fees charged to Stables by our vendors for completing the transaction, and are passed on at cost. *** ### Notes [#notes] * Fees are always calculated and charged based on the USD value of the transaction. * Breakdown of fees will be shown in the quote response. # Limits (/developer-platform/payments/limits) Stables applies verification-based limits to all accounts. Limits are determined by the customer’s verification level. Verification controls how much a customer can transact, which corridors they can access, and which payment rails are available. This ensures AML/CTF compliance, reduces fraud risk, and aligns with banking and payment partner requirements. *** ### How Limits Work [#how-limits-work] Limits are applied based on the customer’s current verification status. Limits may apply to: * Per-transaction amount * Daily volume * Monthly volume * Corridor access * Rail-specific caps (ACH, SEPA, FPS, etc.) Stables abstracts rail-level complexity, but limits may vary depending on corridor and risk profile. *** ### Limits by Verification Level [#limits-by-verification-level] #### Unverified [#unverified] Unverified customers cannot execute outbound payments. *** #### Base Verification [#base-verification] Designed for low-friction onboarding with controlled exposure. * Lower per-transaction limits * Lower daily and monthly caps * Limited corridor access * Restricted access to certain fiat rails *** #### Enhanced Verification [#enhanced-verification] Unlocks higher limits and broader payment capability. * Higher per-transaction limits * Increased daily and monthly caps * Expanded corridor access * Access to regulated fiat rails *** #### Business Verification (KYB) [#business-verification-kyb] Business accounts receive materially higher limits and expanded capabilities. * Large per-transaction caps * High daily and monthly ceilings * Broad corridor access * Access to treasury and bulk payout flows Limits may scale based on business risk profile and historical activity. *** ### Limit Enforcement [#limit-enforcement] If a transaction exceeds an applicable limit, the API will return an error response. For example, you may receive a `400` error indicating that the monthly limit has been exceeded for the user. In certain scenarios, instead of failing immediately, the transaction may be placed into a review state until the customer completes sufficient verification or provides additional compliance documentation. Limits are always evaluated at execution time, even if a quote was successfully generated. *** ### Illustrative Example [#illustrative-example] The following example demonstrates how limits may differ across verification levels. These values are illustrative only and do not represent actual Stables limits. **Base Verification** * Up to $1,000 per transaction * Up to $3,000 per day * Limited corridor access **Enhanced Verification** * Up to $10,000 per transaction * Up to $25,000 per day * Access to SEPA and ACH rails **Business Verification (KYB)** * Up to $100,000 per transaction * Up to $500,000 per day * Access to high-volume treasury flows Higher verification unlocks higher limits and broader access. # Minimums (/developer-platform/payments/limits/minimums) Minimum limits define the smallest transaction amount that can be processed on the Stables platform. A transaction submitted below the applicable minimum amount will be rejected. Minimum limits exist to: * Meet payment rail requirements * Satisfy banking partner thresholds * Cover FX and settlement costs * Prevent operational inefficiencies from micro-transactions *** ### Transfer Minimums and Limits [#transfer-minimums-and-limits] Minimum limits may vary depending on: * Currency * Payment rail (ACH, SEPA, FPS, etc.) * Corridor * Whether FX or stablecoin conversion is involved For example, a USD ACH transfer may have a different minimum than a SEPA EUR transfer or a GBP FPS payout. Minimum limits are evaluated at execution time. *** ### Virtual Accounts and Minimum Amounts [#virtual-accounts-and-minimum-amounts] In some cases, such as virtual accounts, funds received below the required minimum may not be able to be processed or settled. To avoid rejected or unprocessable deposits, you should always fetch a quote before instructing a user to send funds. The quote will reflect the valid transaction parameters for the selected route. All virtual account deposits are subject to a minimum amount of **100 in the deposited currency.** *** ### Developer Considerations [#developer-considerations] * Do not hardcode minimum values, as they may vary by rail or corridor. * For transfers use the quote response to determine valid transaction ranges. * Validate transaction amounts in your frontend before submission. * Consider FX conversion thresholds when calculating minimum amounts. *** Minimum limits help ensure compliant and operationally efficient processing across all supported rails and corridors. # Overview (/developer-platform/payments/overview) The **Stables Payments APIs** enable the movement of value between stablecoin and fiat rails on behalf of your customers, through a single unified interface. Payments are built around two primitives - **Transfers** for single-use, one-time movement of funds, and **Virtual Accounts** for reusable fiat deposit details that automatically on-ramp into stablecoins. Every payment is tied to a verified customer. Before initiating any payment, the customer must hold the relevant **entitlement** for the rail in use. See the Customer documentation for onboarding details. *** #### **Key Concepts** [#key-concepts] **Transfer:** A single-use instruction to move value from a source to a destination — for example, stablecoin to fiat payout. Each transfer generates unique deposit instructions that must only be used for that specific transaction. **Virtual Account:** A reusable fiat deposit account issued in your customer's name. Incoming fiat is automatically converted to stablecoins and credited to a designated wallet address. **Beneficiary:** A recipient and bank account your organisation pays, saved automatically from every bank transfer so it can be paid again by reference. See [Beneficiaries](/developer-platform/payments/transfers/beneficiaries). **Quote:** A pre-transaction estimate of the conversion amount, applicable fees, and payout detail. Quotes back every Transfer and must be requested before funds movement begins. **Rail:** The underlying network or banking system used to move funds — for example, ACH, SEPA, NPP, Polygon, or Tron. **Webhooks:** Real-time notifications of state changes throughout the payment lifecycle. Rely on webhooks for the terminal state of any payment. *** #### **Transfers vs Virtual Accounts** [#transfers-vs-virtual-accounts] The two primitives solve different problems: * **Use Transfers** when your customer needs to send money out — paying a vendor, settling a bill, off-ramping crypto to fiat. Transfers are dynamic and single-use; each Transfer generates fresh source instructions tied to an explicit destination. * **Use Virtual Accounts** when your customer needs to receive money in — collecting payments, ongoing fiat-to-stablecoin on-ramp, recurring deposits. Virtual Accounts are static and reusable; provision once and the customer reuses the same deposit details indefinitely. To learn more, see Transfers and Virtual Accounts.
*** #### **Fees and Limits** [#fees-and-limits] Payments are subject to conversion fees, processing fees, and per-rail limits. The applicable fees for any specific transaction are always returned in the quote response. For the full breakdown, refer to our Fees and Limits documentation. *** #### High Level Payment Flow [#high-level-payment-flow] A typical payment moves through the following stages: 1. The integrator initiates the payment — either by requesting a Quote and creating a Transfer, or by provisioning a Virtual Account for the customer. 2. Stables returns unique funding details — a single-use deposit address for Transfers, or persistent local fiat bank details for Virtual Accounts. 3. The customer completes the deposit using the provided instructions. 4. Stables confirms receipt of funds and performs any required FX conversion. For Virtual Account payments, a `virtual_account.activity.updated.status_transitioned` webhook fires with `event_object_status: "processing"`. For Transfers, a `transfer.created` webhook fires when the transfer is initiated. 5. The funds are routed to the destination — on-chain wallet address or fiat bank account — and the payment progresses through its remaining states. 6. On terminal success, Stables emits a `virtual_account.activity.updated.status_transitioned` webhook (`event_object_status: "completed"`) for Virtual Account payments, or a `transfer.updated.status_transitioned` webhook (`event_object_status: "COMPLETED"`) for Transfers. See the [Transfer states](/developer-platform/payments/transfers/transfer-states) reference for the full lifecycle of a Transfer. # Supported currencies (/developer-platform/payments/supported-currencies) This page consolidates the currencies Stables supports across stablecoins, pay-ins (Payment Routes), and payouts (Transfers). *** ### Stablecoins [#stablecoins] | **Currency** | **Networks** | | ------------ | -------------------------------------------------------------------- | | USDC | Arbitrum, Avalanche, Base, Ethereum, Optimism, Polygon, Solana | | USDT | Arbitrum, Avalanche, Base, Ethereum, Optimism, Polygon, Solana, Tron | *** ### Pay in [#pay-in] Fiat currencies available for collecting funds via [Payment Routes](/developer-platform/payments/virtual-accounts). | Currency | Status | | -------- | -------------- | | **AUD** | ✅ Supported | | **AED** | ✅ Supported | | **USD** | ✅ Supported | | **EUR** | 🚧 In the works | | **GBP** | 🚧 In the works | EUR and GBP are supported as payout currencies (see below), but not yet for collecting funds. *** ### Payouts [#payouts] Fiat currencies available as a payout destination via [Transfers](/developer-platform/payments/transfers). | **Currency** | **Code** | **Payment Rails** | | ------------------------- | -------- | ----------------- | | UAE Dirham | AED | SWIFT\*, Local | | Argentine Peso | ARS | Local | | Australian Dollar | AUD | SWIFT\*, Local | | Brazilian Real | BRL | Local | | Canadian Dollar | CAD | Local | | Swiss Franc | CHF | SWIFT\* | | Chinese Yuan | CNY | SWIFT\*, Local | | Colombian Peso | COP | Local | | Euro | EUR | SWIFT\*, Local | | British Pound | GBP | SWIFT\*, Local | | Ghanaian Cedi | GHS | Local | | Hong Kong Dollar | HKD | SWIFT\*, Local | | Indonesian Rupiah | IDR | SWIFT\*, Local | | Indian Rupee | INR | SWIFT\*, Local | | Kenyan Shilling | KES | Local | | South Korean Won | KRW | SWIFT\* | | Mexican Peso | MXN | Local | | Malaysian Ringgit | MYR | SWIFT\*, Local | | Nigerian Naira | NGN | SWIFT\*, Local | | Philippine Peso | PHP | SWIFT\*, Local | | Rwandan Franc | RWF | Local | | Singapore Dollar | SGD | SWIFT\*, Local | | Thai Baht | THB | SWIFT\*, Local | | Turkish Lira | TRY | SWIFT\* | | Tanzanian Shilling | TZS | Local | | Ugandan Shilling | UGX | Local | | US Dollar | USD | SWIFT\*, Local | | Vietnamese Dong | VND | SWIFT\*, Local | | Central African CFA Franc | XAF | Local | | West African CFA Franc | XOF | Local | | South African Rand | ZAR | Local | | Zambian Kwacha | ZMW | Local | \* SWIFT payments are only supported for Business customers. # Beneficiaries (/developer-platform/payments/transfers/beneficiaries) A **beneficiary** is a recipient your organisation pays: a person or a business, together with the bank account that receives the money. Stables keeps every beneficiary you pay so you can pay them again without re-entering their details. Beneficiaries belong to your **organisation**, not to a customer. Any of your customers can pay any of your beneficiaries; each [transfer](/developer-platform/payments/transfers) decides who is paying and how much. *** ### What a beneficiary holds [#what-a-beneficiary-holds] Each beneficiary is bound to the **currency** it receives and the **network** it is paid by (`bank` for a local transfer, `swift` for an international wire). Together these decide which details the beneficiary needs. See [Beneficiary Requirements](/developer-platform/payments/transfers/beneficiary-requirements) for the fields each currency asks for. A beneficiary keeps: * **Who is being paid**: the account holder's name and, where the currency asks for it, recipient type, date of birth, address and phone. * **Where the money lands**: the account number or IBAN, bank details and bank codes. * **How you refer to it**: an optional `label`, shown in place of the account holder's name in the dashboard. Per-payout information, such as supporting documents and logistics tracking details, belongs to a single transfer. It is never stored on the beneficiary. *** ### How beneficiaries are created [#how-beneficiaries-are-created] You don't have to create beneficiaries up front. * **From transfers.** Every bank transfer saves its destination as a beneficiary automatically, whether you pay with inline bank details or by reference. Every recipient you have paid appears in your beneficiaries list. * **Ahead of time.** You can also save a beneficiary before paying it, through the API or the dashboard. The details are checked exactly as a transfer on that network would check them, so a beneficiary that saves successfully is ready to pay. ### One beneficiary per account [#one-beneficiary-per-account] Stables recognises a beneficiary by the details that decide which account the money reaches: the account holder's name, the account identifiers and bank codes, the currency and the network. * **Saving an account you already have** returns the existing beneficiary instead of a duplicate. Its contact details (address, phone, date of birth, recipient type, bank name) are refreshed with what you sent. * **Changing the account itself**, such as a different account number, a different holder or a different network, is a different beneficiary. So the same account paid by local transfer and by SWIFT is two beneficiaries, one per network. *** ### Paying a beneficiary [#paying-a-beneficiary] To pay a saved beneficiary, create a transfer with a `beneficiary` destination and its `beneficiary_id` instead of inline bank details. Stables fills in the stored recipient and bank details, then validates and routes the transfer exactly as if you had sent those details yourself. The quote's currency and network must match the beneficiary's. Per-payout extras, such as supporting documents, are still sent with the transfer. Every bank transfer returns the `beneficiary_id` of the beneficiary it paid, including transfers created with inline details. Use it to link a payment back to the recipient in your own records. A beneficiary is looked up within your organisation only. An id that belongs to another organisation is treated as unknown. *** ### Keeping details current [#keeping-details-current] Payout rules change over time. A currency can start asking for details it didn't need before, such as the enhanced beneficiary details. A beneficiary saved earlier can therefore become incomplete. Every beneficiary carries a `validation` result that checks its stored details against today's rules: * When `valid` is `true`, the beneficiary can be paid as it is. * When `valid` is `false`, the errors list what is missing or no longer accepted. Save the beneficiary again with the missing details; this completes the existing beneficiary rather than creating a new one. *** ### Archiving [#archiving] Archiving is the only change you make to a beneficiary directly. There is no edit: to correct details, save the beneficiary again. An archived beneficiary: * is hidden from active listings and from the transfer picker in the dashboard; * is refused as a transfer destination; * stays linked to every transfer already made to it, so your history is unaffected. Saving the same account again restores an archived beneficiary. Paying the same account with inline bank details still works, and the transfer links to the archived beneficiary without restoring it. *** ### What can't be a beneficiary [#what-cant-be-a-beneficiary] * **Crypto destinations.** Beneficiaries are bank accounts only. * **PayID aliases.** A PayID is resolved for each payment, so it is never stored as a beneficiary. *** ### Errors [#errors] | Situation | Response | | --- | --- | | The beneficiary doesn't exist, or belongs to another organisation | `404` with code `BENEFICIARY_NOT_FOUND` | | The beneficiary is archived | `422` with code `BENEFICIARY_ARCHIVED` | | The details fail the network's rules, or a field is too long | `400` with the offending `fields` listed | *** ### In the dashboard [#in-the-dashboard] * **Beneficiaries** in the sidebar lists your organisation's beneficiaries with search and filters by currency, network and status. Each beneficiary has a detail page, where you can archive it. * **New transfer**: the destination step asks whether you are paying an existing beneficiary or a new recipient. The beneficiary picker only offers beneficiaries that match the quote's currency and network. * **Transfer detail** links to the beneficiary the transfer paid. Viewing beneficiaries requires permission to view transfers. Saving and archiving them requires permission to create transfers. Read-only API keys can list and view beneficiaries but can't save or archive them. *** ### API reference [#api-reference] * [List Beneficiaries](/api-reference/beneficiaries/list-beneficiaries) * [Save Beneficiary](/api-reference/beneficiaries/save-beneficiary) * [Get Beneficiary](/api-reference/beneficiaries/get-beneficiary) * [Archive Beneficiary](/api-reference/beneficiaries/archive-beneficiary) * [Create Transfer](/api-reference/transfers/create-transfer), with a `beneficiary` destination # Beneficiary Requirements (/developer-platform/payments/transfers/beneficiary-requirements) Every bank payout requires the beneficiary's core account details: `account_holder_name`, `bank_name`, `bank_country`, `currency`, and either an `account_number` or an `iban`. Some payout currencies additionally require beneficiary identity details to meet the compliance requirements of our banking partners. Providing these at transfer creation avoids rejected requests. These requirements also apply to [saved beneficiaries](/developer-platform/payments/transfers/beneficiaries). A saved beneficiary is checked against them when it is saved and again each time you view it. **Wise and Revolut are not supported as beneficiaries.** Payouts to these providers may be rejected or held indefinitely, and cannot be recalled once sent. See [Unsupported Banks](/developer-platform/payments/virtual-accounts/australian-banking/unsupported-banks). ### Enhanced beneficiary details [#enhanced-beneficiary-details] The following applies to payouts in **AED, CAD, EUR, GBP, MXN and USD** (both local and SWIFT payment methods): | Field | Applies to | Description | | ---------------- | ----------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------- | | `recipient_type` | All beneficiaries | `individual` or `business`. For individuals, `account_holder_name` is treated as the person's full name; for businesses, as the registered company name. | | `date_of_birth` | Individual beneficiaries only | Date of birth in `YYYY-MM-DD` format. Never required for business beneficiaries. | | `address` | All beneficiaries | Full postal address: `street`, `city`, `state`, `postal_code`, `country` (ISO 3166-1 alpha-2, lowercase). | Additional notes: * **CAD (local)**: the beneficiary address must be in Canada, and `bank_code`, `branch_code` and `account_type` are required. The customer sending the payout must have completed verification, including an ID document number. * **USD (local)**: the beneficiary address must be in the United States, and `aba_code` and `account_type` are required. * **CAD and USD (local)**: `address.state` must be a valid province or state code, for example `ON` or `NY`. * **EUR and CAD, business customers**: when the customer sending the payout is a business, its business verification must include a registered company address and a company registration number. * These fields are accepted on every currency and ignored where they are not needed, so you can safely collect and submit them for all payouts. ### Example [#example] ```json { "quote_id": "your-quote-id", "customer_id": "your-customer-id", "destination": { "type": "bank", "recipient_type": "individual", "date_of_birth": "1990-01-15", "account_holder_name": "Maria Fischer", "iban": "DE89370400440532013000", "bank_name": "Deutsche Bank", "bank_country": "DE", "currency": "EUR", "address": { "street": "Hauptstrasse 12", "city": "Berlin", "state": "BE", "postal_code": "10115", "country": "de" } } } ``` ### Requirements by currency [#requirements-by-currency] On top of the core fields, each payout currency and rail needs the fields below. Pick the rail with `destination.network` on the quote: `bank` for the local rail, `swift` for SWIFT. A full address means every field of `address`: `street`, `city`, `state`, `postal_code` and `country`. The API reference marks only `street` and `country` as required because that is the minimum wherever an address is accepted; the currencies below that require an address need all five. Where an address is not required you can still send it. {/* payout-requirements:start */} | Currency | `network` | Required fields | Full address | Notes | | --- | --- | --- | --- | --- | | AED | `bank` | `iban`, `swift_code`, `recipient_type`, `date_of_birth` for individuals | Required | `bank_country` must be AE | | AED | `swift` | `iban`, `swift_code`, `recipient_type`, `date_of_birth` for individuals | Required | | | ARS | `bank` | `account_number`, `national_identification_number`, `phone` | Not required | `account_number` 22 digits; `national_identification_number` 11 digits; `bank_country` must be AR | | AUD | `bank` | `account_number`, `bsb_code` | Not required | `account_number` 6 to 10 digits; `bsb_code` 6 digits; `bank_country` must be AU | | AUD | `swift` | `account_number`, `swift_code` | Required | `account_number` 6 to 10 digits | | BRL | `bank` | `account_number`, `phone` | Not required | `bank_country` must be BR | | CAD | `bank` | `account_number`, `bank_code`, `branch_code`, `account_type`, `recipient_type`, `date_of_birth` for individuals | Required | `account_number` 4 to 21 digits; `bank_code` 3 digits; `branch_code` 5 digits; `bank_country` must be CA; `bank_name` up to 50 characters | | CHF | `swift` | `iban`, `swift_code` | Required | `bank_country` must be CH | | CNY | `bank` | `account_number`, `cnaps`, `name_in_local_language`, `national_identification_number`, `documents`, `logistics_tracking_details` | Not required | `account_number` 16 to 19 digits; `cnaps` 12 digits; `bank_country` must be CN | | COP | `bank` | `account_number`, `national_identification_number`, `phone` | Not required | `account_number` 4 to 20 digits; `bank_country` must be CO | | EUR | `bank` | `iban`, `recipient_type`, `date_of_birth` for individuals | Required | `bank_name` up to 20 characters | | EUR | `swift` | `iban`, `swift_code`, `recipient_type`, `date_of_birth` for individuals | Required | `bank_name` up to 20 characters | | GBP | `bank` | `account_number`, `sort_code`, `recipient_type`, `date_of_birth` for individuals | Required | `account_number` 6 to 14 digits; `sort_code` 6 digits; `bank_country` must be GB; `bank_name` up to 70 characters | | GBP | `swift` | `iban`, `swift_code`, `recipient_type`, `date_of_birth` for individuals | Required | `bank_name` up to 70 characters | | GHS | `bank` | `account_number`, `phone` | Not required | `bank_country` must be GH | | HKD | `bank` | `account_number`, `bank_code`, `swift_code` | Required | `account_number` 9 to 12 digits; `bank_code` 3 digits; `bank_country` must be HK | | HKD | `swift` | `account_number`, `swift_code` | Required | `account_number` 9 to 12 digits | | IDR | `bank` | `account_number`, `swift_code` | Not required | `account_number` 10 to 16 digits; `bank_country` must be ID; `bank_name` must be a supported bank name | | IDR | `swift` | `account_number`, `swift_code` | Required | `account_number` 10 to 16 digits; `bank_name` must be a supported bank name | | INR | `bank` | `account_number`, `ifsc_code` | Required | `account_number` 9 to 18 digits; `bank_country` must be IN; customer must be based outside the bank's country | | INR | `swift` | `account_number`, `ifsc_code`, `swift_code` | Required | `account_number` 9 to 18 digits; customer must be based outside the bank's country | | KES | `bank` | `account_number`, `phone` | Not required | `bank_country` must be KE | | KRW | `swift` | `account_number`, `swift_code` | Not required | `account_number` 10 to 16 digits; `bank_country` must be KR | | MXN | `bank` | `account_number`, `phone`, `recipient_type`, `date_of_birth` for individuals | Required | `account_number` 18 digits; `bank_country` must be MX; `bank_name` up to 50 characters | | MYR | `bank` | `account_number`, `swift_code` | Not required | `account_number` 10 to 16 digits; `bank_country` must be MY; `bank_name` must be a supported bank name | | MYR | `swift` | `account_number`, `swift_code` | Required | `account_number` 10 to 16 digits; `bank_name` must be a supported bank name | | NGN | `bank` | `account_number`, `phone` | Not required | `account_number` 10 digits; `bank_country` must be NG | | NGN | `swift` | `account_number`, `swift_code` | Not required | `account_number` 10 digits; `bank_country` must be NG | | PHP | `bank` | `account_number`, `swift_code` | Not required | `account_number` 10 to 16 digits; `bank_country` must be PH; `bank_name` must be a supported bank name | | PHP | `swift` | `account_number`, `swift_code` | Required | `account_number` 10 to 16 digits; `bank_name` must be a supported bank name | | RWF | `bank` | `account_number`, `phone` | Not required | `bank_country` must be RW | | SGD | `bank` | `account_number`, `bank_code`, `swift_code` | Not required | `bank_code` 4 digits; `bank_country` must be SG | | SGD | `swift` | `account_number`, `swift_code` | Required | | | THB | `bank` | `account_number`, `swift_code` | Not required | `account_number` 10 to 15 digits; `bank_code` 3 digits; `bank_country` must be TH; `bank_name` must be a supported bank name; `bank_code` is filled in from `bank_name` | | THB | `swift` | `account_number`, `swift_code` | Required | `account_number` 10 to 15 digits; `bank_name` must be a supported bank name | | TRY | `swift` | `iban`, `swift_code` | Not required | `bank_country` must be TR | | TZS | `bank` | `account_number`, `phone` | Not required | `bank_country` must be TZ | | UGX | `bank` | `account_number`, `phone` | Not required | `bank_country` must be UG | | USD | `bank` | `account_number`, `aba_code`, `account_type`, `recipient_type`, `date_of_birth` for individuals | Required | `account_number` 4 to 17 digits; `aba_code` 9 digits; `bank_country` must be US; `bank_name` up to 50 characters | | USD | `swift` | `account_number`, `aba_code`, `swift_code`, `recipient_type`, `date_of_birth` for individuals | Required | `account_number` 4 to 17 digits; `aba_code` 9 digits; `bank_name` up to 50 characters; banks in HK: `account_number`, `swift_code`, address optional; banks in CN: `account_number`, `swift_code`, `phone`, address optional | | VND | `bank` | `account_number`, `swift_code` | Not required | `account_number` 9 to 19 digits; `bank_country` must be VN; `bank_name` must be a supported bank name | | VND | `swift` | `account_number`, `swift_code` | Required | `account_number` 9 to 19 digits; `bank_name` must be a supported bank name | | XAF | `bank` | `account_number`, `phone` | Not required | | | XOF | `bank` | `account_number`, `phone` | Not required | | | ZAR | `bank` | `account_number`, `phone` | Not required | `bank_country` must be ZA | | ZMW | `bank` | `account_number`, `phone` | Not required | `bank_country` must be ZM | {/* payout-requirements:end */} This table is generated from the payout rules the API applies when a transfer is created. When in doubt, [validate the destination](#validating-a-beneficiary) first: the response lists every missing or invalid field at once. #### Supported bank names [#supported-bank-names] For IDR, MYR, PHP, THB and VND, `bank_name` must exactly match one of the bank names Stables supports for that currency. There is no bank list endpoint yet. To see the accepted names, validate a destination (below): when the name is not recognised, the error for `bank_name` lists every accepted name for that currency. Store the list in your product and let customers pick from it. SWIFT codes and local bank codes are not provided by the API. Collect them from the beneficiary. ### Validating a beneficiary [#validating-a-beneficiary] To check beneficiary details before creating a transfer, use the validation endpoint. It applies the same bank detail rules as transfer creation. Pass the same `network` as the quote (`bank` or `swift`): ``` POST /api/v1/payment-methods/validate ``` ```json { "network": "bank", "destination": { "type": "bank", "account_holder_name": "Maria Santos", "account_number": "1234567890", "bank_name": "Banco De Oro Unibank, Inc.", "bank_country": "PH", "currency": "PHP", "swift_code": "BNORPHMM" } } ``` The response says whether the destination is valid and, if not, which fields to fix. ### Errors [#errors] Missing or invalid bank details return `400 Bad Request` with the code `TRANSFER_DESTINATION_INVALID` and one entry per field in `fields`: ```json { "statusCode": 400, "error": "Bad Request", "message": "The destination is missing or has invalid fields: ...", "code": "TRANSFER_DESTINATION_INVALID", "fields": [ { "field": "swift_code", "message": "..." } ] } ``` A missing or incomplete `address` is a bank detail error like the ones above (`400`, one entry per missing address field). The other enhanced beneficiary checks for AED, CAD, EUR, GBP, MXN and USD (missing `recipient_type` or `date_of_birth`, an address outside Canada or the United States for local CAD and USD, an unrecognised `state`, incomplete sender verification) return `422 Unprocessable Entity` with a message naming what is missing, for example: ```json { "statusCode": 422, "error": "Unprocessable Entity", "message": "EUR payouts to individual beneficiaries require destination.date_of_birth (YYYY-MM-DD)" } ``` # Transfers (/developer-platform/payments/transfers) The **Stables Transfers API** enables the movement of value between stablecoin and fiat payout rails through a single, unified interface. This allows integrators to initiate cross-rail transactions without needing to manage on-chain interactions, FX execution, or banking integrations directly. The **Transfers API** currently supports * **Stablecoin → Fiat** We're working to bring live the following transfer routes: * **Fiat → Stablecoin** * **Stablecoin → Stablecoin** * **Fiat → Fiat** Transfers are designed for **single-use payments**, enabling one-time movement of funds between dynamic source and destination accounts. Additionally, for on-ramp use cases, our [Virtual Accounts](/developer-platform/payments/virtual-accounts) provide static, reusable fiat account details that enable seamless fund collection and automated off-ramping. *** ### High level flow [#high-level-flow] * **Request a Quote**\ Request a quote by specifying the source asset, amount, and destination details. The quote provides expected conversion amounts, applicable fees, and payout estimates for the transaction. * **Create a Transfer**\ Using the returned quote, submit a transfer request to the Transfers API. This creates the transfer and generates the associated funding instructions. * **Receive Collection Instructions**\ As Stables does not custody funds, each transfer generates unique, single-use `source_deposit_instructions` containing the required blockchain or banking details for that specific transaction. * **Customer Deposit**\ The customer completes the deposit using the provided instructions. * **Processing and Payout**\ Once funds are received and confirmed, Stables processes the transfer, performs any required conversion, and routes the payout to the specified destination. If your organisation holds a [balance](/developer-platform/payments/balances) with Stables, you can pay for a transfer from funds you already hold instead of collecting a deposit. Those transfers skip the deposit step entirely and start immediately — see [Transfer from balance](/developer-platform/payments/balances/pay-from-balance). *** ### Create a transfer [#create-a-transfer] #### Get a Quote [#-get-a-quote] ```json { "source": { "currency": "USDT", "network": "polygon", "amount": "1000.00" }, "destination": { "currency": "EUR", "country": "GR", "network": "swift" } } ``` #### Initiate the Transfer [#initiate-the-transfer] **Request** ```json { "quote_id": "550e8400-e29b-41d4-a716-446655440000", "customer_id": "550e8400-e29b-41d4-a716-446655440001", "destination": { "type": "bank", "account_holder_name": "Nikos Papadopoulos", "iban": "GR1601101250000000012300695", "bank_name": "National Bank of Greece", "bank_country": "GR", "currency": "EUR", "swift_code": "ETHNGRAA" } } ``` **Response** ```json { "id": "550e8400-e29b-41d4-a716-446655440002", "tenant_id": "550e8400-e29b-41d4-a716-446655440003", "customer_id": "550e8400-e29b-41d4-a716-446655440001", "quote_id": "550e8400-e29b-41d4-a716-446655440000", "type": "offramp", "status": "created", "created_at": "2025-01-01T00:00:00Z", "updated_at": "2025-01-01T00:00:00Z", "source_deposit_instructions": { "wallet_address": "0x1234567890abcdef1234567890abcdef12345678", "currency": "USDT", "network": "polygon", "amount": "1000.00" }, "destination": { "amount": "920.50", "currency": "EUR", "network": "swift", "account_holder_name": "Nikos Papadopoulos", "iban": "GR1601101250000000012300695", "bank_name": "National Bank of Greece", "bank_country": "GR", "swift_code": "ETHNGRAA" }, "fees": { "fx_fee": { "amount": "0.50", "currency": "EUR" }, "integrator_fee": { "amount": "0.00", "currency": "EUR" }, "platform_fee": { "amount": "1.00", "currency": "EUR" }, "payment_method_fee": { "amount": "0.00", "currency": "EUR" }, "network_fee": { "amount": "0.00", "currency": "EUR" }, "total_fee": { "amount": "1.50", "currency": "EUR" } }, "exchange_rate": 0.922, "origin": "api" } ``` #### Paying a saved beneficiary [#paying-a-saved-beneficiary] Every bank destination you pay is saved as a [beneficiary](/developer-platform/payments/transfers/beneficiaries). To pay the same recipient again, send a `beneficiary` destination with its `beneficiary_id` instead of the bank details. Stables fills in the stored details and processes the transfer as usual. Every bank transfer response includes the `beneficiary_id` it paid. *** ### Collection Instructions [#collection-instructions] **Stablecoin** Direct your customer to deposit the specified token, on the specified network, for the exact quoted amount. Each **transfer generates a unique deposit address**. This address is single-use and must only be used for the associated transfer to ensure accurate reconciliation and processing ```json ... "source_deposit_instructions": { "wallet_address": "0x1234567890abcdef1234567890abcdef12345678", "currency": "USDT", "network": "polygon", "amount": "1000" } ... ``` #### **Transfer Delivery** [#transfer-delivery] Once we receive the deposit for your transfer, we will move the funds to the destination. You can use the Transfers API to check the state of the transfer or listen to webhooks. # Purpose Codes (/developer-platform/payments/transfers/purpose-codes) A `purpose_code` is optional on a transfer request, but we recommend sending it on every transfer. It classifies the economic reason for the payment and is used by Stables and its underlying payment rails to meet regulatory reporting obligations in the destination country. Submitting an incorrect or mismatched purpose code may result in the transfer being rejected or delayed by the receiving bank. If you omit it, Stables applies a default purpose for the payout rail, which may not describe the payment accurately. Some countries require a purpose code and do not apply a default: see [Country-specific rules](#country-specific-rules). ## Country-specific rules [#country-specific-rules] Some destination countries require a purpose code and accept only some of the codes below. Check the page for the country you pay out to: - [India (INR)](/developer-platform/payments/transfers/purpose-codes/india) ## Supported Purpose Codes [#supported-purpose-codes] | Code | Description | | ---- | ----------- | | `PAYMENT_FOR_SERVICES` | Payment for professional or business services rendered | | `PAYMENT_FOR_SOFTWARE` | Payment for software licences, SaaS subscriptions, or other digital products | | `PAYMENT_FOR_IMPORTED_GOODS` | Payment for physical goods imported across borders | | `TRAVEL_SERVICES` | Payment for travel-related services such as flights, hotels, or tours | | `VENDOR_CONTRACTOR_PAYOUTS` | Payments to vendors or independent contractors for work performed | | `TRANSFER_TO_OWN_ACCOUNT` | Transfer between accounts owned by the same individual or entity | | `INVESTMENT_IN_SHARES` | Investment in equity, shares, or stock | | `PURCHASE_OF_PROPERTY` | Payment for real estate or property acquisition | | `REPAYMENT_OF_LOANS` | Repayment of outstanding loans or credit facilities | | `SALARY` | Employee salary or wage payments | | `PAYMENT_OF_PROPERTY_RENTAL` | Rental payments for property or real estate | | `INFORMATION_SERVICE_CHARGES` | Charges for data, research, or information services | | `ADVERTISING_PR_EXPENSES` | Payment for advertising, marketing, or public relations services | | `ROYALTY_FEES` | Payment of royalties for intellectual property usage | | `BROKER_COMMITMENT_FEES` | Brokerage or commitment fees for financial transactions | | `ADVISOR_TECHNICAL_FEES` | Fees for advisory, consulting, or technical services | | `REPRESENTATIVE_OFFICE_EXPENSES` | Expenses for maintaining a representative or liaison office abroad | | `TAX_PAYMENT` | Payment of taxes to government authorities | | `TRANSPORTATION_FEES_FOR_GOODS` | Freight or logistics fees for transporting goods | | `CONSTRUCTION_COSTS` | Payments for construction or infrastructure projects | | `INSURANCE_PREMIUM` | Insurance premium payments | | `GENERAL_GOODS_TRADES` | General trade payments for goods not covered by another category | | `INSURANCE_CLAIMS_PAYMENT` | Payment of insurance claims or settlements | | `FAMILY_MAINTENANCE` | Remittances for family support or living expenses | | `EDUCATION_EXPENSES` | Tuition, fees, or other expenses related to education | | `MEDICAL_TREATMENT` | Payments for medical care or healthcare services | | `DONATIONS` | Charitable donations or gifts | | `MUTUAL_FUND_INVESTMENT` | Investment into mutual funds or collective investment schemes | | `CURRENCY_EXCHANGE` | Foreign exchange or currency conversion transactions | | `USER_WITHDRAWAL` | End-user withdrawal of funds from a platform | | `ADVANCE_PAYMENTS_FOR_GOODS` | Advance or prepayment for goods to be delivered at a later date | | `VENDOR_CONTRACTOR_SOFTWARE_PAYOUTS` | Payments to vendors or contractors specifically for software deliverables | | `MERCHANT_SETTLEMENT` | Settlement of funds to merchants for completed transactions | | `REPATRIATION_FUND_SETTLEMENT` | Repatriation of funds back to the country of origin | | `PERSONAL_REMITTANCE` | Personal money transfers between individuals | | `RETURN_OF_FUNDS` | Return or refund of previously sent funds | # India (INR) (/developer-platform/payments/transfers/purpose-codes/india) INR payouts must include a `purpose_code`, and it must be one of the codes below. Each code also limits who can send the payment (your customer) and who can receive it (the beneficiary). A payout with no purpose code, an unlisted code, or a sender and recipient that do not match the code is rejected. | Code | Sender | Recipient | Notes | | ---- | ------ | --------- | ----- | | `PAYMENT_FOR_SERVICES` | Any | Any | Up to ₹15 lakh per payment | | `PAYMENT_FOR_SOFTWARE` | Any | Any | Up to ₹15 lakh per payment | | `PAYMENT_FOR_IMPORTED_GOODS` | Any | Any | Up to ₹15 lakh per payment | | `TRAVEL_SERVICES` | Any | Any | Up to ₹15 lakh per payment | | `VENDOR_CONTRACTOR_PAYOUTS` | Any | Any | Up to ₹15 lakh per payment | | `TRANSFER_TO_OWN_ACCOUNT` | Individual | Individual | | | `INVESTMENT_IN_SHARES` | Individual | Business | | | `PURCHASE_OF_PROPERTY` | Any | Any | Up to ₹15 lakh per payment | | `REPAYMENT_OF_LOANS` | Individual | Business | Loan repayments to Indian banks and lenders | | `SALARY` | Business | Individual | | | `PAYMENT_OF_PROPERTY_RENTAL` | Individual | Any | | | `INFORMATION_SERVICE_CHARGES` | Any | Any | Up to ₹15 lakh per payment | | `ADVERTISING_PR_EXPENSES` | Any | Any | Up to ₹15 lakh per payment | | `ROYALTY_FEES` | Any | Any | Up to ₹15 lakh per payment | | `BROKER_COMMITMENT_FEES` | Any | Any | Up to ₹15 lakh per payment | | `ADVISOR_TECHNICAL_FEES` | Any | Any | Up to ₹15 lakh per payment | | `REPRESENTATIVE_OFFICE_EXPENSES` | Any | Any | Up to ₹15 lakh per payment | | `TAX_PAYMENT` | Individual | Business | Tax payments in India | | `TRANSPORTATION_FEES_FOR_GOODS` | Any | Any | Up to ₹15 lakh per payment | | `CONSTRUCTION_COSTS` | Any | Any | Up to ₹15 lakh per payment | | `INSURANCE_PREMIUM` | Individual | Business | | | `GENERAL_GOODS_TRADES` | Any | Any | Up to ₹15 lakh per payment | | `INSURANCE_CLAIMS_PAYMENT` | Individual | Business | | | `FAMILY_MAINTENANCE` | Individual | Individual | | | `EDUCATION_EXPENSES` | Individual | Business | Tuition and exam fees paid to Indian institutions | | `MEDICAL_TREATMENT` | Individual | Business | Payments to Indian hospitals and medical institutions | | `MUTUAL_FUND_INVESTMENT` | Individual | Business | | | `CURRENCY_EXCHANGE` | Any | Any | Up to ₹15 lakh per payment | | `USER_WITHDRAWAL` | Individual | Individual | | | `ADVANCE_PAYMENTS_FOR_GOODS` | Any | Any | Up to ₹15 lakh per payment | | `VENDOR_CONTRACTOR_SOFTWARE_PAYOUTS` | Any | Any | Up to ₹15 lakh per payment | These codes are not accepted for INR payouts: - `DONATIONS` - `MERCHANT_SETTLEMENT` - `REPATRIATION_FUND_SETTLEMENT` - `PERSONAL_REMITTANCE` - `RETURN_OF_FUNDS` For a business paying an individual for work, use `PAYMENT_FOR_SERVICES` or `VENDOR_CONTRACTOR_PAYOUTS`. For payouts from your platform to your own users, use `USER_WITHDRAWAL` when the sender is an individual. The full list of codes and what each one means is on [Purpose Codes](/developer-platform/payments/transfers/purpose-codes). # Transfer states (/developer-platform/payments/transfers/transfer-states) ### Transfer Status [#transfer-status] The transfer status represents the current lifecycle stage of a transfer within the Stables platform. A transfer progresses forward through defined states and does not move backwards. Certain states represent normal progression, while others indicate an exception or terminal outcome. #### Status Reference [#status-reference] | Status | Description | | ------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | **CREATED** | The transfer has been successfully created in Stables but no funds movement has started yet. This is the initial state after calling the Transfers API. | | **AWAITING\_FUNDS\_COLLECTION** | Stables is waiting to collect funds from the source. This may include incoming crypto deposits, prefunded balances, or external fiat collection rails. | | **FUNDS\_COLLECTED** | Funds have been successfully received or debited from the source and are ready to be sent to the destination. | | **IN\_PROGRESS** | Funds have been received and internal processing is underway. The transfer is being prepared for outbound payment submission. | | **PAYMENT\_SUBMITTED** | The outbound payment has been initiated on the selected rail. Processing time depends on the rail used, such as minutes for crypto, hours for wires, or multiple business days for ACH. | | **PAYMENT\_PROCESSED** | The destination rail has confirmed successful processing of the payment. | | **COMPLETED** | The transfer lifecycle has fully completed. Funds have been delivered and confirmed with no further actions pending. This is a terminal success state. | | **FAILED** | The transfer could not be completed due to an error or processing failure. This is a terminal exception state and may require manual review or retry. | | **CANCELLED** | The transfer was cancelled before funds were collected. This is a terminal state and can only occur prior to funds collection. | | **EXPIRED** | The transfer expired before funds were collected. This is a terminal state and can only occur prior to funds collection. | | **COMPLIANCE\_HOLD** | The transfer has been placed on hold pending a compliance review. The transfer will resume processing once the review is complete, or may be cancelled if it does not pass. | | **REFUND\_PENDING** | The compliance review did not pass after funds had been collected, and Stables is returning the collected funds. This is a non-terminal state that resolves to `REFUNDED` or `REFUND_FAILED`. | | **REFUNDED** | The collected funds have been returned, net of the processing fee. This is a terminal state. See [Refunds](#refunds) for where the funds go and the `refund` object on the transfer. | | **REFUND\_FAILED** | The refund could not be completed. Stables operations will retry it; the transfer moves back to `REFUND_PENDING` while the retry is in flight. | *** ### State Progression [#state-progression] A successful transfer will typically move through the following progression. ``` CREATED → AWAITING_FUNDS_COLLECTION → FUNDS_COLLECTED → IN_PROGRESS → PAYMENT_SUBMITTED → PAYMENT_PROCESSED → COMPLETED ``` #### Important Notes [#important-notes] * Transfers never move backwards in state. * `EXPIRED`, `FAILED` and `CANCELLED` represent terminal exception paths. * `COMPLIANCE_HOLD` is a non-terminal state that may be applied at any point during processing. A transfer can resume from this state once the compliance review is resolved. * Once a transfer reaches `COMPLETED`, `CANCELLED`, `EXPIRED` or `REFUNDED`, no further state changes occur. A `FAILED` transfer whose funds were already collected can later move to `REFUND_PENDING` when Stables returns those funds. * The REST API returns these statuses in lowercase (for example `created`, `compliance_hold`, `refund_pending`). Webhook payloads use the uppercase names shown here. * Processing time varies depending on the payment rail and destination. *** ### Refunds [#refunds] When a compliance review rejects a transfer after the funds have been collected, Stables returns the collected funds instead of delivering the payment. The transfer moves through: ``` COMPLIANCE_HOLD → FAILED → REFUND_PENDING → REFUNDED ↘ REFUND_FAILED → REFUND_PENDING (retry) ``` Where the funds go depends on how the transfer was funded: * **Crypto-funded offramps** — the funds are returned to your Balance (the organisation's prefund wallet) on the same network they were collected on. * **Bank-funded onramps** — the funds are returned to the bank account or PayID the payment came from. The processing fee is retained; the amount returned is `net`. #### The `refund` object [#the-refund-object] Once a refund has been requested, the transfer resource (`GET /api/v1/transfers/{transferId}`) carries a `refund` object, and each `transfer.updated.status_transitioned` webhook for a refund status includes the same object in `event_object.refund`. | Field | Description | | -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------- | | `status` | `requested`, `broadcasting`, `refunded` or `failed`. | | `amount` | Gross amount being returned before fees, in major units of `currency`. | | `fee` | Processing fee retained, in major units. | | `net` | Amount delivered to the destination, in major units. | | `currency` | Currency of the amounts, lowercase (for example `usdc`, `aud`). | | `destination` | `{ "type": "prefund_wallet", "network", "address" }` for refunds to your Balance, or `{ "type": "bank_account", "provider", "account_masked" }` for bank refunds. | | `tx_hash` | On-chain transaction hash of the refund. Present for crypto refunds once broadcast. | | `provider_reference` | Payment reference from the bank rail. Present for bank refunds once paid. | | `requested_at` | ISO 8601 timestamp the refund was requested. | | `completed_at` | ISO 8601 timestamp the refund completed. Present when `status` is `refunded`. | | `failed_at` | ISO 8601 timestamp of the last failure. Present when `status` is `failed`. | ```json { "id": "4c8d2e6f-0a1b-4c3d-8e5f-7a9b1c3d5e7f", "status": "refunded", "refund": { "status": "refunded", "amount": "1000.00", "fee": "1.00", "net": "999.00", "currency": "usdc", "destination": { "type": "prefund_wallet", "network": "ethereum", "address": "0x8f3c…a1b2" }, "tx_hash": "0x5e7f…c3d5", "requested_at": "2026-10-26T04:10:00.000Z", "completed_at": "2026-10-26T04:12:30.000Z" } } ``` # Australian Banking (/developer-platform/payments/virtual-accounts/australian-banking) ### Whitelisting [#whitelisting] Before sending funds to an AUD virtual account, the source account — the bank account your customer is sending from — must be [whitelisted](/developer-platform/payments/virtual-accounts/australian-banking/whitelisting). Deposits arriving from a non-whitelisted source account will be returned to the sender. Keep in mind that even with the source account whitelisted, a deposit can still be held or reviewed by the sending bank — more on this below. ### Delayed or returned deposits [#delayed-or-returned-deposits] Some Australian banks hold first-time deposits, delay transfers for review, or return payments sent to accounts associated with digital assets. This has been observed across major banks, including ANZ, NAB, and CBA. Outcomes vary by customer, account history, transaction size, and the bank's internal review process. A delayed or returned transfer usually reflects bank-side payment controls or payment-matching checks, not a permanent block. If a transfer doesn't arrive right away, it may still be under review. Retry later, use the same bank account consistently, or contact your bank to confirm whether the payment has been held or declined. If you have any concerns, you can always reach out to the team. # Unsupported Banks (/developer-platform/payments/virtual-accounts/australian-banking/unsupported-banks) **Wise and Revolut are not supported.** Do not use them to fund a virtual account or as a payout beneficiary. Funds may be held indefinitely, and in some cases cannot be recovered. Our banking partners require a verifiable link between a payment and the customer it belongs to. Wise, Revolut and similar e-money institutions (EMIs) move money through pooled client accounts, so the details that reach our partners belong to the EMI rather than your customer — the payment can't be matched, and returns are often refused. ### Deposits from Wise or Revolut [#deposits-from-wise-or-revolut] These arrive with details that won't match your whitelisted source account, so the deposit is rejected and returned to a pooled account the EMI may be unable to allocate. **Stables cannot retrieve funds once this happens.** See [Virtual Accounts Whitelisting](/developer-platform/payments/virtual-accounts/australian-banking/whitelisting). ### Payouts to Wise or Revolut [#payouts-to-wise-or-revolut] These are commonly rejected on arrival or held pending manual review. Once a payout leaves our banking partner it cannot be recalled. See [Beneficiary Requirements](/developer-platform/payments/transfers/beneficiary-requirements). ### What to use instead [#what-to-use-instead] A traditional bank account held in the customer's own name, at a licensed bank in the country matching the payment currency. The account holder name must match the Stables customer record. Wise and Revolut are the most common cases, but other EMIs and neobanks using pooled accounts can fail the same way. If you're unsure about a provider, contact Stables support before sending funds. # Virtual Accounts Whitelisting (/developer-platform/payments/virtual-accounts/australian-banking/whitelisting) Whitelisting is currently only required for **AUD** virtual accounts. Before a virtual account can start receiving funds, you'll need to **whitelist a source account**. A **source account is the bank account that your customer will be sending funds **_**from**_ — for example, their personal or business bank account. Whitelisting it tells the system to expect funds from that account and ensures any deposits are accepted and processed correctly. Any deposits arriving from from **non-whitelisted sources will be returned.** **Wise and Revolut cannot be used as a source account.** Transfers from these providers arrive with pooled account details that won't match your whitelist, and returns to them may fail — leaving funds held up or unrecoverable. See [Unsupported Banks](/developer-platform/payments/virtual-accounts/australian-banking/unsupported-banks). ### Why whitelisting is required [#why-whitelisting-is-required] Whitelisting is a compliance requirement. It ensures that every virtual account can only receive funds from a known, verified source. This helps meet anti-money laundering (AML) obligations by creating a clear, auditable link between a virtual account and the customer it belongs to — and prevents funds from unexpected or unverified third parties from being accepted. ### How it works [#how-it-works] Here's the typical setup flow: 1. Create the virtual account. 2. Whitelist the source account your customer will be sending funds from. 3. That's it — deposits from the whitelisted source will now be accepted, and anything else will be returned. The fields used to identify a source account vary by currency and payment rail. For AUD virtual accounts, source accounts are identified by their BSB and account number. Each virtual account can only have **one whitelisted** account *** ### Endpoints [#endpoints] #### List whitelisted accounts [#list-whitelisted-accounts] ``` GET /api/v1/customers/{customerId}/virtual-accounts/{virtualAccountId}/whitelist-accounts ``` ```json { "count": 1, "data": [ { "id": 1791, "account_number": "401341834", "bsb_number": "112-879", "account_status": "enabled" } ] } ``` *** #### Add a whitelisted account [#add-a-whitelisted-account] Requires an `idempotency-key` header. ``` POST /api/v1/customers/{customerId}/virtual-accounts/{virtualAccountId}/whitelist-accounts ``` ```json // Request { "source_account": { "account_number": "401341834", "bsb_number": "112-879" } } ``` ```json // Response { "id": 1791, "account_number": "401341834", "bsb_number": "112-879", "account_status": "enabled" } ``` *** #### Update a whitelisted account [#update-a-whitelisted-account] Update the details or status of an existing whitelist entry. Temporarily disabling a source account will cause any deposits from it to be returned until you re-enable it. Requires an `idempotency-key` header. ``` PATCH /api/v1/customers/{customerId}/virtual-accounts/{virtualAccountId}/whitelist-accounts/{sourceAccountId} ``` ```json // Request { "account_number": "401341834", "bsb_number": "112-879", "account_status": "disabled" } ``` ```json // Response { "id": 1791, "account_number": "401341834", "bsb_number": "112-879", "account_status": "disabled" } ``` *** ### Things to keep in mind [#things-to-keep-in-mind] * A virtual account with an empty whitelist — or where all entries are `disabled` — will return all incoming deposits to the sender. * Whitelists are scoped to individual virtual accounts and aren't shared across accounts. * Disabling an entry doesn't delete it. You can re-enable it at any time via an update request. * There's no delete endpoint. If you want to permanently block a source, set its `account_status` to `"disabled"`. # Payment Routes (/developer-platform/payments/virtual-accounts) Stables **Payment Routes** give your customers dedicated, reusable payment details for moving between fiat and stablecoins. Payment Routes support onramps today, with offramps coming soon. For onramps, a virtual account is issued in your customer's name with local banking details, so they can fund their account using familiar domestic payment methods. Once funds are received, Stables handles reconciliation, conversion, and settlement into stablecoins at your configured wallet destination. For offramps, a wallet address will be linked to your customer's local banking details, allowing them to send stablecoins and receive local currency into the configured bank account destination. *** ### Supported Payment Rails [#supported-payment-rails] * **AUD Virtual Accounts**\ Australian BSB and account numbers for domestic bank transfers. * **AED Virtual Accounts**\ UAE local bank account details for domestic bank transfers. **In the works** * **USD Virtual Accounts**\ U.S. account and routing numbers for ACH and domestic wire transfers. * **SEPA Virtual IBAN**\ Euro IBANs for receiving SEPA payments across Europe. * **GBP Virtual Accounts**\ U.K. account numbers for receiving Faster Payments (FPS). *** ### How Developers Use Payment Routes [#how-developers-use-payment-routes] Stables Payment Routes are commonly used to: * Embed a seamless **fiat to stablecoin** on-ramp directly in your platform * Accept customer payments in local currency and settle in stablecoins *** ### High-level Flow [#high-level-flow] * **Generate a virtual account** for your customer and specify the destination blockchain network, stablecoin asset, and wallet address where funds should be delivered. * **Stables provisions dedicated local fiat deposit details** in the customer's name (e.g. account number, routing details, or IBAN depending on the rail). * The **customer sends fiat funds** to the provided virtual account using the supported local payment rail (such as ACH, SEPA, FPS, or domestic bank transfer). * **Stables monitors the virtual account**, receives the incoming fiat funds, and reconciles the deposit against the correct customer. * Once funds are confirmed and cleared, the **fiat amount is converted into the designated stablecoin** based on the applicable FX rate and fees. * The stablecoins are then transferred on-chain to the specified wallet address on the selected network, completing the fiat to stablecoin flow. *** ### Create a Virtual Account [#create-a-virtual-account] **Request** ```json curl -L \ --request POST \ --url 'https://api.stables.money/api/v1/customers/{customerId}/virtual-accounts' \ --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \ --header 'Idempotency-Key: 550e8400-e29b-41d4-a716-446655440000' \ --header 'Content-Type: application/json' \ --data '{ "source": { "currency": "AUD" }, "metadata": { "internal_reference": "client-2041" }, "destination": { "currency": "usdt", "payment_rail": "tron", "address": "TUVPATBKPjUuN5pBkigmfQtUR9yoYFhvv7", "wallet_type": "hosted", "vasp_name": "Binance" } }' ``` Set `destination.wallet_type` to `hosted` when the address belongs to an exchange or other provider, and name it in `vasp_name`. Use `self_hosted` when your customer holds the keys. Omitted means `self_hosted`. See [Travel Rule](/developer-platform/customer/compliance/travel-rule#fiat-to-stablecoin-declare-the-destination-wallet). **Response** `status` is typically `pending` immediately after creation while the provider activates the account (this can take a few seconds for AUD virtual accounts), then transitions to `activated` once confirmed. Poll the virtual account or listen for status-change events rather than assuming `activated` on creation. ```json { "id": "123e4567-e89b-12d3-a456-426614174000", "status": "pending", "customer_id": "123e4567-e89b-12d3-a456-426614174000", "developer_fee_percent": "0", "created_at": "2026-04-01T01:12:37.384Z", "source_deposit_instructions": { "currency": "AUD", "payment_rails": [ "npp" ], "bank_name": "Australian Bank", "bank_address": "123 Smith Street", "bank_beneficiary_name": "John Smith", "bank_beneficiary_address": "321 Smith Street", "bank_account_number": "1111111111", "bank_routing_number": "111111", "account_holder_name": "John Smith" }, "deposit_handling_mode": "auto_payout", "destination": { "currency": "usdt", "payment_rail": "tron", "address": "TUVPATBKPjUuN5pBkigmfQtUR9yoYFhvv7", "wallet_type": "hosted", "vasp_name": "Binance" } } ``` # Agent safety (/get-started/getting-started/quickstart/building-with-ai/agent-safety) AI agents using Stables should follow clear financial safety rules. These rules help agents avoid accidental payments, unsupported customer activity, and compliance-sensitive actions. ## Required checks [#required-checks] * Start every agent on a sandbox key (`sti_test_…`). A live key (`sti_live_…`) moves real money; switch to it only after the flow has been proven end to end in sandbox. * Confirm the customer exists before preparing a payment workflow. * Check customer KYC/KYB status before requesting or initiating transactional actions. * Check entitlements before using transfers or virtual accounts. * Create and present a quote before asking for transfer approval. * Require explicit human approval before creating a transfer or any other money movement. * Treat sanctions, unsupported jurisdiction, compliance, and verification failures as hard stops. * Use webhooks as the source of truth for final payment state. * Store and display Stables IDs, external IDs, quote IDs, transfer IDs, and webhook event IDs for auditability. ## What agents should not do [#what-agents-should-not-do] * Do not initiate a transfer from an ambiguous instruction. * Do not treat a quote as approval to move money. * Do not bypass KYC/KYB, entitlement, or compliance checks. * Do not retry a create-transfer request without idempotency protection. * Do not expose API keys, customer PII, or bank details in logs or public prompts. * Do not share one API key across agents. Create a key per agent so it can be revoked on its own, whether the agent connects through the hosted MCP server or the API directly. * Do not make final compliance decisions; escalate flagged activity to the appropriate risk or compliance workflow. ## Recommended approval prompt [#recommended-approval-prompt] Before money movement, an agent should present: * Customer ID and verified customer name or business name * Source currency, destination currency, and amount * Destination rail and beneficiary details * Quote ID, rate, fees, and expiry * Any compliance, verification, or entitlement warnings The transfer should only be created after the user gives clear approval for that exact payment. # AI agents (/get-started/getting-started/quickstart/building-with-ai/ai-agents) Stables gives AI agents and agentic commerce platforms the payment infrastructure to move between stablecoins and fiat rails. Agents can prepare customers, create quotes, open virtual accounts, reconcile webhooks, and surface transfer status through the Stables API, the hosted MCP server, OpenAPI reference, and `llms.txt` docs. Use this page as the canonical starting point for agent builders searching for stablecoin payments, USDC payouts, USDT payouts, virtual accounts, fiat off-ramping, and webhook reconciliation. ## What agents can build [#what-agents-can-build] * **Stablecoin payouts** - quote and initiate USDC or USDT payouts to supported fiat rails after a verified customer is eligible to transact. * **Virtual accounts** - create local currency account details so customers can receive fiat deposits that settle through Stables. * **Agent marketplace settlement** - route payouts to contributors, operators, merchants, or businesses with customer verification and transfer status tracking. * **Treasury movement** - prepare quotes and transfers for supported stablecoin-to-fiat workflows. * **Reconciliation** - use webhooks and transfer lookups to keep an agent or back-office system in sync with payment state changes. ## Agent-readable surfaces [#agent-readable-surfaces] * **Full docs for retrieval** - [`/llms-full.txt`](https://docs.stables.money/llms-full.txt) * **Docs index for retrieval** - [`/llms.txt`](https://docs.stables.money/llms.txt) * **Hosted MCP server** - `https://mcp.stables.money/mcp`. Sign in with your Stables account (Claude.ai, Claude Desktop, ChatGPT) or send a sandbox API key as a bearer token. Nothing to install; see MCP for client setup. * **API reference** - [Stables API reference](https://github.com/stables-money/stables-api-docs/blob/main/api-reference/README.md) * **Sandbox API** - `https://api.sandbox.stables.money` * **Production API** - `https://api.stables.money` ## Recommended agent workflow [#recommended-agent-workflow] 1. Read the relevant docs through `llms.txt`, `llms-full.txt`, the hosted MCP server, or the OpenAPI reference. 2. Create or look up the customer that owns the payment workflow. 3. Check KYC/KYB status and requested entitlements before preparing payment actions. 4. Create a quote before initiating a transfer. 5. Ask the human operator for explicit confirmation before money movement. 6. Create the transfer only after confirmation and eligibility checks. 7. Subscribe to webhooks and reconcile the final state asynchronously. ## Starter tasks [#starter-tasks] * **Create a customer** - register an individual or business and send them through verification. * **Create a quote** - price a USDC or USDT conversion into a destination fiat currency. * **Create a transfer** - execute an approved payout using a valid quote. * **Create a virtual account** - issue fiat deposit details for a verified customer. * **Reconcile a transfer** - listen for webhook events and fetch the transfer status when needed. ## Safety boundary [#safety-boundary] Payment agents should treat Stables as high-impact financial infrastructure. Agents can gather information, prepare payment objects, quote routes, and reconcile state, but should not move money without explicit user approval and a verified customer context. For detailed operating rules, see Agent safety. # Building with AI (/get-started/getting-started/quickstart/building-with-ai) Use Stables to add stablecoin payments, USDC and USDT payouts, virtual accounts, fiat off-ramps, and webhook reconciliation to AI agents and agentic commerce products. Start with: * AI agents for agent payment use cases and discovery surfaces. * MCP to connect any MCP client to the hosted Stables server at `mcp.stables.money`, by signing in with your Stables account, or with a sandbox API key. Nothing to install. For production keys, run the same server locally from an allowlisted machine. * Agent safety for human approval, KYC/KYB, entitlements, and compliance boundaries. Paste the prompt below into Claude Code, Cursor, Codex or any other AI coding assistant. It will read the Stables docs, review your codebase, and help you get started with your integration. ``` # Stables API — AI Agent Integration Prompt I'm integrating the **Stables API** into this project. Stables is a developer platform for stablecoin-backed payments — you create customers, give them payment routes, and move money in and out via transfers. ## Features - **Customers.** The Customers API is how you register your end users with Stables and submit them for verification. A customer must be created and verified before any payment routes can be opened or transfers can be made on their behalf. Customers come in two types and the required information differs between them: *individuals* (people) and *businesses* (companies, with associated beneficial owners and directors). Follow the individuals or businesses compliance docs as appropriate. - **Payment routes.** Stables Payment Routes provide your customers with dedicated, reusable fiat deposit details that automatically convert incoming funds into stablecoins and credit them to a specified wallet. Each payment route is tied to a single fiat currency, and a customer can have one or more depending on which currencies they need to receive in. - **Transfers.** A transfer is the instruction to move money — between Stables customers, out to an external bank account, or onto a blockchain address. Transfers are async: you submit the instruction, then Stables processes it through the relevant rail and emits webhook events as the status changes (pending → processing → completed / failed). Rely on webhooks for the terminal state. ## What I want you to do 1. **Ask which payments I want to enable first.** Customers are always required, but the payments features are optional — ask me which of them I actually want wired up (payment routes, transfers, both, plus webhooks) and scope the rest of the work to that. 2. **Read the docs.** Start at the developer platform overview and read enough of it to understand auth, environments, and the features I picked before writing any code. 3. **Connect to the hosted Stables MCP server if you support MCP.** The endpoint is https://mcp.stables.money/mcp and it authenticates with my sandbox API key as a bearer token (Authorization: Bearer sti_test_...). Use it to explore the API and to test calls against the sandbox as you build. Never use a live key (sti_live_...) without asking me first; it moves real money. 4. **Review this codebase's stack** — framework, frontend/backend split, language, auth flow, how secrets are loaded, and any existing payments or webhook plumbing. Decide where the Stables integration fits and whether you need to add a backend layer (Stables calls must run server-side). 5. **Implement in order.** Always do customers first, then any payments features (payment routes, transfers) — payments depend on a verified customer existing. 6. **Wire up webhooks** for the resources you implemented so state changes flow back into the app. 7. **When done, summarise** what you built, what's still ambiguous, and what I need to do manually (credentials, env vars, registering the webhook URL). **Ask clarifying questions** before coding if anything about the stack or where Stables fits in the user lifecycle is unclear. --- ## References - Full docs - https://docs.stables.money/llms-full.txt - Hosted MCP server - https://mcp.stables.money/mcp (sign in, or bearer token: your sandbox API key) - AI agents - https://docs.stables.money/get-started/getting-started/quickstart/building-with-ai/ai-agents - Agent safety - https://docs.stables.money/get-started/getting-started/quickstart/building-with-ai/agent-safety - MCP - https://docs.stables.money/get-started/getting-started/quickstart/building-with-ai/mcp - Developer platform overview — https://docs.stables.money/developer-platform/llms-full.txt - Customer compliance — individuals — https://docs.stables.money/developer-platform/customer/compliance/individuals/llms-full.txt - Customer compliance — businesses — https://docs.stables.money/developer-platform/customer/compliance/business/llms-full.txt - Payment routes — https://docs.stables.money/developer-platform/payments/virtual-accounts/llms-full.txt - Transfers — https://docs.stables.money/developer-platform/payments/transfers/llms-full.txt ``` # MCP (/get-started/getting-started/quickstart/building-with-ai/mcp) Connect Claude, Cursor, Codex, VS Code and any other MCP-compatible client to the Stables API through the Model Context Protocol. An agent connected this way can onboard customers, price and execute USDT payouts, open payment routes for fiat deposits, and reconcile webhooks, all through the same API your code uses. MCP (Model Context Protocol) is an open standard for connecting AI applications to external tools, like a USB-C port for AI: any client that speaks MCP can use any MCP server. For agent-specific discovery and safety guidance, see AI agents and Agent safety. *** ## Connect in one step [#connect-in-one-step] The Stables MCP server is hosted. There is nothing to install and nothing to run. Point your client at: ``` https://mcp.stables.money/mcp ``` There are two ways to authenticate: * **Sign in with your Stables account.** Clients that support MCP sign-in (OAuth), such as Claude.ai, Claude Desktop and ChatGPT, open a Stables login page and need no API key. See [Claude.ai and Claude Desktop](#claudeai-and-claude-desktop) and [ChatGPT](#chatgpt). * **Send an API key as a bearer token.** Everything else, including Claude Code, Cursor, VS Code, Windsurf and Codex. With an API key, the hosted server takes **sandbox keys** (`sti_test_…`), which reach `api.sandbox.stables.money`, where no real money moves. Production only accepts calls from allowlisted addresses, and the hosted server's addresses are not on that list, so it refuses **live keys** (`sti_live_…`) with an explanation. For production, either connect by signing in (Claude, ChatGPT), or [run the server locally](#run-it-locally-instead) from an allowlisted machine with your live key. Start with a sandbox key. The hosted server stores no credentials of its own; every request carries yours, and a request without a valid key is refused before it reaches the API. ### Claude Code [#claude-code] ```bash claude mcp add --transport http stables https://mcp.stables.money/mcp --header "Authorization: Bearer ${STABLES_API_KEY}" ``` ### Cursor, VS Code, Windsurf and other clients with a `url` field [#cursor-vs-code-windsurf-and-other-clients-with-a-url-field] Add this to the client's MCP configuration (`~/.cursor/mcp.json`, `.vscode/mcp.json`, and so on): ```json { "mcpServers": { "stables": { "url": "https://mcp.stables.money/mcp", "headers": { "Authorization": "Bearer sti_test_..." } } } } ``` ### Codex [#codex] In `~/.codex/config.toml`: ```toml [mcp_servers.stables] url = "https://mcp.stables.money/mcp" bearer_token_env_var = "STABLES_API_KEY" ``` ### Claude.ai and Claude Desktop [#claudeai-and-claude-desktop] These clients connect by signing in, so there is no key to copy. 1. In Claude, open **Settings > Connectors** and choose **Add custom connector**. 2. Name it `Stables`, enter `https://mcp.stables.money/mcp` as the URL and choose **Add**. 3. Choose **Connect** on the new connector. A Stables page opens: pick **Sandbox** or **Production**, choose **Read only** or **Read and make changes**, then **Allow and sign in**. 4. Sign in with the account you use for the Stables dashboard. If you belong to more than one organization, pick the one the agent should act for. When you allow access, Stables creates an API key for the connection in that environment, named after the client and your email (for example `Claude via MCP (you@company.com)`). It is listed with your other keys in the dashboard. Revoke it there, or use **Disconnect** on the AI agents page, to cut the connection off; removing the connector in Claude alone does not revoke the key. Connecting the same client again replaces its earlier key, which is revoked for you. ### ChatGPT [#chatgpt] ChatGPT connects by signing in too. Custom connectors need developer mode, which is available on paid plans; on a Business or Enterprise workspace an admin may need to allow it first. 1. In ChatGPT on the web, open **Settings** and turn on **Developer mode** (under the apps or plugins settings, in **Advanced settings**). 2. Create a new plugin: name it `Stables`, enter `https://mcp.stables.money/mcp` as the URL, choose **OAuth** for authentication, and create it. 3. A Stables page opens: pick **Sandbox** or **Production**, choose the access, then **Allow and sign in**, and pick your organization. 4. In a chat, turn on **Stables** from the **+** menu before asking for something. The key Stables creates is named `ChatGPT via MCP (you@company.com)` and works exactly like Claude's: listed in the dashboard, revoked there. Other clients that support MCP sign-in can connect the same way. Claude.ai, Claude Desktop and ChatGPT are the ones we have tested. ### Try it [#try-it] Start a new conversation and ask: **"List my Stables customers"**. The agent calls `list_customers` and shows what is in the environment you connected to. *** ## Run it locally instead [#run-it-locally-instead] The same server is published to npm and runs as a local process over stdio. Use this for production API keys (from a machine whose address is on your production allowlist), when your client only supports local servers, when you work against a `sti_local_…` key and your own deployment, or when the client cannot reach the internet. The AI agents page in the production dashboard gives each coding tool this local setup with a key filled in. Requirements: Node.js 18 or later. For example, to run it locally in Claude Desktop instead of signing in, add this to `~/Library/Application Support/Claude/claude_desktop_config.json` (macOS) or `%APPDATA%\Claude\claude_desktop_config.json` (Windows), then quit and reopen Claude Desktop: ```json { "mcpServers": { "stables": { "command": "npx", "args": ["stables-mcp-server"], "env": { "STABLES_API_KEY": "sti_test_..." } } } } ``` | Variable | Required | Description | | ----------------- | -------- | ---------------------------------------------------------------------------------------------------------------------------- | | `STABLES_API_KEY` | Yes | Your Stables API key. The `sti_test_` or `sti_live_` prefix picks the environment. | | `STABLES_API_URL` | No | Overrides the environment the key implies. Needed only for a `sti_local_…` key or a non-standard deployment. Must be HTTPS. | Source and issues: [github.com/stables-money/mcp-server](https://github.com/stables-money/mcp-server). *** ## Tools [#tools] The server exposes 26 tools. Each one mirrors a documented Stables API endpoint and nothing else; the reference below is generated from the server's own tool schemas, so it matches what your client sees. ### Customers [#customers] #### create\_customer [#create_customer] Create a new customer in Stables for KYC verification and transfers. Use 'individual' for personal accounts or 'business' for company accounts. Include entitlements like 'base\_payout' to enable transactions. | Parameter | Type | Required | Description | | -------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | ---------------------------------------------------------------------- | | `email` | string | No | Customer's email address | | `customerType` | `individual` \| `business` | Yes | Type of customer - 'individual' for personal, 'business' for companies | | `firstName` | string | No | First name (required for individuals) | | `lastName` | string | No | Last name (required for individuals) | | `middleName` | string | No | Middle name | | `dob` | string | No | Date of birth in YYYY-MM-DD format (e.g., '1990-01-15') | | `nationality` | string | No | Two-letter country code (e.g., 'US', 'GB') | | `companyName` | string | No | Company name (required for businesses) | | `country` | string | No | Country code ISO 3166-1 alpha-2 (required for businesses, e.g., 'US') | | `registrationNumber` | string | No | Business registration number | | `incorporatedOn` | string | No | Date of incorporation in YYYY-MM-DD format | | `type` | string | No | Company type (e.g., 'Private Company Limited by Shares') | | `taxId` | string | No | Tax ID (e.g., '12-3456789') | | `registrationLocation` | string | No | Registration location (e.g., state for USA) | | `website` | string | No | Website URL | | `describeBusiness` | string | No | Description of the business | | `conductMoneyServices` | boolean | No | Whether the company conducts money services | | `describeMoneyServices` | string | No | Describe money services (required if conductMoneyServices is true) | | `describeComplianceControls` | string | No | Description of compliance controls | | `mainSourceOfFunds` | `BUSINESS_LOANS` \| `GRANTS` \| `INTER_COMPANY_FUNDS` \| `INVESTMENT_PROCEEDS` \| `LEGAL_SETTLEMENT` \| `OWNERS_CAPITAL` \| `PENSION_RETIREMENT` \| `SALE_OF_ASSETS` \| `SALES_OF_GOODS_AND_SERVICES` \| `THIRD_PARTY_FUNDS` \| `TREASURY_RESERVES` | No | Main source of funds | | `accountPurpose` | `CHARITABLE_DONATIONS` \| `ECOMMERCE_RETAIL_PAYMENTS` \| `INVESTMENT_PURPOSES` \| `PAYMENTS_TO_FRIENDS_OR_FAMILY_ABROAD` \| `PAYROLL` \| `PERSONAL_OR_LIVING_EXPENSES` \| `PROTECT_WEALTH` \| `PURCHASE_GOODS_AND_SERVICES` \| `RECEIVE_PAYMENTS_FOR_GOODS_AND_SERVICES` \| `TAX_OPTIMIZATION` \| `THIRD_PARTY_MONEY_TRANSMISSION` \| `TREASURY_MANAGEMENT` \| `OTHER` | No | What will you use Stables for? | | `accountPurposeOther` | string | No | Explain purpose (required if accountPurpose is OTHER) | | `isYourBusinessADao` | boolean | No | Is your business a DAO? | | `industrySelection` | string | No | NAICS industry code (e.g., '5415') | | `expectedAnnualRevenue` | `0_99999` \| `100000_999999` \| `1000000_9999999` \| `10000000_49999999` \| `50000000_249999999` \| `250000000_plus` | No | Estimated annual revenue in USD | | `expectedMonthlyPayments` | string | No | Expected monthly payments in USD | | `sourceOfFunds` | `BUSINESS_LOANS` \| `GRANTS` \| `INTER_COMPANY_FUNDS` \| `INVESTMENT_PROCEEDS` \| `LEGAL_SETTLEMENT` \| `OWNERS_CAPITAL` \| `PENSION_RETIREMENT` \| `SALE_OF_ASSETS` \| `SALES_OF_GOODS_AND_SERVICES` \| `THIRD_PARTY_FUNDS` \| `TREASURY_RESERVES` | No | Source of funds | | `sourceOfFundsDescription` | string | No | Describe where your business funds come from | | `operateInProhibitedCountry` | boolean | No | Does your business operate in any prohibited countries? | | `doesYourBusinessEngageInHighRiskActivities` | `yes` \| `no` | No | Does your business engage in high risk activities? | | `acceptTerms` | boolean | No | Accept Stables' terms of service and privacy policy | | `howDidYouComeAcrossStables` | string | No | How did you come across Stables? | | `externalCustomerId` | string | No | Your own reference ID for this customer | | `phone` | string | No | Phone number with country code (e.g., '+14155552671') | | `entitlements` | array of `base_payout` \| `virtual_account` | No | List of entitlements to request | | `addressLine1` | string | No | Street address line 1 | | `addressLine2` | string | No | Street address line 2 | | `addressCity` | string | No | City | | `addressState` | string | No | State or region | | `addressPostalCode` | string | No | Postal/ZIP code | | `addressCountry` | string | No | Two-letter country code (e.g., 'US') | | `legalAddressLine1` | string | No | Legal address line 1 (for businesses) | | `legalAddressLine2` | string | No | Legal address line 2 (for businesses) | | `legalAddressCity` | string | No | Legal address city (for businesses) | | `legalAddressState` | string | No | Legal address state (for businesses) | | `legalAddressPostalCode` | string | No | Legal address postal code (for businesses) | | `legalAddressCountry` | string | No | Legal address country code (for businesses) | #### get\_customer [#get_customer] Get details about a specific customer including their verification status | Parameter | Type | Required | Description | | ------------ | ------ | -------- | -------------------------- | | `customerId` | string | Yes | The customer ID to look up | #### list\_customers [#list_customers] List all customers for the authenticated tenant _No parameters._ #### get\_verification\_link [#get_verification_link] Generate a KYC verification link for a customer. The customer must complete verification before they can make transfers. | Parameter | Type | Required | Description | | ------------ | ------ | -------- | -------------------------------------------------------- | | `customerId` | string | Yes | The customer ID to generate verification link for | | `ttlInSecs` | number | No | Time-to-live for the KYC link in seconds (default: 1800) | | `successUrl` | string | No | URL to redirect to after successful verification | | `rejectUrl` | string | No | URL to redirect to after rejected verification | #### update\_customer [#update_customer] Update customer details, entitlements, or verification information | Parameter | Type | Required | Description | | -------------- | ------------------------------------------- | -------- | --------------------------------------------- | | `customerId` | string | Yes | The customer ID to update | | `email` | string | No | Updated email address | | `phone` | string | No | Updated phone number | | `firstName` | string | No | Updated first name | | `lastName` | string | No | Updated last name | | `middleName` | string | No | Updated middle name | | `dob` | string | No | Updated date of birth (YYYY-MM-DD) | | `nationality` | string | No | Updated nationality (two-letter country code) | | `companyName` | string | No | Updated company name (for businesses) | | `entitlements` | array of `base_payout` \| `virtual_account` | No | Updated entitlements | #### update\_customer\_metadata [#update_customer_metadata] Update customer metadata key-value pairs | Parameter | Type | Required | Description | | ------------ | ------ | -------- | -------------------------------------- | | `customerId` | string | Yes | The customer ID to update metadata for | | `metadata` | object | Yes | Metadata key-value pairs to set | ### Quotes [#quotes] #### create\_quote [#create_quote] Get a quote for a currency exchange: the rate, the fees, and what the customer receives. Quotes are short-lived, so create one immediately before the transfer. Off-ramp converts a stablecoin to fiat (source network required, destination country required); on-ramp converts fiat to a stablecoin (destination address required). Set preview to price without committing. | Parameter | Type | Required | Description | | --------------------- | -------------------------------------------------------------------------------------------------- | -------- | ------------------------------------------------------------------------------------------------------------- | | `sourceCurrency` | string | Yes | Source currency: a stablecoin for off-ramp (e.g. 'USDT'), fiat for on-ramp | | `sourceAmount` | string | Yes | Amount to convert, in major units (e.g. '125.75') | | `sourceNetwork` | `arbitrum` \| `avalanche` \| `base` \| `ethereum` \| `optimism` \| `polygon` \| `solana` \| `tron` | No | Blockchain network of the source. Required for off-ramp, omitted for on-ramp | | `destinationCurrency` | string | Yes | Destination currency: fiat for off-ramp (e.g. 'EUR'), a stablecoin for on-ramp | | `destinationCountry` | string | No | Destination country, ISO 2-letter. Required for off-ramp | | `destinationNetwork` | string | No | Off-ramp: payment network, 'swift' or 'bank'. On-ramp: blockchain network. Replaces the old paymentMethodType | | `destinationAddress` | string | No | Destination wallet address. Required for on-ramp | | `preview` | boolean | No | Price the quote without persisting it, to show an estimate | | `metadata` | object | No | Optional metadata | #### get\_quote [#get_quote] Get details about an existing quote including its current status | Parameter | Type | Required | Description | | --------- | ------ | -------- | ----------------------- | | `quoteId` | string | Yes | The quote ID to look up | ### Transfers [#transfers] #### create\_transfer [#create_transfer] Execute a transfer using an active quote. The quote must not be expired. This initiates real money movement, so get explicit human approval first. For payouts in AED, CAD, EUR, GBP, MXN, USD you must also supply recipientType, the full beneficiary address, and dateOfBirth when the recipient is an individual. | Parameter | Type | Required | Description | | --------------------- | --------------------------------------- | -------- | ----------------------------------------------------------------------------------------------------------------- | | `customerId` | string | Yes | The customer ID for this transfer | | `quoteId` | string | Yes | The quote ID to execute | | `destinationType` | `bank` \| `crypto` | No | Payout target: a bank account (off-ramp) or a wallet address. Default: `"bank"`. | | `accountHolderName` | string | No | Account holder's full name, or the company name when recipientType is business | | `bankName` | string | No | Name of the destination bank | | `bankCountry` | string | No | Bank country, ISO 2-letter (e.g. 'AU', 'US') | | `bankCurrency` | string | No | Payout currency, ISO 3-letter (e.g. 'EUR') | | `recipientType` | `individual` \| `business` | No | Beneficiary type. Required for AED, CAD, EUR, GBP, MXN, USD | | `dateOfBirth` | string | No | Beneficiary date of birth, YYYY-MM-DD. Required when recipientType is individual for AED, CAD, EUR, GBP, MXN, USD | | `addressStreet` | string | No | Beneficiary street address | | `addressCity` | string | No | Beneficiary city | | `addressState` | string | No | Beneficiary state or region | | `addressPostalCode` | string | No | Beneficiary postal code | | `addressCountry` | string | No | Beneficiary country, ISO 2-letter. The complete address is required for AED, CAD, EUR, GBP, MXN, USD | | `iban` | string | No | IBAN (EU/international) | | `accountNumber` | string | No | Bank account number, if not using IBAN | | `accountType` | `savings` \| `checking` \| `payment` | No | Account type. Required for CAD and USD bank payouts | | `payId` | string | No | PayID alias (AUD only). Requires payIdType | | `payIdType` | `email` \| `phone` \| `abn` \| `org_id` | No | PayID alias type. Required when payId is given | | `swiftCode` | string | No | SWIFT code | | `bicCode` | string | No | BIC (EUR/GBP international) | | `routingNumber` | string | No | ABA routing number (US) | | `sortCode` | string | No | Sort code (UK) | | `ifscCode` | string | No | IFSC code (India) | | `bsbCode` | string | No | BSB code (Australia) | | `bankCode` | string | No | Bank code / institution number (CAD) | | `branchCode` | string | No | Branch code / transit number (CAD) | | `cnaps` | string | No | CNAPS (China) | | `destinationCurrency` | string | No | Stablecoin to deliver when destinationType is crypto (e.g. 'USDT') | | `destinationNetwork` | string | No | Blockchain network when destinationType is crypto (e.g. 'polygon') | | `destinationAddress` | string | No | Wallet address when destinationType is crypto | | `purposeCode` | string | No | Purpose of the transfer (e.g. 'SALARY'). Required on some corridors | | `metadata` | object | No | Optional metadata | #### get\_transfer [#get_transfer] Get the current status and details of a transfer | Parameter | Type | Required | Description | | ------------ | ------ | -------- | -------------------------- | | `transferId` | string | Yes | The transfer ID to look up | #### list\_transfers [#list_transfers] List transfers with optional filters for status, type, or customer | Parameter | Type | Required | Description | | ------------ | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | ------------------------------------------ | | `status` | `created` \| `compliance_hold` \| `awaiting_funds_collection` \| `funds_collected` \| `in_progress` \| `payment_submitted` \| `payment_processed` \| `completed` \| `failed` \| `cancelled` \| `expired` | No | Filter by transfer status | | `type` | `onramp` \| `offramp` | No | Filter by transfer type | | `customerId` | string | No | Filter by customer ID | | `pageSize` | number | No | Number of transfers per page (default: 20) | | `pageToken` | string | No | Token for the next page of results | ### Payment routes [#payment-routes] #### create\_virtual\_account [#create_virtual_account] Create a payment route (virtual bank account) so a customer can receive fiat deposits that convert to a stablecoin and pay out to a wallet. The payout destination is mandatory: the API refuses a fiat-to-crypto route without one. Deposit handling is set server-side and defaults to auto\_payout; change it afterwards with update\_virtual\_account. | Parameter | Type | Required | Description | | ------------------------ | --------------------------------------------------------------------------------------------------------------------------------- | -------- | ----------------------------------------------------------------------------- | | `customerId` | string | Yes | The customer ID to create the payment route for | | `sourceCurrency` | string | Yes | Fiat currency the route collects in (e.g. 'AUD', 'USD', 'EUR') | | `destinationAddress` | string | Yes | Wallet address deposits are paid out to. Validated against the chosen network | | `destinationPaymentRail` | `arbitrum` \| `avalanche_c_chain` \| `base` \| `celo` \| `ethereum` \| `optimism` \| `polygon` \| `solana` \| `stellar` \| `tron` | Yes | Blockchain network the payout address belongs to | | `destinationCurrency` | `usdc` \| `usdt` \| `dai` \| `pyusd` \| `eurc` | No | Stablecoin to receive. Default: `"usdt"`. | | `developerFeePercent` | string | No | Your fee on each deposit, as a numeric string (e.g. '0.5') | #### list\_virtual\_accounts [#list_virtual_accounts] List all virtual accounts for a customer | Parameter | Type | Required | Description | | ------------ | ----------------------------------------------------- | -------- | -------------------------------------------- | | `customerId` | string | Yes | The customer ID to list virtual accounts for | | `status` | `activated` \| `deactivated` \| `pending` \| `closed` | No | Filter by account status | | `limit` | number | No | Maximum number of accounts to return | #### update\_virtual\_account [#update_virtual_account] Update virtual account settings (e.g., deposit handling mode) | Parameter | Type | Required | Description | | --------------------- | ----------------------------------- | -------- | -------------------------------- | | `customerId` | string | Yes | The customer ID | | `virtualAccountId` | string | Yes | The virtual account ID to update | | `depositHandlingMode` | `auto_payout` \| `hold` \| `manual` | Yes | New deposit handling mode | #### get\_virtual\_account\_history [#get_virtual_account_history] Get the activity history for a virtual account (deposits, payouts, etc.) | Parameter | Type | Required | Description | | ------------------ | ------ | -------- | ------------------------------------------------ | | `customerId` | string | Yes | The customer ID | | `virtualAccountId` | string | Yes | The virtual account ID | | `limit` | number | No | Maximum number of events to return (default: 10) | #### update\_route\_destination [#update_route_destination] Change the payout wallet on an existing payment route. Deposits after this point are paid out to the new address; use it when a customer rotates wallets rather than creating a second route. | Parameter | Type | Required | Description | | ------------------------ | --------------------------------------------------------------------------------------------------------------------------------- | -------- | --------------------------------------------- | | `customerId` | string | Yes | The customer ID | | `virtualAccountId` | string | Yes | The payment route (virtual account) ID | | `destinationAddress` | string | Yes | New payout wallet address | | `destinationPaymentRail` | `arbitrum` \| `avalanche_c_chain` \| `base` \| `celo` \| `ethereum` \| `optimism` \| `polygon` \| `solana` \| `stellar` \| `tron` | Yes | Blockchain network the new address belongs to | | `destinationCurrency` | `usdc` \| `usdt` \| `dai` \| `pyusd` \| `eurc` | No | Stablecoin to receive. Default: `"usdt"`. | ### Sandbox [#sandbox] #### simulate\_route\_deposit [#simulate_route_deposit] SANDBOX ONLY. Simulate a fiat deposit into a payment route so you can watch the conversion and payout complete without a real bank transfer. Fails on production. | Parameter | Type | Required | Description | | ------------------- | ---------------------------------------- | -------- | ------------------------------------------------------------------------------------------------------------------------ | | `customerId` | string | Yes | The customer ID | | `virtualAccountId` | string | Yes | The payment route (virtual account) ID | | `amount` | string | Yes | Deposit amount in major units (e.g. '500.00') | | `scenario` | `create_only` \| `completed` \| `failed` | No | 'completed' runs the deposit through to payout, 'failed' exercises the failure path, 'create\_only' stops at the deposit | | `senderName` | string | No | Name to attribute the deposit to | | `senderReference` | string | No | Payment reference on the deposit | | `externalDepositId` | string | No | Your own reference for this deposit | #### simulate\_transfer\_deposit [#simulate_transfer_deposit] SANDBOX ONLY. Simulate the customer sending the crypto an off-ramp transfer is waiting on, so the transfer can progress to payout without an on-chain payment. Fails on production. | Parameter | Type | Required | Description | | ------------ | ------ | -------- | --------------------------- | | `transferId` | string | Yes | The transfer awaiting funds | ### API keys [#api-keys] #### create\_api\_key [#create_api_key] Create a new API key for accessing the Stables API. The secret key is only shown once on creation - save it immediately. | Parameter | Type | Required | Description | | ---------- | ------ | -------- | --------------------------------------------------------------------------- | | `name` | string | Yes | A descriptive name for this API key (e.g., 'Production Bot', 'Agent Smith') | | `metadata` | object | No | Optional metadata to attach to the key | #### list\_api\_keys [#list_api_keys] List all API keys for the current account | Parameter | Type | Required | Description | | ----------- | ------ | -------- | ----------------------- | | `pageSize` | number | No | Number of keys per page | | `pageToken` | string | No | Token for the next page | #### get\_api\_key [#get_api_key] Get details about a specific API key | Parameter | Type | Required | Description | | ---------- | ------ | -------- | ------------------------- | | `apiKeyId` | string | Yes | The API key ID to look up | #### revoke\_api\_key [#revoke_api_key] Revoke an API key. This permanently disables the key and cannot be undone. | Parameter | Type | Required | Description | | ---------- | ------ | -------- | ------------------------ | | `apiKeyId` | string | Yes | The API key ID to revoke | ### Webhooks [#webhooks] #### create\_webhook [#create_webhook] Subscribe to Stables events via webhook. You'll receive POST requests to your URL when events occur. Event types are dotted and lowercase. Use 'all' to receive everything. Security: Set a secret to enable HMAC-SHA256 signature verification via X-Webhook-Signature header. | Parameter | Type | Required | Description | | ------------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- | -------- | ------------------------------------------------------------------------------------------ | | `name` | string | Yes | A descriptive name for this webhook (e.g., 'Transfer status notifications') | | `url` | string | Yes | The HTTPS URL to receive webhook POST requests | | `eventTypes` | array of `customer.created` \| `customer.updated` \| `kyc_link.updated.status_transitioned` \| `transfer.created` \| `transfer.updated.status_transitioned` \| `quote.created` \| `quote.updated.status_transitioned` \| `virtual_account.created` \| `virtual_account.activity.created` \| `virtual_account.activity.updated.status_transitioned` \| `travel_rule.wallet_verification_required` \| `rfi.created` \| `rfi.updated` \| `rfi.resolved` \| `all` | Yes | Event types to subscribe to (e.g. \['transfer.updated.status\_transitioned']), or \['all'] | | `secret` | string | No | Optional signing secret for HMAC-SHA256 webhook signature verification | #### list\_webhooks [#list_webhooks] List all webhook subscriptions for the current account _No parameters._ #### delete\_webhook [#delete_webhook] Delete a webhook subscription. You will stop receiving events at this endpoint. | Parameter | Type | Required | Description | | ----------- | ------ | -------- | ------------------------------------- | | `webhookId` | string | Yes | The webhook subscription ID to delete | #### list\_webhook\_deliveries [#list_webhook_deliveries] List recent webhook delivery attempts with their HTTP status and retry state. This is the first place to look when an integration is not receiving events: it shows whether Stables sent them and what the endpoint answered. | Parameter | Type | Required | Description | | ----------- | ------------------------------------------------ | -------- | ------------------------------------------------ | | `pageSize` | number | No | How many attempts to return (default 10, max 50) | | `status` | `PENDING` \| `SUCCESS` \| `FAILED` \| `RETRYING` | No | Filter by delivery status | | `eventType` | string | No | Filter by event type (e.g. 'transfer.created') | *** ## Example workflows [#example-workflows] **Onboard a customer** > "Create an individual customer for john@example.com with the base\_payout entitlement and give me a KYC link" The agent calls `create_customer`, then `get_verification_link` for the new customer, and returns a link to share. Links expire after 30 minutes by default. **Price and execute a payout** > "Quote 500 USDT on Polygon to EUR for customer abc123" The agent calls `create_quote` and shows the rate, the fees and what the beneficiary receives, along with when the quote expires. Quotes are short-lived, so create one immediately before the transfer. > "Execute it to IBAN GR16 0110 1250 0000 0001 2300 695 at Alpha Bank, account holder Maria Papadopoulou" The agent calls `create_transfer` with the quote and the beneficiary details, and returns the transfer ID, its status and the wallet address the USDT must be sent to. Some currencies require more beneficiary detail than others; the tool description lists what each currency needs. **Open a payment route** > "Create a USD payment route for customer abc123 that pays out USDT on Base to 0x…" The agent calls `create_virtual_account` and returns the deposit instructions. Later, "change the payout wallet on that route" calls `update_route_destination`, and "show me the deposit history" calls `get_virtual_account_history`. **Test a deposit in sandbox** > "Simulate a 250 USD deposit into that route" The agent calls `simulate_route_deposit`, which drives the route to a terminal state without a real bank payment. Sandbox only. **Reconcile webhooks** > "Set up a webhook at https://example.com/stables that fires when transfers change status" The agent calls `create_webhook` with `transfer.updated.status_transitioned`. If events stop arriving, "show me recent webhook deliveries" calls `list_webhook_deliveries`, the first place to look. *** ## Security [#security] * With an API key, the hosted server holds no credentials. Your key travels with each request and is only ever forwarded to the Stables environment it belongs to. * With sign-in, the key created for the connection is stored encrypted by the hosted server and used only for that connection's requests. It appears in your dashboard like any other key and can be revoked there. * A key is never accepted in the URL, only in the `Authorization` or `X-Api-Key` header. * Every write carries an idempotency key, built once per call, so a retried request cannot submit a payout twice. * Create a separate API key per agent (sign-in does this for you) and revoke it from the dashboard when the agent is retired. An agent holding a `sti_live_` key can move real money on your behalf; read Agent safety before going live. * Keep human confirmation on for `create_transfer` and other money-moving tools in your client. *** ## Troubleshooting [#troubleshooting] **401 from `mcp.stables.money` with `"error": "unauthorized"`** The request reached the hosted server without a usable key. Check that the `Authorization: Bearer` header is set and that the key starts with `sti_test_`. A live key (`sti_live_`) is refused with "Production API keys can't be used through the hosted server": sign in instead, or run the server locally from an allowlisted machine. A `sti_local_` key cannot be routed by the hosted server either; run it locally with `STABLES_API_URL`. **"Invalid or missing authorization credentials" inside a tool result** The key reached the Stables API and was refused there. It has been revoked, or it belongs to the other environment. Check the key in the dashboard. **A local server's calls to production are refused** Production only accepts calls from allowlisted addresses. Run the server from a machine whose address is on your production allowlist, or ask Stables to add it. **Quote expired before the transfer** Quotes have a short lifetime. Create a new quote and execute the transfer straight away. **Local server not appearing in Claude Desktop** Check that the config file is valid JSON, that `STABLES_API_KEY` is set in the `env` block, and that you fully quit Claude Desktop (Cmd+Q) before reopening it. Run `npx stables-mcp-server@latest` once in a terminal to confirm Node can download and start it. # Configure webhooks (/get-started/getting-started/quickstart/configure-webhooks) Stables webhooks allow you to receive real-time notifications when events occur in your Stables account. There are two ways to manage webhook subscriptions: * **Developer Dashboard (recommended)** — manage webhook endpoints from the dashboard, with a built-in event catalog, test events, delivery history and manual replay. * **Webhook API** — create and manage subscriptions programmatically. This applies to accounts that haven't yet been migrated to dashboard-managed webhooks. The event payload structure is identical on both — switching between them doesn't require any changes to how you process events. ### Managing webhooks in the Dashboard [#managing-webhooks-in-the-dashboard] Open **Settings → Webhooks** in the Developer Dashboard to manage your endpoints. 1. **Add an endpoint.** Enter the HTTPS URL that should receive events and select the event types you want delivered to it. 2. **Copy the signing secret.** Each endpoint has its own signing secret (starting with `whsec_`), available on the endpoint's detail page. Use it to verify deliveries — see [Verifying signatures](/get-started/getting-started/quickstart/configure-webhooks#verifying-signatures) below. 3. **Send a test event.** Use the **Testing** tab to send example payloads for any event type to your endpoint before going live. 4. **Inspect and replay deliveries.** Each endpoint shows a full delivery log with the response your server returned. Failed deliveries can be replayed manually at any time. Deliveries to dashboard-managed endpoints are retried automatically on an exponential back-off schedule for over a day after the first failure. If every retry fails, the delivery is marked failed and can still be replayed from the dashboard. ### Subscribing via the Webhook API [#subscribing-via-the-webhook-api] For accounts not yet on dashboard-managed webhooks, create a webhook subscription with the Stables API. The subscription is active as soon as it's created. **Request** ```json curl -X POST https://api.stables.money/api/v1/webhooks \ -H "X-Api-Key: " \ -H "Content-Type: application/json" \ -H "Idempotency-Key: " \ -d '{ "name": "Payment Status Notifications", "url": "https://your-domain.com/webhooks/stables", "eventTypes": [ "customer.created", "kyc_link.updated.status_transitioned", "transfer.updated.status_transitioned" ], "secret": "your_optional_signing_secret" }' ``` **Response** ```json { "subscription": { "subscriptionId": "550e8400-e29b-41d4-a716-446655440000", "name": "Payment Status Notifications", "url": "https://your-domain.com/webhooks/stables", "eventTypes": [ "customer.created", "kyc_link.updated.status_transitioned", "transfer.updated.status_transitioned" ], "active": true, "createdAt": "2024-01-15T10:30:00Z", "updatedAt": "2024-01-15T10:30:00Z" } } ``` ### Receiving Events [#receiving-events] When an event occurs, Stables sends a POST to your endpoint URL. The webhook payload follows the same structure regardless of how the subscription was created. | Field | Type | Description | | ---------------------- | ------ | ------------------------------------------------------------------------------------ | | `api_version` | string | API version used when the event was generated. Currently `"v1"`. | | `event_id` | string | Unique UUID for this event. Use as an idempotency key to handle duplicate deliveries. | | `event_developer_id` | string | Your tenant ID. | | `event_category` | string | Top-level resource category (e.g. `"customer"`, `"virtual_account.activity"`). | | `event_type` | string | Full event type string, e.g. `"kyc_link.updated.status_transitioned"`. | | `event_object_id` | string | ID of the primary resource. | | `event_object_status` | string | *(optional)* The new status that triggered the event. Present on status-transition events. | | `event_object` | object | Full resource snapshot. Shape varies by `event_type`. | | `event_created_at` | string | ISO 8601 UTC timestamp when the event was created. | For the full event type catalog and per-event payloads, see the [**Webhooks**](/api-reference/webhooks/create-webhook) documentation in the Developer Platform. ### Verifying signatures [#verifying-signatures] **Dashboard-managed endpoints** Every delivery includes three headers: | Header | Description | | ---------------- | ------------------------------------------------------------------------ | | `svix-id` | Unique ID for the message. Constant across retries of the same event. | | `svix-timestamp` | Unix timestamp (seconds) when the delivery was sent. | | `svix-signature` | Base64-encoded HMAC-SHA256 signature(s) of the delivery. | The signature is an HMAC-SHA256 of `{svix-id}.{svix-timestamp}.{raw request body}` using your endpoint's signing secret. We recommend verifying with the open-source [Svix libraries](https://docs.svix.com/receiving/verifying-payloads/how) rather than implementing this by hand: ```javascript import { Webhook } from "svix"; const wh = new Webhook(process.env.STABLES_WEBHOOK_SECRET); // whsec_... app.post("/webhooks/stables", (req, res) => { try { // Verify against the raw request body, not the parsed JSON. const event = wh.verify(req.rawBody, req.headers); // Process asynchronously after responding. res.status(200).send(); } catch (err) { res.status(400).send(); } }); ``` Verification also rejects stale timestamps, which protects against replay attacks. **API-managed subscriptions** If you set a `secret` on the subscription, each delivery includes an `X-Webhook-Signature` header containing the HMAC-SHA256 of the raw request body with that secret. Reject requests whose signature doesn't match. ### Security best practices [#security-best-practices] * **Verify webhook signatures** on every delivery, as described above. * **Use HTTPS** for your webhook URL and ensure the certificate is valid so traffic and signatures can't be tampered with in transit. * **Store webhook secrets securely** (e.g. environment variables or a secrets manager). Don't hardcode them in source. * **Return 200 quickly** so Stables doesn't treat the delivery as failed and retry. Process the event asynchronously after responding. * **Implement idempotency** using `event_id` so duplicate deliveries or retries don't cause duplicate side effects. * **Log webhook events** (event type, event\_id, and outcome) for debugging and monitoring
### IP Address [#ip-address] Deliveries to API-managed subscriptions originate from a fixed egress IP address per environment. We recommend adding these addresses to your endpoint's allowlist as an extra layer of security, ensuring that incoming webhooks genuinely originate from Stables: | Environment | Egress IP | | ----------- | --------------- | | Production | `54.253.39.1` | | Sandbox | `13.237.39.75` | These addresses are stable. In the unlikely event they change, we will notify you in advance. Dashboard-managed endpoints are delivered from a different, also static, set of IP addresses. Contact us if you need the current allowlist for your environment. ### Inspecting Delivery History [#inspecting-delivery-history] Dashboard-managed endpoints show their full delivery history — including your server's response and manual replay — directly in the **Settings → Webhooks** page. For API-managed subscriptions, use the delivery history endpoint to inspect past delivery attempts — useful for debugging missed events or understanding retry behaviour. Filter by subscription using the `subscriptionId` query parameter. ``` GET /api/v1/webhooks/deliveries ``` Optional query parameters: `subscriptionId`, `status`, `eventType`, `pageSize`, `pageToken`. The response returns a `deliveries` array of `WebhookDeliveryRecord` objects: | Field | Type | Description | | -------------- | ------ | ------------------------------------------------------------ | | `deliveryId` | string | Unique ID for this delivery attempt | | `status` | string | `PENDING`, `PROCESSING`, `RETRYING`, `SUCCESS`, or `FAILED` | | `attemptCount` | number | Number of delivery attempts made so far | | `responseCode` | number | HTTP status code returned by your endpoint (if any) | | `nextRetryAt` | string | ISO 8601 timestamp of the next scheduled retry (if retrying) | | `createdAt` | string | When the delivery was first attempted | Stables retries failed deliveries on an exponential back-off schedule. Once `status` reaches `FAILED`, no further retries are made. ### Next Steps [#next-steps] * Review the [**Webhooks**](/api-reference/webhooks/create-webhook) documentation for the full event type catalog and payload examples * Implement proper error handling and retry logic * Set up monitoring and alerting for webhook failures This completes your webhook integration with Stables. Your application will now receive real-time notifications for customer and payment events and can respond accordingly. # Create your first payment (/get-started/getting-started/quickstart/create-your-first-payment) There are multiple features that support payments. This guide focuses on **Transfers**, but we also offer **Payment Routes**. ### Transfer API [#transfer-api] The Transfer API enables conversion between supported fiat and cryptocurrency currencies. There are two primary transfer types: * **Crypto → Fiat (off-ramp):** Convert cryptocurrency to traditional fiat currency * **Fiat → Crypto (on-ramp):** Convert traditional fiat currency to cryptocurrency The Transfer API supports **crypto → fiat (off-ramp)** transfers. If you'd like to receive and pay out stablecoins, refer to the **Payment Routes** feature. #### 1. Get a Quote [#1-get-a-quote] Before we can initiate the transfer, need to fetch a quote. ```json curl -X POST "https://api.stables.money/api/v1/quotes" \ -H "Authorization: Bearer YOUR_JWT_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "source": { "currency": "usdt", "network": "polygon", "amount": "100.00" }, "destination": { "currency": "aud", "country": "au", "network": "bank" } }' ``` #### 2. Initiate the Transfer [#2-initiate-the-transfer] **Request** ```json curl -X POST "https://api.stables.money/api/v1/transfer" \ -H "Authorization: Bearer YOUR_JWT_TOKEN" \ -H "Idempotency-Key: $(uuidgen)" \ -H "Content-Type: application/json" \ -d '{ "quote_id": "your-quote-id", "customer_id": "your-customer-id", "destination": { "type":"bank", "account_holder_name": "John Smith", "bank_name": "Australian Bank", "account_number": "1111111111", "bank_country": "au", "currency": "aud", "bsb_code": "633333" } }' ``` **Response** ```json { "id": "1997d55d-fcf1-424c-8b64-67ebee6b7795", "tenant_id": "your-tenant-id", "customer_id": "your-customer-id", "quote_id": "your-quote-id", "type": "offramp", "status": "created", "created_at": "2026-04-01T05:44:38.759Z", "updated_at": "2026-04-01T05:44:38.759Z", "source_deposit_instructions": { "wallet_address": "0xf2B14C1A5AFc4feaA50454C9Fb91f30bf03a0EE0", "currency": "usdt", "network": "polygon", "amount": "100" }, "destination": { "amount": "133.52", "currency": "aud", "network": "bank", "account_holder_name": "John Smith", "bank_name": "Australian Bank", "account_number": "1111111111", "bank_country": "au", "bsb_code": "633333" }, "fees": { "fx_fee": { "amount": "0.19", "currency": "usd" }, "integrator_fee": { "amount": "0.1", "currency": "usd" }, "platform_fee": { "amount": "0.12", "currency": "usd" }, "payment_method_fee": { "amount": "5", "currency": "usd" }, "network_fee": { "amount": "0.50", "currency": "usd" }, "total_fee": { "amount": "5.91", "currency": "usd" } }, "exchange_rate": 1.40000000, "origin": "api" } ``` Quotes have a short expiry — check `expires_at` in the quote response and create a fresh quote if it has passed before initiating the transfer. You can share the `source_deposit_instructions` with your customer. They will need to initiate a transaction of the specified **amount**, on the **network** to the given **wallet address**. Once the stablecoins have been sent to the collection wallet, Stables will process the payment and send the funds to the bank account. **Additional response fields** The full `TransferResponse` may also include: * `metadata`: the metadata you attached when creating the transfer * `destination.beneficiary_id`: the saved [beneficiary](/developer-platform/payments/transfers/beneficiaries) this transfer paid * `source`: details of the funding source, when known * `compliance_hold`: present while the transfer is held for a compliance review, with the `rfi_id` and the outstanding `requirements` ### Paying the same recipient again [#paying-the-same-recipient-again] Stables saves every bank account you pay as a beneficiary. To pay the same recipient next time, send a `beneficiary` destination with the `beneficiary_id` from the first transfer instead of repeating the bank details: ```json "destination": { "type": "beneficiary", "beneficiary_id": "" } ``` See [Beneficiaries](/developer-platform/payments/transfers/beneficiaries) for how beneficiaries are matched, validated and archived. ### Next Steps [#next-steps] After creating your first payment 1. **Test the complete flow** in your development environment 2. **Set up webhooks** to receive real-time status updates for about your payments
# Get started with Stables (/get-started/getting-started/quickstart) #### Step 1: Setup your Stables Developer Account [#step-1-create-a-bridge-account] To get started, contact our team to begin onboarding for your Stables Developer account. We’ll walk you through the setup process and provision your environments. #### Step 2: Create your API keys [#step-2-create-your-api-keys] Once logged in, navigate to the **API Keys** section from the left sidebar navigation. Safely store your API keys Stables will make your **API key available only once**, so make sure to **immediately copy and save the key safely and securely**. Your key is used to authenticate into our APIs and is highly sensitive. If it ever gets compromised, you can immediately revoke key access from our dashboard and generate a new key. #### Step 3: Follow our Quickstart Guides [#step-3-follow-our-guides-and-start-moving-money] [**Create your first customer** ](/get-started/getting-started/quickstart/onboard-your-first-customer)- This guide walks you through creating your first customer and getting them verified [**Create your first payment**](/get-started/getting-started/quickstart/create-your-first-payment) - This guide walks you through moving funds onchain through a bank [**Setting up webhooks**](/get-started/getting-started/quickstart/configure-webhooks) - This guide walks you through setting up and using Stables webhooks to handle customer events in your application. [**Postman collection**](/api-reference/postman-collection) - Download a Postman collection with every endpoint and these flows ready to run. # Onboard your first customer (/get-started/getting-started/quickstart/onboard-your-first-customer) A **Stables Customer** represents an end user of your business who can send and receive money across fiat and stablecoin rails. Customers are at the core of the Stables platform. Every action is tied to the customer, making customer creation the first step before value can move. There are two types of customers: * **Individual** – A natural person transacting in their own capacity * **Business** – A legal entity transacting on behalf of an organisation #### Key Terms [#key-terms] * **KYC/KYB (Know Your Customer/Business)**: Identity verification process required for compliance * **Entitlements**: Represent an approval for a customer to transact on a specific rail. ### Create a customer via the Customers API [#create-a-customer-via-the-customers-api] Create your first customer by sending a request to the **Customers API.** A customer can be created with minimal information, such as a name and email address. However, to enable the customer to transact, you must request the appropriate **entitlement** and provide the required **KYC/KYB data.** In the example below, we request the `base_payout` entitlement and include the necessary verification details, such as date of birth and identity document information. This will submit the customer for review and enable them for payouts once approved. See the request example below: ```json curl -X POST "https://api.stables.money/api/v1/customer" \ -H "Authorization: Bearer YOUR_JWT_OR_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ # or any UUID v4 -d '{ "customer_type": "individual", "external_customer_id": "your", "email": "user@example.com", "phone": "+14155552671", "entitlements": ["base_payout", "virtual_account"], "metadata": { "source": "api", "ref": "order-123" }, "first_name": "John", "last_name": "Doe", "middle_name": "Michael", "dob": "1990-01-15", "nationality": "US", "address": { "line1": "123 Main Street", "line2": "Apt 4B", "city": "San Francisco", "state": "CA", "postal_code": "94105", "country": "US" }, "id_documents": [ { "document_type": "PASSPORT", "front_image_data": "BASE64_ENCODED_FRONT_IMAGE_DATA", "back_image_data": "BASE64_ENCODED_BACK_IMAGE_DATA", "country": "US" } ], "selfie_photo": { "data": "BASE64_ENCODED_SELFIE_IMAGE_DATA" } }' ``` ### Next Steps [#next-steps] After creating your first customer: 1. **Test the complete flow** in your development environment 2. **Handle edge cases** like rejections and additional requirements 3. **Set up webhooks** to receive real-time status updates for customers 4. **Review security practices** to protect customer data # Production checklist (/get-started/getting-started/quickstart/production-checklist) Before going live, complete the following steps to ensure your integration is ready for the production environment. ### Step 1: Generate a Production API Key [#step-1-generate-a-production-api-key] Note: only dashboard admins can generate API Keys * Login to your Stables Dashboard on **Production** * Navigate to the **API Keys** section from the left sidebar navigation. * Production keys should be prefixed with `sti_live_` ### Step 2: Whitelist Your IP Address [#step-2-whitelist-your-ip-address] This is required before your production API key will work. Requests from non-whitelisted IPs will be rejected. * In the Stables Dashboard, go to **Settings** * Navigate to the **Security** or **API** section * Add the IP address(es) of your server(s) to the allowlist This ensures only your infrastructure can use your production API key. ### Step 3: Configure Webhooks [#step-3-configure-webhooks] Make sure you've set up your webhooks before going live so you can receive real-time event notifications. See [Configure webhooks](/get-started/getting-started/quickstart/configure-webhooks) for details. If you have any questions about going live, reach out to us at **team@stables.money**! # Setup a sandbox environment (/get-started/getting-started/quickstart/setup-a-sandbox-environment) Stables provides a sandbox environment that lets you quickly test your integration without moving real money. To get started, create a Stables Developer account, where you can generate your sandbox API keys. ### Step 1: Generate a Sandbox Key [#step-1-generate-a-sandbox-key] Note only dashboard admins can generate API Keys * Login to the your Stables Developer Platform on **Sandbox** * Navigate to **API Keys** section from the left sidebar navigation. * Sandbox keys should be prefixed with `sti_test_` ### Step 2: Hit an API [#step-2-hit-an-api] Stables sandbox is currently functional with the customer creation and KYC process. For example, here is how you can create a Stables customer. Note that the sandbox base url is https://api.sandbox.stables.money ```json curl -X POST "https://api.sandbox.stables.money/api/v1/customer" \ -H "Authorization: Bearer YOUR_JWT_OR_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ # or any UUID v4 -d '{ "customer_type": "individual", "external_customer_id": "your", "email": "user@example.com", "phone": "+14155552671", "entitlements": ["base_payout", "virtual_account"], "metadata": { "source": "api", "ref": "order-123" }, "first_name": "John", "last_name": "Doe", "middle_name": "Michael", "dob": "1990-01-15", "nationality": "US", "address": { "line1": "123 Main Street", "line2": "Apt 4B", "city": "San Francisco", "state": "CA", "postal_code": "94105", "country": "US" }, "id_documents": [ { "document_type": "PASSPORT", "front_image_data": "BASE64_ENCODED_FRONT_IMAGE_DATA", "back_image_data": "BASE64_ENCODED_BACK_IMAGE_DATA", "country": "US" } ], "selfie_photo": { "data": "BASE64_ENCODED_SELFIE_IMAGE_DATA" } }' ``` Prefer to explore in Postman? Download the [Postman collection](/api-reference/postman-collection): it has this request and the other key flows ready to run against sandbox. ### Differences with Production [#differences-with-production] The Sandbox is best suited for validating API request and response schemas. For all other testing scenarios, we recommend using the Production environment directly. **Onboarding/KYC** * **Individual customers** are automatically approved in sandbox, provided you use the correct sample documents * **Business customers** are reviewed automatically in sandbox: a verification waiting for review is approved a few seconds after it is submitted. To test resubmission or rejection, put `+kyc_retry` or `+kyc_reject` in the customer's email (see [Test scenarios in sandbox](/get-started/getting-started/quickstart/setup-a-sandbox-environment/test-scenarios-in-sandbox)) * Stables uses [Sumsub](https://sumsub.com/) for verification processing. See [Sandbox Test Documents](/get-started/getting-started/quickstart/setup-a-sandbox-environment/sandbox-test-documents) for the specific sample documents that simulate approval, resubmission, and rejection * Sandbox is subject to arbitrary rate limits; we may drop your requests anytime. **Payments** * There is no real money movement in Sandbox. * Testnets are not supported If you have suggestions on how to improve our sandbox experience, please reach out to us at **team@stables.money**! ### Simulating Payment Route Deposits [#simulating-payment-route-deposits] The sandbox exposes a deposit simulation endpoint that lets you trigger payment route deposit events without moving real money. This is essential for testing payment route flows end-to-end. To simulate transfer and balance deposits, and to test RFIs and review outcomes, see [Test scenarios in sandbox](/get-started/getting-started/quickstart/setup-a-sandbox-environment/test-scenarios-in-sandbox). ``` POST /api/v1/customers/{customerId}/virtual-accounts/{virtualAccountId}/sandbox/simulate-deposit ``` **Request fields** | Field | Type | Required | Description | | ------------------ | ------ | -------- | -------------------------------------------------------------------------------- | | `amount` | string | Yes | Deposit amount (e.g. `"100.00"`) | | `scenario` | string | No | `create_only` (event only), `completed` (full payout, the default), or `failed` (failed flow) | | `sender_name` | string | No | Simulated sender name | | `sender_reference` | string | No | Simulated sender reference / payment description | **Example** ```json curl -X POST "https://api.sandbox.stables.money/api/v1/customers/{customerId}/virtual-accounts/va_123/sandbox/simulate-deposit" \ -H "Authorization: Bearer YOUR_JWT_OR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "amount": "250.00", "scenario": "completed", "sender_name": "Jane Smith", "sender_reference": "Invoice #42" }' ``` # Sandbox Test Documents (/get-started/getting-started/quickstart/setup-a-sandbox-environment/sandbox-test-documents) Stables uses [Sumsub](https://sumsub.com/) to process identity verification. When testing KYC in the sandbox, use the test document templates below to simulate different verification outcomes. These are test documents only. Never submit them, or any other synthetic documents, in the Production environment. ### How to test [#how-to-test] 1. Confirm you're using a sandbox API key (`sti_test_...`) against `https://api.sandbox.stables.money`. 2. Reference one of the test documents below as the `id_documents` or proof-of-address payload when creating or updating a customer. 3. Observe the resulting `verification_levels[].status` and `verification_levels[].sub_status` on the customer record. The API returns lowercase statuses (`approved`, `requires_action`, `rejected`); the `VERIFICATION_*` names below are the forms sent in `kyc_link.updated.status_transitioned` webhooks. ### Documents that auto-approve [#documents-that-auto-approve] Use these to simulate a successful `VERIFICATION_APPROVED` outcome: | Document | Sides | | -------------------------------------------- | ------------- | | China ID Card | Front & back | | India Aadhaar | Front & back | | Germany ID Card | Front & back | | Germany Passport | Single page | | Germany Proof of Address (approved variant) | Single page | ### Documents that trigger resubmission [#documents-that-trigger-resubmission] Use these to simulate a `VERIFICATION_REQUIRES_ACTION` outcome, where the applicant must correct and resubmit: | Document | Sides | | -------------------------------------------- | ------------- | | California Driver's License | Front & back | | Spain ID Card | Front & back | | Germany Proof of Address (rejected variant) | Single page | ### Documents that trigger final rejection [#documents-that-trigger-final-rejection] Use these to simulate a terminal `VERIFICATION_REJECTED` outcome, with no resubmission allowed: | Document | Sides | | -------------------------------- | ------------- | | Cyprus ID Card | Front & back | | USA Electricity Bill (proof of address) | Single page | ### Notes [#notes] * Sumsub's verification engine recognizes documents in a wide range of languages and character sets, so equivalent test templates for other supported countries behave the same way. * These templates are most useful for exercising **individual (KYC)** verification-state transitions end-to-end. A **business** verification waiting for review is approved automatically; to test other outcomes for either customer type, use the email tags in [Test scenarios in sandbox](/get-started/getting-started/quickstart/setup-a-sandbox-environment/test-scenarios-in-sandbox). * The downloadable sample image files themselves are hosted by Sumsub — see [Sumsub's verification document templates](https://docs.sumsub.com/docs/verification-document-templates) page. # Test scenarios in sandbox (/get-started/getting-started/quickstart/setup-a-sandbox-environment/test-scenarios-in-sandbox) Sandbox runs the same payment and compliance flow as production, but no money moves. You trigger the events that would normally come from outside (an incoming deposit, an on-chain transfer), and a sandbox reviewer makes the decisions Stables compliance makes in production. You choose the outcome with a `scenario` on the simulate request, or with test values the way you would use test card numbers: the amount of a payment, the sender wallet of a deposit, or a tag in a customer's email. The sandbox reviewer waits a few seconds before it decides, so you can see the held state first. Listen for [webhooks](/developer-platform/customer/customer/webhooks) or poll the resource rather than expecting the final status in the simulate response. ### Scenarios at a glance [#scenarios-at-a-glance] | Area | Test value | Outcome | | --- | --- | --- | | Transfer | Simulate the deposit with `scenario`: `completed` (default) | Completes | | Transfer | Simulate the deposit with `scenario`: `rfi_approved` | Held with a source-of-funds RFI. Approved once you answer it, then completes | | Transfer | Simulate the deposit with `scenario`: `rfi_rejected` | Held with a source-of-funds RFI. Rejected once you answer it, and the transfer fails | | Transfer or payment route | Worth **USD 1313.00 to 1313.99** | Held with a source-of-funds RFI. Approved once you answer it, then completes | | Transfer or payment route | Worth **USD 1314.00 to 1314.99** | Held with a source-of-funds RFI. Rejected once you answer it, and the payment fails | | Payment route deposit | `scenario`: `completed`, `failed` or `create_only` | Deposit paid out, failed, or recorded as pending | | Balance deposit | Sender is a whitelisted wallet | Credited | | Balance deposit | Sender is not whitelisted | Held for review, then approved and credited | | Balance deposit | Sender address ends in `dead` | Held for review, then rejected. Nothing is credited | | Balance whitelisted wallet | Wallet label contains `+reject` | Rejected by review. Any other label is approved | | Balance withdrawal | Any | Waits for approval in the dashboard, as in production | | Customer verification | Email local part contains `+kyc_retry` or `+kyc_reject`, for example `jane+kyc_reject@example.com` | A verification waiting for review is sent back for resubmission, or rejected. With any other email it is approved | For document-based verification outcomes, see [Sandbox Test Documents](/get-started/getting-started/quickstart/setup-a-sandbox-environment/sandbox-test-documents). ### Transfers [#transfers] #### Simulate the deposit [#simulate-the-deposit] After you create a transfer, it waits for the customer's deposit. Simulate that deposit to start processing: ``` POST /api/v1/transfers/{transferId}/sandbox/simulate-deposit ``` | Field | Type | Required | Description | | --- | --- | --- | --- | | `scenario` | string | No | `completed` (default), `rfi_approved` or `rfi_rejected`. See [Test an RFI](#test-an-rfi). | | `from_address` | string | No | Sender wallet of the simulated crypto deposit. Used by the Travel Rule check on offramps. | The request needs an `Idempotency-Key` header. A `202` response means the deposit was accepted: ```json { "transfer_id": "8f0f6c1e-...", "simulation_id": "2b7d9a40-...", "scenario": "completed", "deposit_status": "completed" } ``` ```bash curl -X POST "https://api.sandbox.stables.money/api/v1/transfers/{transferId}/sandbox/simulate-deposit" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -H "Idempotency-Key: $(uuidgen)" \ -d '{ "scenario": "rfi_approved" }' ``` Things to know: * The deposit is always for the transfer's full amount. You cannot simulate an under- or over-payment. * You can simulate a deposit once, while the transfer is still waiting for it. A second call, or a call on a transfer that has moved on, returns `409`. * A transfer paid from your balance is funded when you create it, so there is no deposit to simulate and no scenario to pick. * After the deposit, conversion and payout always succeed in sandbox. The only way to make a transfer fail is an RFI that is rejected. #### Offramps: the sender wallet [#offramps-the-sender-wallet] On an offramp, Stables runs a Travel Rule check against the wallet the crypto came from. If you leave `from_address` out, sandbox uses a sender wallet shaped for the deposit's network, so the check can pass. Pass `from_address` when you want to test with a specific wallet. #### Test an RFI [#test-an-rfi] Pick the outcome when you simulate the deposit: 1. Create a transfer of any amount, funded by a deposit. 2. Simulate the deposit with `"scenario": "rfi_approved"` (to test approval) or `"scenario": "rfi_rejected"` (to test rejection). The transfer is held: its `compliance_hold` object names the RFI and its outstanding requirements, and you receive `rfi.created` and `transfer.action_required`. 3. Read the RFI with [Get RFI](/api-reference/compliance-requests-rfis/get-rfi) and answer each requirement with [Submit Evidence](/api-reference/compliance-requests-rfis/submit-evidence). 4. A few seconds after the RFI reaches `submitted`, the sandbox reviewer decides it. With `rfi_approved` the RFI is approved and the transfer completes. With `rfi_rejected` it is rejected (final) and the transfer fails. You can also choose the outcome with the amount. A transfer worth USD 1313.00 to 1313.99 when you create it is held and approved the same way, and one worth USD 1314.00 to 1314.99 is held and rejected, even if you simulate its deposit with `completed`. For USDC, USDT or USD, that is the amount you send. For other currencies, choose an amount whose USD value at the current rate lands in the middle of the range. The reviewer only decides RFIs you have answered. An RFI you leave open stays open. See [Requests for Information](/developer-platform/customer/compliance/requests-for-information) for the full RFI flow. If an RFI scenario completes without an RFI, transaction risk checks are switched off for your sandbox organization. Contact **team@stables.money** to switch them on. ### Payment routes (virtual accounts) [#payment-routes-virtual-accounts] Simulate an incoming bank deposit with: ``` POST /api/v1/customers/{customerId}/virtual-accounts/{virtualAccountId}/sandbox/simulate-deposit ``` See [Setup a sandbox environment](/get-started/getting-started/quickstart/setup-a-sandbox-environment#simulating-payment-route-deposits) for the request fields. The `scenario` field picks the outcome: | `scenario` | Outcome | | --- | --- | | `completed` (default) | The deposit is recorded and paid out to the payment route's destination | | `failed` | The deposit is recorded and its collection fails | | `create_only` | The deposit is recorded and left pending; nothing is paid out | Things to know: * `completed` and `failed` run the payout flow, so they need a virtual account that pays out automatically. `create_only` works on any virtual account. * The RFI ranges apply to deposits too. They are checked against the full deposit amount in USD, before fees. ### Balance [#balance] Fund your balance without an on-chain transfer: ``` POST /api/v1/prefund/wallet/{network}/sandbox/simulate-deposit ``` | Field | Type | Required | Description | | --- | --- | --- | --- | | `amount` | string | Yes | Amount in major units, for example `"250"` or `"250.5"`. At most 6 decimal places. | | `currency` | string | Yes | `USDC` or `USDT`. Tron holds USDT only. | | `sender_address` | string | No | On-chain sender. Defaults to your first active whitelisted wallet on the network. | | `tx_hash` | string | No | Transaction hash to record. Defaults to a new one on each call. | The sender decides what happens: * **Whitelisted wallet** (or `sender_address` left out while you have one): credited. * **Wallet that is not whitelisted**: held for review, then approved and credited a few seconds later. If you have no whitelisted wallet on the network and leave `sender_address` out, this is what happens. * **Address ending in `dead`**: held for review, then rejected. Nothing is credited. A `202` response returns the `deposit_id` that the ledger entry and webhooks carry: ```json { "deposit_id": "...", "tx_hash": "...", "workflow_id": "...", "status": "started" } ``` ```bash curl -X POST "https://api.sandbox.stables.money/api/v1/prefund/wallet/polygon/sandbox/simulate-deposit" \ -H "Authorization: Bearer YOUR_API_KEY" \ -H "Content-Type: application/json" \ -d '{ "amount": "1000", "currency": "USDC" }' ``` Things to know: * You need an active deposit wallet on the network first. Without one, the call returns `409` with code `PREFUND_WALLET_NOT_ACTIVE`. See [Balance Deposit Wallet](/api-reference/balances/balance-deposit-wallet). * Sending the same `tx_hash` again is idempotent: the response has `status: "duplicate"` and the original deposit is reused. * Withdrawals are never approved automatically. Approve them in the dashboard, as in production. ### In the dashboard [#in-the-dashboard] The same simulations are available in the sandbox dashboard: * **Transfers**: open a transfer that is waiting for its deposit, click **Simulate deposit**, and choose **Completes**, **RFI → approved** or **RFI → rejected**. Transfers paid from your balance don't show it. * **Payment routes**: open a virtual account and use the **Simulate** tab. * **Balances**: go to **Add funds**, pick the coin and network, click **Simulate deposit** under the deposit address, and enter an amount. The dashboard credits the deposit from your first whitelisted wallet; to test review outcomes, call the API with `sender_address`. If you don't see these buttons, ask an admin of your organization for permission to simulate sandbox deposits. # Choose Your Integration Style (/get-started/guides/choose-your-integration-style) #### **Headless Integration** [#headless-integration] Full control over UI + logic.\ You handle UX, Stables handles compliance & settlement. #### **Hosted Workflows** [#hosted-workflows-] Redirect users to Stables-hosted forms for: * KYC * KYB * SOF/SOW * Document uploads Useful for fast launches or regulated environments. # Environments (/get-started/guides/environments) Stables provides: #### **Sandbox** [#sandbox] * Simulate transfers and KYC flows without moving real money (testnets not supported) * Fake KYC documents accepted * Simulated FX quotes * Mock webhooks #### **Production** [#production] * Real payment rails * Real identity verification * Full compliance & risk logic * Settlement guarantees # How the Platform Is Structured (/get-started/guides/how-the-platform-is-structured) The Stables API is built around four pillars: | Pillar | Purpose | | -------------- | ------------------------------------------------------ | | **Identity** | Onboard and verify individuals or businesses (KYC/KYB) | | **Compliance** | Automated SOF/SOW, risk rules, sanctions screening | | **Quotes** | Retrieve guaranteed FX conversions and payment routes | | **Payments** | Execute transfers across stablecoin and bank rails | Everything else — webhooks, audit logs, customer management, cards — is built on top of these primitives. *** ### **Integration Philosophy** [#integration-philosophy] We follow three principles: #### **1. Everything is API-first** [#1-everything-is-api-first] All functionality (onboarding → payments → settlement) is available as endpoints. Nothing is hidden behind dashboards. #### **2. Compliance is built-in** [#2-compliance-is-built-in] Your app doesn’t need to understand AML rules, KYC levels, regional restrictions, or document requirements.\ Return values like: ``` kyc_required sof_required restricted_region ``` let your app decide what to show next — Stables handles the heavy lifting. #### **3. Webhooks are the source of truth** [#3-webhooks-are-the-source-of-truth] Since compliance, KYB, risk checks, and payments are asynchronous, your system must rely on: ``` kyc.updated payment.updated customer.updated ``` to determine user state and payment success. # Use Cases (/get-started/guides/use-cases) Build global money movement using stablecoins, bank rails, and programmable payments — through a unified API. The Stables Developer Platform gives you everything you need to onboard users, verify identities, generate quotes, execute payments, issue cards, and orchestrate global payouts across 150+ countries. Our goal is simple: **make stablecoin payments behave like modern internet APIs**, without requiring your team to understand crypto, banking compliance, or global settlement mechanics. *** ### **What You Can Build** [#what-you-can-build] With one integration, you can enable the following use cases: #### **Global Stablecoin Payments** [#global-stablecoin-payments] Send and receive USDT, and other stablecoins across supported chains with automatic validation, on-chain monitoring, and risk controls. #### **Multi-Currency Fiat Payouts** [#multi-currency-fiat-payouts] Payout to bank accounts (ACH, SEPA, FPS, local rails), wallets, cards, or cash-out agents — depending on your region and licensing. #### **Cross-Border FX** [#cross-border-fx] Request real-time quotes and convert currency using bank or stablecoin rails with guaranteed settlement flows. #### **Compliance-Aware Workflows** [#compliance-aware-workflows] Use our KYC, KYB, SOF/SOW and risk workflows directly from the API - no need for a compliance team or third-party tools. #### **Agentic Programmable Payments** [#agentic-programmable-payments] Trigger payments, approvals, or recurring financial actions using intent-based workflows. # Welcome (/get-started) **Welcome to Stables - the infrastructure layer for stablecoin-powered payments.**\ Stables enables fast, compliant movement between digital assets and traditional fiat rails, helping you seamlessly bridge crypto and real-world banking infrastructure. The **Stables Developer Platform** is designed for fintech applications, payment platforms, and businesses that require secure, compliant, and globally scalable stablecoin settlement infrastructure. This section gives you a **high-level introduction** to the API, its core concepts, and provides a guide on how to structure your integration. ### What you can build with Stables [#what-you-can-build-with-stables] * **Send & receive payments**\ Move funds globally using fiat rails, stablecoins, or supported digital assets. * **Payment routes**\ Instantly issue AUD deposit accounts for your users with local bank details (USD, EUR, and GBP coming soon). *** ### Get started [#get-started] Here's a quick guide to help you find what you need: }> Get up and running with our API in minutes. }> Detail documentation on our developer platform }> Detailed endpoint documentation with request/response schemas. ### Key platform components [#key-platform-components] The Stables developer platform includes flexible and simple APIs to power your use cases. }> A user of your platform. }> Regulatory checks required before a customer can transact. }> A movement of value — on-chain or via fiat rails — initiated after a valid quote. }> A real-time notification of events such as payments and verification statuses. ### Getting Help [#getting-help] We're excited to have you build with us! If you have questions, run into issues, or just want to say hi, you can contact us at **team@stables.money** or visit our Support Page # Developer Platform (/)

Build compliant stablecoin payments infrastructure.

APIs and tools for developers and agents to move money globally - securely and at scale.

Get Started

### Get Started [#get-started] }> Connect to the Stables API using your Sandbox credentials. }> Create a user and verify their identity to get them transacting safely }> Easily create onramps, offramps transfers using our payment APIs. }> Webhooks allow Stables to notify your backend when important events occur }> Connect Claude, ChatGPT, and other AI assistants to the Stables API using MCP. ### Learn more about Stables developers platform [#learn-more-about-stables-developers-platform] Read guides, watch tutorials, and learn more about working with the developer platform and integrating it with your own stack. }>Guides }>Documentation