Get Report
GEThttps://sight.inspectorio.com/api/v1/reports/:report_id
Get Report
Request​
Path Parameters
report_id stringrequired
Responses​
- 200
- 400
- 401
- 422
- 429
- 500
OK
- application/json
- Schema
- Example (auto)
Schema
data object
{
"data": {
"inspectionDefectList": [
{
"assortmentId": "1234",
"clarification": "major",
"color": "Blue/Pink",
"comment": "Comment",
"defectCategory": "Safety and Regulatory",
"defectCode": "SR002",
"defectId": "abcd1234-ab12-cd34-ef56-123456789012_workmanship_1",
"defectName": "PKG005 - Missing silica gel / box sticker / box flag",
"defectiveUnit": "Defective unit",
"description": "PKG005 - Missing silica gel / box sticker / box flag",
"group": "workmanship",
"id": "string",
"inspectionId": "abcd1234-ab12-ab12-ab12-abcd1234efgh4568",
"itemDescription": "Box AB1851",
"itemId": "02112-1851",
"organizationId": "200373",
"photos": [
{
"description": "Mismatch color",
"rotateAngle": "0",
"source": "https://.../image1.jpg"
}
],
"productCategory": [
"string"
],
"size": "XXL",
"styleId": "123456",
"totalDefects": "1"
}
],
"inspectionEsignatures": [
{
"id": 123456,
"name": "Bob",
"signature": "https://example.jpg",
"title": "Factory Representative"
}
],
"inspectionGeneral": {
"actualInspectionDate": "2021-06-03T00:00:00+00:00",
"bookingType": "normal",
"capaStatus": "Waiting for Response",
"caseNumber": "5832DUPRO2019-00537345TESTMTTestInspectorioFactoryASOLID-ASSORTMENT2019-12-095832IS",
"client": {
"address": "5 Madison Avenue",
"city": "New York",
"contact": {
"contactId": "contact_id",
"email": "email@email.com",
"mobileNumber": "1234567890",
"name": "Contact Name",
"telephoneNumber": "1234567890"
},
"country": "US",
"localOrganizationId": "123",
"localOrganizationIds": [
"123",
"ABC"
],
"name": "Acme Corp",
"organizationId": "3123123"
},
"country": "VN",
"createdDate": "2021-06-03 07:18:05.372000+00:00",
"creator": {
"email": "string",
"id": "string",
"mobileNumber": "string",
"name": "string"
},
"executor": {
"address": "5 Madison Avenue",
"city": "New York",
"contact": {
"contactId": "contact_id",
"email": "email@email.com",
"mobileNumber": "1234567890",
"name": "Contact Name",
"telephoneNumber": "1234567890"
},
"country": "US",
"name": "Acme Corp",
"organizationId": "3123123"
},
"expectedDate": "2021-06-03 00:00:00+00:00",
"factory": {
"address": "5 Madison Avenue",
"city": "New York",
"contact": {
"contactId": "contact_id",
"email": "email@email.com",
"mobileNumber": "1234567890",
"name": "Contact Name",
"telephoneNumber": "1234567890"
},
"country": "US",
"localOrganizationId": "123",
"localOrganizationIds": [
"123",
"ABC"
],
"name": "Acme Corp",
"organizationId": "3123123"
},
"inspectionDate": "2021-06-03 08:27:20.624000+00:00",
"inspectionId": "123a456b-abcd-efgh-ijk1-a88aa05d7c86",
"inspectionLocation": "null",
"inspectionResult": "fail",
"inspector": {
"email": "string",
"employeeId": "string",
"id": "string",
"mobileNumber": "string",
"name": "string"
},
"isReferenceSample": "null",
"opoNumber": "123-456",
"oversightOffice": {
"id": "111",
"name": "Acme Oversight Office"
},
"pdfUrl": "https://.../.../.../.../case-number_123a456b-abcd-efgh-ijk1-a88aa05d7c86.pdf",
"photos": [
"string"
],
"poNumber": "123-456-L001",
"pos": [
{
"poNumber": "PO123"
}
],
"productCategories": [
"string"
],
"productLineId": "100991",
"productLineName": "APPAREL",
"productOrders": [
"string"
],
"productStyles": [
{
"assortments": [
{
"assortmentId": "string",
"availableCartonQuantity": 0,
"cartonQuantity": 0,
"items": [
{
"availableQuantity": 0,
"brandId": "brand_1",
"brandName": "string",
"classId": "class_id_1",
"color": "string",
"configuration": 0,
"departmentId": "department_id_1",
"id": "string",
"itemId": "string",
"purchaseOrders": [
"string"
],
"quantity": 0,
"shipmentTerm": "shipment_term_1",
"size": "string"
}
]
}
],
"measurements": [
{
"caption": "string",
"isPomCritical": "true",
"pom": "string",
"sizes": [
{
"measurement": "string",
"size": "Medium"
}
],
"tolerance": "string",
"toleranceLower": 1,
"toleranceUpper": 1,
"unit": "inch"
}
],
"productCategoryId": "product_category_1",
"productCategoryName": "string",
"solids": [
{
"availableCartonQuantity": 0,
"availableQuantity": 0,
"brandId": "brand_1",
"brandName": "string",
"cartonQuantity": 0,
"casePackQuantity": 0,
"classId": "class_id_1",
"color": "string",
"departmentId": "department_id_1",
"id": "string",
"itemId": "string",
"purchaseOrders": [
"string"
],
"quantity": 0,
"shipmentTerm": "shipment_term_1",
"size": "string"
}
],
"styleId": "style_1",
"styleName": "string"
}
],
"status": "completed",
"systemUpdatedAt": "2021-06-03 08:27:21.316000+00:00",
"tags": "null",
"type": {
"typeOfInspection": "FRI",
"typeOfInspectionName": "Final Random Inspection"
},
"updatedDate": "2021-06-03 08:27:21.316000+00:00",
"vendor": {
"address": "5 Madison Avenue",
"city": "New York",
"contact": {
"contactId": "contact_id",
"email": "email@email.com",
"mobileNumber": "1234567890",
"name": "Contact Name",
"telephoneNumber": "1234567890"
},
"country": "US",
"localOrganizationId": "123",
"localOrganizationIds": [
"123",
"ABC"
],
"name": "Acme Corp",
"organizationId": "3123123"
},
"workflowName": "DUPRO Apparel workflow"
},
"inspectionMeasurementDimensions": [
{
"color": "Blue/Pink",
"dimensionId": "1a2b3c4d-1a2b-c1d2-b3b2-b76cd21e2a34__00537345__029-02-0590__XL__Blue/Pink__9999__0",
"dimensionIndex": "0",
"id": "029-02-0590",
"inspectionId": "1a2b3c4d-1a2b-c1d2-b3b2-b76cd21e2a34",
"itemId": "029-02-0590",
"measurementDescription": "9999",
"occurrences": "1",
"organizationId": "200373",
"samples": [
{
"name": "shirt_1",
"value": 1.5
}
],
"size": "XXL",
"skuIndex": "0",
"standard": 10.5,
"styleId": "123456",
"tolerance": 2.1,
"toleranceLower": 2.1,
"toleranceUpper": 2.1,
"unit": "cm"
}
],
"inspectionPhotos": [
{
"file": {
"description": "photo_1",
"fileType": "image",
"rotateAngle": "0",
"source": "https://.../.../.../1a2b3c4d-1a2b-1a2b-1a2b3c4d_eb77a158.jpg"
},
"groupId": "string",
"inspectionId": "abcd1234-ab12-ab12-ab12-abcd1234efgh4568",
"itemId": "02112-1851",
"label": "string",
"organizationId": "200373",
"photoId": "string",
"status": "string",
"styleId": "123456",
"type": "image"
}
],
"inspectionQuestions": [
{
"groupId": "7384b63c-bc99-43f0-b1b5-600959220e19_1e601f70-3c65-4ea8-931f-4976b9c91b3a",
"inspectionId": "abcd1234-ab12-ab12-ab12-abcd1234efgh4568",
"label": "Do we need to pull a Green sealed sample?",
"options": [
{
"actions": [
{
"action": "request_picture",
"value": "mandatory"
}
],
"failResponse": "false",
"id": "chk__97",
"selected": "true",
"value": "YES"
}
],
"organizationId": "null",
"questionId": "7384b63c-bc99-43f0-b1b5-600959220e19_5689d212-b001-4ad2-89c7-2c39654d4cc3_SyJivf3CA",
"type": "null"
}
],
"inspectionRFID": [
{
"barcode": "123456",
"code": "123",
"decodedCode": "111",
"id": "abc-def-123",
"inspectionId": "abcd1234-ab12-ab12-ab12-abcd1234efgh4568",
"matched": "true",
"organizationId": "200373",
"photos": [
"string"
]
}
],
"inspectionResult": [
{
"groupName": "Check In",
"includeInReport": "true",
"inspectionId": "abcd1234-ab12-ab12-ab12-abcd1234efgh4568",
"organizationId": "200373",
"resultId": "7384b63c-bc99-43f0-b1b5-600959220e19_6e451830-1d61-4a14-a5e7-03ce20704f52",
"status": "non-applicable"
}
],
"inspectionSampleSelection": [
{
"inspectionId": "abcd1234-ab12-ab12-ab12-abcd1234efgh4568",
"organizationId": "200373",
"sampleSelection": "13",
"sampleSize": "13",
"totalInspectionQuantity": "72"
}
],
"inspectionSampleSelectionSamples": [
{
"assortment": "solid",
"assortmentQuantity": "50",
"cartonPull": "3",
"id": "111",
"inspectionId": "abcd1234-ab12-ab12-ab12-abcd1234efgh4568",
"itemId": "02112-1851",
"itemOrderQuantity": "50",
"organizationId": "200373",
"sampleId": "00537345__solid__02112-1851",
"samplePull": "9",
"styleId": "123456",
"styleOrderQuantity": "72"
}
],
"inspectionSpecialAttentionPoint": [
{
"attentionId": "remark-ee79693e-cd81-45df-af2e-1ee4628b4123-2020-01-15-14-25-13-182",
"description": "This is a test",
"group": "remark-ee79693e-cd81-45df-af2e-1ee4628b4123-2020-01-15-14-25-13-182",
"inspectionId": "abcd1234-ab12-ab12-ab12-abcd1234efgh4568",
"organizationId": "200373",
"pictures": [
{
"rotateAngle": "0",
"source": "https://.../image1.jpg"
}
],
"type": "remark"
}
],
"inspectionStandards": [
{
"aql": {
"aqlId": "31ade06c-1a0b-11e9-83b2-320fe256275a",
"aqlLevel": "ii",
"aqlName": "Packaging",
"critical": "0.010",
"major": "2.5",
"minor": "2.5",
"source": "null"
},
"availableQuantity": "72",
"countedForAql": {
"critical": "1",
"major": "0",
"minor": "0"
},
"defectFound": {
"critical": "1",
"major": "0",
"minor": "0"
},
"defectiveUnitActivate": "false",
"determineDesc": "AQL Standard",
"determineType": "aqlTable",
"determineValue": "0",
"doubleSampling": "false",
"failReason": "critical",
"group": "workmanship",
"inspectionId": "abcd1234-ab12-ab12-ab12-abcd1234efgh4568",
"maxAllowed": {
"critical": "0",
"major": "1",
"minor": "1"
},
"maximumSampleSize": "8",
"minimumSampleSize": "13",
"noOfDefectiveItems": "1",
"noOfDefectiveUnits": "2",
"organizationId": "200373",
"packingType": "Solid; Assortment",
"sampleSizeCategory": [
{
"productCategory": "124301",
"sampleSize": "8"
}
],
"totalDefects": "2",
"totalItems": "2"
}
],
"itemAttributes": [
{
"code": "GC Apparel",
"items": [
{
"groupCode": "string",
"itemId": "string",
"styleId": "string"
}
],
"name": "Group Code Apparel",
"type": "single_choice"
}
]
}
}
Bad request
- application/json
- Schema
- Example (auto)
Schema
errorCodestring
Example:
Generic
messagestring
Example:
Bad Request
{
"errorCode": "Generic",
"message": "Bad Request"
}
Unauthorized
- application/json
- Schema
- Example (auto)
Schema
errorCodestring
Example:
Generic
messagestring
Example:
Cannot retrieve session data because of expired token
{
"errorCode": "Generic",
"message": "Cannot retrieve session data because of expired token"
}
Validation Error
- application/json
- Schema
- Example (auto)
Schema
errorCodestring
Example:
Generic
errorsobject
Example:
{"type":["Input type is not valid"]}
messagestring
Example:
Validation error
{
"errorCode": "Generic",
"errors": {
"type": [
"Input type is not valid"
]
},
"message": "Validation error"
}
Rate-limiting Error
- application/json
- Schema
- Example (auto)
Schema
errorCodestring
Example:
Generic
messagestring
Example:
Too many requests
{
"errorCode": "Generic",
"message": "Too many requests"
}
Internal Error
- application/json
- Schema
- Example (auto)
Schema
errorCodestring
Example:
Generic
errorsobject
Example:
{"system":["Internal error detail message"]}
messagestring
Example:
Internal server error
{
"errorCode": "Generic",
"errors": {
"system": [
"Internal error detail message"
]
},
"message": "Internal server error"
}
Authorization: apiKey
name: apiKeytype: apiKeyin: header
- curl
- python
- go
- nodejs
- ruby
- csharp
- php
- java
- powershell
- CURL
curl -L 'https://sight.inspectorio.com/api/v1/reports/:report_id' \
-H 'Accept: application/json' \
-H 'apiKey: <apiKey>'
ResponseClear