FROM CACHE - en_header

orders API - order amendments

arg187
New Member
3 0 0

I have an order that was raised for 1 item on 1st august. On the 2nd august the order was amended to swap this item with another. The order was then fulfilled the same day.

Looking at the orders API JSON response, the line_items section shows both items and the refund section shows the replaced item on the 2nd August.

However, I want to be able to replicate on a report that the second item was added to the order on the 2nd August (as it replaced the first one), but I only have the created_date of the order (1st August). There seems to be no way of telling that the second line item was added on the 2nd August ??? ..... But Shopify order history screen shows this ?

Is there any way of telling from the line_items section in the JSON what days lines were added to the order, in the event where an item was replaced with another ?

Reply 1 (1)
arg187
New Member
3 0 0

Update 23/08/2021 - Didnt realise you could view events for an order :

admin/api/YYYY-MM/orders/myorderid/events.json

This replicates the event view on the Shopify order details screen .... except for order edits, it does not show the products added/removed 😞

Just thought I would mention the events api anyway in case its useful to others.