header.seller.taxId.isVatIncluded. Never send tax amounts.documentNo empty.data.pdf), with status: "Completed".VALIDATION_FAILED — a field is missing or wrong; error.fields lists exactly which.SELLER_MISMATCH — seller.taxId is not your own company's tax id (you can only invoice as yourself).data.warnings; the invoice is still created, only the email/SMS is skipped.GET /v1/locations/search before calling this.curl --location '/v1/documents/tax-invoice' \
--header 'Idempotency-Key;' \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data-raw '{
"header": {
"buyer": {
"branchNo": "00000",
"buildingNumber": "123",
"countryCode": "TH",
"delivery": {
"email": "[email protected]"
},
"districtCode": "1005",
"name": "บริษัท ตัวอย่าง จำกัด",
"postCode": "10110",
"provinceCode": "10",
"street": "สุขุมวิท",
"subDistrictCode": "100502",
"taxId": "0105556000000",
"taxIdSchemeId": "TXID"
},
"documentDetails": {
"isVatIncluded": false,
"issueDate": "2026-06-17T10:30:00+07:00",
"templateNo": "INV-7QX2K9"
}
},
"items": [
{
"lineId": 1,
"productName": "บริการที่ปรึกษา",
"quantity": 2,
"unit": "ครั้ง",
"unitPrice": 1000,
"vatTypeCode": "VAT"
}
],
"remark": "ชำระภายใน 30 วัน"
}'{
"data": {
"documentNo": "INV-2026-0001",
"documentType": "388",
"pdf": "string",
"status": "Completed",
"warnings": [
{
"code": "string",
"message": "string"
}
]
},
"error": null,
"success": true
}