Gofive OpenAPI
empeoVenioeTaxGo
empeoVenioeTaxGo
  1. Document Management
  • Auth Request
    • Auth Token
      POST
  • Document Management
    • Validate Documents
      • Validate Documents Json
    • Delivery Service
      • Delivery Service Resend
    • Create Document JSON
      POST
    • List Sellers
      GET
    • Create Tax Invoice
      POST
    • Update Tax Invoice
      PUT
    • Create Debit Note
      POST
    • Create Credit Note
      POST
    • Create Invoice
      POST
    • Create Receipt
      POST
    • Create Invoice and Tax Invoice
      POST
    • Create Receipt and Tax Invoice
      POST
    • Create Delivery Order and Tax Invoice
      POST
    • Create Abbreviated Tax Invoice
      POST
    • Create Receipt Abbreviated Tax Invoice
      POST
    • Document Raw Data
      POST
    • Download Document
      POST
    • Download Document By Id
      GET
    • Get Batch By Id
      GET
    • List Provinces
      GET
    • List Districts
      GET
    • List Sub Districts
      GET
    • List Posts
      GET
  1. Document Management

Download Document

POST
https://api.gofive.co.th/etaxgo/Documents/Download
Documents

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Header Params
Ocp-Apim-Subscription-Key
string 
required
รหัส subscription key ของลูกค้า
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
Body Params application/json
startDate
string <date-time>
required
วันเริ่มต้น
endDate
string <date-time>
required
วันเริ่มสิ้นสุด
documentTypes
array[string]
required
ประเภทเอกสาร จะต้องระบุเป็นประเภท pdf หรือ xml เท่านั้น
Example
{
  "startDate": "2019-08-24T14:15:22Z",
  "endDate": "2019-08-24T14:15:22Z",
  "documentTypes": [
    "string"
  ]
}

Request samples

Shell
JavaScript
Java
Swift
Go
PHP
Python
HTTP
C
C#
Objective-C
Ruby
OCaml
Dart
R
Request Request Example
Shell
JavaScript
Java
Swift
curl --location --request POST 'https://api.gofive.co.th/etaxgo/Documents/Download' \
--header 'Ocp-Apim-Subscription-Key;' \
--header 'Authorization;' \
--header 'Content-Type: application/json' \
--data-raw '{
    "startDate": "2019-08-24T14:15:22Z",
    "endDate": "2019-08-24T14:15:22Z",
    "documentTypes": [
        "string"
    ]
}'

Responses

🟢200OK
application/json
Body
fileStream
string 
required
ไฟล์ Byte []
fileType
string 
required
ประเภทไฟล์
status
string 
required
สถานะ 
errorMessage
string 
required
ข้อความผิดพลาด
httpStatusCode
integer 
required
รหัส Http
statusCode
integer 
required
รหัสสถานะ
Example
{
  "fileStream": "afewriewo15e6fdsfder6648xvaa",
  "fileType": "PDF",
  "status": "Success",
  "errorMessage": "Not found",
  "statusCode": 1000,
  "httpStatusCode": 200
}
🟠401Unauthorized
🟠403Forbidden
🟠401User authentication required V2.
Previous
Document Raw Data
Next
Download Document By Id
Built with