{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/ivans/main/json-schema/ivans-edoc-response-schema.json",
  "title": "EdocResponse",
  "x-generated": "2026-10-13",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/ivans-translation-openapi.json#/components/schemas/EdocResponse",
  "type": "object",
  "properties": {
    "transactionId": {
      "type": "string",
      "description": "Unique id for this transaction"
    },
    "code": {
      "type": "string",
      "enum": [
        "SUCCESS",
        "INCOMPLETE",
        "FAILURE"
      ]
    },
    "mailbox": {
      "type": "string"
    },
    "message": {
      "type": "string"
    },
    "documents": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/Document"
      }
    }
  },
  "$defs": {
    "Document": {
      "type": "object",
      "properties": {
        "documentId": {
          "type": "string"
        },
        "statusCode": {
          "type": "string",
          "enum": [
            "SUCCESS",
            "FAILURE",
            "NOTFOUND"
          ]
        }
      }
    }
  }
}