Documentation Index
Fetch the complete documentation index at: https://docs.zafapay.com/llms.txt
Use this file to discover all available pages before exploring further.
OpenAPI Specification
Download our OpenAPI specification to generate client libraries or import into API tools like Postman.Download OpenAPI (JSON)
Full Documentation
Download the complete documentation as a text file for offline reading or AI tool integration.Download Docs (TXT)
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 |