Updating draft orders using rest API removes line item discounts

Hello,

We see a strange behavior in Draft Orders API (2022-01). If we just update draft order tags via API, it removes all the discounts added in that draft order.

Same thing happens if we add/update shipping line. This issue we started facing since last 2 days.

Is there anything changed at Shopify side?

1 Like

Hello,

We are also facing same issue while using update Draft Order Rest API. Seems something is changed in Shopify Rest API. Were you able to figure any workaround for this?

Thank You

1 Like

Hello,

Shopify support has confirmed that this is a known issue and their developers are working on it though they don’t have ETA.

GraphQL API also have this issue.

For now, as a workaround you can pass “line_items” object in every PUT request even though you just want to change tags or limited fields.

1 Like

Also running into this problem. Thanks @anilv-procentri for the idea for the workaround.