Transfers, Deposits and FX

How bank transfers, bank deposits, push to card and FX debit and credit the Master Account in Master Account mode.

Before You Start

Read the following guides before proceeding:

GuideWhy
OverviewUnderstand Master Account mode and the threshold
Bank TransfersThe standard bank transfer flow
Corridor TransfersThe standard corridor flow
FXThe standard FX flow

Before Any Money Route

Check the corporation's balance in your ledger before every bank transfer, OCT transfer and FX execution.
Wirex does not ask you to approve them: your authorization API is called for card transactions only.

  • The only balance Wirex checks is the Master Account's. Nothing caps one corporation's spend except
    the Master Account balance, so a corporation can spend funds that belong to your other corporations.
  • Every call is made with the owner's corporation token. Keep it on your backend. Any holder of the
    token can spend the whole Master Account.
  • When your company's transaction authorization mode is Signature, the transaction_authorization
    on these routes is signed by the owner wallet, the token's employee_address. See
    Wallet Signatures.

The request and response of every route on this page are unchanged. Only the wallet that is debited or
credited changes.


Bank Transfers

Master Account mode does not refuse the sepa, ach, faster-payments, fedwire and fednow
corridors. A payout on any of them debits the Master Account.

BehaviourMaster Account mode
DebitThe Master Account
ActivityShows under the corporation
Reversal or failed transferThe debit is credited back to the Master Account
Every other corridorRefused with 400 ErrorNotSupported, error_details corridor

Which of these corridors carry payouts, their capabilities and their request fields are described in
Bank Transfers and
Corridor Transfers. The refused corridors are listed in
Unsupported Features and Errors.

Book each transfer against the corporation in your ledger. The activity identifies the corporation by
user_address in the activities webhook and by corporation_address in Activity History reads, and a
refunded transfer moves to Failed / payment_failed as described in
Corridor Transfers.


Deposits

A deposit to a corporation's bank account credits the Master Account. The activity shows under the
corporation, so book the credit to that corporation in your ledger.

Bank account activation and deposit details are unchanged.


Push to Card (OCT)

POST /api/v1/cards/transfer/estimate and POST /api/v1/cards/transfer work as described in
Card Transfer.

  • The chosen token is debited from the Master Account.
  • A failure returns the funds to the Master Account.
  • The activity shows under the corporation.

FX

Follow FX. Only the payer changes: the Master Account pays, not the corporation.

POST /api/v1/fx/estimate                      →  deposit_address, estimation_id, expiration_time
        ↓
transfer from the Master Account to deposit_address  →  payment_transaction_hash
        ↓
POST /api/v1/fx                               →  trade_id
  1. Check the corporation's balance in your ledger, then call POST /api/v1/fx/estimate.
  2. Pay deposit_address from the Master Account. FX takes regular tokens, so unwrap the source unified
    token in the Master Account and send the underlying token from it, as described in
    FX.
  3. Call POST /api/v1/fx with estimation_id and payment_transaction_hash before the quote's
    expiration_time.
  • A payment from any other wallet is refused.
  • The bought currency lands in the Master Account. The activity shows under the corporation. Book the
    sold and the bought amounts to the corporation in your ledger.

Threshold Interplay

None of the routes on this page check the Master Account threshold that card authorization uses. A large
bank transfer, OCT transfer or FX execution can take the Master Account below the threshold, and every
card authorization then declines until it is topped up. Keep a margin. See
Overview.


Bulk Transfers

Bulk transfers are not available in Master Account mode. POST /api/v1/bulk/transfer is refused with
400 ErrorNotSupported. The standard flow is described in
Bulk Transfers.


Did this page help you?