API Reference · Platform
Events
Proposed log of the events sent to your webhooks. Not built: there is no events API yet.
The event object
Represents a event entity in the rafiqPay system.
| Field | Type & Flags | Description |
|---|---|---|
| id | string | Event ID (evt_...). |
| type | string | Event type (e.g. charge.succeeded). |
| data | object | Snapshot of the affected resource. |
Example event JSON
event example payload
{
"id": "evt_01J9KANZU",
"type": "charge.succeeded",
"apiVersion": "2026-10-01",
"createdAt": "2026-10-20T14:22:00Z"
}Endpoints & Operations
GET/v1/events/:idProposed
Retrieve an event
Retrieves an event by ID.
Request Example
GET /v1/events/:id
cURL · v1
curl -X GET "https://api.rafiqpay.net/v1/events/:id" \
-H "Authorization: Bearer rp_test_sk_kanzu_9f8a7b6c5d4e3f2a"Response (200 OK)
Response payload
{
"id": "evt_01J9KANZU",
"type": "charge.succeeded"
}GET/v1/eventsProposed
List events
Lists events from the last 30 days.
Request Example
GET /v1/events
cURL · v1
curl -X GET "https://api.rafiqpay.net/v1/events" \
-H "Authorization: Bearer rp_test_sk_kanzu_9f8a7b6c5d4e3f2a"Response (200 OK)
Response payload
{
"object": "list",
"data": [],
"hasMore": false,
"nextCursor": null
}