API Reference
The Avista API offers the following endpoint groups for integration:
| Method | Endpoint | Description |
|---|
POST | /api/auth/token | Generate JWT access token |
| Method | Endpoint | Description |
|---|
GET | /api/balance | Query account balance |
| Method | Endpoint | Description |
|---|
POST | /api/pix/cash-in | Generate PIX charge (Cash-In) |
POST | /api/pix/cash-out | Send PIX payment (Cash-Out) |
POST | /api/pix/cash-out-qrcode | Pay via PIX QR Code |
POST | /api/pix/refund-in/\{id\} | Request payment refund |
GET | /api/pix/transaction/\{id\} | Query transaction status |
GET | /api/transactions | Search account transactions |
GET | /api/pix/transactions/pix-key/\{pixKey\} | List transactions by PIX key |
GET | /api/pix/transactions/pix-key/\{pixKey\}/\{identifier\} | Query transaction by PIX key |
| Method | Endpoint | Description |
|---|
GET | /api/webhooks | List configured webhooks |
POST | /api/webhooks | Configure webhook |
POST | /api/resend-webhook/\{transactionIdentifier\} | Resend webhook |
All endpoints (except token generation) require authentication via Bearer token.
See the authentication guide for more details.