Query total quantities for Returns?

Hello,

I am trying to find out how to query for the following fields on a Return (excluding Label Type):
image

I inspected the webpage and found that these fields are called “total_expected”, “total_received”, and “total_restocked”, but could not find these fields in the GraphQL query for a Return. Are they called something else?

Thanks

Hi @nturk !
They are currently not available through the return query (or any other), but I just submitted a feature request for this to be added.
I’ll let you know as soon as I get a response on this.
Thanks!
Tom

1 Like

Hi @tomasw!

Good afternoon! Any update on this? Can we use a webhook to get this data?

Thanks

Mathieu

Hi @Analytiks
We still have this Feature Pending, I apologize about that, but at the moment we are working on other Features. It will be implemented though

We are currently working on that specific webhook (which should be available next weeks) that is the Returns Update webhook which gets triggered each time an update is made to the return, and the body of the webhook has Quantity, Quantity Received and Quantity Restocked.
Let me know if that is what you were looking for.
I will update as soon as I have more news about this
Thanks!

Hi @tomasw!

That’s exactly what I’m looking for. :slight_smile: Any chance that the webhook is ready? I have a client who is needing Quantity, Quantity Received and Quantity Restocked data.

Thanks!

Hi @Analytiks !
The Return Update webhook should be working as expected now
My apologize for not providing the corresponding update about it.
Let me know if you need more information
Thanks!
Tom

Hi @tomasw!

Hope you’re doing well. The webhook isn’t working correctly. Would you be able to contact me at mathieu@analytiks.co?

Thanks,

Mathieu

1 Like

Hi @nturk
The fields should be available now, using something like this:

query {
  return(id: "1275821") {
    request_id
    complexity
    data {
      total_items_expected
      total_items_received
      total_items_restocked
    }
  }
} 

Thanks for the patience while we implemented this!
Tom