question

manu avatar image
manu asked q-factor answered

How to find Modifier ID ?

I am trying to add modifier on a line item by POSTing on /v3/merchants/{mId}/orders/{orderId}/line_items/{lineItemId}/modifiers and sending { "modifier": { "id": "[modifierId]" } }

But I don't understand from where to get the modifier ID?

Under "Inventory" -> "Modifier Groups", there is a table with list of group name and Modifiers. Group Name has for example "Protein" with ID "A4TZQAEN98DRE" and modifiers "Add Chicken" and "Add Bacon". How to setup/get IDs to modifiers i.e. "Add Chicken" and "Add Bacon" ?

If I use "Group Name" -> "Protein" ID then i am getting FileNotFoundException..

Modifiers
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

q-factor avatar image
q-factor answered

You could get the list of all modifiers using /v3/merchants/{mId}/modifiers or use /v3/merchants/{mId}/modifier_groups/{modGroupId}/modifiers to get the modifiers of a single modifier group. You could filter these list using modifiedTime, price, name, alternateName, id, modifierGroup.id

10 |2000

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

Welcome to the
Clover Developer Community