Sandbox Environment
Note: The sandbox environment (api.platform.sandbox.dakota.xyz) is not currently available but will be released shortly. For testing during development, please use the production environment with caution.
The Dakota Platform sandbox provides a safe testing environment that mirrors production:
- Base URL:
https://api.platform.sandbox.dakota.xyz - Dashboard:
https://platform.sandbox.dakota.xyz - API Keys: Base64-encoded strings (e.g.,
AHGlPZaxDSMz8Wf1l8VRH4ObdbHiKsWFWnmRyHtiwAc=)
Getting Started
1. Create Sandbox Account
- Ask Dakota Support for a Sandbox account login
- Go to the Dashboard:
https://platform.sandbox.dakota.xyz - Generate test API keys
- Note the different behavior of sandbox vs production
2. Sandbox Limitations
- No real money or crypto involved
- Simulated payment processing
- Limited external provider integrations
- Faster processing times for testing
Testing KYB Onboarding
Sandbox KYB Behavior
In sandbox, KYB verification is simulated:KYB Test Scenarios
Control KYB outcomes using specific email patterns:| Email Pattern | KYB Result |
|---|---|
approved@test.com | Auto-approved |
rejected@test.com | Auto-rejected |
pending@test.com | Stays pending |
review@test.com | Requires manual review |
Testing Transactions
Transaction Test Cases
Successful Onramp
cURL
JavaScript
Python
Failed Transaction (Insufficient Funds)
cURL
JavaScript
Python
Go
Rust
Java
Simulated Processing Times
In sandbox, transactions complete faster:- Onramp: 30 seconds to 2 minutes
- Offramp: 1-3 minutes
- Swap: 10-30 seconds
- Failed: Immediate
Webhook Testing
Test Webhook Events
Trigger test webhooks manually:Webhook Testing Tools
ngrok for Local Development
Webhook.site for Quick Testing
- Visit webhook.site
- Copy the unique URL
- Register it as your webhook endpoint
- View real-time webhook deliveries
Integration Testing Checklist
Authentication
- API keys work in sandbox
- Error handling for invalid keys
- Rate limiting behavior
- Proper header format
Customer Management
- Create customers successfully
- Handle validation errors
- KYB flow integration
- Status polling/webhooks
Transaction Processing
- Successful transaction creation
- Transaction estimation accuracy
- Error handling (insufficient funds, invalid addresses)
- Status tracking and webhooks
- Idempotency key usage
Webhook Handling
- Webhook signature verification
- Event processing logic
- Duplicate event handling
- Retry mechanisms
- Error logging
Error Simulation
Force Specific Errors
Use special values to trigger errors in sandbox:Transaction Errors
KYB Errors
Load Testing
Rate Limit Testing
Test your rate limit handling:cURL
JavaScript
Python
Transaction Volume Testing
cURL
JavaScript
Python
Go
Rust
Java
Production Readiness
Pre-Launch Checklist
Before switching to production:- All sandbox tests passing
- Error handling comprehensive
- Webhook endpoints secured and tested
- Rate limiting handled gracefully
- Logging and monitoring in place
- Security review completed
- Backup/recovery procedures tested
Migration to Production
-
Update Configuration
- Change base URL to
https://api.platform.dakota.xyz - Replace development API keys with production keys
- Update webhook URLs if needed
- Change base URL to
-
Environment Variables
-
Gradual Rollout
- Start with small transaction amounts
- Monitor error rates closely
- Have rollback plan ready
Monitoring and Debugging
Logging Best Practices
Debug Mode
Enable detailed request/response logging:Common Issues and Solutions
Issue: Webhooks Not Received
Solution: Check webhook endpoint accessibility and response codesIssue: Transactions Stuck in Processing
Solution: In development, check transaction status via API; may be waiting for simulated processingIssue: KYB Never Completes
Solution: Use test email patterns or check KYB provider status via APIIssue: Rate Limits Hit Quickly
Solution: Implement exponential backoff and request queuingNext Steps
After thorough testing:- Authentication - Review production security practices
- Customer Onboarding - Set up production KYB flows
- Transactions - Process real transactions
- Webhooks - Configure production webhook endpoints
API Reference
For testing-specific documentation, see:- Sandbox Environment Reference - Sandbox-specific behaviors
- Test Data Reference - Available test scenarios
- Error Simulation Reference - Triggering specific errors