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.

We're moving the community! Starting July 7, the current community will be read-only for approx. 2 weeks. You can browse content, but posting will be temporarily unavailable. Learn more

How to query for orders by refunded_at

How to query for orders by refunded_at

Jessica_P
Shopify Partner
4 0 0

I am unable to return a list of orders via the ‘refund date’, I need this so we can get the API to search for any returns/refunds processed for that day.

 

Currently I use ‘order created_at date’ to query order information, but need to have the option to query by return date also. I have spent hours sifting through the Shopfiy dev docs for this unable to find a result?

 

Has anyone else been able to achieve this? 

 

ie, querying for orders by refunded_at (pseudo graphql code):

 

orders(reverse: true, first: 10 query: "refunded_at:>’{DATETIME}' AND refunded_at:<'{DATETIME}'") {
  edges {
   node {
    id,
    createdAt,

    ..

    etc...

 

TIA.

Replies 0 (0)