API Endpoints
| Environment | Base URL |
|---|---|
| Sandbox | https://api.sandbox.zafapay.com |
| Production | https://api.zafapay.com |
Authentication
All API requests require Bearer token authentication.For instructions on obtaining an access token, see Authentication.
Request Format
- Content-Type:
application/json - Character encoding: UTF-8
Response Format
All responses are returned in JSON format. Success (Create Payment):For error code details, see Error Codes.
Transaction Status
| Status | Description |
|---|---|
pending | Payment created, awaiting customer action (redirect flow) |
requires_action | Awaiting frontend action (card payment) |
authorized | Authorization complete (awaiting manual capture) |
completed | Payment completed |
failed | Payment failed |
canceled | Payment canceled |
partially_refunded | Partially refunded |
refunded | Fully refunded |