Shopify has introduced additional validations in order editing mutations to enforce limits on gift card values, line item counts, and line item subtotals. These validations now trigger relevant userErrors when limits are exceeded, ensuring that merchants maintain data integrity and adhere to predefined constraints during the order editing process.
These enhancements provide Shopify Plus merchants with greater accuracy and control over order amendments, reducing the risk of errors. By ensuring that edits remain within the set limits, merchants can avoid potential issues related to over-issuance of gift cards or excessive line items, streamlining operations and improving customer satisfaction.
userErrors returns.A merchant adjusts an order to include an additional gift card. With the new validations, if the gift card value exceeds the allowed currency-specific limit, an error is returned, preventing the transaction and ensuring compliance with business rules.
userErrors.Q: What happens if I exceed a limit?
A: The API returns a userErrors message specifying which limit was exceeded.
Q: Are these limits configurable?
A: Limits are set by Shopify and vary by use-case, like currency for gift cards.
For detailed information, see OrderEditAddVariant documentation.
Need guidance? Talk to Makro.