See all services → Shopify Plus Partner
Action Required Developer

Prepare Gift Card API Calls for 2027-01 Read-Only Change

Shopify makes the Gift Card line_item_id property read-only in REST Admin API version 2027-01. Apps that still send it will have the value silently ignored, so audit those payloads before you move production traffic.

Executive summary

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

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

  1. Inventory every REST Gift Card create and update call across your apps, middleware, and scripts.
  2. Flag the calls that include line_item_id in the request payload.
  3. Remove the property and confirm nothing downstream depends on that write succeeding.
  4. Keep reads of line_item_id in place if you use the association for reporting.
  5. Verify in a development store: create or update without the property, read the card back, confirm the association is unchanged.
  6. Decide whether each call should move to the GraphQL Admin API while the code is open.
  7. 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.