Group Cart Lock
Closes the session for editing so the host can check out. Host only.
Locking is not just a flag. Guests who have not marked themselves ready, and guests with an empty cart, are removed from the session, and nobody new can join afterwards. The host is always kept and is marked ready automatically. Warn the host before calling it.
Send Content-Type: application/json even though there is no body.
Path Parameters
- Type: stringFormat: uuidgroup
_cart _uuid requiredUUID of the group cart session
Headers
- Type: stringApplicationrequired
White Label Application Key
- Type: stringApi
- Version requiredVersion of the API that the client app expects
- Type: stringContent
- Type requiredRequired even on requests with no body
- Type: stringAuthorizationrequired
Bearer token of the signed-in customer
Body
application/json
No request body.
Responses
- 200
The session is now
lockedandlocked_atis set. - 400
1204not the host ·1206the session is not open - 404
Unknown group cart.
Request Example for post/group-cart/{group_cart_uuid}/lock
curl https://api-public-demo.menu.app/api/group-cart/7c9e6679-f1e4-40b3-a2c5-e8f1a0b9d4c3/lock \
--request POST \
--header 'Application: ' \
--header 'Api-Version: 4.78.0' \
--header 'Content-Type: application/json' \
--header 'Authorization: ' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'
No Body