Skip to main content

Sandbox Configuration and Activation

This guide explains how to set up and activate your FinHub sandbox environment, allowing you to test and develop your integration before moving to production.

Sandbox Overview

The FinHub sandbox is a fully functional testing environment that mimics the production environment. It allows you to:
  • Test API integrations without affecting real data or transactions
  • Explore API capabilities and features
  • Develop and debug your integration
  • Validate your implementation against FinHub requirements

Prerequisites

Before configuring your sandbox, ensure you have:
  1. Completed the registration process as a FinHub API client
  2. Received your sandbox tenant credentials via email
  3. Access to the FinHub Developer Portal

Sandbox Characteristics

FeatureSandbox Behavior
DataTest data only, regularly reset
TransactionsSimulated, no real money movement
KYC/KYBSimplified verification for testing
Rate LimitsRelaxed limits for development
NotificationsSent to test endpoints only
Payment NetworksSimulated/test environments

Sandbox Configuration Steps

Step 1: Access the Developer Portal

Log in to the FinHub Sandbox Portal using the credentials provided during registration:
  1. Navigate to https://sandbox.finhub.cloud
  2. Enter your sandbox username and password
  3. Complete any required verification

Step 2: Create a Sandbox Tenant

  1. Navigate to the “Sandbox” section in the Developer Portal
  2. Click “Create New Sandbox Tenant”
  3. Fill in the required information:
    • Tenant name
    • Technical contact information
    • Selected products for testing
  4. Submit the form to create your sandbox tenant

Step 3: Configure API Access

  1. Once your sandbox tenant is created, navigate to the “API Access” section
  2. Generate your client credentials:
    • Client ID: Your unique identifier for API requests
    • Client Secret: Your secret key (keep this secure!)
  3. Note down these credentials as they will be required for authentication
Store your credentials securely - the Client Secret is shown only once. If lost, you’ll need to regenerate it.

Step 4: Configure IP Whitelisting

For security reasons, you need to whitelist the IP addresses that will access the FinHub APIs:
  1. Go to the “Security” section in the Developer Portal
  2. Add the IP addresses of your development and testing environments
  3. Save your changes
IP whitelisting is required for both sandbox and production environments. Ensure all development, staging, and CI/CD environments are whitelisted.

Step 5: Configure Webhook Endpoints (Optional)

If your integration requires webhooks:
  1. Navigate to the “Webhooks” section
  2. Add the URLs where FinHub should send event notifications
  3. Configure the events you want to receive
  4. Test the webhook connection using the “Send Test Event” feature

Step 6: Activate Your Sandbox

After completing the configuration:
  1. Go to the “Activation” section
  2. Review your configuration settings
  3. Click “Activate Sandbox”
  4. Confirm the activation
Your sandbox will be activated within 15 minutes, and you’ll receive a confirmation email with your sandbox details.

Environment Variables

Set up your development environment with these variables:
# FinHub Sandbox Configuration
FINHUB_BASE_URL=https://gateway.sandbox.finhub.cloud
FINHUB_TENANT_ID=your_tenant_id
FINHUB_CLIENT_ID=your_client_id
FINHUB_CLIENT_SECRET=your_client_secret
FINHUB_USERNAME=your_sandbox_username
FINHUB_PASSWORD=your_sandbox_password

# Webhook Configuration (Optional)
FINHUB_WEBHOOK_SECRET=your_webhook_secret

Test Data

The sandbox comes pre-configured with test data for common testing scenarios:
Data TypeDescription
Test CustomersPre-created individual and business customers
Test AccountsAccounts with test balances
Test CardsVirtual cards for testing
Test IBANsIBANs for payment testing
Test DocumentsSample KYC documents

Test Card Numbers

Card TypeNumberUse Case
Visa4111 1111 1111 1111Successful transactions
Mastercard5555 5555 5555 4444Successful transactions
Visa4000 0000 0000 0002Declined transactions
Mastercard5100 0000 0000 0004Insufficient funds

Test Bank Accounts

IBANBankUse Case
DE89370400440532013000Deutsche Bank (Test)Successful SEPA transfers
GB82WEST12345698765432Test Bank UKSuccessful UK transfers
FR7630006000011234567890189Test Bank FRFailed transfers (test)

Sandbox Limitations

Be aware of these limitations when testing your integration.
  • Transaction Limits: Lower transaction limits than production
  • Simulated Behavior: Some features have simulated behavior
  • External Integrations: Card networks and bank connections use test environments
  • Response Times: May differ from production
  • Data Resets: Data may be reset periodically (typically monthly)

Quick Verification

# Get an access token
curl -X POST "https://gateway.sandbox.finhub.cloud/api/v2/auth/sandbox/token" \
  -H "Content-Type: application/json" \
  -H "X-Tenant-ID: your_tenant_id" \
  -d '{
    "username": "your_username",
    "password": "your_password",
    "customerId": "your_customer_id",
    "customerSecret": "your_customer_secret",
    "accountType": "b2c"
  }'

# Test with the received token
curl -X GET "https://gateway.sandbox.finhub.cloud/api/v2/settings/countries" \
  -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \
  -H "Content-Type: application/json"

Next Steps