{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/oracle-financials/json-schema/oracle-financials-supplier-invoice-monitoring-response-schema.json",
  "title": "SupplierInvoiceMonitoringResponse",
  "description": "The processing status and document details for a supplier invoice request.",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/oracle-financials-fusion-cloud-financials-openapi.json#/components/schemas/SupplierInvoiceMonitoringResponse",
  "type": "object",
  "required": [
    "status",
    "requestId",
    "files"
  ],
  "properties": {
    "status": {
      "type": "string",
      "description": "Overall processing status of the supplier invoice request. Valid values are IN-PROGRESS, PROCESSED, SUCCESS, and ERROR.",
      "enum": [
        "IN-PROGRESS",
        "PROCESSED",
        "SUCCESS",
        "ERROR"
      ]
    },
    "requestId": {
      "type": "string",
      "description": "Request identifier or flow execution identifier assigned to the supplier invoice request."
    },
    "processedAt": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time when processing was completed or last updated."
    },
    "createdAt": {
      "type": "string",
      "format": "date-time",
      "description": "The date and time when the supplier invoice request was created."
    },
    "files": {
      "type": "array",
      "description": "Incoming files associated with the supplier invoice request.",
      "items": {
        "$ref": "#/$defs/SupplierInvoiceFile"
      }
    },
    "additionalAttributes": {
      "type": "object",
      "description": "Additional flow-level information returned to the consumer.",
      "additionalProperties": true
    },
    "links": {
      "type": "array",
      "description": "Links associated with the supplier invoice request.",
      "items": {
        "$ref": "#/$defs/SupplierInvoiceDocIOLink"
      }
    }
  },
  "$defs": {
    "SupplierInvoiceDocIOLink": {
      "type": "object",
      "description": "A link to a related Document IO resource.",
      "required": [
        "rel",
        "href"
      ],
      "properties": {
        "rel": {
          "type": "string",
          "description": "Relationship between the link and the current document or request. Valid values are self, download, related, and collection.",
          "enum": [
            "self",
            "download",
            "related",
            "collection"
          ]
        },
        "href": {
          "type": "string",
          "format": "uri",
          "description": "Fully qualified URL of the related document or request."
        },
        "resourcePath": {
          "type": "string",
          "description": "Relative path of the related document or request."
        }
      }
    },
    "SupplierInvoiceFile": {
      "type": "object",
      "description": "Details of an incoming supplier invoice file.",
      "required": [
        "status",
        "fileName",
        "fileID",
        "createdAt"
      ],
      "properties": {
        "status": {
          "type": "string",
          "description": "Processing status of the file. Valid values are ORA_UPLOADED, IN-PROGRESS, and ERROR.",
          "enum": [
            "ORA_UPLOADED",
            "IN-PROGRESS",
            "ERROR"
          ]
        },
        "fileName": {
          "type": "string",
          "description": "Name of the incoming file."
        },
        "fileID": {
          "type": "string",
          "description": "Unique identifier of the incoming file."
        },
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time when the file record was created."
        },
        "links": {
          "type": "array",
          "description": "Links used to download or access the file.",
          "items": {
            "$ref": "#/$defs/SupplierInvoiceDocIOLink"
          }
        },
        "childs": {
          "type": "array",
          "description": "Logical documents generated from the incoming file.",
          "items": {
            "$ref": "#/$defs/SupplierInvoiceLogicalDocument"
          }
        }
      }
    },
    "SupplierInvoiceLogicalDocument": {
      "type": "object",
      "description": "Details of a logical supplier invoice document generated during processing.",
      "required": [
        "status",
        "fileName",
        "fileID",
        "createdAt"
      ],
      "properties": {
        "status": {
          "type": "string",
          "description": "Processing status of the logical document. Valid values are IN-PROGRESS, PROCESSED, and ERROR.",
          "enum": [
            "IN-PROGRESS",
            "PROCESSED",
            "ERROR"
          ]
        },
        "fileName": {
          "type": "string",
          "description": "Name of the logical document."
        },
        "fileID": {
          "type": "string",
          "description": "Unique identifier of the logical document."
        },
        "createdAt": {
          "type": "string",
          "format": "date-time",
          "description": "The date and time when the logical document was created."
        },
        "additionalDetails": {
          "type": "object",
          "description": "Additional information associated with the logical document.",
          "additionalProperties": true
        },
        "links": {
          "type": "array",
          "description": "Links used to download or access the logical document.",
          "items": {
            "$ref": "#/$defs/SupplierInvoiceDocIOLink"
          }
        }
      }
    }
  }
}