v1
latestOpenAPI 3.0.22026-07-1351821.6 KBSubscribe to notifications
Subscribes to receive push notifications.
Use this API to subscribe to task notifications. See https://developer.basware.com/api/p2p/manual#PushNotifications for notification format which needs to be supported by the receiving endpoint.
Note: Basware API validates the receiving endpoint by sending a notification with taskType 'ConnectionTest', to which a 200 OK HTTP response needs to be returned.
post/v1/subscriptions
Request body
Example request
[
{
"taskType": "AccountingDocuments",
"taskSubType": "All",
"notificationWebhookURL": "https://bwnotificationapi.customer.com/accountingdocumentnotifications",
"webhookAuthenticationToken": "ad65rujltr9093ijhdkutiyua09döijhsa76d8799w8pqugdfafjdhfkjhadls",
"lastUpdated": "2021-08-04T08:39:13Z",
"autoResponder": {
"autoResponseMessage": "Updated coding details.",
"fieldUpdateArray": [
{
"fieldId": "codingRows[2]/accountCode",
"updateToValue": "02600"
}
]
}
}
]Response
Successful Response
Example response
[
{
"taskType": "AccountingDocuments",
"taskSubType": "All",
"notificationWebhookURL": "https://bwnotificationapi.customer.com/accountingdocumentnotifications",
"webhookAuthenticationToken": "ad65rujltr9093ijhdkutiyua09döijhsa76d8799w8pqugdfafjdhfkjhadls",
"lastUpdated": "2021-08-04T08:39:13Z",
"autoResponder": {
"autoResponseMessage": "Updated coding details.",
"fieldUpdateArray": [
{
"fieldId": "codingRows[2]/accountCode",
"updateToValue": "02600"
}
]
}
}
]