curl -X POST "https://olp-api.nipuntheekshana.com/v1/webhooks/test" \
-H "Authorization: Bearer <your_jwt_token>"
{
"success": true,
"statusCode": 200,
"responseTime": 142,
"deliveryId": "del_test_abc123"
}
Webhooks
Test Webhook
Send a test webhook event to your configured endpoint to verify connectivity
POST
/
v1
/
webhooks
/
test
curl -X POST "https://olp-api.nipuntheekshana.com/v1/webhooks/test" \
-H "Authorization: Bearer <your_jwt_token>"
{
"success": true,
"statusCode": 200,
"responseTime": 142,
"deliveryId": "del_test_abc123"
}
Authentication
This endpoint requires a Bearer token in theAuthorization header.
Authorization: Bearer <your_jwt_token>
Description
Sends a simulatedpayment.completed event to your currently configured webhook URL. The test payload mirrors a real webhook delivery, including a valid ED25519 signature, so you can validate your verification logic end-to-end.
You must have a webhook URL configured before calling this endpoint. Use Configure Webhook to set one up.
Response
boolean
Whether the test webhook was delivered successfully (received a 2xx response from your endpoint).
integer
The HTTP status code returned by your webhook endpoint.
integer
The response time in milliseconds from your webhook endpoint.
string
The unique identifier for this delivery attempt. You can look it up in List Deliveries.
curl -X POST "https://olp-api.nipuntheekshana.com/v1/webhooks/test" \
-H "Authorization: Bearer <your_jwt_token>"
{
"success": true,
"statusCode": 200,
"responseTime": 142,
"deliveryId": "del_test_abc123"
}