Chuyển tới nội dung chính

Lịch sử giao dịch tiền

API lấy danh sách lịch sử giao dịch tiền (nạp/rút/phí) của danh mục đầu tư.

HTTP request

  • URL: /api/personalize/v1/partner/portfolio/cash-histories
  • Method: POST
  • Content Type: application/json
  • Response Type: application/json

Tham số header

HeaderMô tảKiểu dữ liệuBắt buộc
X-Api-KeyKhóa duy nhất.string

Tham Số Truy Vấn (Query Parameters)

Tên Tham SốKiểu Dữ LiệuBắt buộcMô Tả
externalUserIdstringID người dùng duy nhất từ hệ thống của đối tác.
recvWindowstringkhôngThời gian chấp nhận (ms), default: 5000
timestampstringUnix timestamp (milliseconds).
signaturestringHMAC-SHA256 signature.

Yêu Cầu (Request)

Request Mẫu

{
"ticker": null,
"transactionTypes": null,
"fromDate": "28/01/2023",
"toDate": "28/01/2026",
"page": 0,
"size": 15,
"portfolioId": 863
}

Chi Tiết Tham Số Request Body

Tên Thuộc TínhKiểu Dữ LiệuMô Tả
tickerstringMã cổ phiếu liên quan cần lọc (null = tất cả).
transactionTypesarrayDanh sách loại giao dịch cần lọc (null = tất cả).
fromDatestringNgày bắt đầu (dd/MM/yyyy).
toDatestringNgày kết thúc (dd/MM/yyyy).
pagenumberSố trang (bắt đầu từ 0).
sizenumberSố lượng bản ghi mỗi trang.
portfolioIdnumberID danh mục đầu tư.

Phản Hồi (Response)

Response Mẫu


{
"status": 200,
"message": "Success",
"total": 53,
"data": [
{
"transactionId": 1726846,
"portfolioId": 862,
"transactionTypeName": "Nạp tiền",
"transactionType": "DEPOSIT",
"amount": 10000000,
"createdDate": "2026-01-28T04:35:40.650Z",
"date": "2026-01-27T17:00:00.000Z",
"description": "Nạp tiền",
},
{
"transactionId": 1726682,
"portfolioId": 862,
"transactionTypeName": "Nạp tiền",
"transactionType": "DEPOSIT",
"amount": 50000000,
"createdDate": "2026-01-09T04:43:32.852Z",
"date": "2026-01-09T01:00:00.000Z",
"note": "Nạp 50 triệu vào ví",
"description": "Nạp tiền",
}
]
}

Chi Tiết Tham Số Response

Tên Thuộc TínhKiểu Dữ LiệuMô Tả
statusnumberMã trạng thái HTTP.
messagestringThông báo kết quả.
totalnumberTổng số bản ghi.
dataarray (Xem chi tiết)Danh sách giao dịch tiền.

Cấu trúc thuộc tính data

Quay lại
Tên Thuộc TínhKiểu Dữ LiệuMô Tả
transactionIdnumberID giao dịch.
portfolioIdnumberID danh mục đầu tư.
tickerstringMã cổ phiếu liên quan (nếu có).
transactionTypeNamestringTên loại giao dịch.
transactionTypestringMã loại giao dịch, tra cứu thông qua api loại giao dịch.
amountnumberSố tiền giao dịch (âm = chi, dương = thu).
createdDatestringNgày tạo bản ghi (Định dạng: yyyy-MM-dd'T'HH:mm:ss.SSS'Z').
datestringNgày giao dịch (Định dạng: yyyy-MM-dd'T'HH:mm:ss.SSS'Z').
notestringDiễn giải giao dịch (text)
descriptionstringMô tả giao dịch.

CREDENTIALS

* Timestamp và Signature sẽ được tự động tạo khi gọi API

RESPONSE200

{
"status": 200,
"message": "Success",
"total": 53,
"data": [
{
"transactionId": 1726846,
"portfolioId": 862,
"transactionTypeName": "Nạp tiền",
"transactionType": "DEPOSIT",
"amount": 10000000,
"createdDate": "2026-01-28T04:35:40.650Z",
"date": "2026-01-27T17:00:00.000Z",
"description": "Nạp tiền"
},
{
"transactionId": 1726682,
"portfolioId": 862,
"transactionTypeName": "Nạp tiền",
"transactionType": "DEPOSIT",
"amount": 50000000,
"createdDate": "2026-01-09T04:43:32.852Z",
"date": "2026-01-09T01:00:00.000Z",
"note": "Nạp 50 triệu vào ví",
"description": "Nạp tiền"
}
]
}