Order Updated Webhook Missing admin_graphql_api_id on Line items

Order Updated Webhook Missing admin_graphql_api_id on Line items

asoola
Tourist
14 0 1

Hi,

This question has been asked before, but no reply.

I noticed that orderUpdate webhook only contains admin_graphql_api_id under line_items if the update webhook correlates with an order create. When an order is paid for, line item was added, etc., there is no admin_graphql_api_id under the line item. This is inconsistent behaviour.

Is this the case for a specific reason, or does it need to be fixed?

For now, when I receive an order update webhook, how do I go about finding the admin_graphql_api_id of the line item?

Reply 1 (1)

asoola
Tourist
14 0 1

Edit: The line_items admin_graphql_api_id is not missing on all order update webhooks.

It is present when

- order update webhook is associated with order create

- order update webhook is associated with order paid

 

It is absent when

- order update webhook is associated with a new line item being added
- order update webhook is associated with items being refunded