Hello,
I need to get all returns via the API. In the GQL docs, you can filter orders by return status. Filtering by any of those values returns 0 results. I know there are orders with returns though. I then tried to filter with the OrderReturnStatus enum and finally get the expected results, but I see this warning as well
"search": [
{
"path": [
"orders"
],
"query": "return_status:RETURNED",
"parsed": {
"field": "return_status",
"match_all": "RETURNED"
},
"warnings": [
{
"field": "return_status",
"message": "Input `RETURNED` is not an accepted value."
}
]
}
]
What is the correct approach here? I would be happy to use the REST API, but the orders response doesn’t include return data, in particular, the id of a return.
The ideal solution would be to have a list returns endpoint, but I don’t see that available.
Any help is greatly appreciated!