Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Query Regarding Shopify API for Return Closure Timestamp

Query Regarding Shopify API for Return Closure Timestamp

dinesh-fulfil
Shopify Partner
3 0 1

Hi Team,

 

Could you please provide guidance on how to retrieve the timestamp or date when a return was closed on Shopify using the API?

For reference, here is an example order: https://admin.shopify.com/store/support-dk/orders/5581258981619

 

Thank you in advance for your assistance.

 

Regards,
Dinesh

Reply 1 (1)

Kyle_liu
Shopify Partner
377 48 64

Hi @dinesh-fulfil 

If you use Shopify Rest Api: https://{{storeName}}.myshopify.com/admin/api/{{apiVersion}}/orders/5581258981619.json , canceled-at/closed_at may be what you need,


If you use Shopify GraphQL Api, canceledAt/closedAt may be what you need.

 

 

query order($id: ID!){
    order(id:$id) {
      name
      cancelReason
      cancelledAt
      createdAt
      closed
      closedAt
    }
}

 

 

 

If this is helpful, please Like and Accept the solution.
Want to modify or custom changes on store? Let me help.
- Feel free to contact me Email Me Buy Me A Coffee