Skip to main content

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

รหัสข้อผิดพลาด — การสร้าง (Create)

Error CodeError Messageสาเหตุ
207400Document with id {documentId} has invalid status for partial receiptสถานะ INV ไม่ถูกต้อง — ต้องเป็น รอดำเนินการ (1), รอเก็บเงิน (3) หรือ แบ่งจ่าย (11) เท่านั้น

รหัสข้อผิดพลาด — การแก้ไข (Update)

Error CodeError Messageสาเหตุ
207400Document with id {documentId} has invalid status for partial receiptสถานะ INV ไม่ถูกต้อง — ต้องเป็น รอดำเนินการ (1), รอเก็บเงิน (3), เปิดใบเสร็จแล้ว (9) หรือ แบ่งจ่าย (11) เท่านั้น
207400Only partial receipts in Awaiting status can be updatedใบเสร็จแบบแบ่งชำระที่ต้องการแก้ไขไม่ได้อยู่ในสถานะ รอดำเนินการ (Awaiting) — เฉพาะสถานะนี้เท่านั้นที่แก้ไขได้
207400isBatchDocument flag does not match existing receiptค่า isBatchDocument ที่ส่งมาไม่ตรงกับที่บันทึกไว้ในใบเสร็จเดิม — ไม่สามารถเปลี่ยนประเภทของใบเสร็จได้
207400Changing the source invoice on an existing partial receipt is not supporteddocumentId ใน items ไม่ตรงกับ INV ต้นทางเดิม — ไม่รองรับการเปลี่ยน INV ที่อ้างอิงหลังจากสร้างใบเสร็จแล้ว
207400contactId must match original invoice contactcontactId ไม่ตรงกับ contact ของ INV ต้นทาง
207400Updating inline partial receipts via OpenAPI is not yet supportedใบเสร็จแบบแบ่งชำระนี้เป็นแบบ Inline ซึ่งยังไม่รองรับการแก้ไขผ่าน OpenAPI
207400Receipt not foundไม่พบใบเสร็จแบบแบ่งชำระตาม ID ที่ระบุ หรือถูกลบไปแล้ว

รหัสข้อผิดพลาดทั่วไป

ข้อผิดพลาดเหล่านี้อาจเกิดขึ้นได้ทั้งในการสร้างและการแก้ไข

Error CodeError Messageสาเหตุ
207400Receipt document requires isBatchDocument = trueเอกสารเป็นประเภทใบเสร็จรับเงิน แต่ไม่ได้ระบุ isBatchDocument: true
207400isBatchDocument is not supported for this document typeระบุ isBatchDocument: true กับเอกสารที่ไม่ใช่ใบเสร็จรับเงิน
207400partialPaymentMethod 11 requires isBatchDocument = truepartialPaymentMethod: 11 แต่ไม่ได้ระบุ isBatchDocument: true
207400Batch document requires partialPaymentMethod = 11isBatchDocument: true แต่ไม่ได้ระบุ partialPaymentMethod: 11
207400Batch document must not contain documentReferenceระบุ documentReferences พร้อมกับ isBatchDocument: true — ต้องเป็น null หรือ []
207400Batch document must contain 1 itemisBatchDocument: true แต่จำนวนรายการใน items ไม่ใช่ 1 รายการ
207400Batch item requires a valid documentIddocumentId เป็น null, 0 หรือติดลบ
207400Batch item documentType is invaliddocumentType ไม่ใช่ 7 (ใบกำกับภาษี)
207400Batch item requires partialAmount greater than 0partialAmount เป็น null, 0 หรือติดลบ
207400Batch item partialAmount must match grandTotalpartialAmount ไม่เท่ากับ grandTotal
207400creditType must be 3 for partial receiptscreditType ไม่ใช่ 3 เมื่อ isBatchDocument: true
207400isBatchDocument must be true when items contain documentIdรายการใน items มี documentId > 0 แต่ isBatchDocument ไม่ใช่ true
207400isBatchDocument must be true when items contain partialAmountรายการใน items มี partialAmount > 0 แต่ isBatchDocument ไม่ใช่ true
207400Document with id {documentId} in items not foundไม่พบ INV ในระบบ หรือ INV ถูกลบ
207400Document with id {documentId} in items does not belong to current companyINV อยู่คนละบริษัทกับผู้เรียก API
207400Document with id {documentId} creditType must be 1 or 5creditType ของ INV ไม่ใช่ 1 (ตามจำนวนวัน) หรือ 5 (ไม่แสดงวันที่)
207400Document with id {documentId} has blocking references and cannot be used for partial receiptINV มีเอกสารอ้างอิงประเภท CN, DN หรือ BLC
207400Document with id {documentId} already has a receipt reference and cannot be used for partial receiptINV มีใบเสร็จรับเงินแบบปกติอ้างอิงอยู่ — อนุญาตเฉพาะใบเสร็จแบบแบ่งชำระเท่านั้น
207400INV must not be a deposit documentINV เป็นเอกสารมัดจำ (isDeposit = true)
207400Document with id {documentId} is a deposit document and cannot be used for partial receiptINV มี reference ประเภทมัดจำ (DepositFirst/DepositLast)
70003Total partial amount exceededpartialAmount เกินยอดคงเหลือของ INV
700220002Cannot void invoice with active partial receiptsไม่สามารถยกเลิก (Void) INV ต้นทางได้ เนื่องจากยังมีใบเสร็จแบบแบ่งชำระที่ใช้งานอยู่ — ต้องยกเลิกใบเสร็จแบบแบ่งชำระทั้งหมดก่อน