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: Webhooks
Body·
required
application/json
- Type: object
- Type: array string[] · enumenabled
_events requiredThe event types this endpoint receives.
values- checkout
_session .completed A Checkout Session completed successfully.
- payment
_intent .authorized A PaymentIntent was authorized and can be captured.
- payment
_intent .captured A PaymentIntent was captured.
- payment
.succeeded A Payment succeeded.
- payment
.captured A Payment was captured.
- 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",
"created": "2026-08-18T08:14:01.736Z",
"name": "string",
"url": "https://example.com/webhooks/paypercut",
"enabled_events": [
"checkout_session.completed",
"payment_intent.authorized",
"payment_intent.captured",
"payment.succeeded",
"payment.captured",
"invoice.paid",
"invoice.payment_failed"
],
"status": "string",
"secret": "string"
}
