Explanation of the event
The completeSession event occurs whenever the session is completely paid and finished. This is an end state, the same sessionId will not return, except when the session is later credited.
completeSession Session is completely paid and finished
request
In the request, you will receive the final details about the completed session.
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 |
POST https://www.example.com/webhooks/completeSession X-Mplus-Subscription-Id: example_subscription X-Mplus-Signature: uZucqk+xPZii7TmP1IHOKPoS4/K+8ejNwl7EyxnEzs4= Content-Type: application/json Accept: application/json { "event": { "eventBlocking": true, "eventCounter": 1, "eventTimestamp": "2017-08-09T16:07:33.964+02:00" }, "sender": { "branchNumber": 1, "workplaceNumber": 1 }, "session": { "lines": [ { "articleNumber": 1, "lineId": "c686f63d-46a7-498e-b421-c72e5cb7136b", "priceIncl": 2.50, "quantity": 1, "text": "Coffee" } ], "sessionId": "5eea25d4-4188-43b8-9a66-8086561d590c" } } |
(optional) response
If you configured this event as a blocking webhook, you can reply with additional text and/or a code to be printed on the receipt.
1 2 3 4 5 6 7 8 9 |
{ "receiptFooter": { "text": "line1\nline2\nline3", "barcode": { "codeType": "code128", "code": "8712345678901" } } } |
For more information on receiptfooters please visit this page: https://developers.mpluskassa.nl/webhooks/json-definitions/#receiptFooter