Clarification on the json

hallo,
the json of the customer group just mentions a list of food preference for the customer group . They dont mention what each customer has like which specific preference or exclusion of the ingredients. but in the page 29 in line 17 logging how will we understand if a certain customers couldn’t order ? and will the customer each also have a favourite dish ? like is there any json example because the json example that we have mentions ingredients in the group list rather than list for each customer . Thank you

Hi,

foodPreferences are defined for subgroups, not for individually identified customers. The size field tells you how many customers share that preference. Favorite dishes are optional as part of the same preference object.

So you don’t need individual customer IDs. For example, "size": 2, "excludedIngredients": [...] means two customers in the group have those exclusions. Customers not covered by a preference subgroup simply have no preferences.

The appendix JSON also uses exactly this subgroup format.

1 Like