Environments

API base URLs, supported chains, and the runtime configuration endpoint for the Corporate API.

Before You Start

Read the following guides before proceeding:

GuideWhy
Getting StartedIntegration overview and prerequisites

API Endpoints

EnvironmentBase URLPurpose
Sandboxhttps://api-business.wirexapp.techTesting and integration
Productionhttps://api-business.wirexapp.comLive environment

The Corporate API is served under /api/v1/, /api/v2/ and /api/v3/ on these hosts. Credentials are
environment-specific and are not interchangeable.

The Corporate API has its own hosts. api-baas.wirexapp.tech and api-baas.wirexapp.com serve
the retail API, documented under For Retail Developers; corporate endpoints are not
routed there.


PCI Secure Environment

Tokenizing a destination card for Card Transfer requires a call to
Wirex's PCI-compliant environment. It is a separate host; requests carry the corporation token as
Authorization: Bearer <token>, the same token the Corporate API takes.

EnvironmentBase URLPurpose
Sandboxhttps://wx-acquiring-card-manager-uat.wirexapp.comCard tokenization testing
Productionhttps://wx-acquiring-card-manager.wirexapp.comLive card tokenization

Note: These endpoints handle card numbers and are subject to additional security requirements.
Request access from Wirex separately from your API credentials.


Supported Chains

Each chain has its own ContractRegistry. Every other contract address on that chain is resolved from it
with contractByName(name) — see Credentials for the contract
names. This section is the only list of chain IDs and registry addresses.

Production

ChainChain IDContractRegistry Address
Base84530xAFa697ebC7919998AF5CdE325Fbe990dC926aae4
Stellar9223372036854775806CCRZBVBWNMDYOOQNJKB6TGMTSE5HE57RWQUGTN3AWBHMDHO45UCABJRE

Sandbox

ChainChain IDContractRegistry Address
Base Sepolia845320xC801a0f38E20500B5840c4927553b3409890bc3c
Stellar Testnet9223372036854775806CB2F7E7QVPUHUCMKIWNBTEPLL2S3GYDGQJQECIRKQ2PRKL2U3XNXOSNO

The chain is fixed into the corporation token at login, from the X-Chain-Id header sent on
POST /api/v1/corporations/login. Requests made with that token are evaluated against the chain recorded
in its chain_id claim; sending a different X-Chain-Id on a later request does not change it. To switch
chains, log in again with the chain you want.

If X-Chain-Id is omitted at login, the environment's default chain is used.


Runtime Configuration

GET /api/v1/config

Returns the client and chain configuration for a company. The endpoint is anonymous — no Authorization
header is required, and a token sent with the request does not change the result. It is the authoritative
source for RPC, bundler, paymaster and ContractRegistry addresses in each environment.

Request Headers

HeaderRequiredDescription
X-Company-IdNoCompany id as a UUID, e.g. 00000000-0000-0000-0000-000000000012. Takes precedence over X-Company-Name
X-Company-NameNoCompany name, matched case-insensitively. Used only when X-Company-Id is not sent

The company is resolved in this order: X-Company-Id, then X-Company-Name, then the default corporate
company. An empty header counts as not sent. Send X-Company-Id when the integration is built for a
specific company.

Response

{
  "auth": { },
  "api": {
    "apiUrl": "https://api-business.wirexapp.com",
    "socketIo": "https://socket.wirexpaychain.com"
  },
  "support": { },
  "analytics": { },
  "defaultCompanyId": "550e8400-e29b-41d4-a716-446655440000",
  "defaultChain": {
    "id": 8453,
    "name": "Base",
    "contractRegistry": "0xAFa697ebC7919998AF5CdE325Fbe990dC926aae4",
    "blockExplorerUrl": "https://basescan.org",
    "bridgeUrl": "https://bridge.base.org",
    "rpcUrl": "https://mainnet.base.org",
    "rpcWsUrl": "wss://mainnet.base.org",
    "bundlerUrl": "https://rpc.zerodev.app/api/v2/bundler/...",
    "paymasterUrl": "https://rpc.zerodev.app/api/v2/paymaster/..."
  },
  "chains": {
    "8453": {
      "id": 8453,
      "name": "Base",
      "contractRegistry": "0xAFa697ebC7919998AF5CdE325Fbe990dC926aae4",
      "blockExplorerUrl": "https://basescan.org",
      "bridgeUrl": "https://bridge.base.org",
      "rpcUrl": "https://mainnet.base.org",
      "rpcWsUrl": "wss://mainnet.base.org",
      "bundlerUrl": "https://rpc.zerodev.app/api/v2/bundler/...",
      "paymasterUrl": "https://rpc.zerodev.app/api/v2/paymaster/..."
    }
  },
  "transactionAuthorizationMode": "External",
  "p2c_currencies": ["AUD", "EUR", "GBP", "HKD", "NZD", "USD", "SGD"],
  "topup": {
    "default_provider": "nuvei",
    "providers": {
      "nuvei": {
        "apple_pay": {
          "checkout_url": "",
          "probe_url": "",
          "merchant_name": "Wirex",
          "merchant_country_code": "GB",
          "merchant_capabilities": ["supports3DS"],
          "supported_networks": ["visa", "masterCard"],
          "required_billing_contact_fields": ["postalAddress", "name"],
          "api_version": 3
        },
        "google_pay": {
          "checkout_url": "",
          "probe_url": "",
          "merchant_id": "",
          "merchant_name": "Wirex",
          "merchant_country_code": "GB",
          "gateway_name": "wirex",
          "gateway_merchant_id": "googletest",
          "api_version": 2,
          "api_version_minor": 0,
          "allowed_auth_methods": ["CRYPTOGRAM_3DS"],
          "allowed_card_networks": ["VISA", "MASTERCARD"],
          "allow_credit_cards": true,
          "allow_prepaid_cards": true,
          "billing_address_required": true,
          "billing_address_parameters": { "format": "FULL", "phone_number_required": false },
          "min_webview_version": 137,
          "min_play_services_version": "25.18.30"
        }
      }
    }
  }
}
FieldDescription
api.apiUrlBase URL of the API for this environment
api.socketIoSocket.IO endpoint for the environment
support.chatUrl, support.widgetIdSupport chat widget
analytics.*Analytics identifiers
defaultCompanyIdId of the resolved company
defaultChainThe company's default chain, as an entry of chains. Omitted when that chain is not in chains
chainsMap of supported chains, keyed by EIP-155 chain id. The same for every company
chains.<id>.contractRegistryContractRegistry address — resolve every other contract address from it
chains.<id>.bundlerUrlBundler endpoint for UserOperation submission
chains.<id>.paymasterUrlPaymaster endpoint for gas sponsorship
transactionAuthorizationModeExternal or Signature. See Transaction Authorization
p2c_currenciesCurrencies available for push-to-card transfers: AUD, EUR, GBP, HKD, NZD, USD, SGD
topupApple Pay and Google Pay wallet top-up parameters. Omitted when wallet top-up is not available

Read every value from the response at runtime. Credentials, top-up parameters and chain endpoints differ
between companies and environments.

Error Handling

Error ReasonHTTPError DetailsReturned when
ErrorInvalidField400field: X-Company-Id, issue: invalid_uuidX-Company-Id is not a valid UUID, or is the all-zero UUID
ErrorGeneral400—Company with the specified id does not exist. X-Company-Name is not tried in its place
ErrorGeneral400—Company with the specified name does not exist
ErrorConfigurationInvalid500—The configuration cannot be served. Retry later

Token Catalogue

GET /api/v1/config/tokens

Returns the tokens available to your company. Requires a partner token or a corporation token. Use it to
resolve the token_address values accepted by the fee, transfer and card endpoints.

Response

{
  "data": [
    {
      "address": "0x0774164DC20524Bb239b39D1DC42573C3E4C6976",
      "base_token_address": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "symbol": "WUSD",
      "default_symbol": "WUSD",
      "equivalent_symbols": ["USDC", "USDT"],
      "decimals": 18,
      "is_active": true,
      "supported_chain_ids": [8453],
      "token_type": "Synthetic"
    }
  ]
}
FieldDescription
addressToken contract address — the value to pass as token_address
base_token_addressUnderlying ERC-20 a unified token is backed by. Absent on regular tokens
symbolToken symbol
default_symbolSymbol used to group equivalent tokens
equivalent_symbolsSymbols this token can settle against
decimalsToken decimals — the exponent behind every precise_amount
is_activefalse means the token is not currently usable
supported_chain_idsChains on which the token exists
token_typeToken classification — see Token Types below

Token Types

token_type tells you which of the two token families an entry belongs to.

token_typeWhat it isExamples
SyntheticA unified token — the platform's own balance-bearing asset, minted when a supported stablecoin is deposited and burned when value leavesWUSD, WEUR
RegularA plain ERC-20 stablecoin, held directly at its own contractUSDC, USDT, EURC

A unified token always carries base_token_address, pointing at the ERC-20 it is backed by; a
regular token does not. Balances are held in unified tokens, while on-chain movements in and out of
the platform happen in regular tokens.

Other token_type values exist for products that are not part of this integration surface. Treat any
value outside the two above as one you do not handle.

Both unified and regular tokens can be linked to a card at issuance.


Sandbox Credentials

Corporate sandbox credentials are issued per partner. There are no shared corporate test credentials —
the retail sandbox credentials published under For Retail Developers are registered
as a retail company and are rejected by the Corporate API. Request corporate sandbox credentials from your
Wirex account manager.


Did this page help you?