{
    "$schema": "http://json-schema.org/draft-04/schema#",
    "description": "Comment describing your JSON Schema",
    "type": "object",
    "properties": {
        "correlationGuid": {
            "type": "string",
            "example": "59bc5c88-15f7-49a7-9687-73b05d2c50a4",
            "pattern": "^[a-f\\d]{8}-[a-f\\d]{4}-4[a-f\\d]{3}-[89ab][a-f\\d]{3}-[a-f\\d]{12}$"
        },
        "responderGLN": {
            "type": "string",
            "minLength": 13,
            "maxLength": 13,
            "example": 9071404000002
        },
        "data": {
            "type": "object",
            "required": [
                "verified"
            ],
            "properties": {
                "verified": {
                    "type": "boolean",
                    "description": "If ALL 4 elements of the PI were matched, always use 'true'. Else, provide 'false' with optional 'verifiedInfo'.",
                    "example": false
                },
                "verifiedInfo": {
                    "type": "string",
                    "description": "Optional. Only used if 'verified' is 'false' to represent which PI element(s) did not match  Instead of showing empty string or null, do NOT include unless there\u2019s value. Values: 001 \u2013 no matching sGTIN, 002 \u2013 no matching LOT, 003 \u2013 no matching Exp Date, 004 \u2013 no matching LOT & Exp date",
                    "enum": [
                        "001",
                        "002",
                        "003",
                        "004"
                    ],
                    "example": "002"
                },
                "additionalInfo": {
                    "type": "string",
                    "description": "Optional. Will be used if response is 'true' to provide additional information of the state of the sGTIN, like shipped, recalled, in-stock, decommissioned etc. These codes can be ranged from 001 to 099 with various statuses.  Instead of showing empty string or null, do NOT include unless there\u2019s value. Values: 001 \u2013 do not re-sell; recalled, 002 \u2013 placeholder for future use, 003 \u2013 placeholder for future use",
                    "enum": [
                        "001",
                        "002",
                        "003"
                    ]
                },
                "errorMessage": {
                    "type": "string",
                    "description": "Optional if needed (e.g. not the Responder for PI).  Instead of showing empty string or null, do NOT include unless there\u2019s value."
                }
            }
        }
    },
    "Response001": {
        "required": [
            "correlationGuid",
            "responderGLN",
            "data"
        ]
    }
}