QIMA Logo
API Reference

8 categories • 44 endpoints

  • All APIs

    44


  • Report
    v1.0.0

    Get inspection interactive report details

    Request

    Query Parameters
    NameTypeLocationRequiredDescription
    userIdstringpathYesQIMA client user login ID.
    productIdstringpathYesInspection product id, please refer to product id returned in /user/{userId}/reports
    orderIdstringqueryYesInspection order id, please refer to order id returned in /user/{userId}/reports
    companyRolestringqueryNoSet to `broker` to retrieve the report visible to the broker role.
    Responses

    200
    Interactive report details returned successfully.

    Content-Type: application/json

    message
    string
    FieldTypeDescription
    messagestring
    FieldTypeDescription
    reportIdstringReport Id
    reportNumberstringReport Number
    orderIdstringOrder id
    orderNumberstringClient-facing QIMA order number. May be `null`.
    reportMetadataobjectA `generalInfo[]` array of label/value triples, similar to `inspectionDetails`/`productDetails` but without the extra fields.
    reportMetadata.generalInfoarray
    reportMetadata.generalInfo[].labelstringLabel of general info
    reportMetadata.generalInfo[].typestringType of general info
    reportMetadata.generalInfo[].valuestringValue of general info
    showSummarybooleanWhether the AI-generated summary should be shown.
    aiSummaryStatusstringStatus of the AI-generated summary, if applicable. `null` when not available.
    userIdstringQIMA client user login ID. May be `null`.
    disableSummaryReportButtonbooleanWhether the summary report button should be disabled in the UI.
    performedInQimaonestring"0" or "1" (string, not boolean) indicating whether the inspection was performed in QIMAone.
    interactiveReportVersionstringSchema version of the interactive report data, for example "v1".
    downloadUrlOfPhotosstringDownload url of photos
    downloadUrlOfReportstringDownload url of report
    overallResultobject
    overallResult.isMissedbooleanIf is missed of overall result
    overallResult.overallResultstringOverall result
    assessmentResultsarrayList of assessment results of interactive reports
    assessmentResults[].colorstringColor of assessment result
    assessmentResults[].labelstringLabel of assessment result
    assessmentResults[].resultstringAssessment result
    assessmentResults[].secondaryLabelstringSecond label of assessment result
    assessmentResults[].statusstringStatus of assessment result
    clientRatingintegerClient rating of report
    clientRatingFeedbackstringClient rating feedback of report
    reportDecisionobject
    reportDecision.decidedBystringDecision by
    reportDecision.decisionstringDecision
    reportDecision.decisionCommentsstringDecision comments
    reportDecision.decisionReasonsstringDecision reasons
    reportDecision.decisionTimestringDecision time
    reportDecision.productReferencearrayList of product reference
    reportDecision.productReference[].decisionstringDecision
    reportDecision.productReference[].productIdstringProduct id
    reportDecision.productReference[].referenceIdstringReference id
    reportDecision.productReference[].referencePoNumberstringReference po number
    reportDecision.productReference[].referenceQuantityintegerReference quantity
    reportDecision.productReference[].referenceSkuNumberstringReference sku number
    reportDecision.productReference[].decidedBystringDecided by
    reportDecision.productReference[].decisionCommentsstringDecision comments
    reportDecision.productReference[].decisionReasonsstringDecision reasons
    reportDecision.productReference[].decisionTimestringDecision time
    overviewobject
    overview.overviewDetailobject
    overview.overviewDetail.generalInfoarrayGeneral info
    overview.overviewDetail.mainPicturestringDownload url of report
    photosarrayPhotos of result
    photos[].categoriesarrayCategories of photo
    photos[].categories[].titlestring
    photos[].categories[].photosarray
    photos[].categories[].photos[].captionstring
    photos[].categories[].photos[].thumbnailUrlstring
    photos[].categories[].photos[].urlstring
    photos[].labelstringLabel of photo
    keyIndicatorobject
    keyIndicator.isVisiblebooleanIf is visible of key indicator
    keyIndicator.inspectionResultSummaryobject
    keyIndicator.inspectionResultSummary.checkedCriticalstringChecked critical
    keyIndicator.inspectionResultSummary.checkedMajorstringChecked major
    keyIndicator.inspectionResultSummary.checkedMinorstringChecked minor
    keyIndicator.inspectionResultSummary.foundCriticalstringFound critical
    keyIndicator.inspectionResultSummary.foundMajorstringFound major
    keyIndicator.inspectionResultSummary.foundMinorstringFound minor
    keyIndicator.inspectionResultSummary.maxCriticalstringMax critical
    keyIndicator.inspectionResultSummary.maxMajorstringMax major
    keyIndicator.inspectionResultSummary.maxMinorstringMax minor
    keyIndicator.inspectionResultSummary.measurementAqlResultstringMeasurement aql result
    keyIndicator.inspectionResultSummary.measurementCheckedstringMeasurement checked
    keyIndicator.inspectionResultSummary.measurementFoundstringMeasurement found
    keyIndicator.inspectionResultSummary.testResultsstringTask results
    keyIndicator.inspectionResultSummary.workmanShipResultstringWorkman Ship result
    keyIndicator.inspectionResultSummary.otherRemarksstringOther remarks
    keyIndicator.productReferenceWorkmanShipResultarrayList of product reference workman ship result of key indicator
    keyIndicator.productReferenceWorkmanShipResult[].checkedCriticalstringChecked critical
    keyIndicator.productReferenceWorkmanShipResult[].checkedMajorstringChecked major
    keyIndicator.productReferenceWorkmanShipResult[].checkedMinorstringChecked minor
    keyIndicator.productReferenceWorkmanShipResult[].foundCriticalstringFound critical
    keyIndicator.productReferenceWorkmanShipResult[].foundMajorstringFound major
    keyIndicator.productReferenceWorkmanShipResult[].foundMinorstringFound minor
    keyIndicator.productReferenceWorkmanShipResult[].maxCriticalstringMax critical
    keyIndicator.productReferenceWorkmanShipResult[].maxMajorstringMax major
    keyIndicator.productReferenceWorkmanShipResult[].maxMinorstringMax minor
    keyIndicator.productReferenceWorkmanShipResult[].prodReferenceNamestringProd reference name
    keyIndicator.productReferenceWorkmanShipResult[].prodReferenceResultstringProd reference result
    keyIndicator.testAndSpecialRequirementobject
    keyIndicator.testAndSpecialRequirement.passedTestsintegerPassed tests
    keyIndicator.testAndSpecialRequirement.failedTestsintegerFailed tests
    keyIndicator.testAndSpecialRequirement.totalTestsintegerTotal tests
    keyIndicator.productMeasurementAQLResultarrayList of product measurement aql result
    keyIndicator.productMeasurementAQLResult[].findingsCheckedMajorProdReferencestringFinding checked major prod reference
    keyIndicator.productMeasurementAQLResult[].findingsFoundMajorProdReferencestringFinding found major prod reference
    keyIndicator.productMeasurementAQLResult[].findingsMaxMajorProdReferencestringFinding max major prod reference
    keyIndicator.productMeasurementAQLResult[].findingsMostSeriousDefectsFoundProdReferencestringFinding most serious defects found prod reference
    keyIndicator.productMeasurementAQLResult[].nameProdReferencestringname prod prod reference
    keyIndicator.productMeasurementAQLResult[].resultProdReferencestringresult prod reference
    inspectionDetailsobject
    inspectionDetails.generalInfoarrayList of general info
    inspectionDetails.serviceDescriptionstringService description
    inspectionDetails.serviceTypestringService type
    productDetailsobject
    productDetails.generalInfoarrayList of general info
    productDetails.mainPicturestringMain picture
    productDetails.poNumberstringPo number
    productDetails.productNamestringProduct name
    productDetails.prodQuantityUnitstringProd quantity unit
    specialIPobject
    specialIP.itemQuantitiesDisplaybooleanItem quantity display
    specialIP.itemOperaInciDisplaybooleanItem opera Inci display
    specialIP.itemsarrayList of items
    specialIP.items[].itemstringItem
    specialIP.items[].quantitiesstringQuantites
    specialIP.items[].operaIncistringOperaInci
    specialIP.items[].commentsstringComments
    specialIP.items[].containerstringContainer
    specialIP.items[].descriptionstringDescription
    specialIP.items[].totalCartonsstringTotal cartons
    specialIP.items[].totalNumberofPiecesstringTotal number of pieces
    specialIP.items[].labellingstringLabelling
    specialIP.items[].brandingstringBranding
    specialIP.items[].htsCodestringHts code
    specialIP.items[].brandstringBrand
    specialIP.items[].countryOfOriginstringCountry of origin
    specialIP.items[].lotSeriesstringLot series
    specialIP.items[].poNumberstringPO number
    specialIP.items[].upcstringUpc
    specialIP.items[].itemImagesUrlobjectList of image urls
    specialIP.items[].nomsTableobject
    specialIP.items[].nomsTable.itemNumberstringItem number
    specialIP.items[].nomsTable.nomstringNom
    specialIP.items[].nomsTable.requirementstringRequirement
    specialIP.items[].nomsTable.compliesWithNomstringComplies with nom
    specialIP.items[].nomsTable.htsCodesstringHts codes
    specialIP.items[].nomsTable.productDetailsstringProduct details
    specialIP.items[].nomsTable.otherRegulationsstringOther regulations
    specialIP.items[].nomsTable.generalRemarksstringGeneral remarks
    specialIP.items[].nomsTable.sizeOrMeasurementsstringSize or measurements
    specialIP.items[].nomsTable.genderstringGender
    specialIP.containersarrayList of containers
    specialIP.containers[].idstringId of container
    specialIP.containers[].sealNumberstringSeal number
    specialIP.containers[].typeOfContainerstringType of container
    specialIP.containers[].totalQtyOfCtnsstringTotal quantity of Ctns
    specialIP.containers[].containerConditionsstringContainer conditions
    specialIP.containers[].merchandiseDamagedstringMerchandise damaged
    specialIP.containers[].woodenPalletsstringWooden pallets
    specialIP.containers[].merchandiseNotDeclaredstringMerchandise not declared
    specialIP.containers[].inDepthstringIn depth
    specialIP.containers[].inDoorsstringIn doors
    specialIP.containers[].fumigationStampstringFumigation stamp
    specialIP.containers[].packagingAngTransportationMaterialsstringPackaging ang transportation materials
    specialIP.containers[].containerImagesUrlarrayList of image urls
    specialIP.containers[].supervisionReportImagesUrlarrayList of supervision report image urls
    attachmentsarrayList of attachments
    attachments[].fileNamestringFile name of attachment
    attachments[].fileSizeintegerFile size of attachment
    attachments[].fileUrlstringFile url of attachment
    attachments[].createTimestringCreate time of attachment
    {
      "message": "OK",
      "content": {
        "reportId": "3E4B7F366B524AD6840571E9AE28DA14",
        "reportNumber": "R-Cloud-PP-24009476",
        "orderId": "42C61D1AF5954E7F9D9434DCD10F97DB",
        "orderNumber": null,
        "overallResult": {
          "isMissed": true,
          "overallResult": "Fail"
        },
        "assessmentResults": [
          {
            "color": "#00A876",
            "label": "Workmanship",
            "result": "Pass",
            "secondaryLabel": null,
            "status": null
          }
        ],
        "showSummary": false,
        "aiSummaryStatus": null,
        "userId": null,
        "disableSummaryReportButton": false,
        "performedInQimaone": "0",
        "interactiveReportVersion": "v1"
      }
    }
    GET
    /user/{userId}/interactive-report/{productId}
    Request samples

    application/json

    {}

    Response samples

    application/json

    { "message": "OK", "content": { "reportId": "3E4B7F366B524AD6840571E9AE28DA14", "reportNumber": "R-Cloud-PP-24009476", "orderId": "42C61D1AF5954E7F9D9434DCD10F97DB", "orderNumber": null, "overallResult": { "isMissed": true, "overallResult": "Fail" }, "assessmentResults": [ { "color": "#00A876", "label": "Workmanship", "result": "Pass", "secondaryLabel": null, "status": null } ], "showSummary": false, "aiSummaryStatus": null, "userId": null, "disableSummaryReportButton": false, "performedInQimaone": "0", "interactiveReportVersion": "v1" } }