Demo API Environment
The Crypto Payment Gateway provides a demo environment for testing and development purposes.
Demo API Details
Base URL: https://cp-merch-dev.wsdemo.online/api
OpenAPI Documentation: https://cp-merch-dev.wsdemo.online/api/openapi/
API Examples
Here are some common API endpoints you can test with curl or any HTTP client:
Get Networks
curl -X GET https://cp-merch-dev.wsdemo.online/api/networks
Get Network Details
curl -X GET https://cp-merch-dev.wsdemo.online/api/networks/ethereum
Create Address
curl -X POST https://cp-merch-dev.wsdemo.online/api/addresses \
-H "Content-Type: application/json" \
-d '{"network": "ethereum", "type": "user"}'
Get Hot Wallet Balance
curl -X GET https://cp-merch-dev.wsdemo.online/api/addresses/hot-wallet/ethereum
Get Transactions
curl -X GET https://cp-merch-dev.wsdemo.online/api/transactions?limit=5
Get Block Numbers
curl -X GET https://cp-merch-dev.wsdemo.online/api/networks/last-number-blocks
Interactive Testing
For interactive API testing, visit the OpenAPI documentation: https://cp-merch-dev.wsdemo.online/api/openapi/
This provides a full Swagger UI where you can:
- Enter your API key
- Test all endpoints interactively
- See real-time responses
- Download API specifications
Features
- Sample Data: Pre-populated with test networks, addresses, and transactions
- No Real Transactions: All operations are simulated - no real cryptocurrency is processed
- Full API Coverage: All endpoints available for testing
- Reset Daily: Demo data is reset every 24 hours
Getting Started
1. Explore the API Documentation
Visit the interactive OpenAPI documentation:
https://cp-merch-dev.wsdemo.online/api/openapi/
2. Test Basic Endpoints
List available networks:
curl -X GET https://cp-merch-dev.wsdemo.online/api/networks
Get network details:
curl -X GET https://cp-merch-dev.wsdemo.online/api/networks/ethereum
3. Create Test Addresses
Create a new address:
curl -X POST https://cp-merch-dev.wsdemo.online/api/addresses \
-H "Content-Type: application/json" \
-d '{
"network": "ethereum",
"type": "user"
}'
4. Query Balances
Check address balances:
curl -X GET https://cp-merch-dev.wsdemo.online/api/addresses/hot-wallet/ethereum
Available Test Data
Networks
- Bitcoin (BTC)
- Ethereum (ETH)
- Tron (TRX)
- Polygon (MATIC)
- BSC (BNB)
- Arbitrum (ARB)
- Fantom (FTM)
- Litecoin (LTC)
Address Types
user
- Individual user addresseshot
- Hot wallet addressescold
- Cold storage addressestokens_collector
- Token collection addresses
Sample Transactions
The demo environment includes sample transactions with various statuses:
- Pending transactions
- Confirmed transactions
- Failed transactions
Limitations
Demo Limitations
- No real cryptocurrency transactions
- Data resets every 24 hours
- Rate limiting may be more restrictive
- Some advanced features may be disabled
Moving to Production
When you're ready to move to production:
- Get Production API Key: Register at your-gateway.com
- Update Base URL: Change to
https://api.your-gateway.com/api/v1
- Configure Webhooks: Set up production webhook endpoints
- Test with Small Amounts: Start with small test transactions
Support
Need help with the demo environment?