Balance Extracts via Webhook
Overview
This guide explains how to receive balance extract events in your system using webhooks.
You will configure a webhook subscription and connect it to a balance extract so that events are delivered automatically when extracts are executed.
Before You Start
Make sure you are familiar with:
- Webhook concepts → Webhooks Overview
- Request validation → Webhook Security
- Delivery behavior and retries → Delivery & Retries
- API access and permissions → Webhook Configuration
Step 1 — Create a Webhook Secret
A webhook secret is used to sign requests so your system can verify their authenticity.
Create a secret using the API:
- Store the returned
valueproperty securely. - You will need it to validate webhook signatures.
Step 2 — Create a Webhook Subscription
A subscription defines where events should be delivered.
Here you will need to provide:
Request
Step 3 — Configure Your Receiver
Your webhook endpoint must:
- Accept POST requests
- Accept application/json payloads
- Validate the webhook signature
- Handle duplicate deliveries using the
Idempotency-Key
See:
Step 4 — Create a Balance Extract with Webhook Target
You will need Extractions Editor role assigned, e.g. Editor, to create the extract on the Extracts screen.
- Go to Operations → Extracts → Extracts in Fynapse
- Create a new extract
- Set Target name to Webhook
- Select Balances as the data source
- Complete the configuration
- Wait for schedule to Activate or run the extract manually
See Data Extraction for more details.
When the extract runs, balance.extracted events are generated and delivered to your webhook endpoint.
Event Format
Each delivery contains a balance.extracted event
Please note that the contents of the data property will be based off your selected Balance Query.
Testing the Integration
To verify your setup:
- Trigger a balance extract manually
- Confirm your endpoint receives the request
- Validate the signature
- Ensure the event is processed successfully
If the endpoint does not return 2xx, the delivery will be retried automatically.