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

Hàm đăng nhập bằng mã xử lý

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


Mục đích

Thực hiện đăng nhập hệ thống thông qua mã xử lý được gửi thông qua email hoặc sms của người dùng. Người dùng sau khi đăng nhập bằng mã này có thể thực hiện xử lý chứng từ.

  • Request URL: /auth/process-code-login
  • HTTP method: POST
  • HTTP content-type: application/json
  • Parameter:
KeyTypeDescription
processCodestring[Bắt buộc] Mã xử lý

Mẫu request

{
"processCode": "220023"
}

Mẫu response body

{
"success": true,
"data": {
"token": "eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9……",
"document": {
"id": "14b197ff-09ec-452b-8975-590d2330f1a9",
"createdDate": "2022-11-28T14:20:42.0606135",
"lastModifiedDate": "2022-11-28T14:20:57.5850304",
"no": "CKDS.20221128.73J3",
"subject": "Chứng từ CKDS.20221128.73J3",
"hasVerified": false,
"fileType": 0,
"status": {
"value": 3,
"description": "Processing document"
},
"department": {
"id": 28,
"name": "VNPT eContract",
"code": "DHB",
"users": []
},
"createdByUserId": 2341,
"processRecipientCount": 1,
"waitingProcess": {
"id": "c4c08c13-1226-4c48-4e58-08dad11115ac",
"createdDate": "2022-11-28T14:20:55.6559845",
"comId": 164,
"isOrder": true,
"orderNo": 1,
"pageSign": 1,
"position": "13,688,193,778",
"displayType": {
"value": 0,
"description": "0"
},
"accessPermission": {
"value": 2,
"description": "Sign draw"
},
"status": {
"value": 1,
"description": "Waiting"
},
"processedByUserId": 2341,
"processInOrder": true,
"isWaitToSignDraw": true,
"isWaitToSignDigital": false,
"isWaitToApprove": false,
"isCancelable": true,
"isEditable": false,
"isShareable": false,
"isAccessable": false,
"isExpired": false,
"canDownload": false,
"type": {
"id": 46,
"code": "CKDS",
"name": "Chiết khấu doanh số",
"description": "Chứng từ chiết khấu doanh số",
"documentCount": 1
},
"attachments": [],
"relatedDocuments": [],
"messages": [],
"file": {
"name": "TRINH TEST.pdf",
"size": 260936
},
"downloadUrl": "{HOST}/Api/Download?token=..."
}
}
}