Overview
KiraPay sends webhook notifications to your server when important events occur. This lets you react to events in real-time without polling our API.
How it works
Register your webhook endpoint URL with KiraPay
When an event occurs, KiraPay sends a POST request to your endpoint
Your server processes the webhook and returns a 200 status code
If we don't get a 200, we'll retry the delivery
Additional retries with exponential backoff
Maximum 3 retry attempts
Webhook events
transaction.created
A new transaction has been created
transaction.succeeded
A transaction completed successfully
transaction.failed
A transaction failed
Payload structure
{
"id": "evt_1704067200000_abc123",
"type": "transaction.succeeded",
"createdAt": "2025-01-25T10:00:00.000Z",
"data": {
// Event-specific data
}
}Webhook headers
Content-Type
Always application/json
X-KiraPay-Event
Event type (e.g., transaction.succeeded)
X-KiraPay-Id
Unique event ID
X-KiraPay-Timestamp
Unix timestamp when event was created
X-KiraPay-Signature
HMAC-SHA256 signature for verification
Verifying webhooks
Always verify the signature to ensure requests are from KiraPay:
Managing endpoints
This is endpoints overview, you will learn more about it here.
Create endpoint
List endpoints
Update endpoint
View deliveries
Last updated
Was this helpful?