Credentials
When creating your webhook in the portal, select the authentication type and provide relevant credentials.| Authentication type | Requirements |
|---|---|
| Basic Auth | Username and Password |
| OAuth | Client ID, Client Secret, and Token URL |
Consent Event Types
Available for Data Providers, Data Recipients, and Intermediaries:CONSENT_REVOKED: Customer revoked consent to an account for a third party.CONSENT_EXPIRING: A consent to share accounts with a third-party app will expire in 30 days.
CONSENT_EXPIRED: Consent expired.CONSENT_INITIATED: A customer has consented to share data with a 3rd party for the first time.CONSENT_MODIFIED: Customer changed which accounts are permissioned for data sharing with a third party.CONSENT_RENEWED: Customer renewed an existing consent to share data with a third party.
Example
The webhook will return a JSON payload based on the FDX Event Notifications specification.Notification properties
| Data | Data type | Definition |
|---|---|---|
| type | enum | Type of notification: CONSENT_EXPIRED, CONSENT_EXPIRING, CONSENT_INITIATED, CONSENT_MODIFIED, CONSENT_RENEWED, CONSENT_REVOKED. |
| sentOn | timestamp | Time notification was sent in ISO 8601 standard, IETF RFC3339 date-time (full-date “T” full-time) format “YYYY-MM-DDThh:mm:ss.nnnZ”. |
| category | enum | Category of notification: CONSENT. |
| notificationPayload | object | See the Notification Payload section. |
| event | string | Definition of the event. |
| namespace | string | Example: mx-prod or mx-int. |
| version | string | Webhook version. |
| timestamp | string | Given in Unix epoch time. |
| event_id | string | ID of the event. |
| publisher | object | |
| publisher.name | string | Recognizable, common name of the notification publisher. |
| publisher.type | enum | Identifies the type of publisher. Example: DATA_PROVIDER. |
| subscriber | object | |
| subscriber.name | string | Recognizable, common name of the subscriber. |
| subscriber.type | enum | Identifies the type of subscriber: publishers (DATA_PROVIDER) or subscribers (DATA_ACCESS_PLATFORM). |
Notification payload
| Data | Data type | Definition |
|---|---|---|
| id | number | ID for the origination entity related to the notification. |
| idType | enum | Type of entity causing origination of the notification with the given ID. Example: CONSENT. |
| accountId | string | Customer’s account ID. |
| customerId | string | The customer’s openid_connect_user_id. |
| application_id | number | ID of application. |
| intermediary | string | Name of intermediary. |
| accountEntitlements | object | Includes an array of enabled accounts, an array of disabled accounts, and auto_enable_future_accounts, a boolean value which indicates whether future accounts will be auto consented. |
| revokedAt | timestamp | Time consent was revoked in ISO 8601 standard, IETF RFC3339 date-time (full-date “T” full-time) format YYYY-MM-DDThh:mm:ss.nnnZ. |

