Skip to main content

ContractFieldValueDTO

Contract custom field value object. value is resolved according to the field's type: ADDRESS returns the full address JSON, NUMBER a formatted value, LOCATION leaves coordinates in latitude/longitude instead. Null-valued properties are omitted from the response JSON entirely (not sent as null).

fieldIdint64

Field ID

Example: 1
valuestringnullable

Custom field value (resolved per type

Example: VIP Client
namestring

Custom field name

Example: Client Type
typeContractFieldType

Contract field type enum (the CONTRACT-family slice of uysot-v2's CustomFieldType). Serialized by name.

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

Example: SELECT
requiredboolean

Whether value is mandatory

Example: true
sortOrderint32nullable

Display order

Example: 1
numberdoublenullable

Numeric value — only for type: NUMBER.

Example: 1500.5
currencyIdint32nullable

Currency ID — only for type: NUMBER.

Example: 1
valuesstring[]

Ordered list of values for multi-row types (MULTI_SELECT/EMPLOYEE/FILE). Always an array, empty when not applicable.

Example: []
latitudedoublenullable

Latitude — only for type: LOCATION.

Example: 41.311081
longitudedoublenullable

Longitude — only for type: LOCATION.

Example: 69.240562
files object[]

Attached files — only for type: FILE. Always an array, empty when not applicable.

  • 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
  • ]
  • oldValuestringdeprecated

    Deprecated, no longer populated by the API — kept only because it shipped in a previous release.

    Example: Regular Client
    ContractFieldValueDTO
    {
    "fieldId": 1,
    "value": "VIP Client",
    "name": "Client Type",
    "type": "SELECT",
    "required": true,
    "sortOrder": 1,
    "number": 1500.5,
    "currencyId": 1,
    "values": [],
    "latitude": 41.311081,
    "longitude": 69.240562,
    "files": []
    }