Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
I’m trying to calculate a refund via this REST endpoint in a Remix application.
When I calculate a refund with a full shipping refund - "shipping": {"full_refund": true} - everything works fine.
However, when I’m trying to do a partial shipping refund - "shipping": {"amount": 29} - it doesn’t work.
Instead, I get an HTTPError: Response code 422 (Unprocessable Entity).
It's not the most difficult endpoint in the world, so I suspect a bug. But hard to tell.
Help? 😅
Learn how to build powerful custom workflows in Shopify Flow with expert guidance from ...
By Jacqui May 7, 2025Did You Know? May is named after Maia, the Roman goddess of growth and flourishing! ...
By JasonH May 2, 2025Discover opportunities to improve SEO with new guidance available from Shopify’s growth...
By Jacqui May 1, 2025