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

@daniel I forgot to follow up on this but a few months ago we did try the approach on getting the information via orders or events and this does not provide the same information so these fields are still required in GraphQL.
BetterReports is a reporting app fetching data from merchants so it does not have control of the creation flow.

Thanks for the follow-up @Mathieu_Nunez As far as I know, there’s still no GraphQL replacement for api_client_id, line_item_id, or user_id on GiftCard. The best bet might be to raise it as a feature request with Shopify, especially if it’s critical for reporting.

Thanks @daniel .

@Liam-Shopify how can we raise a feature request for this?

@Liam-Shopify I also needed this. Is it possible to workaround by keep on using the rest api for this for now until the graphql solution is available? We are shopify plus store and we only build private/custom apps ourselves w/o the need to publish it, so the REST Api solution is still available for us?