---
title: "Search the target group."
method: POST
path: "/Litium/api/admin/customers/targetGroups/search"
tags: ["Customers target group"]
---

# Search the target group.

`POST /Litium/api/admin/customers/targetGroups/search`

## Request body

- LitiumWebWebApiAdminApiSearchSearchModel, nullable
  - `take` integer, nullable
  - `skip` integer, nullable
  - `filter` LitiumWebWebApiAdminApiSearchFilterModel[], nullable
    - union
      - LitiumWebWebApiAdminApiSearchBoolFilterModel, nullable
        - `should` LitiumWebWebApiAdminApiSearchFilterModel[], nullable
        - `mustNot` LitiumWebWebApiAdminApiSearchFilterModel[], nullable
        - `must` LitiumWebWebApiAdminApiSearchFilterModel[], nullable
      - union
        - LitiumDataQueryableConditionsAssortmentFilterCondition
          - `$type` string, required
        - LitiumDataQueryableConditionsCampaignFilterCondition, nullable — Represents the filter condition for campaign querying.
          - `$type` 'Litium.Data.Queryable.Conditions.CampaignFilterCondition, Litium.Abstractions', required
          - `operator` string, nullable — Gets or sets the operator.
          - `value` object — Gets or sets the value.
        - LitiumDataQueryableConditionsCategoryFilterCondition
          - `$type` string, required
        - LitiumDataQueryableConditionsCategoryInCartCondition
          - `$type` string, required
        - LitiumDataQueryableConditionsChannelFilterCondition
          - `$type` string, required
        - LitiumDataQueryableConditionsCustomerNameFilterCondition, nullable — Represents the filter condition for customer name querying.
          - `$type` 'Litium.Data.Queryable.Conditions.CustomerNameFilterCondition, Litium.Abstractions', required
          - `operator` string, nullable — Gets or sets the operator.
          - `value` object — Gets or sets the value.
        - LitiumDataQueryableConditionsDateRangeFilterCondition, nullable — Represents the filter condition for date range querying.
          - `$type` 'Litium.Data.Queryable.Conditions.DateRangeFilterCondition, Litium.Abstractions', required
          - `operator` string, nullable — Gets or sets the operator.
          - `fromDate` string, date-time, nullable — Gets or sets from date.
          - `toDate` string, date-time, nullable — Gets or sets to date.
        - LitiumDataQueryableConditionsFieldFilterCondition
          - `$type` string, required
        - LitiumDataQueryableConditionsIdFilterCondition, nullable — Class IdFilterCondition.
          - `$type` 'Litium.Data.Queryable.Conditions.IdFilterCondition, Litium.Abstractions', required
          - `operator` string, nullable — Gets or sets the operator.
          - `value` object — Gets or sets the value.
        - LitiumDataQueryableConditionsInventoryFilterCondition
          - `$type` string, required
        - LitiumDataQueryableConditionsLoggedInFilterCondition, nullable — Class LoggedInFilterCondition.
          - `$type` 'Litium.Data.Queryable.Conditions.LoggedInFilterCondition, Litium.Abstractions', required
          - `operator` string, nullable — Gets or sets the operator.
        - LitiumDataQueryableConditionsOrderCustomerFilterCondition, nullable — Represents the filter condition for order's customer querying.
          - `$type` 'Litium.Data.Queryable.Conditions.OrderCustomerFilterCondition, Litium.Abstractions', required
          - `operator` string, nullable — Gets or sets the operator.
          - `value` object — Gets or sets the value.
        - LitiumDataQueryableConditionsOrderFrequencyFilterCondition
          - `$type` 'Litium.Data.Queryable.Conditions.OrderFrequencyFilterCondition, Litium.Abstractions', required
          - `frequencyCount` integer — Gets or sets the frequency count.
          - `operator` string, nullable — Gets or sets the operator.
          - `fromDate` string, date-time, nullable — Gets or sets from date.
          - `toDate` string, date-time, nullable — Gets or sets to date.
        - LitiumDataQueryableConditionsOrderOrganizationFilterCondition, nullable — Represents the filter condition for order's organization querying.
          - `$type` 'Litium.Data.Queryable.Conditions.OrderOrganizationFilterCondition, Litium.Abstractions', required
          - `operator` string, nullable — Gets or sets the operator.
          - `value` object — Gets or sets the value.
        - LitiumDataQueryableConditionsOrderTotalFilterCondition
          - `$type` 'Litium.Data.Queryable.Conditions.OrderTotalFilterCondition, Litium.Abstractions', required
          - `currencySystemId` string, uuid, nullable — Gets or sets the currency system identifier.
          - `amount` number, double — Gets or sets the amount.
          - `operator` string, nullable — Gets or sets the operator.
          - `fromDate` string, date-time, nullable — Gets or sets from date.
          - `toDate` string, date-time, nullable — Gets or sets to date.
        - LitiumDataQueryableConditionsOrganizationRoleFilterCondition, nullable — Class OrganizationRoleFilterCondition.
          - `$type` 'Litium.Data.Queryable.Conditions.OrganizationRoleFilterCondition, Litium.Abstractions', required
          - `operator` string, nullable — Gets or sets the operator.
          - `systemIds` string[], nullable — Gets or sets the system ids.
        - LitiumDataQueryableConditionsPageFilterCondition, nullable — Class PageFilterCondition.
          - `$type` 'Litium.Data.Queryable.Conditions.PageFilterCondition, Litium.Abstractions', required
          - `operator` string, nullable — Gets or sets the operator.
          - `pageSystemId` string, uuid — Gets or sets the page system identifier.
          - `channelSystemId` string, uuid — Gets or sets the channel system id.
        - LitiumDataQueryableConditionsPricelistFilterCondition
          - `$type` string, required
        - LitiumDataQueryableConditionsProductDescriptionFilterCondition
          - `$type` string, required
        - LitiumDataQueryableConditionsProductFilterCondition
          - `$type` string, required
        - LitiumDataQueryableConditionsProductInCartCondition
          - `$type` 'Litium.Data.Queryable.Conditions.ProductInCartCondition, Litium.Abstractions', required
          - `operator` string, nullable — Gets or sets the operator.
          - `variantSystemId` string, uuid — Gets or sets the variant system identifier.
        - LitiumDataQueryableConditionsProductListFilterCondition, nullable — Class ProductListFilterCondition.
          - `$type` 'Litium.Data.Queryable.Conditions.ProductListFilterCondition, Litium.Abstractions', required
          - `operator` string, nullable — Gets or sets the operator.
          - `productListSystemId` string, uuid — Gets or sets the product list system identifier.
        - LitiumDataQueryableConditionsProductListInCartCondition
          - `$type` 'Litium.Data.Queryable.Conditions.ProductListInCartCondition, Litium.Abstractions', required
          - `operator` string, nullable — Gets or sets the operator.
          - `productListSystemId` string, uuid — Gets or sets the product list system identifier.
        - LitiumDataQueryableConditionsRemoveProductFromCartCondition
          - `$type` 'Litium.Data.Queryable.Conditions.RemoveProductFromCartCondition, Litium.Abstractions', required
          - `operator` string, nullable — Gets or sets the operator.
          - `variantSystemId` string, uuid — Gets or sets the variant system identifier.
        - LitiumDataQueryableConditionsTaggingFilterCondition, nullable — Class TaggingFilterCondition.
          - `$type` 'Litium.Data.Queryable.Conditions.TaggingFilterCondition, Litium.Abstractions', required
          - `operator` string, nullable — Gets or sets the operator.
          - `value` object — Gets or sets the value.
        - LitiumDataQueryableConditionsTargetGroupNumberOfVisitsFilterCondition
          - `$type` 'Litium.Data.Queryable.Conditions.TargetGroupNumberOfVisitsFilterCondition, Litium.Abstractions', required
          - `webSiteSystemId` string, uuid — Gets or sets the web site system identifier.
          - `numberOfVisits` integer — Gets or sets the number of visits.
          - `operator` string, nullable — Gets or sets the operator.
          - `withinTime` integer, nullable — Gets or sets the within time.
          - `periodType` 'days' | 'months' | 'weeks' | 'years' — Gets or sets the type of the period.
        - LitiumDataQueryableConditionsTargetGroupOrderFrequencyFilterCondition
          - `$type` 'Litium.Data.Queryable.Conditions.TargetGroupOrderFrequencyFilterCondition, Litium.Abstractions', required
          - `frequencyCount` integer — Gets or sets the frequency count.
          - `operator` string, nullable — Gets or sets the operator.
          - `withinTime` integer, nullable — Gets or sets the within time.
          - `periodType` 'days' | 'months' | 'weeks' | 'years' — Gets or sets the type of the period.
        - LitiumDataQueryableConditionsTargetGroupOrderTotalFilterCondition
          - `$type` 'Litium.Data.Queryable.Conditions.TargetGroupOrderTotalFilterCondition, Litium.Abstractions', required
          - `currencySystemId` string, uuid — Gets or sets the currency system identifier.
          - `amount` number, double — Gets or sets the amount.
          - `operator` string, nullable — Gets or sets the operator.
          - `withinTime` integer, nullable — Gets or sets the within time.
          - `periodType` 'days' | 'months' | 'weeks' | 'years' — Gets or sets the type of the period.
        - LitiumDataQueryableConditionsTargetGroupOrderTotalInCartFilterCondition
          - `$type` 'Litium.Data.Queryable.Conditions.TargetGroupOrderTotalInCartFilterCondition, Litium.Abstractions', required
          - `operator` string, nullable — Gets or sets the operator.
          - `currencySystemId` string, uuid — Gets or sets the currency system identifier.
          - `amount` number, double — Gets or sets the amount.
        - LitiumDataQueryableConditionsTargetGroupSearchOnSiteFilterCondition
          - `$type` 'Litium.Data.Queryable.Conditions.TargetGroupSearchOnSiteFilterCondition, Litium.Abstractions', required
          - `operator` string, nullable — Gets or sets the operator.
          - `searchText` string, nullable — Gets or sets the search text.
        - LitiumDataQueryableConditionsTemplateFilterCondition
          - `$type` string, required
        - LitiumDataQueryableConditionsVariantFilterCondition, nullable — Class VariantFilterCondition.
          - `$type` 'Litium.Data.Queryable.Conditions.VariantFilterCondition, Litium.Abstractions', required
          - `operator` string, nullable — Gets or sets the operator.
          - `variantSystemId` string, uuid — Gets or sets the variant system identifier.
        - LitiumDataQueryableConditionsVisitedCategoryCondition
          - `$type` string, required
        - LitiumDataQueryableConditionsVisitedPageCondition
          - `$type` 'Litium.Data.Queryable.Conditions.VisitedPageCondition, Litium.Abstractions', required
          - `operator` string, nullable — Gets or sets the operator.
          - `pageSystemId` string, uuid — Gets or sets the page system identifier.
          - `channelSystemId` string, uuid — Gets or sets the channel system id.
        - LitiumDataQueryableConditionsVisitedProductCondition
          - `$type` 'Litium.Data.Queryable.Conditions.VisitedProductCondition, Litium.Abstractions', required
          - `operator` string, nullable — Gets or sets the operator.
          - `productSystemId` string, uuid — Gets or sets the product system identifier.
        - LitiumDataQueryableConditionsVisitedProductListPageCondition
          - `$type` 'Litium.Data.Queryable.Conditions.VisitedProductListPageCondition, Litium.Abstractions', required
          - `operator` string, nullable — Gets or sets the operator.
          - `productListSystemId` string, uuid — Gets or sets the product list system identifier.
  - `sort` LitiumWebWebApiAdminApiSearchSortModel[], nullable
    - `fieldId` string, nullable, required
    - `direction` 'ascending' | 'descending'
  - `queryOptions` object, nullable

## Response `200`

OK

- LitiumWebWebApiAdminApiSearchSearchResultLitiumCustomersTargetGroup, nullable
  - `total` integer
  - `items` LitiumCustomersTargetGroup[], nullable
    - `fields` FieldsCustomers
      - `_name` object
        - `en-US` string, nullable
        - `sv-SE` string, nullable
      - `_nameInvariantCulture` object
        - `*` string, nullable
      - `_description` object
        - `en-US` string, nullable
        - `sv-SE` string, nullable
      - `_email` object
        - `*` string, nullable
      - `_firstName` object
        - `*` string, nullable
      - `_lastName` object
        - `*` string, nullable
      - `_phone` object
        - `*` string, nullable
      - `_title` object
        - `*` string, nullable
      - `_option` object
        - `*` FieldMetadataObject
      - `_matchCondition` object
        - `*` string, nullable
      - `_customData` object
        - `*` FieldMetadataObject
    - `conditions` LitiumTargetGroupCondition[]
      - `data` LitiumConditionsTargetGroup
        - `$type` string, required
      - `dataType` string
      - `id` string
      - `systemId` string, uuid
    - `fieldTemplateSystemId` string, uuid — Gets or sets the field template system identifier.
    - `id` string, nullable — Gets or sets the target group identifier.
    - `systemId` string, uuid — Gets or sets the target group system identifier.

---

[API](https://skmtc.dev/litium/apis/litium-admin-web-api.md) · [All operations](https://skmtc.dev/litium/apis/litium-admin-web-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/litium/litium-admin-web-api/revisions/a65881b0d0c6/schema)
