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

  • UUID of the group cart session

Headers

  • White Label Application Key

  • Version of the API that the client app expects

  • Required even on requests with no body

  • Bearer token of the signed-in customer

Body

application/json

No request body.

Responses

  • The session is now locked and locked_at is set.

  • 1204 not the host · 1206 the session is not open

  • 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