I use the Shopify POS UI extension version 2025.1.x and I have a functionality where I create an order based on the POS cart.
I find it difficult to correctly create an Order in Shopify based on it, due to a couple of issues:
- Discounts contain the computed amount, even if they are percentages
- It’s hard to differentiate between a discounts from a discount code, or one applied by the Shopify POS app. The code is in the
title
property, the same as a manual discount - There is a
taxTotal
which is the computed amount, but the tax rate percentage would also be useful since it usually required in GraphQL mutations
Are there any plans to make the cart payload more dev-friendly?