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": "buyer@example.com"
},
"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 วัน"
}'