Get a version of an edited order, or get previous edit data

JDaffron
Tourist
4 0 1

Hey,

The new order editing feature is causing a headache for our app,

I know there is a order edited webhook, however that isn't much use to me as we may not know about the order before it was edited, or the order my have been created before the shop has installed our app.

I need to know what the order looked like at the time it was included in a Shopify Payout. The payout transactions reference the `source_order_id` but when I get that order, it may have changed.

E.g  A order was $100, which was added to a payout, The next day they edited and added another line item to the order of another $100.

They then install the app, (So I could not have installed a webhook prior)

When processing the first payout we look at the order, and it now has a value of $200 for a $100 payout transaction, and I cannot see how I can tell what had been edited or if it has even been edited.

Any ideas?

Thanks!!

0 Likes
SBD_
Shopify Staff
Shopify Staff
1043 141 183

Hey @JDaffron,

 

Did you make any progress on this? I'm not sure there's an elegant solution. Perhaps you could look through an order's transaction history and examine transaction dates vs payout date?

 

 

0 Likes
JDaffron
Tourist
4 0 1
Not yet, besides getting users to manually edit our version of their order.

The transactions give no indication of what was added is the problem.


The order status page has a description of what has been added and removed,
is this information just not available via the public API?

Thanks
0 Likes
SBD_
Shopify Staff
Shopify Staff
1043 141 183

Edit history isn't available via the API. Events can show an order has been edited, but doesn't provide details on what's changed.

0 Likes
42technologies
Tourist
3 0 0

Hey @JDaffron , 

we are also having a problem with edited orders. 
Have you found a solution to get at least the timestamp of when an order was edited? 
Right now the Order API just tells us the created, the processing, and when it was updated (which is also triggered by fulfillment events and other changes to an order). 

Thanks,
Lars

0 Likes