Skip to main content

รหัสข้อผิดพลาด

รหัสข้อผิดพลาด Validation (400 Bad Request)

Error CodeError Messageสาเหตุ
207450documentSerial is required.documentSerial เป็น null หรือ ค่าว่าง
207450contactName is required.contactName เป็น null หรือ ค่าว่าง
207450contactBranch is required.contactBranch เป็น null หรือ ค่าว่าง
207450contactTaxId is required when taxForm is PP30.taxForm = 1 (P.P.30) แต่ contactTaxId เป็น null หรือค่าว่าง
207450contactTaxId must be exactly 13 digits when taxForm is PP30.taxForm = 1 (P.P.30) แต่ contactTaxId ไม่ใช่ตัวเลข 13 หลัก
207450taxForm must be 1 (PP30) or 3 (PP36).taxForm ไม่ใช่ค่า 1 หรือ 3
207450vatableAmount must be greater than 0 when taxForm is PP36.taxForm = 3 (P.P.36) แต่ vatableAmount ไม่มีค่า หรือ ≤ 0
207450vatAmount must be greater than 0 when taxForm is PP36.taxForm = 3 (P.P.36) แต่ vatAmount ไม่มีค่า หรือ ≤ 0

รหัสข้อผิดพลาด File Validation (400 Bad Request)

Error CodeError Messageสาเหตุ
207450file.fileName must not be empty.file.fileName เป็นค่าว่าง
207450file.base64Data must be valid Base64 format.file.base64Data ไม่ใช่ Base64 ที่ถูกต้อง
207450Unsupported file extension.นามสกุลไฟล์ไม่รองรับ
207450File type mismatch.ประเภทของไฟล์ไม่ตรงกับนามสกุลที่ระบุ
207450File exceeds size limit.ขนาดไฟล์เกิน 10 MB

รหัสข้อผิดพลาด เอกสารต้นทาง (400/404)

Error CodeError Messageสาเหตุ
190000Document not foundเอกสารไม่อยู่ในระบบ, ถูกลบ หรืออยู่คนละบริษัท (404)
70020Document is voidedเอกสารถูกยกเลิก (Void) สำหรับ POST และ PUT
70005Document is locked in batch tax filingเอกสารอยู่ในแบบยื่นภาษี (Batch Tax Filing) ไม่สามารถแก้ไขได้ (สำหรับ POST และ PUT)
70000Supplier invoice already attachedsupplierInvoiceStatus ไม่ใช่ Awaiting (1) หรือ NoRefund (7) มีใบกำกับภาษีซื้อแนบอยู่แล้ว (สำหรับ POST)
190000Supplier invoice not foundไม่มีใบกำกับภาษีซื้อแนบอยู่ (สำหรับ PUT และ DELETE)
70005Cannot delete supplier invoice in current statussupplierInvoiceStatus เป็น CreatedBatchFiling (5), NoRefund (7), WaitingToPayPP36 (11) หรือ AwaitingTaxReceipt (13) ไม่สามารถลบได้ (สำหรับ DELETE)

รหัสข้อผิดพลาด Duplicate Detection (409 Conflict)

Error CodeError Messageสาเหตุ
95013Duplicate supplier invoice detectedพบใบกำกับภาษีซื้อซ้ำ (ตรวจจาก documentSerial + documentDate + contactName + companyId)

รหัสข้อผิดพลาด Internal Server Error (500)

Error CodeError Messageสาเหตุ
70000Internal server errorอัปโหลดไฟล์หรือบันทึกข้อมูลล้มเหลว (สำหรับ POST)

รหัสข้อผิดพลาด PUT File Replacement Failed (200 with status: false)

Error CodeError Messageสาเหตุ
70000Supplier invoice updated but file replacement failed.ใบกำกับภาษีซื้อถูกแก้ไขสำเร็จ แต่การอัปโหลดไฟล์ใหม่ล้มเหลว สามารถลองส่ง PUT อีกครั้งพร้อมไฟล์เพื่ออัปโหลดใหม่ได้