POST
/
merchants
/
webhooks
/
verify
cURL
curl -X POST "https://api.onekhusa.com/sandbox/v1/merchants/webhooks/verify" \
  --header "Authorization: Bearer your-jwt-token" \
  --header "Content-Type: application/json" \
  --header "Accept-Language: en" \
  -d '{
    "merchantAccountNumber": 12345678,
    "eventCode": "payrequest.success",
    "webhookSignature": "e4V5qKIM2ZX6Gl2A9K9Owy_J98gqBf4VgTF...."
  }'
{
  "merchantAccountNumber": 12345678,
  "isSignatureValid": true
}

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer , where is your access token.

Headers

Accept-Language
string
default:en

Preferred language for the response

Body

application/json
merchantAccountNumber
integer
required

An active account number for the merchant registered on OneKhusa for verifying webhooks.

Required range: 10000000 <= x <= 99999999
Example:

12345678

eventCode
string
required

The event code received from webhook notification request.

Example:

"payrequest.success"

webhookSignature
string
required

The unique signature received from webhook notification request.

Example:

"e4V5qKIM2ZX6Gl2A9K9Owy_J98gqBf4VgTF...."

Response

200 - application/json

Success Response (200 OK)

merchantAccountNumber
integer

An account number for the merchant used for verifying webhook notification.

Example:

12345678

isSignatureValid
boolean

This indicates whether webhook notification is valid or not.

Example:

true