เพิ่มการตรวจสอบผู้ติดต่อ และจำกัด pageSize สำหรับ GET APIs สินค้าและข้อมูลผู้ติดต่อ
- เพิ่มเงื่อนไขการตรวจ สอบ
contactTypeสำหรับการสร้างและแก้ไขเอกสาร - จำกัดค่า
pageSizeสูงสุดไม่เกิน 200 สำหรับ GET APIs สินค้าและข้อมูลผู้ติดต่อ
ผู้ใช้งานสามารถทดลองบน Sandbox Environment เพิ่มเติมได้ตั้งแต่วันที่ 10/06/2026
เริ่มมีผลบน Production Environment วันที่ 24/06/2026
1. เพิ่มเงื่อนไขการตรวจสอบข้อมูลผู้ติดต่อ (Contact) สำหรับการสร้างและแก้ไขเอกสาร
FlowAccount OpenAPI ได้เพิ่มเงื่อนไขการตรวจสอบข้อมูลผู้ติดต่อ (Contact) ให้ตรงกับประเภทเอกสาร เพื ่อป้องกันการสร้างเอกสารด้วยข้อมูลผู้ติดต่อที่ประเภทไม่ถูกต้อง หาก contactType ไม่ตรงกับประเภทเอกสาร ระบบจะ return error
รายละเอียด
ในกรณีที่ใช้งานข้อมูลผู้ติดต่อที่ไม่เคยมีอยู่ในระบบ ข้อมูลผู้ติดต่อนั้น จะถูกสร้างเป็นข้อมูลผู้ติดต่อใหม่ โดยประเภทของข้อมูลผู้ติดต่อจะขึ้นอยู่กับประเภทของเอกสาร
- ถ้าถูกสร้างผ่านเอกสารขาย ประเภทของข้อมูลผู้ติดต่อจะเป็นประเภท ลูกค้า
- ถ้าถูกสร้างผ่านเอกสารซื้อ ประเภทของข้อมูลผู้ติดต่อจะเป็นประเภท ผู้จำหน่าย
เมื่อใช้งานข้อมูลผู้ติดต่อ (Contact) ที่มีอยู่ในระบบ จะถูกตรวจสอบตามเงื่อนไขดังนี้
| ประเภทเอกสาร | contactType ที่อนุญาต |
|---|---|
| เอกสารขาย (Tax Invoice, Billing Note, Quotation, Cash Invoice, Receipt) | 3 = ลูกค้า หรือ7 = ผู้จำหน่ายและลูกค้า |
| เอกสารซื้อ (Receiving Inventory, Purchase Order, Expense) | 5 = ผู้จำหน่าย หรือ7 = ผู้จำหน่ายและลูกค้า |
Error Response
เมื่อระบุ contactId ที่มี contactType ไม่ตรงกับประเภทเอกสาร ระบบจะ return error response ดังนี้
{
"data": null,
"status": false,
"message": "Contact type is not compatible with this document type",
"code": 70000
}
APIs ที่ได้รับผลกระทบ
APIs สร้างเอกสารใบเสนอราคา (Quotations)
- POST /quotations
- POST /quotations/inline
- PUT /quotations/{id}
APIs สร้างเอกสารใบวางบิล (Billing Notes)
- POST /billing-notes
- POST /billing-notes/inline
- POST /upgrade/billing-notes
- POST /upgrade/billing-notes/inline
- PUT /billing-notes/{id}
APIs สร้างเอกสารใบกำกับภาษี (Tax Invoices)
- POST /tax-invoices
- POST /tax-invoices/with-payment
- POST /tax-invoices/inline
- POST /tax-invoices/inline/with-payment
- POST /upgrade/tax-invoices
- POST /upgrade/tax-invoices/with-payment
- POST /upgrade/tax-invoices/inline
- POST /upgrade/tax-invoices/inline/with-payment
- PUT /tax-invoices/{id}
APIs สร้างเอกสารใบเสร็จรับเงิน (Receipts)
- POST /upgrade/receipts
- POST /upgrade/receipts/with-payment
- POST /upgrade/receipts/inline
- POST /upgrade/receipts/inline/with-payment
- PUT /receipts/{id}
APIs สร้างเอกสารใบกำกับภาษี/ใบเสร็จรับเงิน (Cash Invoices)
- POST /cash-invoices
- POST /cash-invoices/with-payment
- POST /cash-invoices/inline
- POST /cash-invoices/inline/with-payment
- POST /upgrade/cash-invoices
- POST /upgrade/cash-invoices/with-payment
- POST /upgrade/cash-invoices/inline
- POST /upgrade/cash-invoices/inline/with-payment
- PUT /cash-invoices/{id}