Testing in Sandbox

Simulate external events for end-to-end testing in sandbox environment.

Before You Start

Read the following guides before proceeding:

GuideWhy
Getting StartedPlatform overview and setup
Api BasicsRequired headers and request configuration
AuthenticationHow to obtain access tokens
OnboardingUser and wallet registration
KYCKYC verification requirements

The Sandbox Helper API provides methods for simulating external events that cannot be triggered through the standard BaaS API. This includes bank deposits arriving, outbound transfers completing, card transactions at merchants, and 3DS challenges.

These endpoints allow you to test complete user flows without waiting for real banking infrastructure or card network events. The helper API triggers the same webhooks and state changes that would occur in production when external systems process transactions.

Important: The Sandbox Helper API is available only in the sandbox environment at https://ramc.wirexapp.tech. It does not exist in production.

Available Operations

CategoryOperations
Wallets and FundingMint test tokens, create a registered smart wallet, read a balance, transfer from a smart wallet
SEPA (EUR)Simulate deposits, complete/cancel/revert outbound transfers
ACH (USD)Activate accounts, simulate deposits
Card TransactionsSimulate POS, e-commerce, ATM, Original Credit and full ISO 8583 lifecycles
3DSRaise a 3DS in-app confirmation challenge on a card

Test Flow Examples

SEPA Deposit and Transfer

sequenceDiagram
    participant User
    participant App as Your App
    participant BaaS as Wirex BaaS
    participant Helper as Helper API

    Note over App,Helper: Simulate Deposit
    App->>Helper: POST /bank/sepa/deposit
    Helper-->>BaaS: Simulates bank event
    BaaS->>App: POST /v2/webhooks/activities<br/>(type: Sepa, Inbound)

    Note over User,BaaS: User Sends Transfer
    User->>App: Send EUR
    App->>BaaS: POST /api/v1/bank/transfer
    BaaS-->>App: activity_id

    Note over App,Helper: Complete Transfer
    App->>Helper: POST /bank/sepa/transfer/complete
    Helper-->>BaaS: Simulates completion
    BaaS->>App: POST /v2/webhooks/activities<br/>(status: Completed)

Card Transaction

sequenceDiagram
    participant User
    participant App as Your App
    participant BaaS as Wirex BaaS
    participant Helper as Helper API

    Note over User,BaaS: Issue Card
    User->>App: Request card
    App->>BaaS: POST /api/v2/cards
    BaaS-->>App: card_id

    Note over App,Helper: Simulate Purchase
    App->>Helper: POST /card/auth-and-clearing
    Helper-->>BaaS: Simulates auth + clearing
    BaaS->>App: POST /v2/webhooks/activities<br/>(type: CardTransaction)

3DS Challenge

Card transaction simulations never raise a 3DS challenge. Raise one explicitly, then decide it through
the Wirex BaaS API.

sequenceDiagram
    participant App as Your App
    participant BaaS as Wirex BaaS
    participant Helper as Helper API

    App->>Helper: 1. POST /card/3ds/initiate (cardId)
    Helper-->>App: transactionId
    App->>BaaS: 2. GET /api/v1/cards/3ds/requests
    BaaS-->>App: pending request (transaction_id)
    App->>BaaS: 3. POST /api/v1/cards/3ds/requests/{transactionId}/approve
    BaaS-->>App: 200
StepCallResult
1POST /card/3ds/initiateChallenge created; returns transactionId
2GET /api/v1/cards/3ds/requestsChallenge listed with transaction_id = transactionId
3POST /api/v1/cards/3ds/requests/{transactionId}/approve or /declineChallenge resolved and removed from the list

See Helper API Reference for the request and response.


Did this page help you?