question

eperl avatar image
eperl asked eperl commented

GET associate Items and modifiers

There doesn't seem to be a way through the API get requests to see which Items are associated with which modifiers. Here is a video ( https://screencast.com/t/NVq9aHLxT) of me trying this through the Developer Dashboard. Anyone else seeing this? Or have a viable work around?

Thanks!
REST APIInventoryModifiers
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

1 Answer

zgreathouse avatar image
zgreathouse Deactivated answered eperl commented
Modifiers and items are not directly related to one another. They are related through a modifierGroup.
An example of this relational model would be as follows:

With a food truck we can think of each menu item as an inventory item. A modifier group can be called "Sauces" with each modifier in the modifier group being a type of sauce. The menu items which you can add sauce to (inventory items) and the different sauces (modifiers) belong to the Modifier Group: "Sauces".

Endpoint:
GET /v3/merchants/{mId}/modifier_groups/{modGroupId}?expand=items,modifiers
Using this endpoint, you will see all the items and modifiers associated with the modifierGroup in the response body.

Here is a link to our docs outlining Modifiers and ModifierGroups:
https://www.clover.com/us/en/help/use-item-modifiers/
2 comments
10 |2000

Up to 2 attachments (including images) can be used with a maximum of 512.0 KiB each and 1.0 MiB total.

eperl avatar image eperl commented ·

Thanks this is really helpful. I am able to do this through the UI. When I try this with a python call the syntax is not clear. I am not seeing how to call expand via python in GIT.

Thanks!

0 Likes 0 ·
eperl avatar image eperl commented ·

Found a work around! Thank you again for pointing me in the right direction!

0 Likes 0 ·

Welcome to the
Clover Developer Community