Explanation of the event
The addSessionLine event occurs whenever an existing line is removed from the current session.
removeSessionLine An existing article is removed
Request
This event occurs when a line for article number 1 is removed. Also notice that this line had an external discount. See addSessionLine for an example on how to add an external discount.
POST https://www.example.com/webhooks/removeSessionLine
X-Mplus-Subscription-Id: example_subscription
X-Mplus-Signature: uZucqk+xPZii7TmP1IHOKPoS4/K+8ejNwl7EyxnEzs4=
Content-Type: application/json
Accept: application/json
{
"removeSessionLine": {
"line": {
"articleNumber": 1,
"lineId": "c686f63d-46a7-498e-b421-c72e5cb7136b",
"priceIncl": 2.50,
"quantity": 1,
"text": "Coffee",
"externalDiscount": {
"discountId": "12551430-7ce9-11e7-bb31-be2e44b06b34",
"discountDescription": "Sample Voucher",
"discountPercentage": 100
}
}
},
"event": {
"eventBlocking": true,
"eventCounter": 1,
"eventTimestamp": "2017-08-09T16:07:33.964+02:00"
},
"sender": {
"branchNumber": 1,
"workplaceNumber": 1
},
"session": {
"sessionId": "5eea25d4-4188-43b8-9a66-8086561d590c"
}
}
| Property | Type | Explanation |
|---|---|---|
| removeSessionLine.line.lineId | uuid | The removed line’s UUID. |
| removeSessionLine.line.articleNumber | bigint (optional) | The removed line’s MplusKASSA article number. |
| removeSessionLine.line.priceIncl | number (optional) | The removed line’s price including VAT. |
| removeSessionLine.line.quantity | number (optional) | The removed line’s quantity of items. |
| removeSessionLine.line.text | string | The removed line’s textual description. |
| removeSessionLine.line.externalDiscount | string (optional) | The removed line’s external discount. |