InspectionCreationRequest
receiverCustomIdstringrequired
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.
Example:
Retailer 01factoryCustomIdstringrequired
Custom 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.
Example:
Factory 01executorOrgCustomIdstring
Optional 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.
Example:
Executor Org 01inspectionTypeCodestringrequired
Example:
DUPROworkflowUuiduuid
Example:
6d857168-49a5-4951-a220-4bee2402f23cbookingTemplateUuiduuid
Example:
47a4114f-1ea6-42db-89df-b8640aa00a02inspectionData object[]required
Array [
internalIntegrationIdstringrequired
Example:
1A2BinspectedDatedaterequired
Example:
2024-03-24opoNumberstringrequired
Example:
OPO_NumberitemIdstringrequired
Example:
Item Astylestring
Example:
Style 1Acolorstring
Example:
Redsizestring
Example:
SproductLineIdstring
productCategoryIdstring
inspectedQuantitystringrequired
Example:
100inspectoremailrequired
defectstring
defectCommentstring
Example:
defectSectionstring
Possible values: [packaging, workmanship, measurement]
Example:
packagingoccurrencestring
Example:
2productionLinestring
Example:
Line A1shiftNumberstring
Example:
3resultstringrequired
Possible values: [pass, fail]
Example:
fail]
InspectionCreationRequest
{
"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": "string",
"productCategoryId": "string",
"inspectedQuantity": "100",
"defect": "string",
"defectComment": "",
"defectSection": "packaging",
"occurrence": "2",
"productionLine": "Line A1",
"shiftNumber": "3",
"result": "fail"
}
]
}