Integration Webhooks
This is an older form of Webhook, which only supports events related to changes in integration state. Unlike General Webhooks, each event generates an individual webhook.
Supported events
Entity | Event | Description |
Integration |
| Event triggered when a new integration is created |
Integration |
| Event triggered when a integration is enabled |
Integration |
| Event triggered when a integration is disabled |
Integration |
| Event triggered when a integration is canceled |
Integration |
| Event triggered when a integration is reinstated |
Integration |
| Event triggered when a integration is deleted |
TerminologyAn Integration refers to the unique connection between an Enterprise or Property (i.e. Mews customer) and an API client (i.e. Mews partner), corresponding to a unique Access Token. For a full description of all the terms used, see the Mews Glossary for Open API users.
Request body
Property | Type | Contract | Description |
---|---|---|---|
| string Webhook action | required | Type of action or event. |
| object | required | Structure of the object depends on Webhook action. |
Webhook action
IntegrationCreated
- Triggered when a new integration is created.Data
is Integration created data.IntegrationEnabled
- Triggered when an integration is enabled.Data
is Integration enabled data.IntegrationDisabled
- Triggered when an integration is disabled.Data
is Integration disabled data.IntegrationCanceled
- Triggered when an integration is canceled.Data
is Integration canceled data.IntegrationReinstated
- Triggered when an integration is reinstated.Data
is Integration reinstated data.IntegrationDeleted
- Triggered when an integration is deleted.Data
is Integration deleted data.
Webhook data
The structure of the Data object depends on Webhook action.
Integration created data
Property | Type | Contract | Description |
---|---|---|---|
| required | Property or chain of properties. | |
| optional | Service the integration is connected to. | |
| required | Person requesting the action or event. | |
| string | required | Access token of the client application. |
| string | required | Creation date and time of the integration in UTC timezone in ISO 8601 format. |
| bool | required | Whether integration is enabled. |
| required | Integration data. |
Enterprise
Property | Type | Contract | Description |
---|---|---|---|
| string | required | Unique identifier of the enterprise. |
| string | required | Name of the enterprise. |
Service
Property | Type | Contract | Description |
---|---|---|---|
| string | required | Unique identifier of the service. |
| string | required | Name of the service. |
Requestor
Property | Type | Contract | Description |
---|---|---|---|
| string | required | Name of the requestor. |
| string | required | Email of the requestor. |
Integration
Property | Type | Contract | Description |
---|---|---|---|
| string | required | Unique identifier of the integration. |
| string | required | Name of the integration. |
Integration enabled data
Property | Type | Contract | Description |
---|---|---|---|
| required | Integration data. |
Integration disabled data
Property | Type | Contract | Description |
---|---|---|---|
| required | Integration data. |
Integration canceled data
Property | Type | Contract | Description |
---|---|---|---|
| required | Integration data. |
Integration reinstated data
Property | Type | Contract | Description |
---|---|---|---|
| required | Integration data. |
Integration deleted data
Property | Type | Contract | Description |
---|---|---|---|
| string | required | Deletion date and time of the integration in UTC timezone in ISO 8601 format. |
| required | Integration data. |
Last updated