Create a Webhook Endpoints
Creates a webhook endpoint. A webhook endpoint must have a url and a list of enabled_events.
You can also create, test, and manage webhook endpoints in the Merchant Dashboard. The dashboard provides a user interface for registering endpoints and choosing events.
Related guide: Notifications (Webhooks)
Body·
required
application/json
- Type: object
- Type: array string[] · enumenabled
_events requiredThe event types this endpoint receives.
values- checkout
_session .completed - payment
_intent .authorized - payment
_intent .captured - account
.updated - account
.external _account .created - account
.external _account .updated - invoice
.paid - invoice
.payment _failed
- Type: stringurlmax length:5000required
The URL of the webhook endpoint.
- Type: stringnamemax length:5000required
Name to help identify the webhook.
Responses
- application/json
- application/json
- application/json
- application/json
- application/json
Request Example for post/v1/webhooks
curl https://api.paypercut.io/v1/webhooks \
--request POST \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--data '{
"name": "Production payment events",
"url": "https://example.com/webhooks/paypercut",
"enabled_events": [
"checkout_session.completed",
"payment_intent.authorized",
"payment_intent.captured",
"invoice.paid",
"invoice.payment_failed"
]
}'
{
"id": "string",
"name": "string",
"enabled_events": [
"checkout_session.completed",
"payment_intent.authorized",
"payment_intent.captured",
"invoice.paid",
"invoice.payment_failed"
],
"status": "string",
"secret": "string",
"url": "https://example.com/webhooks/paypercut",
"created": "2026-05-19T12:09:30.267Z"
}
