| userId | string | Yes | QIMA client user id |
| serviceDate | string | Yes | Planed inspection date, format should be in dd-MMM-yyyy |
| shipDate | string | Yes | Planed shipment date, format should be in dd-MMM-yyyy |
| serviceType | string | Yes | QIMA inspection service type, mandatory if previousOrderNumber not provided. Here is the mapping, 1: PSI (Pre-Shipment Inspection), 2: IPC (Initial Production Check), 3: DUPRO (During Production Inspection) , 4: CLC (Container Loading Check), 6: PM (Production Monitoring), 8: SR (Sample Review), 21: SC (Sample Collection) Enum: "1", "2", "3", "4", "6", "7", "8", "21" |
| bookingType | string | Yes | QIMA inspection type |
| previousOrderNumber | string | No | Previous QIMA inspection reference R-Cloud number, must provide a valid R-Cloud number if it's re-inspection, example value: R-Cloud-xxxx |
| referenceNumber | string | No | Client reference number |
| supplierId | string | No | QIMA supplier id |
| supplierCode | string | No | Supplier's identification code in client's system, mandatory when supplier name, city id, contact not provided, and must be a valid code |
| supplierName | string | No | Mandatory when supplier code is not provided |
| supplierContactName | string | No | Mandatory when supplier code is not provided |
| supplierContactPhone | string | No | Mandatory when supplier code is not provided |
| supplierContactEmail | string | No | Mandatory when supplier code is not provided |
| supplierContinentID | string | No | Supplier's continent id in QIMA's system, refer to /parameter/v2/continents. Mandatory when supplier code is not provided |
| supplierCountryID | string | No | Supplier's country id in QIMA's system, refer to /parameter/v2/countries, /parameter/v2/countries or /parameter/v2/continent/{continentId}/countries. Mandatory when supplier code is not provided |
| supplierProvinceID | string | No | Supplier's Province id in QIMA's system, refer to /parameter/v2/country/{countryId}/provinces. Mandatory when supplier code is not provided |
| supplierCityID | string | No | Supplier's city id in QIMA's system, refer to /parameter/v2/country/{countryId}/searchCities, /parameter/v2/province/{provinceId}/searchCities or /parameter/v2/country/{countryId}/cities. Mandatory when supplier code is not provided |
| supplierAddress | string | No | Mandatory when supplier code is not provided |
| supplierProductLines | array | No | Mandatory when supplier code is not provided, get product line from /parameter/v2/product-families API |
| supplierAlternateContactName | string | No | Supplier's alternative contact name |
| supplierAlternateContactPhone | string | No | Supplier's alternative contact telephone |
| supplierAlternateContactEmail | string | No | Supplier's alternative contact email |
| factoryCode | string | No | Factory's identification code in client's system, mandatory when auto confirm factory is needed and factory other info are not provided |
| factoryName | string | No | Mandatory when auto confirm factory is needed and factory code is not provided |
| factoryContactName | string | No | Mandatory when auto confirm factory is needed and factory code is not provided |
| factoryContactPhone | string | No | Mandatory when auto confirm factory is needed and factory code is not provided |
| factoryContactEmail | string | No | Mandatory when auto confirm factory is needed and factory code is not provided |
| factoryContinentID | string | No | Factory's continent id in QIMA's system, refer to /parameter/v2/continents. Mandatory when auto confirm factory is needed and factory code is not provided |
| factoryCountryID | string | No | Factory's country id in QIMA's system, refer to /parameter/v2/countries. Mandatory when auto confirm factory is needed and factory code is not provided |
| factoryProvinceID | string | No | Factory's province id in QIMA's system, refer to /parameter/v2/country/{countryId}/provinces. Mandatory when auto confirm factory is needed and factory code is not provided |
| factoryCityID | string | No | Factory's city id in QIMA's system, refer to /parameter/v2/country/{countryId}/searchCities. Mandatory when auto confirm factory is needed and factory code is not provided |
| factoryAddress | string | No | Mandatory when auto confirm factory is needed and factory code is not provided |
| factoryPostCode | string | No | Mandatory when auto confirm factory is needed and factory code is not provided |
| factoryProductLines | array | No | Mandatory when auto confirm factory is needed and factory code is not provided, get product line from /parameter/v2/product-families API |
| factoryAlternateContactName | string | No | Name of the alternative factory contact |
| factoryAlternateContactPhone | string | No | Telephone of the alternative factory contact |
| factoryAlternateContactEmail | string | No | Email of the alternative factory contact |
| products | array | Yes | |
| products[].name | string | No | Name of the inspection product |
| products[].categoryId | string | No | Product category id, refer to /parameter/v2/product-categories |
| products[].familyId | string | No | Product family id, refer to /parameter/v2/product-families |
| products[].typeId | string | No | Product type id, refer to /parameter/v2/product-types |
| products[].prodReference | string | No | Product level product reference, please leave this empty when multi-reference booking is enabled in account level |
| products[].prodDivision | string | No | Division name that this product belongs to in client's company |
| products[].poNumber | string | No | Product level PO number, please leave this empty when multi-reference booking is enabled in account level and fill po number under refs |
| products[].prodQuantity | integer | No | Product level product quantity, please leave this empty when multi-reference booking is enabled in account level and fill product quantity under refs |
| products[].expectedFinishedPct | integer | No | Percentage of the expected production finished productions for inspection |
| products[].expectedPackedPct | integer | No | Percentage of the expected packed production for inspection |
| products[].unitPacking | string | No | Optional field in the product level to define unit packing comments |
| products[].outerPacking | string | No | Optional field in the product level to define outer packing comments |
| products[].sampleReferenceClientComments | string | No | Optional field in the product level to define sample comments |
| products[].customField1 | string | No | Product level custom field 1 depends on use case |
| products[].customField2 | string | No | Product level custom field 2 depends on use case |
| products[].customField3 | string | No | Product level custom field 3 depends on use case |
| products[].refs | array | No | Product reference level info, used when multi-reference booking is enabled in account level |
| products[].refs[].poNumber | string | No | Reference level PO number, fill this when multi-reference booking is enabled in account level |
| products[].refs[].skuCode | string | No | Reference level SKU code, fill this when multi-reference booking is enabled in account level |
| products[].refs[].qty | integer | Yes | Reference level product quantity, fill this when multi-reference booking is enabled in account level |
| products[].refs[].brand | string | No | Reference level brand name, fill this when multi-reference booking is enabled in account level |
| products[].refs[].customField1 | string | No | Product level custom field 1 depends on use case |
| products[].refs[].customField2 | string | No | Product level custom field 2 depends on use case |
| products[].refs[].customField3 | string | No | Product level custom field 3 depends on use case |
| products[].refs[].customField4 | string | No | Product level custom field 4 depends on use case |
| products[].refs[].customField5 | string | No | Product level custom field 5 depends on use case |
| products[].refs[].customField6 | string | No | Product level custom field 6 depends on use case |
| products[].refs[].customField7 | string | No | Product level custom field 7 depends on use case |
| products[].refs[].customField8 | string | No | Product level custom field 8 depends on use case |
| products[].refs[].customField9 | string | No | Product level custom field 9 depends on use case |
| products[].refs[].customField10 | string | No | Product level custom field 10 depends on use case |
| products[].refs[].customField11 | string | No | Product level custom field 11 depends on use case |
| products[].refs[].customField12 | string | No | Product level custom field 12 depends on use case |
| products[].checkList | object | No | |
| products[].checkList.prodSampleLevel | string | No | Product sample level |
| products[].checkList.prodSampleSize | integer | No | Product sample size |
| products[].checkList.aqlCritical | string | No | Allowed AQL in critical level |
| products[].checkList.aqlMajor | string | No | Allowed AQL in major level |
| products[].checkList.aqlMinor | string | No | Allowed AQL in minor level |
| products[].checkList.prodMeasurementSampleSize | integer | No | Product measurement sample size |
| products[].checkList.prodMeasurementSampleLevel | string | No | Product measurement sample level |
| customField1 | string | No | Order level custom field 1 depends on use case |
| customField2 | string | No | Order level custom field w depends on use case |
| customField3 | string | No | Order level custom field 3 depends on use case |
| performInQimaone | integer | No | Inspection perform platform type, 0: Within QSP, 1: In QIMAone from QSP, 2: In QIMAone from QIMAone |