{
"data": {
"value": {
"attachments": [],
"customer": {
"customerId": 1,
"companyId": 1,
"customerCode": "string",
"customerName": "string",
"type": 13002,
"customerType": 11300,
"isActive": true,
"createdByUserId": "string",
"dateCreated": "2022-11-28T13:41:11+0700",
"modifiedByUserId": "string",
"dateModified": "2023-01-16T15:12:52+0700",
"customerGroupId": 1,
"sourceOfLead": 110084,
"classificationId": 1,
"hasOwner": true,
"customerOwnersStr": [
"string"
],
"pictureUrl": "string",
"addresses": [
{
"addressId": 1,
"customerId": 1,
"isActive": true,
"createdByUserId": "string",
"dateCreated": "2023-01-16T15:12:52+0700",
"location": "string",
"locationName": "string"
}
],
"customerInterests": [
{
"customerId": 1,
"topicId": 1,
"isActive": true
}
],
"customerClassification": {
"customerClassificationId": 1,
"customerClassificationName": "string",
"companyId": 1,
"isActive": true,
"createdByUserId": "string",
"dateCreated": "2019-11-28T15:51:04+0700",
"modifiedByUserId": "string",
"dateModified": "2020-04-11T19:47:35+0700"
},
"customerGroup": {
"customerGroupId": 1,
"companyId": 1,
"customerGroupName": "string",
"isActive": true,
"createdByUserId": "string",
"dateCreated": "2022-11-22T10:19:01+0700",
"modifiedByUserId": "string",
"dateModified": "2022-11-22T10:19:01+0700"
}
},
"userInfo": {
"userId": "string",
"username": "string",
"companyId": 1,
"companyName": "string",
"teamId": 1,
"teamName": "string",
"staffCode": "string",
"title": "string",
"firstname": "string",
"lastname": "string",
"fullname": "string",
"position": "string",
"email": "string",
"phoneNumber": "string",
"orgString": "string",
"orgLevel": 1,
"latitude": 0,
"longitude": 0,
"location": "string",
"locationName": "string",
"isActive": true,
"createdByUserId": "string",
"hasPicture": true,
"dateCreated": "2018-11-05T10:13:59+0700",
"dateModified": "2023-01-23T10:54:28+0700",
"role": "string",
"roleId": "string",
"level": 0,
"siteId": 1,
"isAgreementPDPA": true,
"dateAgreementPDPA": "2020-08-26T07:13:22+0700",
"emailSubscription": 1,
"identityUserId": "string",
"uniqueName": "string",
"inAppSubscription": 1,
"userType": 1011
},
"statusName": "string",
"reason": "string",
"buyer": {
"address": "string"
},
"seller": {
"name": "string",
"companyName": "string",
"address": "string",
"taxId": "string",
"pictureLogo": "string"
},
"customerIds": [],
"currency": {
"currencyCode": "THB",
"currencyName": "Baht",
"currencySymbol": "฿",
"currencyNumber": 1,
"dateCreated": "2020-03-31T14:04:32+0700",
"isActive": true,
"currencyUnitTH": "บาท",
"currencyUnitEN": "Baht",
"currencySubUnitTH": "สตางค์",
"currencySubUnitEN": "Satang"
},
"comments": [
{
"activityLogId": 1,
"refId": 1,
"comment": "string",
"logType": 270003,
"status": 1050,
"dateCreated": "2023-01-23T15:56:52+0700",
"createdByUserId": "string"
}
],
"isExcludeVat": true,
"subTotal": 0,
"saleOrderId": 1,
"orderType": 1,
"saleOrderNo": "string",
"subject": "string",
"status": 903,
"dateOrder": "2023-01-23T00:00:00+0700",
"customerId": 1,
"isActive": true,
"remarkTemplateId": 0,
"remark": "string",
"createdByUserId": "string",
"dateCreated": "2023-01-23T15:56:52+0700",
"modifiedByUserId": "string",
"dateModified": "2023-01-23T16:27:43+0700",
"discount": 5,
"discountNote": "string",
"grandTotal": 0,
"privateNote": "string",
"currencyCode": "THB",
"shipToAddress": "string",
"shipToAddressType": 0,
"paymentTermDescription": "string",
"vatType": 170002,
"vat": 0,
"totalVat": 0,
"totalWht": 0,
"note": "string",
"saleOrderHeaderTemplateId": 1,
"isShowContact": true,
"ownerUserId": "string",
"saleOrderDetails": [
{
"name": "string",
"saleOrderDetailId": 1,
"saleOrderId": 1,
"partId": 1,
"qty": 2,
"unitId": 1,
"price": 0,
"discount": 0,
"discountPercentage": 3,
"isDiscountPercentage": true,
"vatTaxId": -1,
"vatTaxValue": 0,
"whtTaxId": -1,
"whtTaxValue": 0,
"totalPrice": 0,
"partCode": "string",
"itemName": "string",
"note": "string",
"dateCreated": "2023-01-23T15:56:52+0700",
"isShipping": true
}
],
"saleOrderStates": [
{
"saleOrderStatesId": 1,
"saleOrderId": 1,
"statusId": 905,
"createdByUserId": "string",
"dateCreated": "2023-01-23T15:56:52+0700",
"approveLevel": 0,
"seq": 0
}
]
},
"statusCode": 200
},
"statusCode": 1000,
"httpStatusCode": 200
}