Picture

DownloadByDate

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 Body

Name
Type
Required
Description
startDate
DateTime
Required
วันเริ่มต้น
endDate
DateTime
Required
วันเริ่มสิ้นสุด
documentTypes
String[]
Required
ประเภทเอกสาร

Example Request

curl --location --request POST 'https://api.veniocrm.com/dev/download' \
--header 'Ocp-Apim-Subscription-Key;' \
--header 'Authorization: Bearer' \
--header 'Content-Type: application/json' \
--data-raw '{
    "startDate": "DateTime",
    "endDate": "DateTime",
    "documentTypes": [
        "PDF",
        "XML"
    ]
}'

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.