Welcome to DompetX API
The DompetX API provides a comprehensive set of endpoints for integrating payment processing into your applications. Our RESTful API enables you to create transactions, manage payments, handle webhooks, and monitor transaction status with ease.Base URL
All API requests should be made to:API Features
Transaction Management
Create, retrieve, and manage payment transactions
Multiple Payment Methods
Support for virtual accounts, e-wallets, and credit cards
Real-time Webhooks
Instant notifications for payment status updates
Secure Authentication
API key-based authentication with request signing
Authentication
All API endpoints require authentication using an API Key obtained from your merchant dashboard.Obtaining Your API Credentials
To get your API Key:- Log in to the DompetX Merchant Dashboard
- Go to Merchant (ensure your merchant is active) → Details → API Keys
- Generate a new API Key
- Store your API Key securely using environment variables; do not hardcode or commit it.
Request Headers
All requests must include the following headers:Header Generation
X-DOMPAY-API-Key
Your merchant API key obtained from the DompetX dashboard. This identifies your merchant account.X-DOMPAY-Timestamp
A Unix timestamp (seconds since epoch) representing when the request was made. This prevents replay attacks.X-DOMPAY-Signature
A HMAC-SHA256 signature of the request to ensure integrity and authenticity.Idempotency-Key
A unique identifier for the request (e.g., UUID) to prevent duplicate processing if the same request is sent multiple times.Request Signing
For security, all requests must include a signature generated using HMAC-SHA256. The signature is calculated using your API Key on a concatenated string ks =timestamp + '.' + body.
Example Header
Rate Limiting
API requests are rate limited to ensure system stability:- Production: 1000 requests per minute
SDK and Examples
Here are code examples for integrating DompetX transaction endpoints:Available Endpoints
Payment Methods
Get list of available payment methods
Create Transaction
Create a new payment transaction
Check Transaction Status
Retrieve transaction details and status
Cancel Transaction
Cancel a pending transaction
Need Help?
Support
Get technical support from our team