Create a Webhook
Changed onCreate a Webhook to receive webhook events for specified entities (e.g., transfer, merchant) to a URL provided by you. When an enabled event occurs, Finix sends a POST request to this URL with the webhook event payload.
{% admonition type="info" %} The response includes a secret_signing_key. Store this value securely. It is used to verify that incoming payloads were sent by Finix. {% /admonition %}
Authentication
Set authentication.type to control how Finix authenticates requests to your endpoint:
- NONE (default) — No authentication header is sent
- BASIC — Provide authentication.basic.username and authentication.basic.password
- BEARER — Provide authentication.bearer.token
To learn how to add webhook authentication, see Creating Authenticated Webhooks.
Event Filtering
By default, a new Webhook subscribes to a standard set of events. Include enabled_events to override the default set of events and receive only specific entity/type combinations. See Webhook Events for supported entities and event types.
Request
- Base URLhttps://finix.sandbox-payments-api.com
- AuthHTTP basic
- TypeScriptA function with typed inputs. Its response is checked against the schema.
Headers
Specify the API version of your request. For more details, see Versioning.
The data type being sent in the request body must be application/json.
Request body
Example request
{
"enabled_events": [
{
"entity": "transfer",
"types": [
"created"
]
}
],
"url": "https://httpbin.org/post"
}Response
A single Webhook
Example response
{
"enabled_events": [
{
"entity": "transfer",
"types": [
"created"
]
}
]
}Changes
- breaking
the response property
became nullable for the status
- breaking
- info
added the new optional request property
/
- info