Skip to main content
The DollarPe sandbox environment provides a safe, isolated testing ground for validating your integration before deploying to production. No real funds are involved, and all three integration paths are supported.
Key benefits of sandbox testing: Test the full integration flow without real funds — validate against our API specs, simulate success and error scenarios, and gain confidence before going live.

Testing approaches

Use sandbox base URLs with your sandbox API credentials. The full flow — customer creation, KYC, bank linking, payin, and payout — works exactly as in production. Use the mock status endpoints to simulate transaction state changes without waiting for real blockchain confirmations.Sandbox base URL: https://sandbox.dollarpe.xyz

Sandbox vs. production

Getting started with sandbox

Step 1: Obtain sandbox credentials

Sandbox credentials are different from production credentials and cannot be used interchangeably.
Contact our support team to request sandbox access. You’ll receive your sandbox API key and API secret.

Step 2: Configure your environment

Step 3: Set up authentication

Authentication works identically in sandbox and production. See the Authentication guide for how to generate the required headers.

Testing the KYC flow

Creating test customers

Submitting test KYC data

In sandbox, use test document URLs for KYC submission. Verification is automatically approved for most test submissions.

Adding test bank accounts

Testing the payin flow

Fetch payin configuration

Create a payin quotation

Initiate a test payin

Testing the payout flow

Create a payout quotation

Send test cryptocurrency

Even in sandbox, you must send funds to the exact wallet address provided in the quotation response. Use test networks like Sepolia instead of mainnet.
  1. Get test tokens from a Sepolia faucet.
  2. Send the exact amount of test USDT/USDC to the wallet address from the quotation.
  3. Obtain the transaction hash for the next step.

Initiate a test payout

Testing webhook integration

For local development, use ngrok to create a public HTTPS URL that forwards to your local webhook handler.

Sandbox testing checklist

  • Create a test customer profile
  • Submit KYC details for verification
  • Confirm successful KYC approval flow
  • Simulate KYC rejection and error responses
  • Update and resubmit failed KYC information
  • Add and verify bank account details
  • Retrieve payin configurations
  • Fetch exchange rates
  • Generate and review quotations
  • Handle expired quotation scenarios
  • Initiate payin with transaction reference
  • Use mock status endpoint to change transaction status
  • Monitor status updates throughout the payin flow
  • Simulate and handle payin failure scenarios
  • Retrieve payout configurations
  • Fetch exchange rates
  • Generate and review quotations
  • Handle expired quotation scenarios
  • Simulate crypto transfer using testnet
  • Initiate payout with transaction reference
  • Use mock status endpoint to change transaction status
  • Monitor status updates throughout the payout flow
  • Simulate and handle payout failure scenarios
  • Set up and configure your webhook endpoint
  • Confirm webhook receives KYC status events
  • Confirm webhook receives transaction status events
  • Test webhook retry and failure handling
  • Simulate invalid or expired API credentials
  • Submit invalid or incomplete request payloads
  • Test rate limiting responses
  • Simulate network timeouts
  • Verify user-facing error messages are clear and actionable

Transitioning to production

Once sandbox testing is complete:
  1. Request production API credentials from our support team.
  2. Update your configuration to use production URLs and credentials.
  3. Remove or condition all sandbox-specific logic and test data.
  4. Implement production logging and monitoring.
  5. Set up alerts for critical error conditions.
  6. Test with small amounts first before full deployment.
Before going live, ensure you have proper error handling, logging, and monitoring in place. Real funds will be at stake in production.