Executive summary
- Shopify makes the Gift Card line_item_id property read-only in REST Admin API version 2027-01. Create and update requests that send it are accepted, but the value is discarded.
- The link between a gift card and the order line item that issued it becomes a record Shopify owns, protecting the audit trail between card liability and originating order.
- This affects teams whose apps, middleware, or scripts write gift cards through the REST Gift Card endpoints. Read-only consumers and anyone on an earlier version are unaffected.
What changed
Until now, an app could set, replace, or clear a gift card's line_item_id when creating or updating the card through the REST Admin API. From version 2027-01, that property is read-only. Shopify still returns existing line-item and order associations on Gift Card responses, so nothing disappears from reads. Only the write path closes.
The failure mode is quiet, and worth flagging. Shopify does not reject a request containing line_item_id. It accepts the call, applies every other property, and ignores that field. An integration that depended on setting the association keeps returning success while the association stays unchanged. Earlier API versions keep their behavior, so this only lands when you move an app to 2027-01 or later.
Why it matters
For most Shopify Plus merchants this is a small change with a useful second-order effect. The gift card to line item link records which order issued a card. When external systems can rewrite that pointer, the liability ledger and order history drift apart, and reconciling them is manual work. Making the field read-only removes a data integrity problem that is painful to unwind at volume.
The practical risk is not the restriction. It is discovering it after an upgrade. Because the ignored field produces no error, the gap between what your records claim and what Shopify holds can widen for weeks unnoticed. Treat this as a scheduled audit, not a post-upgrade bug report.
Context matters here. The REST Admin API has been legacy since October 2024, and new public apps have required the GraphQL Admin API since April 2025. If you are opening this code anyway, ask whether the call belongs in GraphQL.
Role-specific impact
- Marketers: Gift card issuing, balances, and campaigns work as they do today. No campaign change is required, and provenance data stays accurate, making attribution on service recovery credits more trustworthy.
- Developers: Audit every REST Gift Card create and update call for line_item_id and strip it from those payloads. Keep reading the property from responses if you need the association. There is no replacement write API, so logic that reassigns a card needs rethinking, not porting.
- Store admins: Nothing changes in the Shopify admin. If you run a third-party gift card or loyalty app, ask the vendor to confirm 2027-01 readiness in writing rather than assuming it.
Use-case example
Real-world scenario
A specialty retailer issues roughly 2,000 gift cards a month, a third of them service recovery credits from the support desk. Their middleware creates each card through the REST Gift Card endpoint and stamps line_item_id so finance can trace it to the originating order line. That hygiene matters most in a high volume gift card program, where reconciliation is quarterly and volume is unforgiving.
After a routine upgrade to 2027-01, the create calls keep returning success and the cards keep working. The stamping silently stops. Six weeks later the quarterly liability reconciliation surfaces roughly 3,000 cards with no traceable origin, each needing manual matching against support tickets. A thirty minute payload audit beforehand avoids that entirely.
Implementation checklist
- Inventory every REST Gift Card create and update call across your apps, middleware, and scripts.
- Flag the calls that include line_item_id in the request payload.
- Remove the property and confirm nothing downstream depends on that write succeeding.
- Keep reads of line_item_id in place if you use the association for reporting.
- Verify in a development store: create or update without the property, read the card back, confirm the association is unchanged.
- Decide whether each call should move to the GraphQL Admin API while the code is open.
- Only then point production traffic at API version 2027-01 or later.
FAQ
Q: Will our gift card integration break on 1 January 2027?
A: No. The change is tied to the API version your app requests, not a calendar date. Code pinned to an earlier version keeps its current behavior, and Shopify supports each stable version for at least twelve months. The work is due when you choose to upgrade.
Q: Can we still set the line item association another way?
A: Not from outside Shopify. There is no replacement API for adding, replacing, or clearing the association. Treat the existing value as authoritative and report from reads.
Resources
REST Admin API Gift Card resource for 2027-01
Need guidance? Talk to Makro.