Skip to content

Webhook events

Last reviewed: Oct 2, 2026

The main communication channel between an FSP and their Rhyza instance consists of the Admin API and webhook events sent by the notifications service.

For Rhyza to notify an FSP about webhook events, the FSP must expose a webhook endpoint that listens for the dispatched events. The events provide time-sensitive status updates, warnings, and errors so that the FSP can react accordingly.

The webhook endpoint URL is configured using the WEBHOOK_URL environment variable.

When an event occurs, the notifications service makes request to the configured endpoint. The service expects a 200 status in return.

VariableTypeDescription
WEBHOOK_URLnotificationsThe endpoint where requests are made when a webhook event occurs.

Each webhook event is sent as a JSON payload with the following structure in the request body. The parameters in the data object vary depending on the event.

AttributeTypeDescriptionRequired
idStringUUID for the eventY
typeEnumThe event typeY
dataObjectAdditional data that coincides with the event typeY

We provide an OpenAPI specification for the webhook events fired by Rhyza.

Additionally, the Local Playground contains example payloads in the Bruno collection that can be used to test an FSP’s webhook service integration.

If requests to credit or debit user accounts are lengthy processes, we recommend using a worker to process received events. The worker allows the server to process events at a rate suitable for the FPS’s system and reduces the number of failed/retried events since the event listener can immediately reply with a successful 200 status.

Rhyza retries the webhook request at increasing intervals if the request times out or if a non-200 status is returned, indicating an error. The first retry occurs after 10 seconds. Additional retries occur after 20 more seconds, then after 30 more seconds, and so on. Rhyza continues to retry until a 200 status is returned.

FSPs can fine-tune timeouts and maximum retries by configuring the environment variables listed below.

VariableTypeDescription
WEBHOOK_TIMEOUTnotificationsThe time, in milliseconds, after which a webhook request times out
WEBHOOK_MAX_RETRYnotificationsThe maximum number of retries for a webhook event when a non-200 status is returned or if the request timed out