curl -X GET "https://olp-api.nipuntheekshana.com/v1/webhooks/deliveries?page=1&limit=10" \
-H "Authorization: Bearer <your_jwt_token>"
{
"deliveries": [
{
"id": "del_abc123def456",
"event": "payment.completed",
"url": "https://yoursite.com/webhooks/openpay",
"status": "success",
"statusCode": 200,
"responseTime": 87,
"attempts": 1,
"createdAt": "2026-03-26T14:55:12Z"
},
{
"id": "del_xyz789ghi012",
"event": "payment.expired",
"url": "https://yoursite.com/webhooks/openpay",
"status": "failed",
"statusCode": 500,
"responseTime": 3021,
"attempts": 3,
"createdAt": "2026-03-25T18:30:00Z"
}
],
"pagination": {
"page": 1,
"limit": 10,
"total": 34,
"totalPages": 4
}
}
Webhooks
List Deliveries
Retrieve a paginated list of webhook delivery attempts with their status
GET
/
v1
/
webhooks
/
deliveries
curl -X GET "https://olp-api.nipuntheekshana.com/v1/webhooks/deliveries?page=1&limit=10" \
-H "Authorization: Bearer <your_jwt_token>"
{
"deliveries": [
{
"id": "del_abc123def456",
"event": "payment.completed",
"url": "https://yoursite.com/webhooks/openpay",
"status": "success",
"statusCode": 200,
"responseTime": 87,
"attempts": 1,
"createdAt": "2026-03-26T14:55:12Z"
},
{
"id": "del_xyz789ghi012",
"event": "payment.expired",
"url": "https://yoursite.com/webhooks/openpay",
"status": "failed",
"statusCode": 500,
"responseTime": 3021,
"attempts": 3,
"createdAt": "2026-03-25T18:30:00Z"
}
],
"pagination": {
"page": 1,
"limit": 10,
"total": 34,
"totalPages": 4
}
}
Authentication
This endpoint requires a Bearer token in theAuthorization header.
Authorization: Bearer <your_jwt_token>
Query Parameters
integer
default:"1"
The page number for pagination.
integer
default:"20"
The number of deliveries per page. Maximum value is
100.string
Filter by delivery status. Accepted values:
success, failed, pending.Response
array
An array of webhook delivery objects.
Show delivery fields
Show delivery fields
string
Unique identifier for the delivery attempt.
string
The event type that triggered the webhook (e.g.,
payment.completed).string
The webhook URL the event was sent to.
string
Delivery status:
success, failed, or pending.integer
The HTTP status code returned by the endpoint, or
null if delivery failed.integer
Response time in milliseconds.
integer
The number of delivery attempts made.
string
ISO 8601 timestamp of when the delivery was initiated.
object
curl -X GET "https://olp-api.nipuntheekshana.com/v1/webhooks/deliveries?page=1&limit=10" \
-H "Authorization: Bearer <your_jwt_token>"
{
"deliveries": [
{
"id": "del_abc123def456",
"event": "payment.completed",
"url": "https://yoursite.com/webhooks/openpay",
"status": "success",
"statusCode": 200,
"responseTime": 87,
"attempts": 1,
"createdAt": "2026-03-26T14:55:12Z"
},
{
"id": "del_xyz789ghi012",
"event": "payment.expired",
"url": "https://yoursite.com/webhooks/openpay",
"status": "failed",
"statusCode": 500,
"responseTime": 3021,
"attempts": 3,
"createdAt": "2026-03-25T18:30:00Z"
}
],
"pagination": {
"page": 1,
"limit": 10,
"total": 34,
"totalPages": 4
}
}