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

Update Tax Invoice

PUT
https://api.gofive.co.th/etaxgo/Documents/Tax-Invoice
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
Example:
รหัส subscription key ของลูกค้า
Content-Type
string 
optional
Example:
application/json
Body Params application/json
SellerKey
string 
required
ข้อมูลที่ลูกค้าต้องกรอก รับเป็น TaxId ของ company 13 หลัก
BranchCode
string 
required
โค้ดย่อย 5 ตัวหลังของ company (SellerKey)
DocumentNo
string 
required
เลขเอกสาร
CreatedDate
string 
required
วันที่สร้างเอกสาร
IssueDateTime
string 
required
วันที่ออกเอกสาร
ReferenceDocument
object 
required
เลขเอกสารอ้างอิง
ReferenceNo
string 
required
เอกอ้างอิงเอกสาร
ReferenceCode
string 
required
โค้ดอ้างอิงประเภทเอกสาร
ReasonCode
string 
required
code สาเหตุของการแก้ไข
Reason
string 
required
กรณีที่ใส่โค้ดเป็น อื่นๆ ให้กรอกข้อมูลเพิ่มเติม
TemplateToken
string 
required
เทมเพลตโทเค็น
BuyerDetail
object 
required
ข้อมูลผู้ซื้อ
CustomerType
string 
required
ประเภทลูกค้า ให้ใส่ข้อมูลเป็นโค้ด บุคคลธรรมดา(NIDN) นิติบุคคล(TXID) ชาวต่างชาติ(CCPT)
TaxId
string 
required
เลขประจำตัวผู้เสียภาษี
CustomerName
string 
required
ชื่อลูกค้า
Address
string 
required
ที่อยู่
SubDistrict
string 
required
แขวง/ตำบล
District
string 
required
เขต/อำเภอ
Province
string 
required
จังหวัด
PostCode
string 
required
รหัสไปรษณีย์
Mobile
string 
required
เบอร์โทร
Email
string 
required
อีเมล
PdfFile
string 
optional
เพิ่ม pdf สำหรับ sign CA
Example
{
  "SellerKey": "9876543210987",
  "BranchCode": "00000",
  "DocumentNo": "XYZ987654321",
  "CreatedDate": "2025-01-01T12:00:00",
  "IssueDateTime": "2025-01-01T14:00:00",
  "ReferenceDocument": {
    "ReferenceNo": "REF123456789",
    "ReferenceCode": "ABCD1234"
  },
  "ReasonCode": "DBNG01",
  "Reason": "สินค้าชำรุดเสียหาย",
  "TemplateToken": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
  "BuyerDetail": {
    "CustomerType": "NIDN",
    "TaxID": "45678912345",
    "CustomerName": "บริษัท เอ็กซแซมเปิ้ล จำกัด",
    "Address": "123/321",
    "SubDistrict": "พระบรมมหาราชวัง",
    "District": "พระนคร",
    "Province": "กรุงเทพมหานคร",
    "PostCode": "10010"
  },
  "Mobile": "0812345679",
  "Email": "[email protected]",
  "PdfFile": "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 PUT 'https://api.gofive.co.th/etaxgo/Documents/Tax-Invoice' \
--header 'Ocp-Apim-Subscription-Key: รหัส subscription key ของลูกค้า' \
--header 'Content-Type: application/json' \
--data-raw '{
    "SellerKey": "9876543210987",
    "BranchCode": "00000",
    "DocumentNo": "XYZ987654321",
    "CreatedDate": "2025-01-01T12:00:00",
    "IssueDateTime": "2025-01-01T14:00:00",
    "ReferenceDocument": {
        "ReferenceNo": "REF123456789",
        "ReferenceCode": "ABCD1234"
    },
    "ReasonCode": "DBNG01",
    "Reason": "สินค้าชำรุดเสียหาย",
    "TemplateToken": "a1b2c3d4-e5f6-7890-abcd-ef1234567890",
    "BuyerDetail": {
        "CustomerType": "NIDN",
        "TaxID": "45678912345",
        "CustomerName": "บริษัท เอ็กซแซมเปิ้ล จำกัด",
        "Address": "123/321",
        "SubDistrict": "พระบรมมหาราชวัง",
        "District": "พระนคร",
        "Province": "กรุงเทพมหานคร",
        "PostCode": "10010"
    },
    "Mobile": "0812345679",
    "Email": "[email protected]",
    "PdfFile": "string"
}'

Responses

🟢200Success
application/json
Body
status
object 
required
isSuccess
boolean 
required
บอกสถานะ
data
object 
required
validate
boolean 
required
ผลตรวจสอบข้อมูล
validateEmail
boolean 
required
ผลตรวจสอบอีเมล
validateSms
boolean 
required
ผลตรวจสอบเบอร์สำหรับส่ง SMS
warningMessage
string 
required
ข้อความ Error: แจ้งผลการตรวจสอบข้อมูลล้มเหลง (ข้อมูลไม่ตรงหรือผิด) โดยจะบอกข้อผิดพลาดทั้งหมดในข้อมูลที่ส่งมา
pdf
string 
required
ไฟล์ PDF ที่ถูก Encode มาเป็น Base64
isSuccess
boolean 
required
สร้างเอกสารสำเร็จหรือไม่
Example
{
  "status": {
    "isSuccess": true
  },
  "data": {
    "validate": true,
    "validateEmail": true,
    "validateSms": true,
    "warningMessage": "",
    "pdf": "",
    "isSuccess": true
  }
}
🟠401Unauthorized
🟠401User authentication required V2.
Previous
Create Tax Invoice
Next
Create Debit Note
Built with