Api Basics

Headers, tokens, permissions, and webhook configuration for the Corporate API.

Before You Start

Read the following guides before proceeding:

GuideWhy
EnvironmentsAPI base URLs per environment

Required Headers

With a Corporation Token

Everything the request needs about identity and chain is inside the token.

HeaderValueWhen Required
AuthorizationBearer <corporation_token>Every corporation-scoped endpoint
Content-Typeapplication/jsonRequests with a JSON body

Sending X-Chain-Id alongside a corporation token has no effect — the chain is read from the token's
chain_id claim.

With a Partner Token

HeaderValueWhen Required
AuthorizationBearer <partner_token>The four partner endpoints
X-User-WalletEmployee EOA addressRequired by corporations/register and corporations/login
X-User-EmailEmployee email addressRequired by corporations/register and corporations/login
X-User-IdEmployee id (UUID)Accepted as an identifier by employees/corporations
X-Chain-IdChain idOptional; defaults to the environment's default chain
Content-Typeapplication/jsonRequests with a JSON body

See Authentication for the flows and Auth Tokens
for every token type and what it unlocks.


Access Control

Every corporation-scoped endpoint declares the permissions that admit a caller. The permission set is
resolved from the employee's role at login and frozen into the token.

See Permissions for the endpoint-by-endpoint matrix.

Reading card data, and payouts of a company in Signature mode, also take a wallet signature from the
employee. See Wallet Signatures.


API Versions

PrefixContents
/api/v1/The base surface — corporations, employees, roles, wallets, cards, recipients, activity
/api/v2/Card issuance with a delivery_id fee invoice, recipient creation with payment details in one call, and a bank transfer estimate that accepts inline recipient details
/api/v3/Corridor transfers — one estimate/initiate/confirm flow covering every payment rail; card issuance that names the design, card program and payment system, the card order configuration, and card reads across every chain

A v2 or v3 endpoint does not deprecate its v1 counterpart. All remain callable; pick one flow per
integration and follow it end to end.


Pagination

List endpoints take the same query parameters:

ParameterDescription
page_numberPage to return, starting at 0. Defaults to 0
page_sizePage size. Defaults to 25 when omitted; maximum 50
sortname for ascending name order (default), or usage for descending usage count

A page_size above 50 is rejected with 400 ErrorInvalidField and page size exceeds maximum allowed.

page_number=1 is the second page. Paging from 1 silently skips the first page_size items.
GET /api/v1/bank/accounts is the exception: it pages from 1, and 0 also returns the first page.
GET /api/v1/employees/search is the exception — it has its own limit of 100.


Amounts

Money crosses the API in two forms, and every estimate response carries both:

FormMeaning
amountA decimal number in the currency's or token's own precision, e.g. 109.41123037
precise_amountA string holding the integer amount in the token's smallest unit, e.g. "109411230370000000000"

Use precise_amount for on-chain transfers. The exponent is the token's decimals from
GET /api/v1/config/tokens.

Other responses follow the same pattern with a _precise suffix and a decimals field beside it —
amount_precise on activity items, balance_precise on wallets, order_fee_precise on card fees,
source_asset_amount_precise on FX quotes, opening_precise on statements. The float or decimal string
is rounded for display — often to two decimal places — and the _precise string is exact. Reconcile and
compute on the _precise value, and read its decimals every time: token amounts are scaled by the
token's decimals, fiat amounts and every statement amount by 18.

amount on POST /api/v1/bulk/transfer accepts a JSON number or a decimal string (1.5 or "1.50").


Network Requirements

  • All requests use HTTPS with TLS 1.2 or later
  • Validate SSL certificates in production
  • Recommended request timeout: 30 seconds
  • Webhook delivery uses a 10 second timeout
  • Responses are compressed when the request sends Accept-Encoding — gzip, deflate or br.
    GET /api/v1/global/capabilities is over 1 MB uncompressed

IP allowlisting is available for POST /api/v1/token. Registering your egress addresses also exempts
your client from the per-client rate limiter on that endpoint. Contact Wirex to configure it.


Webhooks

Wirex delivers notifications for corporation, wallet, balance, card, 3DS, activity, recipient and
withdrawal changes to the webhook base URL registered during onboarding.

See Webhooks for endpoint paths, payloads and the delivery contract.


Did this page help you?