Ability to get returns by the date

Hi all. Could someone provide me query to get returns by the date range via api. I need it for REST or GraphQL api, I didn`t find any examples in documentation. Thank you!

Hi @kotofanik !
You could use the following query on the GraphQL API:

query{
  returns(date_from: "2019-12-04", date_to: "2019-12-31"){
    request_id
    complexity
    data(first:10){
      edges{
        node{
          id
    legacy_id
    account_id
    order_id
    partner_id
    reason
    status
        }
      }
    }
  }
} 

Let me know if this doesn’t help!
Tom