POST Create Customer Favorite Item
Saves a configured product as a favorite, including its nested product groups, chosen modifier code and any swapped product.
The brand must have favorite items enabled, otherwise the call fails.
The top-level quantity is always stored as 1 regardless of what you send; only nested products keep their own quantity. Nothing is returned, so re-read the list to get the new favorite_item_id.
Headers
- Type: stringAcceptrequired
Type of content accepted by the API (application/json in most cases)
- Type: stringApplicationrequired
Application key for specific client app
- Type: stringContent
- Type requiredContent-Type header
- Type: stringA
P I - V E R S I O N requiredVersion of the API to be used
- Type: stringAuthorization
Authorization header
- Type: stringX
- Request - I D requiredUnique request identifier
Body
- Type: stringFormat: uuidcategory
_id required - Type: stringFormat: uuidrequired
- Type: stringFormat: uuiduuidrequired
Product UUID
- Type: string | nullFormat: uuidmodifier
_code _uuid - Type: array of integer | nullorder
_selection min:1 - Type: array of objectproduct
_groups - Type: integer | nullquantitymin:1
Always stored as 1 at the top level
- Properties: 2Type: object | nullswapped
_product
Responses
- application/json
- 400
Favorite items are not enabled for this brand.
- 401
Missing or invalid customer token.
- 422
Validation failed - an unknown product, menu, category, product group or modifier code UUID.
curl https://api-public-demo.menu.app/api/customer-accounts/favorite-items \
--request POST \
--header 'Accept: application/json' \
--header 'Application: application-key' \
--header 'Content-Type: application/json' \
--header 'API-VERSION: ' \
--header 'X-Request-ID: c10b4a70-6274-490d-80a0-03e7bb826937' \
--data '{
"uuid": "289013d8-ce7b-424e-8f5f-2be2ece9c7a4",
"menu_id": "9b1f2c3d-4e5a-6b7c-8d9e-0f1a2b3c4d5e",
"category_id": "1a2b3c4d-5e6f-7a8b-9c0d-1e2f3a4b5c6d",
"product_groups": [
{
"uuid": "7dd73610-b4d4-4645-a839-afc840db344e",
"products": [
{
"uuid": "606234e3-0eb5-4fad-b757-3666361d030c",
"quantity": 2,
"product_groups": []
}
]
}
]
}'
{
"status": "OK",
"code": 200
}