> ## Documentation Index
> Fetch the complete documentation index at: https://docs.algoreg.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Search customers

> Searches for customers that match the input.

## Body parameters

**account\_types** `string[]`

**assigned\_to\_member\_id** `integer`

**disabled** `boolean`

**edd\_state** `EDDState[]`

**properties**

**external\_id** `string`

**limit** `integer`

**offset** `integer`

**only\_without\_assignment** `boolean`

**only\_without\_review\_groups** `boolean`

**order\_by** `string`

**order\_way** `string`

**prefix** `string`

**review\_groups** `string[]`

**risk** `Risk[]`

**properties**

**search** `string`

## Response body

> [tab] 200
>
> **data** `CustomerSearchDTO[]`
>
> **properties**
>
> **account\_type** `integer`
>
> **company\_name** `string`
>
> **concat\_name** `string`
>
> **created\_by\_agent** `integer`
>
> **customer\_id** `string`
>
> **customer\_revision\_creation\_date** `string`
>
> **customer\_revision\_id** `string`
>
> **disabled** `boolean`
>
> **domicile\_code** `string`
>
> **domicile\_codes** `string[]`
>
> **edd\_state** `EDDState`
>
> **properties**
>
> **external\_id** `string`
>
> **first\_name** `string`
>
> **last\_name** `string`
>
> **middle\_name** `string`
>
> **nationality\_code** `string`
>
> deprecated. Use nationality\_codes instead
>
> **nationality\_codes** `string[]`
>
> **parent\_external\_id** `string`
>
> **risk** `Risk`
>
> **properties**
>
> **sort\_name** `string`
>
> **trading\_name** `string`
>
> **total** `integer`

> [tab] default
>
> unexpected error
>
> **errors** `APIError[]`
>
> Will contain both "v1" (deprecated, or soon to be) errors and "v2" errors. When possible, prefer errors that are not deprecated.
>
> **properties**
>
> **code** `string`
>
> **deprecated** `boolean`
>
> **message** `string`
>
> **will\_be\_deprecated** `boolean`

```json JSON
{
  "account_types": [
    "string"
  ],
  "assigned_to_member_id": "integer",
  "disabled": "boolean",
  "edd_state": [
    {}
  ],
  "external_id": "string",
  "limit": "integer",
  "offset": "integer",
  "only_without_assignment": "boolean",
  "only_without_review_groups": "boolean",
  "order_by": "string",
  "order_way": "string",
  "prefix": "string",
  "review_groups": [
    "string"
  ],
  "risk": [
    {}
  ],
  "search": "string"
}
```

```javascript JavaScript

  const response = await fetch(
    "POST /api/v1/customers",
    {
      method: "post",
      headers: {
        "Content-Type": "application/json",
        "Authorization": `Bearer {token}`
      },
      body: JSON.stringify({
  "account_types": [
    "string"
  ],
  "assigned_to_member_id": "integer",
  "disabled": "boolean",
  "edd_state": [
    {}
  ],
  "external_id": "string",
  "limit": "integer",
  "offset": "integer",
  "only_without_assignment": "boolean",
  "only_without_review_groups": "boolean",
  "order_by": "string",
  "order_way": "string",
  "prefix": "string",
  "review_groups": [
    "string"
  ],
  "risk": [
    {}
  ],
  "search": "string"
})
    }
  );
            
          
```

```json 200
{
  "data": [
    {
      "account_type": "integer",
      "company_name": "string",
      "concat_name": "string",
      "created_by_agent": "integer",
      "customer_id": "string",
      "customer_revision_creation_date": "string",
      "customer_revision_id": "string",
      "disabled": "boolean",
      "domicile_code": "string",
      "domicile_codes": [
        "string"
      ],
      "edd_state": {},
      "external_id": "string",
      "first_name": "string",
      "last_name": "string",
      "middle_name": "string",
      "nationality_code": "string",
      "nationality_codes": [
        "string"
      ],
      "parent_external_id": "string",
      "risk": {},
      "sort_name": "string",
      "trading_name": "string"
    }
  ],
  "total": "integer"
}
```

```json default
{
  "errors": [
    {
      "code": "string",
      "deprecated": "boolean",
      "message": "string",
      "will_be_deprecated": "boolean"
    }
  ]
}
```



This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.