Your suggested change has been received. Thank you.
Download OpenAPI specification:Download
Notification API can be used to notify customers applications when a certain event happens in the system. In order for a customer to get notifications, certain actions should be performed, such as creating a subscription for a required set of events and an application, and then periodically send requests to see if there are any new notifications for a specific subscription. This API also contains an API for deleting a subscription (unsubscribe) as well as getting statical information about a specific subscription. It supports the v2 events that are configured in events list. API-security All endpoints of this API are protected endpoints; they can only be used if a valid OAuth 'access token' is provided. The access token need to be associated with the valid authorisation 'scope'. Scopes that are relevant for this API are: - notification:consent:administrator: Allows to create and delete subscription - notification:consent:consumer: Allows to retrieve subscriptions and notifications
Typical flow The typical flow for using this API is:
This API can be used to create a new subscription. While creating a new subscription, a list of event ids and a client id should be provided. Whenever there will be a new event generated in the system with an id which is in the list sent on the request, the event will be also available when calling the 'notifications' endpoint. The response of this API contains some information about the newly created subscription along with the subscription id which can be later on used to get the notifications. In order to be able to access this API, 'notification:consent:administrator' scope is required.
Create new subscription request
event_type_ids required | Array of strings non-empty non-empty unique The list of events to subscribe for notifications |
client_id required | string^[\p{L}0-9\._\-]+$ The oauth2 client identifier issued to the client during the registration process, as indicated by OAuth RFC 6749. |
{- "event_type_ids": [
- "string"
], - "client_id": "string"
}
{- "id": "string",
- "subscription": {
- "client_id": "string",
- "event_type_ids": [
- "string"
], - "subscribed_by": "ed7afb3e75e8482db1cab4e2950ae50c or notificationAdminApp.",
- "subscription_date": "2018-01-23T04:56:22Z",
- "notification_url": "string",
- "notification_page_size": 0
}, - "subscription_status": {
- "last_request_date": "2018-01-23T04:56:22Z",
- "number_of_remaining_notifications": 0
}
}
This endpoint can be used to get the 'static' details of a subscription. Also the last time notifications were retrieved from the subscription is returned as well as the number of remaining notifications. The number of remaining notifications is a dynamic number since new notifications may be added constantly. Two consecutive calls to this endpoint may return a different value this number. In order to be able to access this API, 'notification:consent:consumer' scope is required. The endpoint will only return the subscription if the access token sent on the request has, apart from the required scope mentioned above, the same client_id that was used to create the subscription identified with the id sent in the url.
id required | string^[\p{L}0-9\._\-]+$ Subscription id |
{- "id": "string",
- "subscription": {
- "client_id": "string",
- "event_type_ids": [
- "string"
], - "subscribed_by": "ed7afb3e75e8482db1cab4e2950ae50c or notificationAdminApp.",
- "subscription_date": "2018-01-23T04:56:22Z",
- "notification_url": "string",
- "notification_page_size": 0
}, - "subscription_status": {
- "last_request_date": "2018-01-23T04:56:22Z",
- "number_of_remaining_notifications": 0
}
}
Clients can use this endpoint to unsubscribe from notifications for a set of events. In order to be able to access this API, 'notification:consent:administrator' scope is required.
id required | string^[\p{L}0-9\._\-]+$ Subscription id |
{- "code": "NOT000001",
- "description": "string"
}
'Retrieve a set of notifications of a subscription identified by a unique id. In order to be able to access this API, 'notification:consent:consumer' scope is required. The endpoint will only return the subscription if the access token sent on the request has, apart from the required scope mentioned above, the same client_id that was used to create the subscription identified with the id sent in the url. Once a notification is retrieved, the same notification cannot be retrieved again for the same subscription. This means that this endpoint is NOT idempotent according to REST-definitions. Clients need to retrieve the notifications on a regular (e.g. daily) basis. Notifications will not be kept indefinitely, but it will be kept for a configurable amount of time which is set by default to 6 hours. The schema for these resources depend on the eventIds to which the client has subscribed to.
id required | string^[\p{L}0-9\._\-]+$ subscription id |
{- "page": 0,
- "size": 0,
- "results": [
- { }
]
}