Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more
Hi everyone,
I'm currently working on integrating Shopify with our system and have encountered a challenge. We recently finalized some orders with custom discounts, but now we need to link these orders to specific price rules (discount codes) so that they are properly reflected in Shopify's metrics and analytics.
Is there a way to associate an existing order with a price rule or discount code via the Shopify API? Specifically, we're looking to:
I have reviewed the API documentation but couldn't find a straightforward way to update an existing order with a discount code or price rule. Has anyone managed to do this or found a workaround?
Any insights or suggestions would be greatly appreciated!
Thanks in advance for your help.