v1
latestOpenAPI 3.0.02026-08-0696238481.7 KBWebhooks
Create/Register a webhook endpoint
Create/Register a webhook endpoint to start receiving events
post/webhooks
Request body
Example request
{
"url": "https://example-endpoint.com/webhook",
"active": true,
"eventTypes": [
"PaymentSession.captured",
"PaymentSession.refunded"
]
}Response
Webhook successfully registered
Example response
{
"secret": "whs_0f6b1b5a-aef0-4011-978b-19fd4a4d46ea",
"id": "wh_31fba123-0fef-41d6-92ad-fd7089f49f8a",
"active": true,
"url": "https://example-endpoint.com/webhook",
"eventTypes": [
"PaymentSession.captured",
"PaymentSession.refunded"
],
"createdTimestamp": 1470989538
}