Base URL
https://api.stablepay.global/v2
Authentication
All endpoints require Bearer token authentication:Response Format
All responses follow this structure:Endpoints
Users
| Method | Endpoint | Description |
|---|---|---|
POST | /users | Create a new user |
GET | /users/:id | Get user details |
GET | /users | List users |
Verification
| Method | Endpoint | Description |
|---|---|---|
POST | /users/:id/verify/mobile/send | Send mobile OTP |
POST | /users/:id/verify/mobile/confirm | Verify mobile OTP |
POST | /users/:id/verify/email/send | Send email OTP |
POST | /users/:id/verify/email/confirm | Verify email OTP |
GET | /users/:id/verify/status | Get verification status |
KYC
| Method | Endpoint | Description |
|---|---|---|
POST | /users/:id/kyc/pan/verify | Verify PAN |
POST | /users/:id/kyc/digilocker/init | Initialize DigiLocker (Aadhaar) |
GET | /users/:id/kyc/digilocker/status | Check DigiLocker status |
POST | /users/:id/kyc/bank/verify | Verify bank account |
POST | /users/:id/kyc/upi/verify | Verify UPI |
POST | /users/:id/kyc/face/init | Initialize face liveness |
POST | /users/:id/kyc/face/verify | Verify face liveness |
GET | /users/:id/kyc/status | Get KYC status |
GET | /users/:id/kyc/extended-status | Get extended KYC status |
POST | /users/:id/kyc/profile | Submit user profile |
POST | /users/:id/kyc/declaration | Submit declaration |
Transactions
| Method | Endpoint | Description |
|---|---|---|
POST | /transactions | Create transaction |
POST | /transactions/prefunded | Create prefunded transaction |
GET | /transactions/:id | Get transaction |
GET | /transactions | List transactions |
POST | /transactions/:id/cancel | Cancel pending transaction |
GET | /quotes | Get exchange rate quote |
GET | /quotes/rate | Get current exchange rate info |
Account
| Method | Endpoint | Description |
|---|---|---|
GET | /account | Get account info |
GET | /account/stats | Get account stats |
GET | /account/usage | Get usage breakdown |
GET | /account/activity | Get recent activity |
GET | /account/developer-fee | Get developer fee settings |
PUT | /account/developer-fee | Update developer fee |
Webhooks
| Method | Endpoint | Description |
|---|---|---|
GET | /webhooks | List webhook events |
GET | /webhooks/:id | Get webhook event details |
GET | /webhooks/logs | Get webhook delivery logs |
POST | /webhooks/:id/retry | Retry failed webhook |
