question

brokenoval avatar image
brokenoval asked Jeffrey Blattman answered

Update the order of Modifiers with the API

So its possible to update Modifiers using the API for things like name, price etc: https://docs.clover.com/reference/inventory-1#modifierupdatemodifier-2


However, it seems that you cannot update the `sortOrder` of the modifiers within a Modifier Group except by deleting the modifers and recreating them in the order we want.


Specifically, if I have a Mod Group "Size" and I have 3 modifiers inside:

  • "Large"
  • "Medium"
  • "Small"


They default to the sortOrder that they are created in, however I want to update those modifiers so that they display as Small (sortOrder=1), Medium (sortOrder=2) then Large (sortOrder=3)


Is this possible?

InventoryModifiers
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

·
Jeffrey Blattman avatar image
Jeffrey Blattman answered

There is not currently a public API to re-order modifiers in a modifier group. Fortunately it's coming soon. Keep an eye out for /modifier_groups/{modGroupId}/layout in the public REST API documentation. It should be present in the next month or so.

https://docs.clover.com/reference/api-reference-overview

10 |2000

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

Write an Answer

Hint: Notify or tag a user in this post by typing @username.

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