Search filters using AdminWebApi SalesOrder

We’re trying to figure out how to use the Search function in the Admin Web API for sales order. How would a body look if you’re trying to fetch orders which is in the Status Confirmed or Processing?

Sadly the following documentation is not helping us much :slight_smile:

Thanks!

Noone can/wants to answer?

Hi,
As far as I know, there is no available condition in the rest apis to search via order status but you can get orders by date filter and filter them later by their status.

Here is an example:

{
“take”: 20,
“skip”: 0,
“filter”: [
{
“must”: [
{
“$type”: “Litium.Data.Queryable.Conditions.DateRangeFilterCondition, Litium.Abstractions”,
“fromDate”: “2023-10-25T17:42:12.000Z”,
“toDate”: “2023-10-26T17:42:12.000Z”
}
]
}
],
“sort”: [
{
“fieldId”: “date”,
“direction”: “descending”
}
]
}

1 Like

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.