Environments
API base URLs, supported chains, and the runtime configuration endpoint for the Corporate API.
Before You Start
Read the following guides before proceeding:
| Guide | Why |
|---|---|
| Getting Started | Integration overview and prerequisites |
API Endpoints
| Environment | Base URL | Purpose |
|---|---|---|
| Sandbox | https://api-business.wirexapp.tech | Testing and integration |
| Production | https://api-business.wirexapp.com | Live 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.techandapi-baas.wirexapp.comserve
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.
| Environment | Base URL | Purpose |
|---|---|---|
| Sandbox | https://wx-acquiring-card-manager-uat.wirexapp.com | Card tokenization testing |
| Production | https://wx-acquiring-card-manager.wirexapp.com | Live 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
| Chain | Chain ID | ContractRegistry Address |
|---|---|---|
| Base | 8453 | 0xAFa697ebC7919998AF5CdE325Fbe990dC926aae4 |
| Stellar | 9223372036854775806 | CCRZBVBWNMDYOOQNJKB6TGMTSE5HE57RWQUGTN3AWBHMDHO45UCABJRE |
Sandbox
| Chain | Chain ID | ContractRegistry Address |
|---|---|---|
| Base Sepolia | 84532 | 0xC801a0f38E20500B5840c4927553b3409890bc3c |
| Stellar Testnet | 9223372036854775806 | CB2F7E7QVPUHUCMKIWNBTEPLL2S3GYDGQJQECIRKQ2PRKL2U3XNXOSNO |
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
| Header | Required | Description |
|---|---|---|
X-Company-Id | No | Company id as a UUID, e.g. 00000000-0000-0000-0000-000000000012. Takes precedence over X-Company-Name |
X-Company-Name | No | Company 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"
}
}
}
}
}| Field | Description |
|---|---|
api.apiUrl | Base URL of the API for this environment |
api.socketIo | Socket.IO endpoint for the environment |
support.chatUrl, support.widgetId | Support chat widget |
analytics.* | Analytics identifiers |
defaultCompanyId | Id of the resolved company |
defaultChain | The company's default chain, as an entry of chains. Omitted when that chain is not in chains |
chains | Map of supported chains, keyed by EIP-155 chain id. The same for every company |
chains.<id>.contractRegistry | ContractRegistry address — resolve every other contract address from it |
chains.<id>.bundlerUrl | Bundler endpoint for UserOperation submission |
chains.<id>.paymasterUrl | Paymaster endpoint for gas sponsorship |
transactionAuthorizationMode | External or Signature. See Transaction Authorization |
p2c_currencies | Currencies available for push-to-card transfers: AUD, EUR, GBP, HKD, NZD, USD, SGD |
topup | Apple 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 Reason | HTTP | Error Details | Returned when |
|---|---|---|---|
ErrorInvalidField | 400 | field: X-Company-Id, issue: invalid_uuid | X-Company-Id is not a valid UUID, or is the all-zero UUID |
ErrorGeneral | 400 | — | Company with the specified id does not exist. X-Company-Name is not tried in its place |
ErrorGeneral | 400 | — | Company with the specified name does not exist |
ErrorConfigurationInvalid | 500 | — | 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"
}
]
}| Field | Description |
|---|---|
address | Token contract address — the value to pass as token_address |
base_token_address | Underlying ERC-20 a unified token is backed by. Absent on regular tokens |
symbol | Token symbol |
default_symbol | Symbol used to group equivalent tokens |
equivalent_symbols | Symbols this token can settle against |
decimals | Token decimals — the exponent behind every precise_amount |
is_active | false means the token is not currently usable |
supported_chain_ids | Chains on which the token exists |
token_type | Token classification — see Token Types below |
Token Types
token_type tells you which of the two token families an entry belongs to.
token_type | What it is | Examples |
|---|---|---|
Synthetic | A unified token — the platform's own balance-bearing asset, minted when a supported stablecoin is deposited and burned when value leaves | WUSD, WEUR |
Regular | A plain ERC-20 stablecoin, held directly at its own contract | USDC, 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.
Updated 24 days ago

