Explanation of the event
The creditSession event occurs whenever the session has been credited after it was previously completed. This is an end state, the same sessionId will not return.
creditSession Session is credited.
» » » Request » » » |
---|
In the request, you will receive the final details about the credited 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/creditSession 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" } } |