{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/optum/json-schema/optum-metadata-responses-schema.json",
  "title": "MetadataResponses",
  "x-generated": "2026-11-09",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/optum-attachment-status-api-openapi.yml#/components/schemas/MetadataResponses",
  "type": "array",
  "items": {
    "$ref": "#/$defs/MetadataResponse"
  },
  "$defs": {
    "DocumentDetails": {
      "type": "object",
      "properties": {
        "documentName": {
          "type": "string"
        },
        "controlNumber": {
          "type": "string"
        },
        "statusCode": {
          "type": [
            "string",
            "null"
          ]
        },
        "statusMessage": {
          "type": [
            "string",
            "null"
          ]
        },
        "statusTimeStamp": {
          "type": [
            "string",
            "null"
          ]
        },
        "rejectionInformation": {
          "type": [
            "string",
            "null"
          ]
        }
      }
    },
    "MetadataResponse": {
      "type": "object",
      "properties": {
        "traceId": {
          "type": "string"
        },
        "transactionDetails": {
          "type": "object",
          "allOf": [
            {
              "$ref": "#/$defs/TransactionDetails"
            }
          ]
        },
        "status": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/StatusDetails"
          }
        }
      }
    },
    "StatusDetails": {
      "type": "object",
      "properties": {
        "statusMessage": {
          "type": "string"
        },
        "statusCode": {
          "type": "string"
        },
        "statusTimeStamp": {
          "type": "string"
        },
        "documents": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/DocumentDetails"
          }
        }
      }
    },
    "TransactionDetails": {
      "type": "object",
      "properties": {
        "submitterId": {
          "type": "string"
        },
        "payerId": {
          "type": "string"
        },
        "payerName": {
          "type": "string"
        },
        "memberId": {
          "type": "string"
        },
        "patientFirstName": {
          "type": "string"
        },
        "patientLastName": {
          "type": "string"
        },
        "providerId": {
          "type": "string"
        },
        "providerFirstName": {
          "type": "string"
        },
        "providerLastName": {
          "type": "string"
        },
        "transactionSubmittedDate": {
          "type": "string"
        },
        "rejectionInformation": {
          "type": "string"
        }
      }
    }
  }
}