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

JDaffron
Tourist
4 0 2

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!!

Replies 5 (5)

SBD_
Shopify Staff
1829 269 406

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?

 

 

Scott | Developer Advocate @ Shopify 

JDaffron
Tourist
4 0 2
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
SBD_
Shopify Staff
1829 269 406

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.

Scott | Developer Advocate @ Shopify 

42technologies
Shopify Partner
12 0 5

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

Vocinglero
Shopify Partner
8 0 3

Hi, I'm curious to know if a solution is now available in the API since the last post of this thread?

Thanks,

Gregory