Group Cart Leave
Drops out of the group order. The participant's slice is deleted and the host's checkout is invalidated, so the host has to check out again.
Guests only. The host cannot leave their own session — that returns 1210 — they cancel it instead. Leaving is possible while the session is open, and while it is locked right up until payment is initialized.
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: stringX
- Mt - Group - Participant - Token requiredThe
participant_access_tokenreturned when this participant joined or created the session - Type: stringAuthorization
Bearer token of the signed-in customer. Omit it for an anonymous guest
Body
No request body.
Responses
- 200
The participant, now
left. - 400
1206the session is already being paid for ·1210the host cannot leave - 401
The participant token is missing.
curl https://api-public-demo.menu.app/api/group-cart/7c9e6679-f1e4-40b3-a2c5-e8f1a0b9d4c3/leave \
--request POST \
--header 'Application: ' \
--header 'Api-Version: 4.78.0' \
--header 'Content-Type: application/json' \
--header 'X-Mt-Group-Participant-Token: ' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN'