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.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
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 | The removed line’s MplusKASSA article number. |
removeSessionLine.line.priceIncl | number | The removed line’s price including VAT. |
removeSessionLine.line.quantity | number | The removed line’s quantity of items. |
removeSessionLine.line.text | string | The removed line’s textual description. |
removeSessionLine.line.externalDiscount | string | The removed line’s external discount. |