Skip to main content
PUT
/
webhooks
/
{endpoint}
Update a webhook
curl --request PUT \
  --url https://api.notchpay.co/webhooks/{endpoint} \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "url": "https://example.com/webhooks",
  "description": "Webhook principal mis à jour",
  "events": [
    "payment.created"
  ]
}
'
{
  "code": 202,
  "status": "Accepted",
  "message": "Webhook endpoint updated successfully",
  "endpoint": "<unknown>"
}

Authorizations

Authorization
string
header
required

Path Parameters

endpoint
string
required

Unique identifier of the webhook

Body

application/json
url
string
Example:

"https://example.com/webhooks"

description
string
Example:

"Webhook principal mis à jour"

events
enum<string>[]
Available options:
payment.created,
payment.complete,
payment.failed,
payment.canceled,
payment.expired,
transfer.created,
transfer.complete,
transfer.failed,
customer.created,
customer.updated,
customer.deleted,
customer.blocked,
customer.unblocked

Response

Webhook endpoint updated

code
integer
required
Example:

202

status
string
required
Example:

"Accepted"

message
string
required
Example:

"Webhook endpoint updated successfully"

endpoint
any
required