check which "line_items" triggered the "Update" event

Hi !

I am currently making a discord bot to display orders from my future customers.

I need information about the shopify API.
I mainly use the “Update” event to get order updates here : https://shopify.dev/api/admin-rest/2022-10/resources/order#put-orders-order-id

I would like to know if there is a possibility to know precisely the “line_items” which triggered the “Update” event ?
Or if there is a way to retrieve the processing dates of each of the “line_items” to be able to compare them and define which is the most recent ?

I can’t find anything that allows me to differentiate which is the “line_items” that was fulfilled recently…

EDIT : I specify that I use nodeJS

Hey Natoubabtou - thanks for waiting on our reply here. We might need a bit more information on our end. The PUT request through REST to update an order doesn’t allow you to change line_items? Are you referring to something like a webhook being triggered? If so, an orders/updated webhook can be trigerred when any field on the orders endpoint is updated.

This can include line_items, but there are a variety of reasons an update event for an order could be triggered.

Hope this helps - let us know if you have any other questions!