Create a webhook endpoint
Registers a new destination URL and its event subscriptions. A signing secret is generated automatically and returned once in the response.
Authorizations
The Server API Key obtained from the kelviq application. Pass as a Bearer token in the Authorization header. Example: 'Authorization: Bearer YOUR_API_KEY'
Body
Must be a public HTTPS/HTTP URL — URLs resolving to a private, loopback, link-local, or otherwise internal address are rejected.
checkout.completed, customer.created, customer.updated, order.created, order.updated, order.refunded, subscription.created, subscription.updated, subscription.cancelled, subscription.plan_changed, subscription.trial_will_end, invoice.created, invoice.paid, invoice.payment_failed, refund.created, refund.updated, feature.usage_alert, payment_method.created, payment_method.updated, payment_method.deleted Response
Webhook endpoint created.
"2f6b9e2a-7c1a-4a3e-8b6e-8e6f9a2c1d4a"
Destination URL that webhook events are POSTed to.
"https://example.com/webhooks/kelviq"
Disabled endpoints don't receive deliveries.
Event types this endpoint is subscribed to.
checkout.completed, customer.created, customer.updated, order.created, order.updated, order.refunded, subscription.created, subscription.updated, subscription.cancelled, subscription.plan_changed, subscription.trial_will_end, invoice.created, invoice.paid, invoice.payment_failed, refund.created, refund.updated, feature.usage_alert, payment_method.created, payment_method.updated, payment_method.deleted Signing secret used to verify the Kelviq-Signature header on deliveries to this endpoint.