{
"status": {
"code": "1000",
"description": "Success"
},
"data": {
"salesOrderSubject": "ใบสั่งขาย - บริษัท ABC จำกัด",
"customerCode": "CUST-001",
"customerId": 1001,
"salesOrderNo": "SOZ-260400032",
"salesOrderStatus": 1,
"salesOrderDate": "2026-04-21T00:00:00",
"recipientName": "คุณสมชาย ใจดี",
"recipientAddress": "123/45 ถ.สุขุมวิท แขวงคลองเตย เขตคลองเตย กรุงเทพฯ 10110",
"headerTemplateId": 1,
"warehouseCode": "WHGENERAL",
"salesorderDetails": [
{
"productCode": "PRD-001",
"productName": "สินค้าตัวอย่าง A",
"price": 1000.00,
"qty": 2.00,
"productUnitName": "ชิ้น",
"productDescription": "รายละเอียดสินค้าตัวอย่าง A",
"discountValue": 50.00,
"discountType": false,
"vatTaxValue": 7.00,
"whtTaxValue": 3.00,
"totalPrice": 1950.00,
"unitId": 10,
"isShipping": true,
"warehouseCode": "WHGENERAL"
},
{
"productCode": "PRD-002",
"productName": "สินค้าตัวอย่าง B",
"price": 500.00,
"qty": 5.00,
"productUnitName": "กล่อง",
"productDescription": "รายละเอียดสินค้าตัวอย่าง B",
"discountValue": 10.00,
"discountType": true,
"vatTaxValue": 7.00,
"whtTaxValue": null,
"totalPrice": 2325.00,
"unitId": 12,
"isShipping": false,
"warehouseCode": "WHGENERAL"
}
],
"discountName": "ส่วนลดพิเศษ",
"discountValue": 100.00,
"discountType": false,
"paymentTerm": "Net 30",
"remark": "กรุณาจัดส่งในวันทำการถัดไป",
"staffCode": "STAFF-001",
"salesOrderNote": "ลูกค้า VIP — ดูแลเป็นพิเศษ",
"vatCalculation": true,
"subTotal": 4275.00,
"subTotalWithDiscount": 4175.00,
"grandTotal": 4467.25,
"payment": {
"valueType": 1,
"schedulePayments": [
{
"installmentNumber": 1,
"status": 1,
"installmentAmount": 2233.63,
"installmentPercent": 50.00
},
{
"installmentNumber": 2,
"status": 0,
"installmentAmount": 2233.62,
"installmentPercent": 50.00
}
]
},
"privateNote": "โน้ตสำหรับทีมภายใน ไม่แสดงลูกค้า",
"invoiceInfo": {
"id": 5001,
"integrationPlatform": 400020,
"integrationBuyerId": "shopee_buyer_98765",
"type": 13002,
"customerName": "บริษัท ABC จำกัด",
"taxId": "0105560123456",
"isEtax": true,
"isHeadOffice": true,
"branch": "สำนักงานใหญ่",
"branchCode": "00000",
"country": "TH",
"province": "กรุงเทพมหานคร",
"district": "คลองเตย",
"subDistrict": "คลองเตย",
"zipCode": "10110",
"phone": "02-123-4567",
"address": "123/45 ถ.สุขุมวิท แขวงคลองเตย เขตคลองเตย กรุงเทพฯ",
"email": "[email protected]"
},
"shippingDocumentUrl": "https://storage.veniocrm.com/shipping/SOZ-260400032.pdf",
"trackingNo": "TH123456789",
"discounts": [
{
"discountName": "ส่วนลดสมาชิก",
"discountValue": 50.00,
"discountType": false
},
{
"discountName": "โปรโมชั่นพิเศษ Q2",
"discountValue": 5.00,
"discountType": true
}
],
"referenceNo": "REF-2026-00123",
"contactId": 301,
"customerAddressId": 7002,
"currencyCode": "THB",
"salesOrderId": 20260400032,
"totalVat": 292.25,
"integrationPlatform": 400020,
"recipient": {
"name": "คุณสมชาย ใจดี",
"email": "[email protected]",
"phone": "081-234-5678",
"country": "TH",
"province": "กรุงเทพมหานคร",
"district": "คลองเตย",
"subDistrict": "คลองเตย",
"zipCode": "10110",
"address": "123/45 ถ.สุขุมวิท แขวงคลองเตย เขตคลองเตย กรุงเทพฯ 10110"
},
"isIntegrationOrderPaid": true,
"salesOrderCustomerAddress": {
"addressId": 7002,
"locationName": "ที่อยู่สำนักงานใหญ่",
"location": "123/45 ถ.สุขุมวิท แขวงคลองเตย เขตคลองเตย กรุงเทพฯ 10110",
"locationEN": "123/45 Sukhumvit Rd., Khlong Toei, Khlong Toei, Bangkok 10110",
"fullAddress": "123/45 ถ.สุขุมวิท แขวงคลองเตย เขตคลองเตย กรุงเทพมหานคร 10110",
"fullAddressEN": "123/45 Sukhumvit Rd., Khlong Toei, Khlong Toei, Bangkok 10110",
"subdistrict": "คลองเตย",
"subdistrictEN": "Khlong Toei",
"district": "คลองเตย",
"districtEN": "Khlong Toei",
"province": "กรุงเทพมหานคร",
"provinceEN": "Bangkok",
"zipCode": "10110",
"phone": "02-123-4567"
}
}
}