Webhooks
lets you build or set up integrations which subscribe to certain
automated notifications (i.e. events) on the Finix API. When one of those
events is triggered, a HTTP POST payload is sent to the webhook's configured
URL.
Related Guides: Webhooks
Create a Webhook
to specify an endpoint where Finix can send events.
Accept | string Default: application/hal+json |
Finix-Version | string Default: 2018-01-01 Specify the API version of your request. For more details, see Versioning. Example: 2022-02-01 |
object The authentication settings that are used to send webhook events. | |
enabled | boolean Set to false to disable Webhooks. Default value when created is true. |
Array of objects A list of events the webhook is explicitly enabled for. | |
url required | string <= 120 characters The HTTP or HTTPS URL where callbacks (i.e. events) will be sent via POST request (max 120 characters). |
Single Webhook object
Error
Authentication information is missing or invalid
Forbidden
Not Acceptable
Invalid field
{- "id": "WHg3ocwoCz9PgF4ncZTyArFJ",
- "created_at": "2022-10-10T03:56:10.15Z",
- "updated_at": "2022-10-10T03:56:10.15Z",
- "application": "APgPDQrLD52TYvqazjHJJchM",
- "authentication": {
- "type": "NONE"
}, - "enabled": true,
- "enabled_events": [ ],
- "previous_secret_expires_at": null,
- "secret_signing_key": "3afb49c98ac08a67a58efa5580b24e5984bc36d7ebd404e875234f107deed108",
- "_links": {
- "application": {
}
}
}
Retrieve a list of Webhooks
.
For details on how to query endpoints using the available parameters, see Query Parameters.
List of Webhook objects
Authentication information is missing or invalid
Forbidden
Not Acceptable
curl "https://finix.sandbox-payments-api.com/webhooks" \ -H "Finix-Version: 2022-02-01" \ -u USsRhsHYZGBPnQw8CByJyEQW:8a14c2f9-d94b-4c72-8f5c-a62908e5b30e
{- "_embedded": {
- "webhooks": [
- {
- "id": "WHtbmULb3Y68oGfKWc9TLJnJ",
- "created_at": "2022-09-27T18:40:29.20Z",
- "updated_at": "2022-09-27T18:40:29.39Z",
- "application": "APgPDQrLD52TYvqazjHJJchM",
- "authentication": {
- "type": "NONE"
}, - "enabled": false,
- "enabled_events": [ ],
- "previous_secret_expires_at": null,
- "_links": {
- "application": {
}
}
}, - {
- "id": "WHmnVdiaimgD8aRTVvwuTZaj",
- "created_at": "2022-09-27T18:38:56.81Z",
- "updated_at": "2022-09-27T18:38:57.03Z",
- "application": "APgPDQrLD52TYvqazjHJJchM",
- "authentication": {
- "type": "NONE"
}, - "enabled": false,
- "enabled_events": [ ],
- "previous_secret_expires_at": null,
- "_links": {
- "application": {
}
}
}
]
}, - "_links": {
}, - "page": {
- "offset": 0,
- "limit": 20,
- "count": 1197
}
}
Retrieve the details of a Webhook
.
Single Webhook object
Authentication information is missing or invalid
Forbidden
Object does not exist
Not Acceptable
curl "https://finix.sandbox-payments-api.com/webhooks/WHN6HuqRqTV3mDCxoFLrRvP" \ -H "Content-Type: application/json" \ -H "Finix-Version: 2022-02-01" \ -u USsRhsHYZGBPnQw8CByJyEQW:8a14c2f9-d94b-4c72-8f5c-a62908e5b30e
{- "id": "WHg3ocwoCz9PgF4ncZTyArFJ",
- "created_at": "2022-10-10T03:56:10.15Z",
- "updated_at": "2022-10-10T03:56:10.15Z",
- "application": "APgPDQrLD52TYvqazjHJJchM",
- "authentication": {
- "type": "NONE"
}, - "enabled": true,
- "enabled_events": [ ],
- "previous_secret_expires_at": null,
- "secret_signing_key": "3afb49c98ac08a67a58efa5580b24e5984bc36d7ebd404e875234f107deed108",
- "_links": {
- "application": {
}
}
}
Update an existing Webhook
to:
Webhook
.Accept | string Default: application/hal+json |
Finix-Version | string Default: 2018-01-01 Specify the API version of your request. For more details, see Versioning. Example: 2022-02-01 |
enabled | boolean Set to false to disable |
Array of objects A list of events the webhook is explicitly enabled for. | |
url | string The HTTP or HTTPS url where the callbacks will be sent via POST request (max 120 characters). |
Single Webhook object
Authentication information is missing or invalid
Forbidden
Object does not exist
Not Acceptable
{- "id": "WHg3ocwoCz9PgF4ncZTyArFJ",
- "created_at": "2022-10-10T03:56:10.15Z",
- "updated_at": "2022-10-10T03:56:10.15Z",
- "application": "APgPDQrLD52TYvqazjHJJchM",
- "authentication": {
- "type": "NONE"
}, - "enabled": true,
- "enabled_events": [ ],
- "previous_secret_expires_at": null,
- "secret_signing_key": "3afb49c98ac08a67a58efa5580b24e5984bc36d7ebd404e875234f107deed108",
- "_links": {
- "application": {
}
}
}