Updating draft orders using rest API removes line item discounts

Updating draft orders using rest API removes line item discounts

anilv-procentri
Shopify Partner
7 0 5

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?

 

Replies 3 (3)

BipinS
Shopify Partner
3 0 1

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

anilv-procentri
Shopify Partner
7 0 5

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.

 

ozzyonfire
Shopify Partner
49 2 17

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