Skip to main content
POST
/
v1
/
customers
/
filter
Filter
curl --request POST \
  --url https://{defaultHost}/v1/customers/filter \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "filter": {
    "type": "condition",
    "attribute_name": "email",
    "operator_label": "is",
    "comparison_value": "anyone@example.com"
  }
}
'
{
  "object": "list",
  "pagination": {
    "count": 0,
    "limit": 20,
    "page": 1,
    "url": "/v1/customers/filter"
  },
  "data": []
}

Documentation Index

Fetch the complete documentation index at: https://developer.surecart.com/llms.txt

Use this file to discover all available pages before exploring further.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
filter
object

A rule tree describing how to filter records. May be a single rule_condition or a rule_group combining multiple conditions and nested groups with and / or. The valid attribute_name and operator_label values for each resource come from the corresponding GET /v1/<resource>/filter_schema endpoint.

Example:
{
  "type": "group",
  "combinator": "and",
  "conditions": [
    {
      "type": "condition",
      "attribute_name": "order_type",
      "operator_label": "is",
      "comparison_value": "checkout"
    },
    {
      "type": "condition",
      "attribute_name": "products.name",
      "operator_label": "contains",
      "comparison_value": "shirt"
    }
  ]
}

Response

200 - application/json

Success

object
string

A string describing the object type returned.

pagination
object
data
array

An array of objects.