POST request with a JSON payload to your URL each time a qualifying event is triggered. If you have already registered a webhook URL, calling this endpoint again will update it with the new value (upsert behavior).
Endpoint
Authentication
All requests must include your secret API key in theX-Api-Key header.
Your CertoPay secret API key (e.g.
sk_live_sua_chave_aqui).Must be
application/json.Request Body
The fully qualified HTTPS URL of your webhook endpoint. CertoPay will deliver transaction event notifications to this address. Must use the
https:// scheme — plain HTTP URLs are not accepted.Example Request
Example Request Body
Response
200 — Success
A successful call returns a confirmation that the webhook URL has been registered or updated.This endpoint uses upsert behavior — calling it again with a different URL will update your existing webhook registration rather than create a duplicate. There is only ever one active webhook URL per account. To view your currently registered URL, use GET /api/webhooks.