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

Tạo mẫu chứng từ

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 tạo mới mẫu chứng từ với dữ liệu đầu vào là file có định dạng .docx.

  • Request URL: /api/document-templates/create
  • HTTP method: POST
  • HTTP content-type: multipart/form-data
  • Authorize: Bearer token
  • Parameter:

| Key | Type | Description | |------------------ --|---------------|-------------------------------------| | file | file | [Bắt buộc] File mẫu chứng từ| | name | string | [Bắt buộc] Tên mẫu chứng từ | | description | string | Mô tả mẫu chứng từ |

Mẫu response body

{
"data": {
"id": 1149,
"name": "FILE MẪU IMPORT LÔ",
"createdDate": "2022-11-22T14:18:25.3990136",
"fileName": "HĐ Dịch vụ Cấp nước Test Dochub.docx",
"downloadUrl": "{HOST}/Api/Download?token=...",
"pdfDownloadUrl": "{HOST}/Api/Download?token=...",
"xlsxDownloadUrl": "{HOST}/Api/Download?token=...",
"isShareable": true,
"isDeletelable": true,
"isUpdateable": true
},
"success": true,
"code": 0,
"messages": []
}