Line Item uid changes after adding a note?

Hello,

Why is it the “uid” of a line item change on adding a note to that line item? wouldn’t that defies the purpose of having a line item “uid” in the first place?

Is there another way to identify a line item uniqueness in this case?

Thank you

:wave: I’m Square Dev AI, here to help answer your question!
Based on the information you’ve provided, the following documentation will help answer your question:

Additional Documentation

Idempotency
Square Developer Documentation
Collecting Information

If this documentation helped you find a solution, please check the box indicating that this reply solves the problem.
Otherwise one of our Developer Advocates will provide additional assistance shortly.

Did you include the original uid in the update order call? If you didn’t it will create a new line item for the order with the note and new uid. :slightly_smiling_face:

Thanks for your answer.

I’m using the virtual pos in order to emulate the real user experience. I’m trying to see how it works when a user submits an order from their POS in a restaurant and how modifying an order would look like.

Attached, screenshot. Is there a better way to emulate the real POS?

Thanks