What's your biggest current challenge? Have your say in Community Polls along the right column.

How to view entire order status using Shopify GraphQL API?

How to view entire order status using Shopify GraphQL API?

VladimirTs
Shopify Partner
15 0 3

Hi there,

using Shopify GraphQL admin API I can get order financial status and fulfillment status — but I can't find how can I see the entire order status, I can't see if the order was cancelled, archived, etc.

How can I get that status?

Replies 2 (2)

Huptech-Web
Shopify Partner
1010 204 217

Hello @VladimirTs ,

For cancellation, once you find the order to cancel, add 'cancelReason' and 'cancelledAt' fields in the GraphQL API. If these fields are not null in the response, then the order is considered cancelled.(https://prnt.sc/d2Zw6t7NVpKL)

For archiving, you can include 'status:closed' in the query to retrieve all archived data.(https://prnt.sc/qYTOy46EKxl5)

If you found this response helpful, please do like and accept the solution. Thanks!
Need support with Customizing your Shopify store?
Feel free to contact me at info@huptechweb.com or Visit our website Huptech Web.
Instant Shortcode Builder: Integrate customizable UI features anywhere in your store - No coding knowledge required

Huptech-Web
Shopify Partner
1010 204 217

Hello @VladimirTs 

If the solution presented meets your needs and addresses your query effectively, I encourage you to accept it as the chosen answer. This will acknowledge the support you received and aid fellow community members in identifying reliable and effective solutions for their similar concerns.

Thank you.

If you found this response helpful, please do like and accept the solution. Thanks!
Need support with Customizing your Shopify store?
Feel free to contact me at info@huptechweb.com or Visit our website Huptech Web.
Instant Shortcode Builder: Integrate customizable UI features anywhere in your store - No coding knowledge required