{ "opencollection": "1.0.0", "info": { "name": "Business Accounting Webhooks (v2) API", "version": "1.0" }, "items": [ { "info": { "name": "Webhooks (v2)", "type": "folder" }, "items": [ { "info": { "name": "Retrieve a list of webhooks", "type": "http" }, "http": { "method": "GET", "url": "https://b2b.revolut.com/api/1.0/webhooks", "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Get the list of all your existing webhooks and their details.\n\nFor more information, see the guides: [About webhooks](https://developer.revolut.com/docs/guides/manage-accounts/webhooks/about-webhooks) and [Manage webhooks](https://developer.revolut.com/docs/guides/manage-accounts/webhooks/manage-webhooks#retrieve-a-list-of-webhooks)." }, { "info": { "name": "Create a new webhook", "type": "http" }, "http": { "method": "POST", "url": "https://b2b.revolut.com/api/1.0/webhooks", "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Create a new webhook to receive event notifications to the specified URL. Provide a list of event types that you want to subscribe to and a URL for the webhook.\nOnly HTTPS URLs are supported.\n\nFor more information, see the guides: [About webhooks](https://developer.revolut.com/docs/guides/manage-accounts/webhooks/about-webhooks) and [Manage webhooks](https://developer.revolut.com/docs/guides/manage-accounts/webhooks/manage-webhooks#create-a-webhook)." }, { "info": { "name": "Retrieve a webhook", "type": "http" }, "http": { "method": "GET", "url": "https://b2b.revolut.com/api/1.0/webhooks/:webhook_id", "params": [ { "name": "webhook_id", "value": "", "type": "path", "description": "The ID of the webhook to retrieve." } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Get the information about a specific webhook by ID.\n\nFor more information, see the guides: [About webhooks](https://developer.revolut.com/docs/guides/manage-accounts/webhooks/about-webhooks) and [Manage webhooks](https://developer.revolut.com/docs/guides/manage-accounts/webhooks/manage-webhooks#retrieve-a-specific-webhook)." }, { "info": { "name": "Update a webhook", "type": "http" }, "http": { "method": "PATCH", "url": "https://b2b.revolut.com/api/1.0/webhooks/:webhook_id", "params": [ { "name": "webhook_id", "value": "", "type": "path", "description": "The ID of the webhook to update." } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Update an existing webhook. Change the URL to which event notifications are sent or the list of event types to be notified about.\n\nYou must specify at least one of these two. The fields that you don't specify are not updated.\n\nFor more information, see the guides: [About webhooks](https://developer.revolut.com/docs/guides/manage-accounts/webhooks/about-webhooks) and [Manage webhooks](https://developer.revolut.com/docs/guides/manage-accounts/webhooks/manage-webhooks#update-a-webhook)." }, { "info": { "name": "Delete a webhook", "type": "http" }, "http": { "method": "DELETE", "url": "https://b2b.revolut.com/api/1.0/webhooks/:webhook_id", "params": [ { "name": "webhook_id", "value": "", "type": "path", "description": "The ID of the webhook to delete." } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Delete a specific webhook.\n\nA successful response does not get any content in return.\n\nFor more information, see the guides: [About webhooks](https://developer.revolut.com/docs/guides/manage-accounts/webhooks/about-webhooks) and [Manage webhooks](https://developer.revolut.com/docs/guides/manage-accounts/webhooks/manage-webhooks#delete-a-webhook)." }, { "info": { "name": "Rotate a webhook signing secret", "type": "http" }, "http": { "method": "POST", "url": "https://b2b.revolut.com/api/1.0/webhooks/:webhook_id/rotate-signing-secret", "params": [ { "name": "webhook_id", "value": "", "type": "path", "description": "The ID of the webhook for which to rotate the secret." } ], "body": { "type": "json", "data": "{}" }, "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Rotate a signing secret for a specific webhook.\n\nFor more information, see the guides: [About webhooks](https://developer.revolut.com/docs/guides/manage-accounts/webhooks/about-webhooks) and [Manage webhooks](https://developer.revolut.com/docs/guides/manage-accounts/webhooks/manage-webhooks#rotate-a-webhook-signing-secret)." }, { "info": { "name": "Retrieve a list of failed webhook events", "type": "http" }, "http": { "method": "GET", "url": "https://b2b.revolut.com/api/1.0/webhooks/:webhook_id/failed-events", "params": [ { "name": "webhook_id", "value": "", "type": "path", "description": "The ID of the webhook for which to get the failed events." }, { "name": "limit", "value": "", "type": "query", "description": "The maximum number of events returned per page.\n\nTo get to the next page, make a new request and use the `created_at` date of the last event returned in the previous response as value for `created_before`." }, { "name": "created_before", "value": "", "type": "query", "description": "Retrieves events with `created_at` < `created_before`. \nCannot be older than the current date minus 21 days. \nThe default value is the current date and time at which you are calling the endpoint.\n\nProvided in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format." } ], "auth": { "type": "bearer", "token": "{{bearerToken}}" } }, "docs": "Get the list of all your failed webhook events, or use the query parameters to filter the results.\n\nThe events are sorted by the `created_at` date in reverse chronological order.\n\nThe returned failed events are **paginated**. \nThe maximum number of events returned per page is specified by the `limit` parameter.\nTo get to the next page, make a new request and use the `created_at` date of the last event returned in the previous response.\n\nFor more information, see the guides: [About webhooks](http" } ] } ], "bundled": true }