PaymentDTO
Payment information object.
Payment ID
10001Payment number
PAY-2023-001Payment amount
5000Payment source enum — which entity the payment belongs to.
CONTRACT— Contract paymentSURCHARGE— Fine / penalty paymentCLIENT— Client balance top-upBOOKING— Booking (reservation) paymentCASHBACK— Cashback payment
Possible values: [CONTRACT, SURCHARGE, CLIENT, BOOKING, CASHBACK]
CONTRACTPayment method enum.
CARD— CardCASH— CashTRANSFER— Transfer (card to card)BALANCE— From client balanceBANK— Via bankPAYME— PaymeMY_UZCARD— MyUzcardUZUM— UzumPAYLOV— PaylovUYSOT_PAY— Uysot payATMOS— AtmosOTHERS— OthersCUSTOM— CustomCASHBACK— CashbackCLICK— Click
Possible values: [CARD, CASH, TRANSFER, BALANCE, BANK, PAYME, MY_UZCARD, UZUM, PAYLOV, UYSOT_PAY, ATMOS, OTHERS, CUSTOM, CASHBACK, CLICK]
CASHPayment direction enum.
INCOME— IncomeOUTCOME— Outcome
Possible values: [INCOME, OUTCOME]
INCOMEcreatedBy objectnullable
Employee who created the payment. Breaking change: this used to be the
employee's name as a plain string; the name now lives in createdByName.
Employee ID
201Employee full name
David WilsoncanceledBy objectnullable
Employee who cancelled the payment. Present only for a cancelled payment.
Employee ID
201Employee full name
David WilsonFull name of the employee who created the payment. Use createdBy.fullName instead.
Alice JohnsonCreation time (epoch seconds)
1672531200Cancellation time (epoch seconds)
1672617600Cancellation reason
Duplicate paymentPayer client ID
1001Payer name
John Doecurrency object
Currency information object.
Currency ID
1Exchange rate (1 for the basic currency)
1Last update time (epoch seconds)
1672531200Whether it's the company's basic currency
trueCurrency code
USDPayment note
Advance paymentPayment time (epoch seconds)
1672531200Whether it is a mortgage payment
falseCustom payment type name (when type is CUSTOM)
PayPalContract ID (present when base is CONTRACT or SURCHARGE)
1409Booking ID (present when base is BOOKING)
512fields object[]nullable
The payment's custom field values — see GET /v1/open-api/payment-field for the
field definitions. null when the caller did not load them.
Field ID — matches PaymentFieldDTO.id
42The resolved value as text (option name, date, URL, …)
NaqdField name
To'lov kanaliCustom field type, shared by every custom-field family (contract, flat, payment and
lead task). Serialized by name. Identical value set to ContractFieldType, which
remains as the contract-family alias.
Possible values: [TEXT, EXTENDED_TEXT, DATE, SELECT, MULTI_SELECT, RADIO, TOGGLE_SWITCH, URL, TAG, LOCATION, COUNTER, ADDRESS, EMPLOYEE, FILE, NUMBER]
SELECTWhether the field is mandatory
falseDisplay position
1Numeric value — NUMBER fields only
1500000Currency of number — NUMBER fields only
24Ordered values of a multi-value field (MULTI_SELECT, EMPLOYEE, FILE). Empty for single-value types.
["Naqd","Karta"]Latitude — LOCATION fields only
41.311081Longitude — LOCATION fields only
69.240562files object[]
Attached files — FILE fields only. Empty for every other type.
Presigned URL to the full-size file
https://minio.uysot.uz/uysot/files/201/avatar.png?X-Amz-Expires=3600Presigned URL to the thumbnail rendition
https://minio.uysot.uz/uysot/files/201/avatar_thumb.png?X-Amz-Expires=3600Presigned URL to the smallest rendition
https://minio.uysot.uz/uysot/files/201/avatar_small.png?X-Amz-Expires=3600{
"id": 10001,
"number": "PAY-2023-001",
"amount": 5000,
"base": "CONTRACT",
"type": "CASH",
"debt": "INCOME",
"createdBy": {
"id": 201,
"fullName": "David Wilson"
},
"canceledBy": {
"id": 201,
"fullName": "David Wilson"
},
"createdTimestamp": 1672531200,
"canceledTimestamp": 1672617600,
"cancelNote": "Duplicate payment",
"payerId": 1001,
"payer": "John Doe",
"currency": {
"id": 1,
"value": 1,
"updateTimestamp": 1672531200,
"basic": true,
"ccy": "USD"
},
"note": "Advance payment",
"timestamp": 1672531200,
"mortgage": false,
"customTypeName": "PayPal",
"contractId": 1409,
"bookingId": 512,
"fields": [
{
"fieldId": 42,
"value": "Naqd",
"name": "To'lov kanali",
"type": "SELECT",
"required": false,
"sortOrder": 1,
"number": 1500000,
"currencyId": 24,
"values": [
"Naqd",
"Karta"
],
"latitude": 41.311081,
"longitude": 69.240562,
"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"
}
]
}
]
}