# Search invoices Advanced invoice filtering with custom GraphQL where clauses and dynamic ordering Supports invoiceNumber text matching, status filtering, and date ranges. Real Example: bash curl --location 'https://{{host}}/v1/invoices/search' \ --header 'Authorization: bearer {{token}}' \ --header 'Content-Type: application/json' \ --data '{ "pageSize": 1, "where": { "_and": [ { "_or": [ { "invoiceNumber": { "_ilike": "%2024%" } }, { "description": { "_ilike": "%service%" } } ] }, { "status": { "_in": ["POSTED", "CLOSED"] } }, { "createdAt": { "_gte": "1900-01-01T00:00:00Z" } }, { "dueDate": { "_gte": "2024-01-01T00:00:00Z" } } ] }, "orderBy": [ { "invoiceNumber": "asc" }, { "createdAt": "desc" } ] }' Endpoint: POST /gql/v1/invoices/search Version: 1.0.0 Security: BearerAuth ## Request fields (application/json): - `pageSize` (integer) - `where` (object) GraphQL-style where clause for complex invoice filtering Example: {"_and":[{"_or":[{"invoiceNumber":{"_ilike":"%2024%"}},{"description":{"_ilike":"%service%"}}]},{"status":{"_in":["POSTED","CLOSED"]}},{"createdAt":{"_gte":"1900-01-01T00:00:00Z"}},{"dueDate":{"_gte":"2024-01-01T00:00:00Z"}}]} - `orderBy` (array) Dynamic ordering specifications Example: [{"invoiceNumber":"asc"},{"createdAt":"desc"}] ## Response 200 fields ## Response 400 fields ## Response 401 fields ## Response 500 fields