Guides

External Accounts

Before creating exchange orders, you must register your customer's external accounts — the bank accounts and crypto wallets that will serve as the source or destination of funds.

  • Bank accounts — used for fiat transfers via SEPA, SWIFT, ACH and Wire, and for local payment methods
  • Crypto wallets — used for digital asset transfers on blockchain networks

Bank Accounts

An account is registered for one payment scheme. The Coverage page lists the routes the platform runs now; Wire and local methods open per corridor, so ask us before registering an account for them.

Create a Bank Account

Register a customer's bank account for the payment scheme the money moves on. One record describes one scheme: a SEPA account cannot carry ACH or FedWire details, and a US account cannot be used for SEPA. The number of bank accounts and wallets a customer can have is set by your account configuration; when the cap is reached the API answers 400 with the reason in message.

Endpoint:

POST /v1/customers/{customer_uuid}/bank-accounts/

Request Body:

FieldTypeRequiredDescription
supported_railsstringNoPayment schemes this account is used for: sepa, swift, ach, wire (FedWire). Omitted or null means sepa. SEPA takes a separate record from ACH and FedWire
ibanstringConditionalCustomer's IBAN for SEPA, spaces allowed. For ACH, FedWire and SWIFT send account_number
account_numberstringConditionalBeneficiary account number for ACH, FedWire and SWIFT
holder_namestringYesAccount holder name. It must match the bank account
bank_countrystringConditionalISO 3166-1 alpha-3 country of the bank (DEU). Required for ACH, FedWire and US SWIFT, where it must be USA; for SEPA it is taken from the IBAN
bank_codestringConditionalBank BIC. Required for SWIFT; for SEPA derived from the IBAN when omitted or blank. Not used for ACH and FedWire
bank_routing_numberstringConditional9-digit ABA routing number. Required for US payments: ACH, FedWire and US SWIFT
bank_namestringNoBank name. For SEPA derived from the IBAN when omitted or blank
bank_addressstringNoBank address
bank_citystringNoBank city
bank_postal_codestringNoBank postal code
bank_regionstringNoBank state or region
holder_countrystringNoAccount holder country
holder_citystringNoAccount holder city
holder_streetstringNoAccount holder street and house number
holder_postal_codestringNoAccount holder postal code
holder_regionstringNoAccount holder state or region
namestringNoFriendly label for the account (e.g., "Main EUR Account")
is_third_partybooleanNotrue when the account belongs to someone other than the customer, for example a supplier. Defaults to false
receiver_typestringConditionalindividual or company: who owns a third-party account. Required when is_third_party is true, must be omitted otherwise

What to send for each payment scheme:

Schemesupported_railsAccountBankHolder
SEPA (EUR)["sepa"] or omittedibanbank_code and bank_name optional, bank_country from the IBANholder_name
SWIFT (non-US)["swift"]account_numberbank_code, bank_country, bank_name, bank_address, bank_city, bank_postal_codeholder_name, holder_country, holder_city, holder_street, holder_postal_code
SWIFT (US)["swift"]account_number, numericbank_code with a US country code, bank_country: "USA", bank_routing_number, address fieldsholder_name, holder_country, holder_city, holder_street, holder_postal_code, holder_region
ACH (USD)["ach"]account_number, numericbank_country: "USA", bank_routing_number, bank_nameholder_name, holder_country, holder_city, holder_street, holder_postal_code
FedWire (USD)["wire"]account_number, numericbank_country: "USA", bank_routing_number, bank_nameholder_name, holder_country, holder_city, holder_street, holder_postal_code

Third-party accounts. Mark the account as someone else's when it is not the customer's own: send is_third_party: true and receiver_type. Payouts to such an account above the invoice threshold ask for a supporting document — the order reports it with third_party_document_required; see Third-Party Payouts and the Invoice. An account marked as the customer's own, which is the default, must carry the customer's name as the holder exactly: any other name is rejected with 400, so register such an account as third-party.

The bank decides which details it needs to execute a payout. The address fields are optional in the API, but for SWIFT and US payouts the bank can require the holder's address and the bank's address. A payout without them is rejected when the order is executed, and the order fails. Send them when you register the account.

Request: SEPA account

curl https://api.stablegate.com/v1/customers/c1d2e3f4-a5b6-7c8d-9e0f-1a2b3c4d5e6f/bank-accounts/ \
  --request POST \
  --header 'X-Api-Key: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "iban": "DE89370400440532013000",
  "holder_name": "Max Mustermann",
  "name": "Main EUR Account",
  "bank_name": "Commerzbank",
  "bank_code": "COBADEFFXXX"
}'

Request: SWIFT account

curl https://api.stablegate.com/v1/customers/c1d2e3f4-a5b6-7c8d-9e0f-1a2b3c4d5e6f/bank-accounts/ \
  --request POST \
  --header 'X-Api-Key: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "supported_rails": [
    "swift"
  ],
  "account_number": "001234567890",
  "holder_name": "John Smith",
  "holder_country": "GB",
  "holder_city": "London",
  "holder_street": "10 Downing Street",
  "holder_postal_code": "SW1A 2AA",
  "bank_country": "GBR",
  "bank_code": "BARCGB22",
  "bank_name": "Barclays Bank",
  "bank_address": "1 Churchill Place",
  "bank_city": "London",
  "bank_postal_code": "E14 5HP",
  "name": "GBP account"
}'

Request: US account for ACH

curl https://api.stablegate.com/v1/customers/c1d2e3f4-a5b6-7c8d-9e0f-1a2b3c4d5e6f/bank-accounts/ \
  --request POST \
  --header 'X-Api-Key: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "supported_rails": [
    "ach"
  ],
  "account_number": "000123456789",
  "holder_name": "John Smith",
  "holder_country": "US",
  "holder_city": "New York",
  "holder_street": "350 Fifth Avenue",
  "holder_postal_code": "10118",
  "bank_country": "USA",
  "bank_routing_number": "021000021",
  "bank_name": "JPMorgan Chase",
  "name": "USD account"
}'

Response:

{
  "uuid": "ba1c2d3e-4f5a-6b7c-8d9e-0f1a2b3c4d5e",
  "name": "Main EUR Account",
  "iban": "DE89370400440532013000",
  "account_number": null,
  "supported_rails": ["sepa"],
  "bank_name": "Commerzbank",
  "bank_code": "COBADEFFXXX",
  "bank_country": "DEU",
  "bank_address": null,
  "bank_city": null,
  "bank_postal_code": null,
  "bank_region": null,
  "bank_routing_number": null,
  "holder_name": "Max Mustermann",
  "holder_country": null,
  "holder_city": null,
  "holder_street": null,
  "holder_postal_code": null,
  "holder_region": null,
  "created_at": "2025-01-15T10:30:00.000Z",
  "updated_at": "2025-01-15T10:30:00.000Z"
}

For a SEPA account bank_code and bank_name are filled from an offline bank registry, so most consumer flows need only the IBAN and the holder name. When the registry has no BIC for the IBAN — common for EMIs and fintechs — the request fails and you pass bank_code yourself:

{
  "trace_id": "de104ee1-da4e-4eeb-a5e6-aded99b3f417",
  "error_code": "devapi_bank_code_required_error",
  "message": "Bank code (BIC) is not available for this IBAN, pass bank_code explicitly"
}

Use Look Up a Bank by IBAN to check in advance what the registry knows.

Look Up a Bank by IBAN

Returns the BIC, bank name and country the registry holds for an IBAN — the same values that are filled in when you create a bank account without bank_code.

Endpoint:

GET /v1/bank-accounts/info-by-iban/?iban={iban}

Query Parameters:

ParameterTypeRequiredDescription
ibanstringYesIBAN to look up, spaces allowed

Request:

curl 'https://api.stablegate.com/v1/bank-accounts/info-by-iban/?iban=DE89370400440532013000' \
  --header 'X-Api-Key: YOUR_API_KEY'

Response:

{
  "bank_name": "Commerzbank",
  "bank_code": "COBADEFFXXX",
  "bank_country": "DEU"
}
FieldTypeDescription
bank_namestring | nullBank name; null when the registry has no usable entry for the IBAN
bank_codestring | nullBank BIC; null when the registry has no entry for the IBAN
bank_countrystring | nullISO 3166-1 alpha-3 country code taken from the IBAN

An IBAN that cannot be parsed answers 400 with error_code: devapi_iban_parse_error.

List Bank Accounts

Retrieve all registered bank accounts for a customer.

Endpoint:

GET /v1/customers/{customer_uuid}/bank-accounts/

Request:

curl https://api.stablegate.com/v1/customers/c1d2e3f4-a5b6-7c8d-9e0f-1a2b3c4d5e6f/bank-accounts/ \
  --header 'X-Api-Key: YOUR_API_KEY'

Response:

[
  {
    "uuid": "ba1c2d3e-4f5a-6b7c-8d9e-0f1a2b3c4d5e",
    "name": "Main EUR Account",
    "iban": "DE89370400440532013000",
    "account_number": null,
    "supported_rails": ["sepa"],
    "bank_name": "Commerzbank",
    "bank_code": "COBADEFFXXX",
    "bank_country": "DEU",
    "bank_address": null,
    "bank_city": null,
    "bank_postal_code": null,
    "bank_region": null,
    "bank_routing_number": null,
    "holder_name": "Max Mustermann",
    "holder_country": null,
    "holder_city": null,
    "holder_street": null,
    "holder_postal_code": null,
    "holder_region": null,
    "created_at": "2025-01-15T10:30:00.000Z",
    "updated_at": "2025-01-15T10:30:00.000Z"
  }
]

Get a Bank Account

Retrieve a specific bank account by its UUID.

Endpoint:

GET /v1/customers/{customer_uuid}/bank-accounts/{account_uuid}/

Request:

curl https://api.stablegate.com/v1/customers/c1d2e3f4-a5b6-7c8d-9e0f-1a2b3c4d5e6f/bank-accounts/ba1c2d3e-4f5a-6b7c-8d9e-0f1a2b3c4d5e/ \
  --header 'X-Api-Key: YOUR_API_KEY'

Update a Bank Account

Replace the details of an existing bank account. The request body is the same as for creating an account, with the same per-scheme rules: send the complete set of fields, because a field you leave out is cleared rather than kept. The third-party fields are the exception: leave is_third_party and receiver_type out to keep the stored values, or send them to change the flag.

Endpoint:

PUT /v1/customers/{customer_uuid}/bank-accounts/{account_uuid}/

Request: SEPA account

curl https://api.stablegate.com/v1/customers/c1d2e3f4-a5b6-7c8d-9e0f-1a2b3c4d5e6f/bank-accounts/ba1c2d3e-4f5a-6b7c-8d9e-0f1a2b3c4d5e/ \
  --request PUT \
  --header 'X-Api-Key: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "iban": "DE89370400440532013000",
  "holder_name": "Max Mustermann",
  "name": "Primary EUR Account",
  "bank_name": "Commerzbank",
  "bank_code": "COBADEFFXXX"
}'

Request: SWIFT account with the holder address

curl https://api.stablegate.com/v1/customers/c1d2e3f4-a5b6-7c8d-9e0f-1a2b3c4d5e6f/bank-accounts/ba1c2d3e-4f5a-6b7c-8d9e-0f1a2b3c4d5e/ \
  --request PUT \
  --header 'X-Api-Key: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "supported_rails": [
    "swift"
  ],
  "account_number": "001234567890",
  "holder_name": "John Smith",
  "holder_country": "GB",
  "holder_city": "London",
  "holder_street": "10 Downing Street",
  "holder_postal_code": "SW1A 2AA",
  "bank_country": "GBR",
  "bank_code": "BARCGB22",
  "bank_name": "Barclays Bank",
  "bank_address": "1 Churchill Place",
  "bank_city": "London",
  "bank_postal_code": "E14 5HP",
  "name": "GBP account"
}'

Delete a Bank Account

Remove a registered bank account.

Endpoint:

DELETE /v1/customers/{customer_uuid}/bank-accounts/{account_uuid}/

Request:

curl https://api.stablegate.com/v1/customers/c1d2e3f4-a5b6-7c8d-9e0f-1a2b3c4d5e6f/bank-accounts/ba1c2d3e-4f5a-6b7c-8d9e-0f1a2b3c4d5e/ \
  --request DELETE \
  --header 'X-Api-Key: YOUR_API_KEY'

Response: 204 No Content


Crypto Wallets

Create a Wallet

Register a customer's crypto wallet for use in on-ramp (receiving crypto) or off-ramp (sending crypto) orders.

Endpoint:

POST /v1/customers/{customer_uuid}/wallets/

Request Body:

FieldTypeRequiredDescription
railstringYesBlockchain network: ethereum, polygon, algorand, ripple, stellar, xinfin
addressstringYesWallet address on the specified network
namestringNoFriendly label for the wallet
wallet_messagestringConditionalHex-encoded ownership confirmation message. Required for Ethereum and Polygon.
wallet_signaturestringConditionalSigned ownership confirmation message. Required for Ethereum and Polygon.

A wallet address is unique per network across all Stablegate customers, not only among your own. If the address is already linked to any customer, the request is rejected before the ownership proof (wallet_message and wallet_signature) is checked, so a valid signature does not help — ask the customer for another wallet.

Statuserror_codemessage
400oa_client_external_account_address_existsThis wallet is already linked to another account

Wallet Ownership Verification (Ethereum / Polygon)

For wallets on Ethereum and Polygon, you must provide proof of ownership by signing a confirmation message.

Step 1: Construct the confirmation message:

I confirm the ownership of address {wallet_address}. Signature time: {ISO_8601_timestamp}.

Step 2: Sign the message with the wallet's private key and convert the message to hex.

The signature timestamp must not be older than 24 hours (UTC).

JavaScript example:

import { ethers } from "ethers";

function stringToHex(str) {
  let hex = "";
  for (let i = 0; i < str.length; i++) {
    hex += str.charCodeAt(i).toString(16);
  }
  return `0x${hex}`;
}

const wallet = new ethers.Wallet("YOUR_PRIVATE_KEY");
const ts = new Date().toISOString();
const message = `I confirm the ownership of address ${wallet.address}. Signature time: ${ts}.`;

const wallet_signature = await wallet.signMessage(message);
const wallet_message = stringToHex(message);

// Use wallet_message and wallet_signature in the API request

Example: Create Ethereum Wallet (with ownership proof)

Request:

curl https://api.stablegate.com/v1/customers/c1d2e3f4-a5b6-7c8d-9e0f-1a2b3c4d5e6f/wallets/ \
  --request POST \
  --header 'X-Api-Key: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "rail": "ethereum",
  "address": "0xDC1dCb46fC96C46c4F294866AFCA81874041bB2",
  "name": "Customer ETH Wallet",
  "wallet_message": "0x4920636f6e6669726d20746865206f776e657273686970206f662061646472657373203078444331644362343666433936433436633446323934383636364146434138313837343034316242322e205369676e61747572652074696d653a20323032352d30312d31355431303a33303a30302e3030305a2e",
  "wallet_signature": "0x861818884bbf61f8d83bc3052e6c513f939512852fc92067dde5845b392248c949812e44366158d91d73ac0e9588c56dfb1d59549c3cbad52cfe4884fdc15c361"
}'

Response:

{
  "uuid": "wa1b2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d",
  "name": "Customer ETH Wallet",
  "rail": "ethereum",
  "address": "0xDC1dCb46fC96C46c4F294866AFCA81874041bB2",
  "status": "active",
  "verified_at": null,
  "created_at": "2025-01-15T10:35:00.000Z",
  "updated_at": "2025-01-15T10:35:00.000Z"
}

Response Fields

FieldTypeDescription
statusstringAccount status: active or sanctioned
verified_atstring | nullSet once the Satoshi Test (or WalletConnect) ownership proof has been confirmed on-chain. null until verification completes — poll this field instead of assuming success right after the micro-transaction is sent.

Example: Create Wallet on Other Networks

For networks that do not require ownership verification (e.g., Algorand, Ripple, Stellar, XinFin), you can create a wallet without wallet_message and wallet_signature:

Request:

curl https://api.stablegate.com/v1/customers/c1d2e3f4-a5b6-7c8d-9e0f-1a2b3c4d5e6f/wallets/ \
  --request POST \
  --header 'X-Api-Key: YOUR_API_KEY' \
  --header 'Content-Type: application/json' \
  --data '{
  "rail": "stellar",
  "address": "GBBD47IF6LWK7P7MDEVSCWR7DPUWV3NY3DTQEVFL4NAT4AQH3ZLLFLA5",
  "name": "Customer Stellar Wallet"
}'

List Wallets

Retrieve all registered wallets for a customer.

Endpoint:

GET /v1/customers/{customer_uuid}/wallets/

Request:

curl https://api.stablegate.com/v1/customers/c1d2e3f4-a5b6-7c8d-9e0f-1a2b3c4d5e6f/wallets/ \
  --header 'X-Api-Key: YOUR_API_KEY'

Response:

[
  {
    "uuid": "wa1b2c3d-4e5f-6a7b-8c9d-0e1f2a3b4c5d",
    "name": "Customer ETH Wallet",
    "rail": "ethereum",
    "address": "0xDC1dCb46fC96C46c4F294866AFCA81874041bB2",
    "status": "active",
    "verified_at": "2026-08-21T12:09:40.000Z",
    "created_at": "2025-01-15T10:35:00.000Z",
    "updated_at": "2025-01-15T10:35:00.000Z"
  }
]

Get a Wallet

GET /v1/customers/{customer_uuid}/wallets/{wallet_uuid}/

Update a Wallet

PUT /v1/customers/{customer_uuid}/wallets/{wallet_uuid}/

The request body is the same as the create endpoint. For Ethereum and Polygon wallets, new wallet_message and wallet_signature must be provided.

Delete a Wallet

DELETE /v1/customers/{customer_uuid}/wallets/{wallet_uuid}/

Response: 204 No Content


Satoshi Test

The Satoshi Test endpoint returns an operational wallet address that can be used for wallet ownership verification via a micro-transaction.

Endpoint:

GET /v1/customers/{customer_uuid}/wallets/satoshitest/?rail={crypto_rail}

Query Parameters:

ParameterTypeRequiredDescription
railstringYesCrypto rail code: ethereum, polygon, algorand, ripple, stellar, xinfin

Request:

curl 'https://api.stablegate.com/v1/customers/c1d2e3f4-a5b6-7c8d-9e0f-1a2b3c4d5e6f/wallets/satoshitest/?rail=ethereum' \
  --header 'X-Api-Key: YOUR_API_KEY'

Response:

{
  "address": "0x742d35Cc6634C0532925a3b844Bc9e7595f2bD18",
  "segwit_address": null
}

Response Fields

FieldTypeDescription
addressstringOperational wallet address to send the micro-transaction to
segwit_addressstring | nullSegWit address, if applicable for the network

Ready to integrate?

Tell us about your use case and we will enable Partner API access for your account.
Copyright © 2026