Sandbox Base URL
Point your HTTP client at the following base URL to reach the sandbox:Getting Sandbox Credentials
Sandbox API keys are provisioned separately from production keys and are not generated through the dashboard. To obtain your sandbox API key and API secret, contact the VelaFi team directly:- Email: contact@velafi.com
You do not need to complete KYC/KYB or create a merchant account to access the sandbox. The VelaFi team will provision a pre-configured test account with simulated user and merchant data ready to use.
GET /v2/token/generate and include it in the X-BH-TOKEN header of every request, exactly as you would in production:
Sandbox vs. Production
The table below summarizes the key behavioral differences between the two environments. Use this as a checklist when deciding which environment is appropriate for a given activity.Example: Retrieve Fiat Trading Pairs
The following request demonstrates a complete sandbox API call. It uses a public endpoint, so it confirms you can reach the sandbox but does not test your credentials.Recommended Testing Workflow
Work through the following sequence in the sandbox to validate your integration end to end before going live:1
Confirm credentials
Get a token from
GET https://api-test.velafi.com/v2/token/generate with your sandbox API key and secret, then call GET /v2/user/account with it. A successful response confirms that your key, secret, IP whitelist, and API access are all set up.2
Test on-ramp order creation
Create a fiat-to-crypto order using simulated merchant and account data. Verify that the system returns an
order_id and that you can retrieve the order by ID.3
Test off-ramp order creation
Create a crypto-to-fiat order and confirm the response includes the expected settlement details and beneficiary information.
4
Test global payment order creation
Create a fiat-to-fiat order with a sender and recipient merchant configured for different fiat currencies. Confirm the order status progresses as expected.
5
Switch to production
Replace the sandbox base URL with
https://api.velafi.com, swap in your production API key and secret, and get tokens from the production host. Re-run a smoke test against the production /v2/user/account endpoint to confirm the switch.Sandbox Testing Tools
The sandbox has two endpoints that simulate incoming deposits, so you can fund test merchants without moving real money. They exist only onhttps://api-test.velafi.com. On https://api.velafi.com they return 404. Both accept GET or POST, with the parameters sent as query parameters.
Simulate a Fiat Deposit
https://api-test.velafi.com/v2/platform/test/deposit
Simulates an incoming bank deposit to a merchant’s activated fiat account.
number
required
ID of the merchant to credit.
string
required
Fiat currency code, for example
MXN.number
required
Amount to deposit. Must be greater than
0.number
required
Payment method ID of the merchant’s activated fiat account for this currency.
string
Alias of a virtual account under the same
merchantId, fiat and paymentId. When set, the deposit goes to that virtual account.The merchant has not activated the corresponding fiat currency account.— the merchant has no active account for thisfiatandpaymentId.The depositAlias invalid.— no virtual account matchesdepositAlias.This method of currency recharge is not currently supported.— this payment method has no deposit simulator.
cURL
Simulate a Crypto Deposit
https://api-test.velafi.com/v2/platform/test/crypto/deposit
Adds test crypto funds to a merchant’s wallet.
number
required
ID of an approved merchant.
string
required
One of
USDT, USDC, BTC, MMXN, COPM or MXNB. Other values return {"code":500, "msg":"crypto is invalid"}.number
required
Amount to add. Must be greater than
0.code is 200.
cURL
The simulators only cover successful deposits. They cannot produce a failed or returned deposit.
Next Steps
Quickstart
Set up your production account and generate your live API key.
API Reference
Browse all available endpoints, parameters, and response schemas.

