question

sivap avatar image
sivap asked

Inconsistent webhook for Modifier Group

I have a modifier group that had 5 modifiers. I removed a modifier and the webhook object representation is inconsistent. Do not know if this is by design or a bug.

The inconsistency is this- When i remove modifier(s) from a modifier group, the modifierIds still return the old modifier ids that it had before. However, the 'object' returns the right and latest representation.

Is this a known issue or new bug or is working as expected?


{"appId":"4SHACNHM","merchants":{"W5XTBY01":[{"objectId":"IM:MBA02DE5QRPMC","type":"DELETE","ts":1652824901115,"object":{"id":"MBA02DE5QRPMC","name":"green rice","available":true,"price":0,"modifierGroup":{"id":"WQW367JZH1Z26"}}},{"objectId":"IG:WQW367JZH1Z26","type":"UPDATE","ts":1652824901122,"object":{"id":"WQW367JZH1Z26","name":"Select Rice","minRequired":1,"maxAllowed":2,"showByDefault":true,"modifiers":[{"id":"M691RP3CZ3AE8","name":"black rice","available":true,"price":100,"modifierGroup":{"id":"WQW367JZH1Z26"}},{"id":"ET687QSVS81DY","name":"green rice","available":true,"price":0,"modifierGroup":{"id":"WQW367JZH1Z26"}}],"modifierIds":"M691RP3CZ3AE8,ET687QSVS81DY,E9T9HGN35AV78,MBA02DE5QRPMC,5YR55VSJ7BK7W","sortOrder":0}}]}}

( Please paste the above JSON in https://jsonformatter.org/ for readability)


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.

0 Answers

·

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