Webhooks and Callbacks
callback_url
in your API requests to specify the endpoint where these webhook events should be sent.
When a relevant event occurs, Sarafa will send an HTTP POST request to the callback_url
you provided. The body of this request will contain a JSON object detailing the event.
To receive webhooks, you need to:
callback_url
) that can accept HTTP POST requests.callback_url
in the relevant API request when initiating an action that might trigger a webhook event (e.g., creating a payment link).callback_url
to receive and process the incoming webhook data.callback_url
in an API Request (e.g., /charge ):