Picture

DownloadByDocumentId

Picture

Request Header

Name
Type
Required
Description
Ocp-Apim-Subscription-Key
String
Required

Authorization
String
Required
OAuth token obtained after the user has provided consent and the authorized partner calls the /authorization/Connect/Token endpoint to retrieve this token
Content-Type
String
Required
Content type of request payload
Value:
- application/json

Request Parameter

Name
Type
Required
Description
documentType
String
Required
ประเภทเอกสาร
doucumentId
String
Required
รหัสเอกสาร

Example Request

curl --location --request GET 'https://api.veniocrm.com/dev/{DocumentType}/{DoucumentId}' \
--header 'Ocp-Apim-Subscription-Key;' \
--header 'Authorization: Bearer' 

Response

Name
Type
Description
fileStream
String
ไฟล์ Byte []
fileType
String
ประเภทไฟล์
status
String
สถานะ
errorMessage
String
ข้อความผิดพลาด
httpStatusCode
Integer
รหัส Http
statusCode
Integer
รหัสสถานะ

Example Response

{
 "fileStream": "afewriewo15e6fdsfder6648xvaa",
 "fileType": "PDF",
 "status": "Success",
 "errorMessage": "Not found",
 "statusCode": 1000,
 "httpStatusCode": 200
}
© Copyright 2021 Gofive Co., Ltd. All right reserved.