Endpoints
Create Payment
Creates a new payment order. Returns a QR code and checkout link for customer payment.Authentication
Requires HMAC authentication with headers:x-api-key: Your API key ID only (e.g.,ak_live_xxx)x-timestamp: Current Unix timestamp in millisecondsx-signature: HMAC-SHA256 signature (using derived signing key)
Request Body
Currency Handling
- USDT: Payment is created directly in USDT
- LKR: Amount is automatically converted to USDT using the current exchange rate
Example Request
Example Response
Response Fields
LKR Payment Response
When creating a payment in LKR, additional fields are returned:Get Payment
Retrieve details for a specific payment.Path Parameters
Example Request
Error Responses
List Payments
Retrieve a paginated list of your payments.Query Parameters
Example Request
Example Response
Payment Status
Webhooks
SetwebhookUrl in your payment request to receive real-time status updates.
See Webhooks Guide for payload format, signature verification, and retry policy.
Error Responses
See Error Codes for detailed error handling.
Related Documentation
- Quick Start - Getting started guide
- Authentication - HMAC signature details
- Webhooks - Receive payment notifications
- Rate Limits - API rate limiting
- Errors - Error codes reference