API Integration Overview
Quick orientation to the 3PAY API — environments, authentication, integration models, and links to detailed guides.
API Integration Overview
This page gives you a quick orientation to the 3PAY API. For detailed reference, see the linked guides below.
Environments
| Environment | Base URL | Dashboard |
|---|---|---|
| Production | https://pay.3pa-y.com/api/v1 | https://dashboard.3pa-y.com |
| Sandbox | Available in your sandbox dashboard | https://sandbox.3pa-y.com/ |
Sandbox and production are completely separate systems. API keys, webhooks, and balances do not carry over.
Authentication
All API endpoints require the apikey header. Some endpoints additionally require the x-api-secret header.
// Basic authentication (all endpoints)
headers: { apikey: "your-api-key" }
// Enhanced authentication (recommended, required for approve/reject)
headers: {
apikey: "your-api-key",
"x-api-secret": "your-api-secret"
}See Authentication & Security for the full auth model, rate limits, and security features.
Integration Models
3PAY supports three integration patterns:
1. Invoice Payments (One-Time)
Create payment links for individual transactions. Best for e-commerce checkout.
POST /api/v1/transaction/create → Payment URL
Customer pays → Webhook confirmation
2. Wallet Payments (Per-User)
Assign persistent wallet addresses to users. Best for platforms with user accounts.
POST /api/v1/public/wallet/generate → Wallet addresses
User deposits → Auto-detected → Webhook confirmation
3. Withdrawals & Payouts (Outbound)
Send USDT to external wallets via API or dashboard.
POST /api/v1/public/user/withdrawal/create → Auto-approved withdrawal
Dashboard payout → OTP → Immediate execution
Webhooks
3PAY sends real-time HTTP POST notifications for all transaction events. Configure your webhook URL in the dashboard and verify signatures using HMAC-SHA256.
Quick Links
| Need | Guide |
|---|---|
| All endpoints at a glance | API Quick Reference |
| Auth, rate limits, security | Authentication & Security |
| Test in sandbox | Testing & Sandbox |
| Go to production | Go Live Checklist |
| What changed in v2 | What's New in v2 |
Updated 26 days ago
