Nhảy tới nội dung
Phiên bản: 2.2.0

Lấy thông tin người dùng

Ngày cập nhật: 30 tháng 4, 2023
Người cập nhật: VNPT eContract's team


Mục đích

Hàm thực hiện lấy thông tin của người dùng theo id của người dùng

  • Request URL: /api/users/{id}
  • HTTP method: GET
  • Authorize: Bearer token
  • Parameter:
KeyTypeDescription
idint[Bắt buộc] Id người dùng

Mẫu request

Thông tin id của người dùng: id = 2328
Request: /api/users/2328

Mẫu response body

{
"data": {
"id": 2328,
"createdDate": "2022-09-08T08:48:53.8316168",
"comId": 164,
"code": "phannhan",
"name": "Phan Nhan",
"phone": "0982323159",
"email": "phannhan@email.com",
"isValid": false,
"signConfirmationEnabled": true,
"isAccountLocked": false,
"accountId": "e06d8b9c-6f49-4751-87d0-6367c524a6ce",
"signMethod": {
"value": 3,
"description": "Sign token"
},
"status": {
"value": 1,
"description": "Enabled"
},
"receiveOtpMethod": {
"value": 1,
"description": "Email"
},
"receiveNotificationMethod": {
"value": 0,
"description": "Email"
},
"personalCertificateId": 1940,
"smartCaId": 2010
},
"success": true,
"code": 0,
"messages": []
}