Update a webhook endpoint

Updates the webhook endpoint. You may edit the url, the list of enabled_events, and the status of your endpoint.

Path Parameters
  • id
    Type: string
    max length:  
    5000
    required
Body·WebhookEndpointUpdateRequest
required
application/json
  • enabled_events
    Type: array string[]
    required

    The list of events to enable for this endpoint.

  • url
    Type: string
    max length:  
    5000
    required

    The URL of the webhook endpoint.

Responses
  • application/json
  • application/json
Request Example for post/v1/webhooks/{id}
curl 'https://api.paypercut.io/v1/webhooks/{id}' \
  --request POST \
  --header 'Content-Type: application/json' \
  --header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
  --data '{
  "enabled_events": [
    ""
  ],
  "url": ""
}'
{
  "id": "string",
  "name": "string",
  "enabled_events": [
    "string"
  ],
  "status": "string",
  "secret": "string",
  "url": "string",
  "created": "2026-04-17T20:01:58.674Z"
}