New Graphql Gift Card Transaction connection to Order Transaction?

Hi,

So we have new gift card transactions in Graphql API - awesome.

{
                "nodes": [
                    {
                        "id": "gid://shopify/GiftCardDebitTransaction/247075733782",
                        "processedAt": "2024-11-26T10:41:02Z",
                        "giftCard": {
                            "id": "gid://shopify/GiftCard/651324817686"
                        },
                        "amount": {
                            "amount": "-100.0",
                            "currencyCode": "DKK"
                        }
                    }
                ]
            }


However, I’m struggling to correlate Order Transactions to GiftCard Transaction.

I.e. if I pay by a gift card, the order will have a sales transaction. The transaction will reference the gift card. However, if use the same gift card multiple times to buy the same or another item with the same price, then I can’t correlate which gift card transaction references which order transaction.

Has anyone faced the same issue?

With the Rest API gift card adjustments referenced order transaction ID.

{
    "adjustments": [
        {
            "id": 247075733782,
            "gift_card_id": 651324817686,
            "api_client_id": 580111,
            "user_id": null,
            "order_transaction_id": 7517467902230,
            "number": 1,
            "amount": "-100.00",
            "processed_at": "2024-11-26T05:41:02-05:00",
            "created_at": "2024-11-26T05:41:02-05:00",
            "updated_at": "2024-11-26T05:41:02-05:00",
            "note": null,
            "remote_transaction_ref": null,
            "remote_transaction_url": null
        }
    ]
}
1 Like

Hey there, I’ve connected with the team and linking the order for gift card transactions is currently under exploration. I can’t commit to any timelines but we hope to have it out soon.

2 Likes