Why is gift card information missing in order.json after creation?

Hello, when I create order and apply gift card (created on Shopify admin) I can see this gift card being applied to order after clicking pay. But when I look at JSON that is coming from webhook on this order creation, or in response to get this order by id from Shopify - there is no info about this gift card. I only can see that gift card was applied

payment_gateway_names: ["gift_card", "bogus"].

But when I look at the items

line_items[0].gift_card = false

and there is no info about discounted price or anything else related to gift card (id, amount …)

An applied gift card isn’t a line item so you should not expect to see info there. A line item is something added to the cart.

If you need more info, look at the order transaction api. Does that have the info you need? If not, what do you need?

1 Like

Thank you! Exactly what I needed.