Get gift card id used in order from GraphQL API

Topic summary

Difficulty retrieving gift card IDs from Shopify’s GraphQL API for orders. In REST, gift card IDs are accessible via order.transactions.receipt.

Current behavior: GraphQL queries for orders/transactions do not clearly expose gift card IDs. The user cannot find a documented field to obtain them.

Noted detail: A receipt field appears to exist on GraphQL transactions but is undocumented. A linked community post suggests certain transaction properties, including receipt, may be available despite missing docs.

Implications: Relying on an undocumented receipt field is risky for production use and may lack stability or support. There is no confirmed schema or example showing how to extract gift card IDs via GraphQL.

Status and open questions: No official solution or documentation provided in the thread. It remains unresolved whether Shopify’s GraphQL API reliably exposes gift card IDs and how to query them if it does.

Summarized with AI on February 27. AI used: gpt-5.

Per Title.

Gift card ids can be retrieved from REST API via order.transactions.receipt.

But I am unable to retrieve gift card ids used in a purchase (i.e. order, transaction) from the GraphQL API.

receipt is available through the Gql API but not documented. see https://community.shopify.com/c/shopify-apis-and-sdks/properties-missing-from-transaction-graphql/m-p/667313