How to view entire order status using Shopify GraphQL API?

Topic summary

Goal: retrieve overall order state (e.g., canceled, archived) via Shopify GraphQL Admin API beyond financial and fulfillment status.

Proposed solution:

  • Cancellation: include the fields cancelReason and cancelledAt in the order query. If either is non-null, the order is considered canceled.
  • Archiving: use the query filter status:closed to return archived (closed) orders.

Notes:

  • Linked screenshots illustrate the fields and query usage, but no code snippets were provided.

Status/outcome:

  • A solution was proposed and the responder asked for it to be accepted if it works.
  • No confirmation from the requester yet; the thread appears open/pending verification.

No conflicting viewpoints were presented.

Summarized with AI on January 1. AI used: gpt-5.

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?

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)

1 Like

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.