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 By Id

GET
https://api.gofive.co.th/etaxgo/Documents/Download/{DocumentType}/{DoucumentId}
Documents

Request

Authorization
Provide your bearer token in the
Authorization
header when making requests to protected resources.
Example:
Authorization: Bearer ********************
Path Params
DocumentType
string 
required
ประเภทเอกสาร จะต้องระบุเป็นประเภท pdf หรือ xml เท่านั้น
DoucumentId
string 
required
รหัสเอกสาร คือ DocumentNo ตัวอย่าง 123456789AB
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

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 GET 'https://api.gofive.co.th/etaxgo/Documents/Download//' \
--header 'Ocp-Apim-Subscription-Key;' \
--header 'Authorization;'

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
Download Document
Next
Get Batch By Id
Built with