Integrate payment processing and wallet management into your application
https://api.totopay.netAll API requests require authentication using an API key. Include your API key in the Authorization header:
Authorization: Bearer YOUR_API_KEY/api/v1/walletsGet list of all wallets
curl -X GET "https://api.totopay.net/api/v1/wallets" \
-H "Authorization: Bearer YOUR_API_KEY"/api/v1/walletsCreate a new wallet
curl -X POST "https://api.totopay.net/api/v1/wallets" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"currency": "BTC",
"label": "My Bitcoin Wallet"
}'/api/v1/transactionsGet transaction history
curl -X GET "https://api.totopay.net/api/v1/transactions?limit=10&offset=0" \
-H "Authorization: Bearer YOUR_API_KEY"/api/v1/transfersCreate a new transfer
curl -X POST "https://api.totopay.net/api/v1/transfers" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"wallet_id": "wallet_123",
"amount": "0.5",
"currency": "BTC",
"address": "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa"
}'/api/v1/ratesGet current exchange rates
curl -X GET "https://api.totopay.net/api/v1/rates?from=BTC&to=USD" \
-H "Authorization: Bearer YOUR_API_KEY"/api/v1/paymentsCreate a new payment request
curl -X POST "https://api.totopay.net/api/v1/payments" \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"amount": "100.00",
"currency": "USDT",
"description": "Payment for services",
"expires_in": 30,
"webhook_url": "https://your-site.com/webhook"
}'/api/v1/payments/{payment_id}Get payment request status
curl -X GET "https://api.totopay.net/api/v1/payments/pay_123" \
-H "Authorization: Bearer YOUR_API_KEY"All API responses follow a consistent JSON format:
{
"success": true,
"data": {
"id": "wallet_123",
"currency": "BTC",
"balance": "1.23456789",
"address": "1A1zP1eP5QGefi2DMPTfTL5SLmv7DivfNa",
"created_at": "2024-01-15T10:30:00Z"
}
}API requests are limited to 1000 requests per minute per API key. If you exceed this limit, you'll receive a 429 Too Many Requests response.