Issue: Updating a draft order via Shopify APIs removes existing line item discounts. This happens when changing tags or adding/updating the shipping line, and was first noticed in the last two days.
Scope: Confirmed by Shopify support as a known issue with no ETA. Affects both REST (2022-01) and GraphQL endpoints. “Line item discounts” are discounts applied to individual items in the draft order.
Workaround: Include the full line_items object in every PUT update request, even when only modifying tags or shipping, to preserve discounts.
Status: Multiple developers have reproduced the problem. Workaround is in use while awaiting an official fix. Discussion remains open with no resolution yet.
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.
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?