Tạo lô chứng từ xử lý hàng loạt
Ngày cập nhật: 09 tháng 01, 2025
Người cập nhật: VNPT eContract's team
Mục đích
Hàm thực hiện tạo mới 1 lô chứng từ từ những chứng từ riêng lẻ, nhằm mục đích phục vụ cho các nghiệp vụ xử lý hàng loạt tại API Xử lý chứng từ hàng loạt
- Request URL:
/api/documents/create-batch-process
- HTTP method:
POST
- HTTP content-type:
application/json
- Authorize:
Bearer token
- Parameter:
Key | Type | Description |
---|---|---|
documentIds | Array[string] | [Bắt buộc] Mảng các id của chứng từ |
accessPermissionCode | string | [Bắt buộc] Quyền truy cập |
mẹo
accessPermissionCode
là các quyền truy cập xử lý chứng từ:
- V là chỉ xem
- D là ký số (được hỗ trợ)
- E là ký điện tử (được hỗ trợ)
- EKYC là ký eKYC
- DR là ký nháy (được hỗ trợ)
- A là phê duyệt (được hỗ trợ)
- F là điền dữ liệu
- C là điều phối
Mẫu request
{
"documentIds": [
"f184943f-e394-42e8-98b3-1e3d178ee62c",
"9c7a4764-2b4b-4169-8be8-d528491af0cb"
],
"accessPermissionCode": "DR"
}
Mẫu response body
{
"data": {
"id": "673c0f4f-8744-4cf7-1061-08dc9a457201",
"comId": 2211,
"processes": [
{
"id": "2d446004-f560-40ba-3d78-08dc837a4c87",
"createdDate": "2024-06-03T13:41:58.6093432",
"comId": 2211,
"isOrder": true,
"orderNo": 1,
"pageSign": 2,
"position": "414,624,520,676",
"displayType": {
"value": 0,
"description": "0"
},
"accessPermission": {
"value": 2,
"description": "Sign draw"
},
"status": {
"value": 1,
"description": "Waiting"
},
"processedByUserId": 6199,
"documentId": "f184943f-e394-42e8-98b3-1e3d178ee62c",
"fillingItems": []
},
{
"id": "c843fdf2-d2a3-405b-3ca6-08dc837a4c87",
"createdDate": "2024-06-03T10:11:56.8206304",
"comId": 2211,
"isOrder": true,
"orderNo": 1,
"pageSign": 1,
"position": "414,78,520,130",
"displayType": {
"value": 0,
"description": "0"
},
"accessPermission": {
"value": 2,
"description": "Sign draw"
},
"status": {
"value": 1,
"description": "Waiting"
},
"processedByUserId": 6199,
"documentId": "9c7a4764-2b4b-4169-8be8-d528491af0cb",
"fillingItems": []
}
],
"accessPermission": {
"value": 2,
"description": "Sign draw"
},
"status": {
"value": 1,
"description": "New"
}
},
"success": true,
"code": 0,
"messages": [
"Create batch process successfully"
]
}