LeadDTO
CRM Lead information object. Returned by GET /v1/open-api/lead/{leadId}.
Same fields, names and shapes as LeadFilterResponseDTO's row, plus the heavier
per-lead blocks: fields, contacts, attributions, contract, reasonsForRefusal.
Lead ID
1001Lead UUID value
550e8400-e29b-41d4-a716-446655440000Identifier of the originating Facebook Lead Ads lead. Set only for leads created
from a Facebook lead form; null for every other source.
1234567890123456Lead name
New apartment buyerBalance (budget) amount — currency is currency.
5000currency objectnullable
Lead's currency. null when the lead has no currency set.
Currency ID
1Exchange rate (1 for the basic currency)
1Last update time (epoch seconds)
1672531200Whether it's the company's basic currency
trueCurrency code
USDpipeStatus object
Compact reference to a pipeline (funnel) status, embedded in LeadDTO and
LeadFilterResponseDTO as pipeStatus.
Pipeline status ID
979Pipeline status name
NewThe pipe (funnel) this status belongs to
12Pipe (funnel) name
SalesresponsibleBy object
Compact employee reference.
Employee ID
201Employee full name
David WilsoncreatedBy object
Compact employee reference.
Employee ID
201Employee full name
David WilsonupdatedBy object
Compact employee reference.
Employee ID
201Employee full name
David WilsondeletedBy objectnullable
Employee who deleted the lead — pairs with deletedTimestamp. null when not deleted.
Employee ID
201Employee full name
David WilsonTags attached to lead.
["VIP","New"]fields object[]
Additional (custom) field values. Contact field values are not included here.
Field ID this value belongs to
1Simple value (as text)
VIPMultiple values (for multi-select fields).
["VIP","New"]Field value type enum.
Possible values: [STREET, DISTRICT, DEFAULT]
DEFAULTDEFAULTField type (lowercased, e.g. text, select)
selectWhich entity a field/value belongs to.
LED— the leadCONTACT— the contact
Possible values: [LED, CONTACT]
LEDGeo coordinate: longitude (for location fields)
69.2401Geo coordinate: latitude (for location fields)
41.2995Value for NUMBER fields. Populated instead of value.
1500.5Currency ID, present when the NUMBER field's format is CURRENCY.
24contacts object[]
Contacts attached to lead.
Contact ID (null when creating)
1001Contact name (required)
John Doefields object[]
Contact custom field values.
Field ID this value belongs to
1Simple value (as text)
VIPMultiple values (for multi-select fields).
["VIP","New"]Field value type enum.
Possible values: [STREET, DISTRICT, DEFAULT]
DEFAULTDEFAULTField type (lowercased, e.g. text, select)
selectWhich entity a field/value belongs to.
LED— the leadCONTACT— the contact
Possible values: [LED, CONTACT]
LEDGeo coordinate: longitude (for location fields)
69.2401Geo coordinate: latitude (for location fields)
41.2995Value for NUMBER fields. Populated instead of value.
1500.5Currency ID, present when the NUMBER field's format is CURRENCY.
24Contact type enum.
Possible values: [SIMPLE, TELEGRAM, INSTAGRAM, WEBSITE, FACEBOOK, OTHER, CALL_PBX, MARKETPLACE, GOOGLE_SHEETS, WEB_FORM, WAZZUP, AMO_CRM, TELEGRAM_BUSINESS]
SIMPLETELEGRAMAccount ID (if available)
acc123Username
johndoePhone numbers (required, non-empty).
Possible values: >= 1
["+998901234567"]Receiver ID (if available)
rec123attributions object[]
Channel / UTM attributions, in attachment order (earliest first).
Attribution ID
5001channel object
Channel a lead originated from.
Channel ID
12Channel a lead originated from. Serialized by name.
Possible values: [INSTAGRAM, FACEBOOK, FACEBOOK_FORM, TELEGRAM, TELEGRAM_BUSINESS, TELEGRAM_BOT, WHATSAPP, WABA, VK, VIBER, AVITO, WEBSITE, AMO_CRM, ONLINE_PBX, UTEL, SIPUNI, ASTERISK, MOI_ZVONKI, WEB_FORM, EMPLOYEE, UNKNOWN]
INSTAGRAMFree-text channel identifier
ig-promo-2026utmData object
UTM / tracking attribution data attached to a lead.
UTM source
instagramUTM medium
cpcUTM campaign
spring_saleUTM term
apartmentUTM content
banner_aFacebook click ID (fbclid)
IwAR0...Client IP address (Facebook CAPI)
203.0.113.5Client user agent (Facebook CAPI)
Mozilla/5.0 ...Facebook browser ID (_fbp cookie)
fb.1.1672531200.1234567890Time the attribution was attached (epoch seconds)
1672531200contract object
Compact contract reference embedded in LeadDTO as the contract field.
Carries only contract identity and amounts — use GET /v1/open-api/contract/{id}
with the id for the full contract.
Contract ID
5001Contract number
CNT-2023-001Contract status enum.
Possible values: [STARTED, ACTIVE, CANCELLED, FINISHED, TRANSFERRED]
ACTIVEOriginal contract price (without discount)
50000Discount amount
5000ISO code of the contract currency
UZSUZSreasonsForRefusal objectnullable
Refusal (lost) reason attached when the lead was moved to a FAILED pipeline
stage. null for leads that were never refused.
Refusal reason ID. 0 is the synthetic "no reason given" entry.
14Reason text
Narx qimmatDisplay order
1Creation time (epoch seconds)
1672531200Last update time (epoch seconds)
1672704000Deletion time (epoch seconds); null when the lead is not deleted.
nulltrue when the lead is soft-deleted.
falseDeprecated — use currency.id.
1Deprecated — use pipeStatus.id.
1Deprecated — use responsibleBy.id.
101Deprecated — use responsibleBy.fullName. The old plain-text responsibleBy value.
Alice Johnson{
"id": 1001,
"uuid": "550e8400-e29b-41d4-a716-446655440000",
"facebookLeadId": "1234567890123456",
"name": "New apartment buyer",
"balance": 5000,
"currency": {
"id": 1,
"value": 1,
"updateTimestamp": 1672531200,
"basic": true,
"ccy": "USD"
},
"pipeStatus": {
"id": 979,
"name": "New",
"pipeId": 12,
"pipeName": "Sales"
},
"responsibleBy": {
"id": 201,
"fullName": "David Wilson"
},
"createdBy": {
"id": 201,
"fullName": "David Wilson"
},
"updatedBy": {
"id": 201,
"fullName": "David Wilson"
},
"deletedBy": {
"id": 201,
"fullName": "David Wilson"
},
"tags": [
"VIP",
"New"
],
"fields": [
{
"id": 1,
"value": "VIP",
"valueList": [
"VIP",
"New"
],
"valueType": "DEFAULT",
"type": "select",
"infoType": "LED",
"longitude": 69.2401,
"latitude": 41.2995,
"number": 1500.5,
"currencyId": 24
}
],
"contacts": [
{
"id": 1001,
"name": "John Doe",
"fields": [
{
"id": 1,
"value": "VIP",
"valueList": [
"VIP",
"New"
],
"valueType": "DEFAULT",
"type": "select",
"infoType": "LED",
"longitude": 69.2401,
"latitude": 41.2995,
"number": 1500.5,
"currencyId": 24
}
],
"type": "TELEGRAM",
"accountId": "acc123",
"username": "johndoe",
"phones": [
"+998901234567"
],
"receiverId": "rec123"
}
],
"attributions": [
{
"id": 5001,
"channel": {
"id": 12,
"source": "INSTAGRAM",
"channelValue": "ig-promo-2026"
},
"utmData": {
"utmSource": "instagram",
"utmMedium": "cpc",
"utmCampaign": "spring_sale",
"utmTerm": "apartment",
"utmContent": "banner_a",
"fbcLid": "IwAR0...",
"fbClientIpAddress": "203.0.113.5",
"fbClientUserAgent": "Mozilla/5.0 ...",
"fbp": "fb.1.1672531200.1234567890"
},
"attachedTimestamp": 1672531200
}
],
"contract": {
"id": 5001,
"contractNumber": "CNT-2023-001",
"status": "ACTIVE",
"amount": 50000,
"discount": 5000,
"ccy": "UZS"
},
"reasonsForRefusal": {
"id": 14,
"value": "Narx qimmat",
"orders": 1
},
"createdTimestamp": 1672531200,
"updatedTimestamp": 1672704000,
"deletedTimestamp": null,
"deleted": false
}