Filters
A comprehensive list of the allowed fields values you can use to filter the results of the queries on the cart resource
To filter the results of a query on the cart resource add the
filter
object to the request payload specifying the fields (and related attributes) you want to filter by and the operators you want to apply on each of them (see the related tables for the full list), like in the generic example below:{
"{{query_type}}": { ... },
"filter": {
"order": {
"date_from": "...",
"date_to": "...",
"date_field": "...",
"total_amount_with_taxes": {
"gte": ...
}
// ...
},
"line_items": {
"types": {
"in": [
"...",
"..."
// ...
]
},
"codes": {
"in": [
"...",
"..."
// ...
]
},
"options": {
"names": {
"in": [
"...",
"..."
// ...
]
},
// ...
}
},
"customer": {
"email": {
"not_in": [
"...",
"..."
// ...