Skip to main content

Overview

The Bila Sandbox mirrors the production API exactly - same endpoints, same authentication, same response shapes - but all transactions are fully simulated. No real money moves, no SMS or emails are sent.
Sandbox and production are completely isolated. Sandbox keys, wallet IDs, and data do not carry over to production.

What the Sandbox Simulates


Setup

1. Activate the Sandbox

  1. Log in to your Bila Merchant Dashboard
  2. Go to Settings → API Keys and Click Activate Sandbox
  3. Click Create API Key
  4. Copy and save your key - it will not be shown again in full
Your sandbox secret key is prefixed with sk_test_.
Store your API key in an environment variable. Never commit it to source control or log it.

2. Verify Your Connection

Expected response:
Save your walletId - you will need it for collections and transfers.

Base URLs


Authentication

Include your secret key in every request:
The header name must be exactly x-api-key in lowercase. No Bearer tokens are used on merchant-facing routes.

Test Data

Supported Providers

Simulating Success and Failure

By default all transactions succeed. To trigger a failure, include the substring fail anywhere in your reference:
The sandbox does not expose specific PSP error codes. Outcomes are binary - successful or failed - with a message string stating the reason.

Limitations


Support