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 of content accepted by the API (application/json in most cases)

  • Application key for specific client app

  • Content-Type header

  • Version of the API to be used

  • Authorization header

  • Unique request identifier

Body

required
application/json
  • Product UUID

  • Always stored as 1 at the top level

  • Properties: 2

Responses

  • application/json
  • Favorite items are not enabled for this brand.

  • Missing or invalid customer token.

  • Validation failed - an unknown product, menu, category, product group or modifier code UUID.

Request Example for post/customer-accounts/favorite-items
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
}