Explanation of the event
The mergeSession event occurs whenever a session is merged with another existing session. This is an end state for the former session, a merged session will never be resumed. However, the latter session will receive the contents of the former session and will continue as normal.
mergeSession Session was merged
Request
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 |
POST https://www.example.com/webhooks/mergeSession X-Mplus-Subscription-Id: example_subscription X-Mplus-Signature: uZucqk+xPZii7TmP1IHOKPoS4/K+8ejNwl7EyxnEzs4= Content-Type: application/json Accept: application/json { "event": { "eventBlocking": true, "eventCounter": 12, "eventTimestamp": "2018-02-01T11:07:41.565+01:00" }, "mergeSession": { "mergeWithSessionId": "0d9fd51f-66fc-441c-bc7c-6e064fc64268" }, "sender": { "branchNumber": 1, "instanceId": "72f0c885-0ff1-40b6-afca-4ca949e426ad", "workplaceNumber": 1 }, "session": { "lines": [ { "articleNumber": 1, "lineId": "c686f63d-46a7-498e-b421-c72e5cb7136b", "priceIncl": 2.5, "quantity": 1, "text": "Coffee" } ], "sessionId": "5eea25d4-4188-43b8-9a66-8086561d590c" } } |
In this example, session 5eea25d4-4188-43b8-9a66-8086561d590c is merged with session 0d9fd51f-66fc-441c-bc7c-6e064fc64268. Session 5eea25d4-4188-43b8-9a66-8086561d590c will not return again.