Skip to main content

FactoryRiskProfile

factoryInformation objectnullable

The detailed information about the Factory

localOrganizationId stringnullable

The Local Custom Id of the Factory

Example: client_1
localOrganizationIds string[]nullable

The list of all connected Local Custom Ids of the Factory

Example: ["F323333","F242146"]
organizationId integernullable

The Global organization Id of the Factory

Example: 291524
inspectionData objectnullable

Inspection data of the factory risk profile

inspectionHistories object[]nullable

The previous inspections

  • Array [
  • caseNumber stringnullable

    Case number of the inspection which the risk score is calculated based on

    Example: 178292020-04-16MAgarmentCo.,LtdDUPRO
    date datenullable

    Date of the inspection which the risk score is calculated based on

    Example: 2021-04-29
    result stringnullable

    Result of the inspection which the risk score is calculated based on

    Example: fail
  • ]
  • inspectionLasted objectnullable

    The last inspection

    caseNumber stringnullable

    Case number of the inspection which the risk score is calculated based on

    Example: 178292020-04-16MAgarmentCo.,LtdDUPRO
    date datenullable

    Date of the inspection which the risk score is calculated based on

    Example: 2021-04-29
    result stringnullable

    Result of the inspection which the risk score is calculated based on

    Example: fail
    riskLevelData objectnullable

    Risk level data of the factory risk profile

    highMax integernullable

    The highest score of the High Risk range

    Example: 100
    highMin integernullable

    The lowest score of the High Risk range

    Example: 95
    lowMax integernullable

    The highest score of the Low Risk range

    Example: 11
    lowMin integernullable

    The lowest score of the Low Risk range

    Example: 0
    mediumMax integernullable

    The highest score of the Medium Risk range

    Example: 94
    mediumMin integernullable

    The lowest score of the Medium Risk range

    Example: 12
    scoreData objectnullable

    Score data of the factory risk profile

    currentScore objectnullable

    Current risk score of the factory

    labelData object[]nullable

    Risk label of the factory

  • Array [
  • label stringnullable

    Type of label

    Example: Manual
    labelValue stringnullable

    Value of label

    Example: Low
    reasonCode stringnullable

    The selected Top Reason Code when changing Factory Risk Configuration Mode to Manual

    Example: Others - mandatory to fill in comments
    reasonType stringnullable

    The selected Top Reason Type when changing Factory Risk Configuration Mode to Manual

    Example: Others
  • ]
  • processComputedDate datenullable

    The last activity date of the score for either FRP score update or risk label/configuration change

    Example: 2022-06-28
    score numbernullable

    Factory risk score

    Example: 10.5
    lastScore objectnullable

    Last risk score of the factory

    labelData object[]nullable

    Risk label of the factory

  • Array [
  • label stringnullable

    Type of label

    Example: Manual
    labelValue stringnullable

    Value of label

    Example: Low
    reasonCode stringnullable

    The selected Top Reason Code when changing Factory Risk Configuration Mode to Manual

    Example: Others - mandatory to fill in comments
    reasonType stringnullable

    The selected Top Reason Type when changing Factory Risk Configuration Mode to Manual

    Example: Others
  • ]
  • processComputedDate datenullable

    The last activity date of the score for either FRP score update or risk label/configuration change

    Example: 2022-06-28
    score numbernullable

    Factory risk score

    Example: 10.5
    FactoryRiskProfile
    {
    "factoryInformation": {
    "localOrganizationId": "client_1",
    "localOrganizationIds": [
    "F323333",
    "F242146"
    ],
    "organizationId": 291524
    },
    "inspectionData": {
    "inspectionHistories": [
    {
    "caseNumber": "178292020-04-16MAgarmentCo.,LtdDUPRO",
    "date": "2021-04-29",
    "result": "fail"
    }
    ],
    "inspectionLasted": {
    "caseNumber": "178292020-04-16MAgarmentCo.,LtdDUPRO",
    "date": "2021-04-29",
    "result": "fail"
    }
    },
    "riskLevelData": {
    "highMax": 100,
    "highMin": 95,
    "lowMax": 11,
    "lowMin": 0,
    "mediumMax": 94,
    "mediumMin": 12
    },
    "scoreData": {
    "currentScore": {
    "labelData": [
    {
    "label": "Manual",
    "labelValue": "Low",
    "reasonCode": "Others - mandatory to fill in comments",
    "reasonType": "Others"
    }
    ],
    "processComputedDate": "2022-06-28",
    "score": 10.5
    },
    "lastScore": {
    "labelData": [
    {
    "label": "Manual",
    "labelValue": "Low",
    "reasonCode": "Others - mandatory to fill in comments",
    "reasonType": "Others"
    }
    ],
    "processComputedDate": "2022-06-28",
    "score": 10.5
    }
    }
    }