Query Regarding Shopify API for Return Closure Timestamp

Query Regarding Shopify API for Return Closure Timestamp

dinesh-fulfil
Shopify Partner
1 0 0

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
167 23 27

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 on (liushuaicc@shinetechsoftware.com)