Deprecated REST fields with no alternatives in GraphQL for GiftCard

We are migrating the collection of GiftCard data from REST to GraphQL and in GraphQL the following REST fields are no longer available;
api_client_id
line_item_id
user_id
These fields allow merchants to identify how and who the gift card was created which is important for their reporting on Shopify gift cards.
Is there any alternative on how to get this information?

Hi @Mathieu_Nunez no GraphQL fields replace api_client_id, line_item_id, or user_id for the GiftCard object at the moment (2025-01).

I believe your options are mostly:

  • Look up the information indirectly (via Orders or Events).
  • If you control the creation flow, store your own custom references.

@daniel thanks. We came to the same conclusion we need to review how we retrieve this information via Orders or Events using SalesAgreement for gift cards. This provides the 3 missing information.

1 Like