Create audit order successfully
Factory not confirmed
ServiceDate and ShipDate cannot be null, and announceType should be legal
Error happened when create audit order
{- "userId": [
- "7CCBF38CD28F46C584CF530EE28F9AEF"
], - "serviceDate": [
- "19-Dec-2022"
], - "shipDate": [
- "20-Dec-2022"
], - "serviceType": [
- "ghp"
], - "referenceNumber": [
- "Client own reference number"
], - "factoryAreaSqm": 0,
- "totalNumberOfBuilding": "string",
- "announcementType": [
- "Announced"
], - "workersCount": 0,
- "auditWindowFrom": [
- "19-Dec-2022"
], - "auditWindowTo": [
- "20-Dec-2022"
], - "additionalComment": "string",
- "supplierCode": "string",
- "supplierName": "string",
- "supplierContactName": "string",
- "supplierContactPhone": "string",
- "supplierContactEmail": "string",
- "supplierContinentID": "string",
- "supplierCountryID": "string",
- "supplierCityID": "string",
- "supplierAddress": "string",
- "supplierPostalCode": "string",
- "specificField": "string",
- "supplierProductLines": [
- "[\"bigCat1_s2\", \"bigCat1_s3\"]"
], - "factoryCode": "string",
- "factoryName": "string",
- "factoryContactName": "string",
- "factoryContactPhone": "string",
- "factoryContactEmail": "string",
- "factoryContinentID": "string",
- "factoryCountryID": "string",
- "factoryProvinceID": "string",
- "factoryCityID": "string",
- "factoryAddress": "string",
- "factoryPostalCode": "string",
- "factoryProductLines": [
- "[bigCat1_s2, bigCat1_s3]"
], - "supplierAlternateContactName": "string",
- "supplierAlternateContactPhone": "string",
- "supplierAlternateContactEmail": "string",
- "factoryAlternateContactName": "string",
- "factoryAlternateContactPhone": "string",
- "factoryAlternateContactEmail": "string"
}
{- "invalidSupplier": true,
- "draft": {
- "draftId": "string",
- "isAnOrderNotADraft": true,
- "draftSteps": [
- {
- "current": true,
- "done": true,
- "label": "string",
- "visited": true
}
]
}, - "orderGeneralInfo": {
- "orderId": "string",
- "orderPlacer": "string",
- "status": [
- "5, 20, 30, 40, 60"
], - "statusText": [
- "DRAFT, WAITING_FOR_VALIDATION, FINISHED"
], - "serviceType": [
- "1, 2, 3, 4, 6"
], - "serviceTypeText": [
- "PSI, IPC, DUPRO, CLC, PM"
], - "bookingDate": [
- "05-Sep-2022"
], - "bookingDateUnixTimestamp": [
- 1662652800000
], - "orderNumber": [
- "R-Cloud-1111111"
], - "companyId": [
- "D1242F42B10E4B099038D4878174877E"
], - "userId": [
- "D1242F42B10E4B099038D4878174877E"
], - "parentCompanyId": [
- "D1242F42B10E4B099038D4878174877E"
], - "allowChangeInspectionDate": true,
- "supplierValidateCode": [
- "123456"
], - "clientRefNb": "string",
- "expectedInspectionDate": [
- "05-Sep-2022"
], - "expectedInspectionDateUnixTimestamp": [
- 1662652800000
], - "actualInspectionDate": [
- "05-Sep-2022"
], - "actualInspectionDateUnixTimestamp": [
- 1662652800000
], - "expectedShipDate": [
- "05-Sep-2022"
], - "expectedShipDateUnixTimestamp": [
- 1662652800000
], - "bookFromPreOrder": [
- "D1242F42B10E4B099038D4878174877E"
], - "copyAllMailTo": [
- "a@a.com;b@b.com;c@c.com"
], - "copyReportMailTo": [
- "a@a.com;b@b.com;c@c.com"
], - "inspectionMethod": {
- "id": "string",
- "classification": "string",
- "key": "string",
- "value": "string",
- "text": "string",
- "description": "string",
- "createTime": "2019-08-24T14:15:22Z",
- "updateTime": "2019-08-24T14:15:22Z",
- "sequence": 0
}, - "container20": 0,
- "container40": 0,
- "container40HQ": 0,
- "customField1": "string",
- "customField2": "string",
- "customField3": "string",
- "performInQimaone": [
- 0
], - "lcnumber": "string",
- "confirmed": true,
- "icneeded": true,
- "lcappName": "string",
- "lcappAddress": "string",
- "lcbeneName": "string",
- "lcbeneAddress": "string"
}, - "orderExtra": {
- "orderId": "string",
- "cancelable": [
- false
], - "editable": [
- false
], - "isReInspection": [
- false
], - "followUp": [
- false
], - "originalNbReinsp": [
- "R-Cloud-123456"
], - "reInspectionInstruction": [
- "R-Cloud-123456"
], - "nbOfInspectors": 0,
- "prevOrderType": "string",
- "prevOrderStatus": [
- "OPEN or CLOSED"
], - "prevServiceDate": "2019-08-24T14:15:22Z",
- "prevServiceDateText": "string",
- "multiSupplierOrder": true,
- "quickBooking": true
}, - "orderFactory": {
- "id": "string",
- "factoryId": "string",
- "factoryCode": "string",
- "factoryName": "string",
- "factoryNameCN": "string",
- "factoryMGRName": "string",
- "factoryMGRMobile": "string",
- "factoryMGRNumber": "string",
- "factoryMGREmail": [
- "string"
], - "factoryOtherMobile": "string",
- "factoryOtherName": "string",
- "factoryOtherNumber": "string",
- "factoryOtherEmail": [
- "string"
], - "factoryAddress": "string",
- "factoryCity": "string",
- "factoryProvince": "string",
- "factoryCountry": "string",
- "factoryContinent": "string",
- "factoryPostCode": "string",
- "factoryProductLines": [
- "string"
], - "nbOfWorkers": 0,
- "isMutiLocation": true,
- "ext1": "string",
- "ext2": "string",
- "ext3": "string",
- "factoryCityId": "string"
}, - "orderSupplier": {
- "orderId": "string",
- "id": "string",
- "supplierCode": "string",
- "supplierName": "string",
- "supplierNameCN": "string",
- "supplierMGRName": "string",
- "supplierMGRMobile": "string",
- "supplierMGRNumber": "string",
- "supplierMGREmail": [
- "string"
], - "supplierOtherName": "string",
- "supplierOtherMobile": "string",
- "supplierOtherNumber": "string",
- "supplierOtherEmail": [
- "string"
], - "supplierAddress": "string",
- "supplierCity": "string",
- "supplierPostCode": "string",
- "supplierCountry": "string",
- "supplierContinentID": "string",
- "supplierProductLines": [
- "string"
], - "supplierId": "string",
- "ext1": "string",
- "ext2": "string",
- "ext3": "string",
- "isActive": "string"
}, - "orderAuditGeneral": {
- "orderId": "string",
- "sampleSize": "string",
- "contactFactoryOrNot": true,
- "generalComment": "string",
- "guidelines": 0,
- "totalNumberOfBuilding": 0,
- "factoryAreaSqm": 0,
- "additionalComment": "string",
- "poNumber": "string",
- "announcementType": [
- "Announced"
], - "auditWindowFrom": [
- "19-Dec-2022"
], - "auditWindowTo": [
- "20-Dec-2022"
], - "auditWindowUnAvailableDays": [
- "string"
], - "auditDivision": "string",
- "prodName": "string",
- "clientAuditProgram": "string",
- "additiveFactors": "string"
}, - "orderAuditFieldsList": [
- {
- "id": "string",
- "orderId": "string",
- "fieldType": "string",
- "fieldId": "string",
- "specificField": "string",
- "weight": "string",
- "selected": true,
- "fieldName": "string",
- "description": "string",
- "classification": "string",
- "fieldVersion": 0
}
], - "auditGuidelineOtherFields": [
- {
- "fieldName": "string",
- "refValue": "string",
- "textValue": "string"
}
]
}