It seems that each object (line_item) in line_items is connected to objects in taxes and discounts by “uid”,
However, this “uid” is clearly marked as BETA version, so I’m not sure about using it.
I would like to ask some questions,
1: Is there any possibility that this “uid” will be discontinued in the near future?
2: Is there any way to associate the three listings without using the “uid”?
In short, we want to be able to search.
The “line_items” also includes lists such as “applied_taxes” and “applied_discounts”, but I am hesitant to use them because they are also BETA.
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:
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.
The “uid” field in the Order object is used to uniquely identify each line item, tax, and discount within an order. It is currently in Beta, which means it is subject to change, but there is no indication that it will be discontinued in the near future.
If you want to associate line items with taxes and discounts without using the “uid”, you could potentially use other attributes of these objects, but it would likely be more complex and less reliable. The “uid” is designed specifically for this purpose.
The “applied_taxes” and “applied_discounts” fields within the “line_items” object are also in Beta, but they provide a direct way to associate taxes and discounts with specific line items.
While these features are in Beta, they are generally stable and usable. However, you should monitor Square’s developer updates for any changes to these fields.