InspectionCreationRequest
Custom ID of the receiver org. Set to "data_provider" to resolve to the requesting org itself instead of looking up a local org mapping.
Retailer 01Custom ID of the factory org. If omitted, defaults to the requesting org when the requesting org is itself a factory (otherwise the request is rejected). Set to "data_provider" to resolve to the requesting org itself explicitly; only allowed when the requesting org is a factory, otherwise rejected with error.
Factory 01Optional custom ID of the org that executed the inspection (assignment executor). Defaults to the requesting org when omitted. Set to "data_provider" to resolve to the requesting org itself explicitly.
Executor Org 01DUPRO6d857168-49a5-4951-a220-4bee2402f23c47a4114f-1ea6-42db-89df-b8640aa00a02inspectionData object[]required
1A2B2024-03-24OPO_NumberItem AStyle 1ARedSPL-001PC-001100Possible values: [packaging, workmanship, measurement]
packaging2Line A13Optional. The custom ID of the supplier for this inspection, or "data_provider" if the requesting organization is the supplier. Send the same value on every row with the same internalIntegrationId.
Supplier 01Optional. The brand ID of this item, as set up in the receiver organization's Brand data.
Brand APossible values: [pass, fail]
fail{
"receiverCustomId": "Retailer 01",
"factoryCustomId": "Factory 01",
"executorOrgCustomId": "Executor Org 01",
"inspectionTypeCode": "DUPRO",
"workflowUuid": "6d857168-49a5-4951-a220-4bee2402f23c",
"bookingTemplateUuid": "47a4114f-1ea6-42db-89df-b8640aa00a02",
"inspectionData": [
{
"internalIntegrationId": "1A2B",
"inspectedDate": "2024-03-24",
"opoNumber": "OPO_Number",
"itemId": "Item A",
"style": "Style 1A",
"color": "Red",
"size": "S",
"productLineId": "PL-001",
"productCategoryId": "PC-001",
"inspectedQuantity": "100",
"defect": "string",
"defectComment": "",
"defectSection": "packaging",
"occurrence": "2",
"productionLine": "Line A1",
"shiftNumber": "3",
"supplierCustomId": "Supplier 01",
"brandId": "Brand A",
"result": "fail"
}
]
}