GetClientLeadsRequestDto
Filters for GET Api/ClientLeads. Every field except pagination is optional — an absent field means the condition is not applied. Passing several narrows by all of them.
Поля
| Поле | Тип | Обязательное | Описание |
|---|---|---|---|
pagination | Pagination | да | — |
searchQuery | string | нет | Full-text search over name, city and postal code together. Independent of the per-field filters below; word-based, so it does not match a partial word. |
createFromFilter | string | нет | ISO date. Kept for compatibility — createdAt is the range form. |
createToFilter | string | нет | ISO date. Kept for compatibility — createdAt is the range form. |
name | string | нет | Prefix match on the name. |
city | string | нет | Prefix match on the city. |
postalCode | string | нет | Prefix match on the postal code. |
createdAt | PaginationRangeFilter<string> | нет | ISO 8601 range over the creation timestamp. |
updatedAt | PaginationRangeFilter<string> | нет | ISO 8601 range over the last-update timestamp. Leads never updated are excluded. |
householdSupport | HouseholdSupportDto[] | нет | Matches leads having any of the listed household support values. |
currentSituation | CurrentSituationDto[] | нет | Matches leads having any of the listed current situation values. |
utmSource | string | нет | Prefix match on the UTM source. |
utmMedium | string | нет | Prefix match on the UTM medium. |
utmCampaign | string | нет | Prefix match on the UTM campaign. |
utmTerm | string | нет | Prefix match on the UTM term. |
utmContent | string | нет | Prefix match on the UTM content. |
pageUrl | string | нет | Prefix match on the landing page URL. |
pageTitle | string | нет | Substring match on the landing page title. |
referrer | string | нет | Prefix match on the referrer. |
linkedClientId | number | нет | Client this lead was converted into. |
phoneNumber | string | нет | Exact match against the linked phone contacts. Normalized before comparison (digits only, 49-prefixed), so a partial number does not match. |
email | string | нет | Exact match against the linked email contacts. Stored as a value object, so a partial address does not match — pass the full address. |
Пример
json
{
"pagination": "<Pagination>",
"searchQuery": "string",
"createFromFilter": "string",
"createToFilter": "string",
"name": "string",
"city": "string",
"postalCode": "string",
"createdAt": "<PaginationRangeFilter<string>>",
"updatedAt": "<PaginationRangeFilter<string>>",
"householdSupport": [],
"currentSituation": [],
"utmSource": "string",
"utmMedium": "string",
"utmCampaign": "string",
"utmTerm": "string",
"utmContent": "string",
"pageUrl": "https://...",
"pageTitle": "string",
"referrer": "string",
"linkedClientId": 0,
"phoneNumber": "+49123456789",
"email": "user@example.com"
}