Skip to main content
DELETE
/
3p
/
api
/
v1
/
webhook
De-register Webhook ( STABLE )
curl --request DELETE \
  --url https://api.grailpay.com/3p/api/v1/webhook \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "event_names": [
    "TransactionStarted",
    "TransactionFailed"
  ],
  "webhook_url": [
    "https://example.com/webhook",
    "https://example.com/webhook-example"
  ]
}
'
{
  "status": true,
  "message": "Webhook de-registered!",
  "data": null,
  "errors": null,
  "error_code": null
}

Authorizations

Authorization
string
header
required

Token-based authentication using Authorization: Bearer <YOUR_API_KEY> provided by the GrailPay Support Team.

Body

application/json
event_names
string[]
required
Example:
["TransactionStarted", "TransactionFailed"]
webhook_url
string<url>[]
Example:
[
"https://example.com/webhook",
"https://example.com/webhook-example"
]

Response

Webhook de-registered successfully

status
boolean
Example:

true

message
string
Example:

"Webhook de-registered!"

data
string
Example:

null

errors
string
Example:

null

error_code
string
Example:

null