# Using the Search API

## Overview
The API provides a number of search routes. Refer to the documentation of the route for the
list of supported search and filter terms.

## Sending a Search Request
```
GET /Customers/Search

?sorts=     -CreatedAt                             // sort by creation time descending 
&filters=   BillingState==TX,BillingCity==Houston  // filter customers to those in Houston, TX
&page=      1                                      // page number to return
&pageSize=  100                                    // number of records per page
```

## Operators
| Operator   | Meaning                  |
|------------|--------------------------|
| `==`       | Equals                   |
| `!=`       | Not equals               |
| `>`        | Greater than             |
| `<`        | Less than                |
| `>=`       | Greater than or equal to |
| `<=`       | Less than or equal to    |
| `@=`       | Contains                 |
| `_=`       | Starts with              |
| `_-=`      | Ends with                |
| `!@=`      | Does not Contains        |
| `!_=`      | Does not Starts with     |
| `!_-=`     | Does not Ends with       |
| `@=*`      | Case-insensitive string Contains |
| `_=*`      | Case-insensitive string Starts with |
| `_-=*`     | Case-insensitive string Ends with |
| `==*`      | Case-insensitive string Equals |
| `!=*`      | Case-insensitive string Not equals |
| `!@=*`     | Case-insensitive string does not Contains |
| `!_=*`     | Case-insensitive string does not Starts with |