Complete REST API documentation for integrating PayKLY payments
https://api.paykly.com/v1Header Format:
Authorization: Bearer YOUR_API_KEYGet your API key from the dashboard
Request Body:
{
"amount": 100.00,
"currency": "KLY",
"merchant_id": "your_merchant_id",
"description": "Payment for order #123",
"callback_url": "https://yoursite.com/callback"
}Response:
{
"id": "pay_123456",
"status": "pending",
"payment_url": "https://paykly.com/pay/pay_123456",
"expires_at": "2025-01-01T12:00:00Z"
}Response:
{
"id": "pay_123456",
"status": "completed",
"amount": 100.00,
"currency": "KLY",
"transaction_hash": "0x...",
"created_at": "2025-01-01T10:00:00Z",
"completed_at": "2025-01-01T10:05:00Z"
}Query Parameters:
limit - Number of results (default: 20)offset - Pagination offsetstatus - Filter by status (pending, completed, failed)Event Types:
payment.pending - Payment createdpayment.completed - Payment successfulpayment.failed - Payment failedpayment.expired - Payment expiredWebhook Payload:
{
"event": "payment.completed",
"data": {
"id": "pay_123456",
"status": "completed",
"amount": 100.00,
"currency": "KLY"
},
"timestamp": "2025-01-01T10:05:00Z"
}{
"error": {
"code": "INVALID_REQUEST",
"message": "The provided amount is invalid",
"details": {}
}
}We use cookies to improve your experience. Strictly necessary cookies are always on. Others require your consent.
See our Cookie Policy for details.