question

dhanaraj avatar image
dhanaraj asked zgreathouse Deactivated answered

While sending the modifier group to order connector it's return the status code -1.

orderConnector.addLineItemModification(mOrder.getId(),mItem.getId(),_modifiers.get(0));
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

zgreathouse avatar image
zgreathouse Deactivated answered
I notice the second argument you are passing (based on the variable name) is the item's id. The second argument must actually be the lineItem's id. (See documentation here)
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