Group Cart Order Create
Places the group order. One order is created for the whole group, with is_group set to true, a participants list, and participant_id on each line so you can show who ordered what.
This call is idempotent on Idempotency-Key. If it times out, retry with the same key rather than a new one — that is how a group avoids being charged twice.
Afterwards the session is placed, the invite token is cleared and every participant is marked completed. The session cannot be reused.
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: stringDevice
- U U I D requiredThe identifier of the device and/or client app that sent the request
- Type: stringContent
- Type requiredRequired even on requests with no body
- Type: stringAuthorizationrequired
Bearer token of the signed-in customer
- Type: stringIdempotency
- Key requiredRetry the same value after a timeout to avoid creating a second order
Body
- Type: objectcustomer
_info The host's contact details for the order.
- Type: objectpayment
_info Properties: 2The
payment_init_hashfrom the group payment initialization, plus whatever the payment method produced.
Responses
- 200
The order, with
is_grouptrue and the participant roster attached. - 400
1203nothing to pay ·1204not the host ·1220the checkout is stale - 404
Unknown group cart.
curl https://api-public-demo.menu.app/api/group-cart/7c9e6679-f1e4-40b3-a2c5-e8f1a0b9d4c3/order \
--request POST \
--header 'Application: ' \
--header 'Api-Version: 4.78.0' \
--header 'Device-UUID: ' \
--header 'Content-Type: application/json' \
--header 'Authorization: ' \
--header 'Idempotency-Key: ' \
--header 'Authorization: Bearer YOUR_SECRET_TOKEN' \
--data '{
"customer_info": {},
"payment_info": {
"payment_init_hash": "",
"one_time_token": ""
}
}'