Webhook for an order being archived

Webhook for an order being archived

NilsA
Tourist
3 0 1

Hello there

I've been looking into how to get a webhook sent upon an order being archived. I've not been able to find anything relevant. I was thinking of using the order update -- but the order doesn't tell me if it's been archived or not.

Have any of you had any experience with this?

Nils

Replies 2 (2)

Busfox
Shopify Staff (Retired)
628 49 110

Hi there,

The closed_at parameter is what you would want to look at. This will be null if the order is unarchived. If it's archived, you'll see the date that the order became archived on.

Cheers,

To learn more visit the Shopify Help Center or the Community Blog.

NilsA
Tourist
3 0 1

So just to be 100% clear; a webhook on order update and then check to see if it the paramtere closed_at is not null