POST
/
merchants
/
webhooks
/
delete
cURL
curl -X POST "https://dev.api.onekhusa.com/sandbox/v1/merchants/webhooks/delete" \
  --header "Authorization: Bearer your-jwt-token" \
  --header "Content-Type: application/json" \
  --header "Accept-Language: en" \
  -d '{
    "eventCode": "payment.success",
    "merchantAccountNumber": 35253486,
    "deletedBy": "johndoe@example.com"
   }'
"Merchant webhook has been deleted successfully"

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

MerchantAccountNumber
integer
required

The unique identifier of the merchant account (must match request body) Must match the MerchantAccountNumber in the request body

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

35253486

Body

application/json
eventCode
string
required

The event code of the webhook subscription to delete

Example:

"payment.success"

merchantAccountNumber
integer
required

The unique identifier of the merchant account

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

35253486

deletedBy
string<email>
required

Email address of the user deleting the webhook

Example:

"admin@onekhusa.com"

Response

200 - application/json

OK - Webhook successfully deleted

message
string
Example:

"Merchant webhook has been deleted successfully"