orderEditSetQuantity issue with zero quantity

Hello,

Having challenges using the orderEditSetQuantity mutation. Am receiving the error:

Mutation had errors: “Variable $lineItemId of type ID! was provided invalid value”

Have tried a number of permutations of different order states and with and without passing restock and location variables but always seem to get this error. Guessing doing something incorrectly in working with the calculatedorder object but not sure what that might be.

Following screenshots show the Flow I am using and the errors. Help is greatly appreciated!

That error is about your lineItemId not the quantity. It looks like you have a space in the quotes before the GID. Use hyphens in liquid to remove whitespace like {%- var -%}

Thanks very much Paul! much appreciated, working great now.