Skip to main content

LeadEventDTO

One change recorded on the lead itself or on one of its contacts — the event payload of a LeadEventJournalDTO with dataType: LEAD_EVENT or CONTACT_EVENT.

The meaning of previous / current / objectId depends on actionType; the most common combinations:

actionTypepreviouscurrentobjectId
CHANGE_STATUSold pipeStatusIdnew pipeStatusId—
CREATE_STATUS—pipeStatusId—
SET_VALUE / CHANGE_VALUE / DELETE_VALUEold valuenew valueCRM field ID
CHANGE_LEAD_EMPLOYEEold employee IDnew employee ID—
SET_LEAD_EMPLOYEE—employee ID—
SET_ / CHANGE_ / REMOVE_CONTACT_RESPONSIBLEold employee IDnew employee ID—
ATTACH_LEAD_TO_CONTRACT—contract numbercontract ID
REMOVE_LEAD_FROM_CONTRACTcontract number—contract ID
ATTACH_LEAD_TO_CLIENT—client nameclient ID
REMOVE_CLIENT_FROM_LEADclient name—client ID
CALL_EVALUATED / CALL_EVALUATE_DELETED——note ID
META_CONVERSION—Success / Failed—
CHANGE_LEAD_NAMEold namenew name—
CREATE_TAG / REMOVE_TAGremoved tag nameadded tag name—
CREATE_REASONS_FOR_REFUSAL—reason text—
CHANGE_REASONS_FOR_REFUSALold reason textnew reason text—
ATTACH_FLAT—flat numberflat ID
LEAD_MERGE / COPY_LEAD / COPY_LEAD_FROM—the other lead's namethe other lead's ID

⚠️ Even where a value above is an ID, it is sent as a string and is not resolved to a name — look it up via GET /v1/open-api/pipe/all, GET /v1/open-api/crm-field or POST /v1/open-api/employee/filter.

Four families of actions are the exception — they carry a resolved object next to the raw value:

actionTypeextra fieldswhat the raw value is
CHANGE_STATUS, CREATE_STATUSpreviousPipeStatus / currentPipeStatuspipeline stage ID
CHANGE_LEAD_EMPLOYEE, SET_LEAD_EMPLOYEEpreviousEmployee / currentEmployeeemployee ID
CREATE_TAG, REMOVE_TAGpreviousTag / currentTagtag name
CREATE_REASONS_FOR_REFUSAL, CHANGE_REASONS_FOR_REFUSALpreviousReason / currentReasonreason text
SET_VALUE, CHANGE_VALUE, DELETE_VALUEcrmField (+ previousAddress / currentAddress)objectId — field ID
ATTACH_LEAD_TO_CLIENT, REMOVE_CLIENT_FROM_LEADclientobjectId — client ID
LEAD_MERGE, COPY_LEAD, COPY_LEAD_FROMrelatedLeadobjectId — the other lead's ID
ATTACH_LEAD_TO_CONTRACT, REMOVE_LEAD_FROM_CONTRACTcontractobjectId — contract ID
ATTACH_FLATflatobjectId — apartment ID
CALL_EVALUATED, CALL_EVALUATE_DELETEDcallNoteobjectId — note ID

The contact-responsible actions (SET_CONTACT_RESPONSIBLE, CHANGE_CONTACT_RESPONSIBLE, REMOVE_CONTACT_RESPONSIBLE) also store an employee ID and come back with previousEmployee / currentEmployee, exactly like the lead's own responsible employee.

The reasons differ: "previous": "603", "current": "979" says nothing on its own, while a tag name or a reason text is already readable — there the resolved object adds the ID, colour and ordering, so a timeline can be grouped by stage, tag or reason ID.

Only the applicable side is filled: CREATE_STATUS, SET_LEAD_EMPLOYEE, CREATE_TAG and CREATE_REASONS_FOR_REFUSAL have no previous value, REMOVE_TAG has only a previous one. The raw fields are unchanged, so existing integrations keep working.

⚠️ Tags and reasons are resolved by name/text — the history does not store their IDs. A tag that was deleted, or a reason removed from the reference list or edited since, will not be found; the object is then omitted entirely and only the raw value remains. The same rule applies to an employee who was deleted or belongs to another company, and to a deleted custom field. Pipeline stages are resolved by ID and a deleted stage is still returned (with deletedTimestamp set), since older history routinely points at stages that no longer exist.

⚠️ client and relatedLead are not read back from the database: both values already sit in the event (objectId and current / previous), so the name is the one the object had at the time of the event. They repackage what the raw fields already say — fetch the object by id for its current state.

eventIdint64

ID of the underlying lead_event row — same value as the enclosing record's eventId.

Example: 918233
leadIdint64nullable

Lead this event belongs to.

Example: 26801
leadNamestringnullable

That lead's name — omitted when the lead has been deleted. Saves resolving leadId yourself in company-wide history.

Example: Yunusobod 3/45 — Alisher
actionTypeActionType

The kind of change a LeadEventDTO record represents. See LeadEventDTO for how previous / current / objectId are interpreted per value.

Possible values: [CREATE_LED, CREATE_CONTACT, CREATE_TAG, REMOVE_TAG, CHANGE_STATUS, CREATE_STATUS, CHANGE_VALUE, SET_VALUE, DELETE_VALUE, CHANGE_LEAD_NAME, CHANGE_LEAD_BALANCE, CHANGE_LEAD_EMPLOYEE, SET_LEAD_EMPLOYEE, CHANGE_CONTACT_NAME, CREATE_CONTACT_EMAIL, CHANGE_CONTACT_EMAIL, SET_CONTACT_RESPONSIBLE, CHANGE_CONTACT_RESPONSIBLE, REMOVE_CONTACT_PHONE, CREATE_CONTACT_PHONE, CREATE_REASONS_FOR_REFUSAL, CHANGE_REASONS_FOR_REFUSAL, REMOVE_CONTACT, RESTORE_CONTACT, DELETE_LEAD, RECOVERY_LEAD, LEAD_MERGE, ATTACH_LEAD_TO_CLIENT, REMOVE_CLIENT_FROM_LEAD, CREATE_TASK, TASK_COMPLETED, TASK_RESULT_ADDED, TASK_TEXT_CHANGED, DELETE_TASK, CALL_BROJECT, ATTACH_FLAT, CALL_EVALUATED, CALL_EVALUATE_DELETED, META_CONVERSION, ATTACH_LEAD_TO_CONTRACT, REMOVE_LEAD_FROM_CONTRACT, REMOVE_CONTACT_RESPONSIBLE, UNLINK_CONTACT_FROM_LEAD, LINK_CONTACT_TO_LEAD, COPY_LEAD, COPY_LEAD_FROM]

Example: CHANGE_STATUS
objectLogObjectLog

What changed: LEAD — the lead itself, CONTACT — one of its contacts.

Possible values: [CONTACT, LEAD, CONTRACT, TASK, BOOKING, ALL, CLIENT]

Example: LEAD
createdTimestampint64nullable

Event time

Example: 1735689600
createdEmployee object

The employee who performed the action — ID and full name.

idint32

Employee ID

Example: 201
fullNamestring

Employee full name

Example: David Wilson
contactIdint64nullable

When objectLog = CONTACT — the changed contact's ID.

Example: 5124
contactNamestringnullable

When objectLog = CONTACT — the changed contact's name.

Example: Dilnoza Rustamova
previousstringnullable

Previous value; absent for add-only actions.

Example: 3
currentstringnullable

New value; absent for remove-only actions.

Example: 5
objectIdstringnullable

ID of the object the change relates to (e.g. a CRM field ID).

Example: 172
crmField object

Which lead custom field changed, resolved from the field ID in objectId — present for SET_VALUE, CHANGE_VALUE and DELETE_VALUE. A field that was deleted is not resolved; only the raw objectId remains.

idint64

Field ID

Example: 172
namestring

Field name

Example: Byudjet
typeFieldType

CRM field type enum.

Possible values: [TEXT, DATE, SELECT, MULTI_SELECT, URL, TOGGLE_SWITCH, RADIO, LOCATION, COUNTER, ADDRESS, EXTENDED_TEXT, EMPLOYEE, FILE, NUMBER]

Example: SELECT
previousAddress object

The previous address, present only when crmField.type = ADDRESS. Such a field stores "<uuid>||street" (or just "<uuid>") in previous / current, which is unreadable on its own — here it is expanded to country / city / district / street. Omitted when the address cannot be resolved.

country object

A country in the address reference data.

idint32

Country ID

Example: 1
zonestring

The country's time zone.

Example: Asia/Tashkent
uzstringnullable

Name (uz)

Example: O'zbekiston
rustringnullable

Name (ru)

Example: Узбекистан
enstringnullable

Name (en)

Example: Uzbekistan
krstringnullable

Name (uz-cyrl)

Example: Ўзбекистон
trstringnullable

Name (tr)

Example: Özbekistan
tjstringnullable

Name (tj)

Example: Ӯзбекистон
kystringnullable

Name (ky)

Example: Өзбекстан
city object

A city in the address reference data.

idint32

City ID

Example: 14
uuidstringnullable

City UUID — the value stored in an ADDRESS field.

Example: 0f4c1a2e-8b7d-4a11-9f3c-2d5e6a7b8c90
uzstringnullable

Name (uz)

Example: Toshkent
rustringnullable

Name (ru)

Example: Ташкент
enstringnullable

Name (en)

Example: Tashkent
krstringnullable

Name (uz-cyrl)

Example: Тошкент
trstringnullable

Name (tr)

Example: Taşkent
tjstringnullable

Name (tj)

Example: Тошканд
kystringnullable

Name (ky)

Example: Ташкент
district object

A district in the address reference data.

idint32

District ID

Example: 207
uuidstringnullable

District UUID — the value stored in an ADDRESS field.

Example: 3b9ac1de-52f4-4d7a-9c18-7e0b5f2a4d63
uzstringnullable

Name (uz)

Example: Yunusobod
rustringnullable

Name (ru)

Example: Юнусабад
enstringnullable

Name (en)

Example: Yunusabad
krstringnullable

Name (uz-cyrl)

Example: Юнусобод
trstringnullable

Name (tr)

Example: Yunusabad
tjstringnullable

Name (tj)

Example: Юнусобод
kystringnullable

Name (ky)

Example: Юнусабад
streetstringnullable

Street

Example: Amir Temur ko'chasi 12
currentAddress object

The new address, same rules as previousAddress.

country object

A country in the address reference data.

idint32

Country ID

Example: 1
zonestring

The country's time zone.

Example: Asia/Tashkent
uzstringnullable

Name (uz)

Example: O'zbekiston
rustringnullable

Name (ru)

Example: Узбекистан
enstringnullable

Name (en)

Example: Uzbekistan
krstringnullable

Name (uz-cyrl)

Example: Ўзбекистон
trstringnullable

Name (tr)

Example: Özbekistan
tjstringnullable

Name (tj)

Example: Ӯзбекистон
kystringnullable

Name (ky)

Example: Өзбекстан
city object

A city in the address reference data.

idint32

City ID

Example: 14
uuidstringnullable

City UUID — the value stored in an ADDRESS field.

Example: 0f4c1a2e-8b7d-4a11-9f3c-2d5e6a7b8c90
uzstringnullable

Name (uz)

Example: Toshkent
rustringnullable

Name (ru)

Example: Ташкент
enstringnullable

Name (en)

Example: Tashkent
krstringnullable

Name (uz-cyrl)

Example: Тошкент
trstringnullable

Name (tr)

Example: Taşkent
tjstringnullable

Name (tj)

Example: Тошканд
kystringnullable

Name (ky)

Example: Ташкент
district object

A district in the address reference data.

idint32

District ID

Example: 207
uuidstringnullable

District UUID — the value stored in an ADDRESS field.

Example: 3b9ac1de-52f4-4d7a-9c18-7e0b5f2a4d63
uzstringnullable

Name (uz)

Example: Yunusobod
rustringnullable

Name (ru)

Example: Юнусабад
enstringnullable

Name (en)

Example: Yunusabad
krstringnullable

Name (uz-cyrl)

Example: Юнусобод
trstringnullable

Name (tr)

Example: Yunusabad
tjstringnullable

Name (tj)

Example: Юнусобод
kystringnullable

Name (ky)

Example: Юнусабад
streetstringnullable

Street

Example: Amir Temur ko'chasi 12
client object

The client the lead was attached to or detached from — present for ATTACH_LEAD_TO_CLIENT and REMOVE_CLIENT_FROM_LEAD.

idint64

ID of the referenced object

Example: 5821
namestringnullable

Its name at the time of the event

Example: Alisher Yusupov
relatedLead object

The other lead involved — present for LEAD_MERGE, COPY_LEAD and COPY_LEAD_FROM.

idint64

ID of the referenced object

Example: 5821
namestringnullable

Its name at the time of the event

Example: Alisher Yusupov
contract object

The contract the lead was attached to or detached from, resolved from the contract ID in objectId — present for ATTACH_LEAD_TO_CONTRACT and REMOVE_LEAD_FROM_CONTRACT. The raw value holds only the contract number; this adds its status, amount and currency.

idint32

Contract ID

Example: 5001
contractNumberstring

Contract number

Example: CNT-2023-001
statusContractStatus

Contract status enum.

Possible values: [STARTED, ACTIVE, CANCELLED, FINISHED, TRANSFERRED]

Example: ACTIVE
amountdouble

Original contract price (without discount)

Example: 50000
discountdouble

Discount amount

Example: 5000
ccystring

ISO code of the contract currency

Default value: UZS
Example: UZS
flat object

The flat that was attached, resolved from the flat ID in objectId — present for ATTACH_FLAT. The raw current holds only the flat number, which does not say which building or project it belongs to.

idint32nullable

Apartment ID

Example: 7781
numberstringnullable

Apartment number

Example: 45
roomsstringnullable

Room count

Example: 3
floorint32nullable

Floor

Example: 5
areadoublenullable

Area, m².

Example: 78.4
repairedbooleannullable

Whether the apartment is repaired

Example: true
buildingIdint32nullable

Building ID

Example: 34
buildingNamestringnullable

Building name

Example: A blok
houseIdint32nullable

House (project) ID

Example: 12
houseNamestringnullable

House (project) name

Example: Green Valley
callNote object

The note the call rating belongs to (objectId is a lead_note ID) — present for CALL_EVALUATED and CALL_EVALUATE_DELETED. Omitted when the note has been deleted.

idint64

Note ID (null when creating)

Example: 7001
isPinboolean

Whether the note is pinned.

Default value: false
Example: false
textstringrequired

Note text. Required, length 1–500.

Possible values: non-empty and <= 500 characters

Example: Client requested a callback
typeLeadNoteType

Lead note type enum.

  • SIMPLE — ordinary note
  • SMS — a sent SMS
  • PHONE — a phone call note

Possible values: [SIMPLE, SMS, PHONE]

Default value: SIMPLE
Example: SIMPLE
leadIdint64nullable

ID of the lead the note belongs to. Response only — ignored if sent in a request. The only way to attribute a note to a lead when it comes back from a company-wide POST /v1/open-api/lead-event/filter or POST /v1/open-api/lead-note/filter (no leadIds in the request).

Example: 26801
createdBy objectnullable

Employee who wrote the note. Response only — ignored if sent in a request. Filter with createdByIds.

idint32

Employee ID

Example: 201
fullNamestring

Employee full name

Example: David Wilson
createdTimestampint64nullable

Time the note was written, epoch seconds. Response only.

Example: 1730000000
deletedBy objectnullable

Employee who deleted the note — pairs with deletedTimestamp. null when not deleted.

idint32

Employee ID

Example: 201
fullNamestring

Employee full name

Example: David Wilson
deletedTimestampint64nullable

Deletion time (epoch seconds); null when not deleted.

Example: null
deletedboolean

true when the note is soft-deleted.

Example: false
files object[]nullable

Files attached to the note. null when the caller path does not load files (GET /v1/open-api/lead-event/filter's note rows); an empty array means no files attached. Populated on GET .../list and POST /v1/open-api/lead-note/filter.

  • Array [
  • absolutePathstringnullable

    Presigned URL to the full-size file

    Example: https://minio.uysot.uz/uysot/files/201/avatar.png?X-Amz-Expires=3600
    thumbAbsolutePathstringnullable

    Presigned URL to the thumbnail rendition

    Example: https://minio.uysot.uz/uysot/files/201/avatar_thumb.png?X-Amz-Expires=3600
    smallestAbsolutePathstringnullable

    Presigned URL to the smallest rendition

    Example: https://minio.uysot.uz/uysot/files/201/avatar_small.png?X-Amz-Expires=3600
  • ]
  • createdByIdint32nullabledeprecated

    Deprecated — use createdBy.id.

    Example: 95
    previousPipeStatus object

    The previous pipeline stage, resolved from the pipeStatusId in previous — present only for CHANGE_STATUS (CREATE_STATUS puts the lead on its first stage, so there is no previous one). A stage that was since deleted is still resolved, with its deletedTimestamp filled in.

    idint64

    Pipeline stage ID

    Example: 1
    namestring

    Pipeline stage name

    Example: New Lead
    ordersint32

    Pipeline stage order

    Example: 1
    colorstring

    Pipeline stage color

    Example: #FF0000
    typePipeStatusType

    Pipeline stage type enum.

    Possible values: [FIRST, SIMPLE, SUCCESS, FAILED]

    Example: FIRST
    pipeIdint64

    Pipeline ID

    Example: 1
    pipeNamestring

    Pipeline name

    Example: Sales Pipeline
    deletedTimestampint64nullable

    Deletion time (epoch seconds, null if active)

    Example: null
    currentPipeStatus object

    The new pipeline stage, resolved from the pipeStatusId in current — present for CHANGE_STATUS and CREATE_STATUS.

    idint64

    Pipeline stage ID

    Example: 1
    namestring

    Pipeline stage name

    Example: New Lead
    ordersint32

    Pipeline stage order

    Example: 1
    colorstring

    Pipeline stage color

    Example: #FF0000
    typePipeStatusType

    Pipeline stage type enum.

    Possible values: [FIRST, SIMPLE, SUCCESS, FAILED]

    Example: FIRST
    pipeIdint64

    Pipeline ID

    Example: 1
    pipeNamestring

    Pipeline name

    Example: Sales Pipeline
    deletedTimestampint64nullable

    Deletion time (epoch seconds, null if active)

    Example: null
    previousTag object

    The tag that was removed, resolved from the name in previous — present only for REMOVE_TAG. Omitted entirely (not null) when the tag no longer exists under that name, while previous still carries the raw name.

    idint32

    Tag ID

    Example: 41
    namestring

    Tag name

    Example: VIP
    colorstringnullable

    Display colour (hex).

    Example: #FF5733
    currentTag object

    The tag that was added, resolved from the name in current — present only for CREATE_TAG; omitted when it cannot be resolved, same as previousTag.

    idint32

    Tag ID

    Example: 41
    namestring

    Tag name

    Example: VIP
    colorstringnullable

    Display colour (hex).

    Example: #FF5733
    previousReason object

    The previous refusal reason, resolved from the text in previous — present only for CHANGE_REASONS_FOR_REFUSAL. Omitted when the reason is no longer in the company's reference list under that text.

    idint64

    Refusal reason ID. 0 is the synthetic "no reason given" entry.

    Example: 14
    valuestring

    Reason text

    Example: Narx qimmat
    ordersint32

    Display order

    Example: 1
    currentReason object

    The new refusal reason, resolved from the text in current — present for CREATE_REASONS_FOR_REFUSAL and CHANGE_REASONS_FOR_REFUSAL; omitted when it cannot be resolved, same as previousReason.

    idint64

    Refusal reason ID. 0 is the synthetic "no reason given" entry.

    Example: 14
    valuestring

    Reason text

    Example: Narx qimmat
    ordersint32

    Display order

    Example: 1
    previousEmployee object

    The previous responsible employee, resolved from the ID in previous. Present only for CHANGE_LEAD_EMPLOYEE — SET_LEAD_EMPLOYEE assigns the first responsible employee, so there is no previous one. Omitted entirely (not null) when the employee cannot be resolved — deleted, or belonging to another company — while previous still carries the raw ID.

    idint32

    Employee ID

    Example: 201
    fullNamestring

    Employee full name

    Example: David Wilson
    currentEmployee object

    The new responsible employee, resolved from the ID in current. Present for CHANGE_LEAD_EMPLOYEE and SET_LEAD_EMPLOYEE; omitted when it cannot be resolved, same as previousEmployee.

    idint32

    Employee ID

    Example: 201
    fullNamestring

    Employee full name

    Example: David Wilson
    LeadEventDTO
    {
    "eventId": 918233,
    "leadId": 26801,
    "leadName": "Yunusobod 3/45 — Alisher",
    "actionType": "CHANGE_STATUS",
    "objectLog": "LEAD",
    "createdTimestamp": 1735689600,
    "createdEmployee": {
    "id": 201,
    "fullName": "David Wilson"
    },
    "contactId": 5124,
    "contactName": "Dilnoza Rustamova",
    "previous": "3",
    "current": "5",
    "objectId": "172",
    "crmField": {
    "id": 172,
    "name": "Byudjet",
    "type": "SELECT"
    },
    "previousAddress": {
    "country": {
    "id": 1,
    "zone": "Asia/Tashkent",
    "uz": "O'zbekiston",
    "ru": "Узбекистан",
    "en": "Uzbekistan",
    "kr": "Ўзбекистон",
    "tr": "Özbekistan",
    "tj": "Ӯзбекистон",
    "ky": "Өзбекстан"
    },
    "city": {
    "id": 14,
    "uuid": "0f4c1a2e-8b7d-4a11-9f3c-2d5e6a7b8c90",
    "uz": "Toshkent",
    "ru": "Ташкент",
    "en": "Tashkent",
    "kr": "Тошкент",
    "tr": "Taşkent",
    "tj": "Тошканд",
    "ky": "Ташкент"
    },
    "district": {
    "id": 207,
    "uuid": "3b9ac1de-52f4-4d7a-9c18-7e0b5f2a4d63",
    "uz": "Yunusobod",
    "ru": "Юнусабад",
    "en": "Yunusabad",
    "kr": "Юнусобод",
    "tr": "Yunusabad",
    "tj": "Юнусобод",
    "ky": "Юнусабад"
    },
    "street": "Amir Temur ko'chasi 12"
    },
    "currentAddress": {
    "country": {
    "id": 1,
    "zone": "Asia/Tashkent",
    "uz": "O'zbekiston",
    "ru": "Узбекистан",
    "en": "Uzbekistan",
    "kr": "Ўзбекистон",
    "tr": "Özbekistan",
    "tj": "Ӯзбекистон",
    "ky": "Өзбекстан"
    },
    "city": {
    "id": 14,
    "uuid": "0f4c1a2e-8b7d-4a11-9f3c-2d5e6a7b8c90",
    "uz": "Toshkent",
    "ru": "Ташкент",
    "en": "Tashkent",
    "kr": "Тошкент",
    "tr": "Taşkent",
    "tj": "Тошканд",
    "ky": "Ташкент"
    },
    "district": {
    "id": 207,
    "uuid": "3b9ac1de-52f4-4d7a-9c18-7e0b5f2a4d63",
    "uz": "Yunusobod",
    "ru": "Юнусабад",
    "en": "Yunusabad",
    "kr": "Юнусобод",
    "tr": "Yunusabad",
    "tj": "Юнусобод",
    "ky": "Юнусабад"
    },
    "street": "Amir Temur ko'chasi 12"
    },
    "client": {
    "id": 5821,
    "name": "Alisher Yusupov"
    },
    "relatedLead": {
    "id": 5821,
    "name": "Alisher Yusupov"
    },
    "contract": {
    "id": 5001,
    "contractNumber": "CNT-2023-001",
    "status": "ACTIVE",
    "amount": 50000,
    "discount": 5000,
    "ccy": "UZS"
    },
    "flat": {
    "id": 7781,
    "number": "45",
    "rooms": "3",
    "floor": 5,
    "area": 78.4,
    "repaired": true,
    "buildingId": 34,
    "buildingName": "A blok",
    "houseId": 12,
    "houseName": "Green Valley"
    },
    "callNote": {
    "id": 7001,
    "isPin": false,
    "text": "Client requested a callback",
    "type": "SIMPLE",
    "leadId": 26801,
    "createdBy": {
    "id": 201,
    "fullName": "David Wilson"
    },
    "createdTimestamp": 1730000000,
    "deletedBy": {
    "id": 201,
    "fullName": "David Wilson"
    },
    "deletedTimestamp": null,
    "deleted": false,
    "files": [
    {
    "absolutePath": "https://minio.uysot.uz/uysot/files/201/avatar.png?X-Amz-Expires=3600",
    "thumbAbsolutePath": "https://minio.uysot.uz/uysot/files/201/avatar_thumb.png?X-Amz-Expires=3600",
    "smallestAbsolutePath": "https://minio.uysot.uz/uysot/files/201/avatar_small.png?X-Amz-Expires=3600"
    }
    ]
    },
    "previousPipeStatus": {
    "id": 1,
    "name": "New Lead",
    "orders": 1,
    "color": "#FF0000",
    "type": "FIRST",
    "pipeId": 1,
    "pipeName": "Sales Pipeline",
    "deletedTimestamp": null
    },
    "currentPipeStatus": {
    "id": 1,
    "name": "New Lead",
    "orders": 1,
    "color": "#FF0000",
    "type": "FIRST",
    "pipeId": 1,
    "pipeName": "Sales Pipeline",
    "deletedTimestamp": null
    },
    "previousTag": {
    "id": 41,
    "name": "VIP",
    "color": "#FF5733"
    },
    "currentTag": {
    "id": 41,
    "name": "VIP",
    "color": "#FF5733"
    },
    "previousReason": {
    "id": 14,
    "value": "Narx qimmat",
    "orders": 1
    },
    "currentReason": {
    "id": 14,
    "value": "Narx qimmat",
    "orders": 1
    },
    "previousEmployee": {
    "id": 201,
    "fullName": "David Wilson"
    },
    "currentEmployee": {
    "id": 201,
    "fullName": "David Wilson"
    }
    }