{
  "openapi": "3.0.3",
  "info": {
    "title": "ediFabric Cloud API",
    "version": "2.0",
    "description": "REST API that translates EDI files to JSON and back, validates them, and generates acknowledgments. v2 supports X12, HIPAA, EDIFACT, EANCOM, HL7, NCPDP and VDA. For X12 and HIPAA, v3 does the same with two operations, Parse and Build: see the v3 document.\n\n**Authentication.** Send your serial key in the `Ocp-Apim-Subscription-Key` header. To try the API without an account, use the demo serial key `bd96a836feca45cb91c86ee65d281f52`. It has a small daily quota. When it runs out, [sign up free for Community](https://www.edifabric.com/pricing.html) and use your own serial key.\n\n**Quota.** Each read, write, validate or acknowledge call is one operation. When the plan's quota is used up, the API returns 403.\n\n**Models.** The JSON property names come from the transaction's model. See the [EDI spec library](https://www.edifabric.com/specs/index.html) for each model and its OpenEDI template.",
    "termsOfService": "https://www.edifabric.com/files/eula.pdf",
    "contact": {
      "name": "ediFabric support",
      "url": "https://www.edifabric.com/support.html",
      "email": "support@edifabric.com"
    }
  },
  "externalDocs": {
    "description": "ediFabric Cloud documentation",
    "url": "https://www.edifabric.com/docs/edifabric-cloud/introduction.html"
  },
  "servers": [
    {
      "url": "https://api.edination.com/v2",
      "description": "ediFabric Cloud"
    },
    {
      "url": "https://api-{id}.edination.com/v2",
      "description": "Enterprise dedicated host",
      "variables": {
        "id": {
          "default": "id",
          "description": "The host id assigned with the Enterprise plan."
        }
      }
    }
  ],
  "security": [
    {
      "ApiKey": []
    }
  ],
  "tags": [
    {
      "name": "X12",
      "description": "Translate, validate and acknowledge X12 and HIPAA files.",
      "externalDocs": {
        "url": "https://www.edifabric.com/docs/edifabric-cloud/x12-operations.html"
      }
    },
    {
      "name": "EDIFACT",
      "description": "Translate, validate and acknowledge EDIFACT and EANCOM files.",
      "externalDocs": {
        "url": "https://www.edifabric.com/docs/edifabric-cloud/edifact-operations.html"
      }
    },
    {
      "name": "HL7",
      "description": "Translate and validate HL7 v2 files.",
      "externalDocs": {
        "url": "https://www.edifabric.com/docs/edifabric-cloud/hl7-operations.html"
      }
    },
    {
      "name": "NCPDP",
      "description": "Translate and validate NCPDP Telecommunication files.",
      "externalDocs": {
        "url": "https://www.edifabric.com/docs/edifabric-cloud/ncpdp-operations.html"
      }
    },
    {
      "name": "VDA",
      "description": "Translate and validate VDA files.",
      "externalDocs": {
        "url": "https://www.edifabric.com/docs/edifabric-cloud/vda-operations.html"
      }
    },
    {
      "name": "EDI Models",
      "description": "List, download, upload and delete EDI models.",
      "externalDocs": {
        "url": "https://www.edifabric.com/docs/edifabric-cloud/model-operations.html"
      }
    }
  ],
  "paths": {
    "/x12/read": {
      "post": {
        "tags": [
          "X12"
        ],
        "operationId": "x12Read",
        "summary": "Read X12",
        "description": "Convert X12 files to JSON.",
        "externalDocs": {
          "url": "https://www.edifabric.com/docs/edifabric-cloud/x12-operations.html#read-x12"
        },
        "parameters": [
          {
            "name": "ignoreNullValues",
            "in": "query",
            "description": "Whether to ignore all null values in the response. The default is false.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "continueOnError",
            "in": "query",
            "description": "Whether to continue reading if a corrupt interchange is encountered. The default is false.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "charSet",
            "in": "query",
            "description": "The encoding of the file contents. The default is utf-8. The available values are: unicodeFFFE, utf-32, utf-32BE, us-ascii, iso-8859-1, utf-7, utf-8, utf-16.",
            "schema": {
              "type": "string",
              "default": "utf-8"
            }
          },
          {
            "name": "model",
            "in": "query",
            "description": "The model to use. By default, the API will infer the model based on the transaction and version identifiers.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/octet-stream": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            },
            "multipart/form-data": {
              "schema": {
                "required": [
                  "fileName"
                ],
                "type": "object",
                "properties": {
                  "fileName": {
                    "type": "string",
                    "description": "The EDI file.",
                    "format": "binary"
                  }
                }
              }
            }
          },
          "required": true,
          "description": "The EDI file, as raw bytes or as a multipart form upload."
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/X12Interchange"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/x12/write": {
      "post": {
        "tags": [
          "X12"
        ],
        "operationId": "x12Write",
        "summary": "Write X12",
        "description": "Convert JSON to X12 files.",
        "externalDocs": {
          "url": "https://www.edifabric.com/docs/edifabric-cloud/x12-operations.html#write-x12"
        },
        "parameters": [
          {
            "name": "preserveWhitespace",
            "in": "query",
            "description": "Whether to preserve blank data elements so the output contains multiple delimiters instead of omitting any excess delimiters. The default is false.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "charSet",
            "in": "query",
            "description": "The encoding of the file contents. The default is utf-8. The available values are: unicodeFFFE, utf-32, utf-32BE, us-ascii, iso-8859-1, utf-7, utf-8, utf-16.",
            "schema": {
              "type": "string",
              "default": "utf-8"
            }
          },
          {
            "name": "postfix",
            "in": "query",
            "description": "The postfix to be applied at the end of each segment, just after the segment separator. This is usually a carriage return (CR), line feed (LF) or both. By default, there is no postfix.",
            "schema": {
              "type": "string",
              "default": ""
            }
          }
        ],
        "requestBody": {
          "description": "The X12Interchange object to translate to raw X12.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/X12Interchange"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/x12/validate": {
      "post": {
        "tags": [
          "X12"
        ],
        "operationId": "x12Validate",
        "summary": "Validate X12",
        "description": "Validate X12 messages.",
        "externalDocs": {
          "url": "https://www.edifabric.com/docs/edifabric-cloud/x12-operations.html#validate-x12"
        },
        "parameters": [
          {
            "name": "basicSyntax",
            "in": "query",
            "description": "All data elements with alpha (A) or alphanumeric (AN) data types are validated against a syntax set of allowed characters. The default syntax set is the Extended, hence the default for this parameter is false. By setting this to true, validation will use the Basic syntax set.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "syntaxSet",
            "in": "query",
            "description": "In case you need to validate against a syntax set, different than Basic and Extended, populate this field with all of the allowed symbols, url-escaped.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "skipTrailer",
            "in": "query",
            "description": "You are allowed to validate an X12Interchange with missing interchange, functional group or transaction trailers (IEA, GE, SE). This is because these will be automatically applied during the Write oprtaion so you don't have to worry about counting the items. By default it is expected that all trailers are present when you validate the X12Interchange and by default, this is set to false. To skip all trailer validation, set this to true.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "structureOnly",
            "in": "query",
            "description": "This is equivalent to HIPAA Snip level 1, where only the structure and control segments are validated. By default, this is set to false, however if you want to not validate things such as data types, number of repeteitions or dates, set this to true.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "requestBody": {
          "description": "The X12Interchange object to validate.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/X12Interchange"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperationResult"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/x12/ack": {
      "post": {
        "tags": [
          "X12"
        ],
        "operationId": "x12Ack",
        "summary": "Acknowledge X12",
        "description": "Generate X12 acknowledgments.",
        "externalDocs": {
          "url": "https://www.edifabric.com/docs/edifabric-cloud/x12-operations.html#acknowledge-x12"
        },
        "parameters": [
          {
            "name": "basicSyntax",
            "in": "query",
            "description": "All data elements with alpha (A) or alphanumeric (AN) data types are validated against a syntax set of allowed characters. The default syntax set is the Extended, hence the default for this parameter is false. By setting this to true, validation will use the Basic syntax set.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "syntaxSet",
            "in": "query",
            "description": "In case you need to validate against a syntax set, different than Basic and Extended, populate this field with all of the allowed symbols, url-escaped.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "detectDuplicates",
            "in": "query",
            "description": "If you need to detect duplicates as in functional groups or transactions with the same reference number, set this flag to true. The default is false.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "tranRefNumber",
            "in": "query",
            "description": "The default is 1. Set this to whatever the 997 or 999 X12Interchange.ST.TransactionSetControlNumber_02 needs to be. In case there are multiple acknowledgments (for multiple functional groups), this will be starting reference number and every subsequent acknowledgment will have the previous reference number incremented with 1.",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "interchangeRefNumber",
            "in": "query",
            "description": "The default is 1. Set this to whatever the 997 or 999 X12Interchange.ISA.InterchangeControlNumber_13 needs to be.",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "ackForValidTrans",
            "in": "query",
            "description": "The default is false. Set this to true if you need AK2 loops included for all valid transaction as well. By default AK2 loops are generated only for invalid transactions.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "batchAcks",
            "in": "query",
            "description": "The default is true. Set this to false if you need to generate separate X12Interchange for each acknowledgment. By default all acknowledgments are batched in the same X12Interchange.",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "technicalAck",
            "in": "query",
            "description": "The default technical acknowledgment TA1 is generated according to X12Interchange.ISA.AcknowledgementRequested_14. You can either enforce it to always generate TA1s or suppress it to never generate any TA1s. This will override the flag in X12Interchange.ISA.AcknowledgementRequested_14. The available values are: default, enforce, suppress.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ack",
            "in": "query",
            "description": "The default value is 997. The type of acknowledgment being generated. Set this to 999 if you need to generate an implementation instead of functional acknowledgment. The available values are: 997, 999.",
            "schema": {
              "type": "string",
              "default": "997"
            }
          },
          {
            "name": "ak901isP",
            "in": "query",
            "description": "The value of the AK9's first element. By default it is \"E\". Set this to true if you want this value to be \"P\" instead.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "requestBody": {
          "description": "The X12Interchange object to acknowledge.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/X12Interchange"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/X12Interchange"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/edifact/read": {
      "post": {
        "tags": [
          "EDIFACT"
        ],
        "operationId": "edifactRead",
        "summary": "Read EDIFACT",
        "description": "Convert EDIFACT files to JSON.",
        "externalDocs": {
          "url": "https://www.edifabric.com/docs/edifabric-cloud/edifact-operations.html#read-edifact"
        },
        "parameters": [
          {
            "name": "ignoreNullValues",
            "in": "query",
            "description": "Whether to ignore all null values in the response. The default is false.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "continueOnError",
            "in": "query",
            "description": "Whether to continue reading if a corrupt interchange is encountered. The default is false.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "charSet",
            "in": "query",
            "description": "The encoding of the file contents. The default is utf-8. The available values are: unicodeFFFE, utf-32, utf-32BE, us-ascii, iso-8859-1, utf-7, utf-8, utf-16.",
            "schema": {
              "type": "string",
              "default": "utf-8"
            }
          },
          {
            "name": "model",
            "in": "query",
            "description": "The model to use. By default, the API will infer the model based on the transaction and version identifiers.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "eancomS3",
            "in": "query",
            "description": "The default syntax for EANCOM transactions. By default all EANCOM transactions will be translated and validated according to the rules of Syntax 4. Set this flag to true if you need Syntax 3 to be used.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/octet-stream": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            },
            "multipart/form-data": {
              "schema": {
                "required": [
                  "fileName"
                ],
                "type": "object",
                "properties": {
                  "fileName": {
                    "type": "string",
                    "description": "The EDI file.",
                    "format": "binary"
                  }
                }
              }
            }
          },
          "required": true,
          "description": "The EDI file, as raw bytes or as a multipart form upload."
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EdifactInterchange"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/edifact/write": {
      "post": {
        "tags": [
          "EDIFACT"
        ],
        "operationId": "edifactWrite",
        "summary": "Write EDIFACT",
        "description": "Convert JSON to EDIFACT files.",
        "externalDocs": {
          "url": "https://www.edifabric.com/docs/edifabric-cloud/edifact-operations.html#write-edifact"
        },
        "parameters": [
          {
            "name": "preserveWhitespace",
            "in": "query",
            "description": "Whether to preserve blank data elements so the output contains multiple delimiters instead of omitting any excess delimiters. The default is false.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "charSet",
            "in": "query",
            "description": "The encoding of the file contents. The default is utf-8. The available values are: unicodeFFFE, utf-32, utf-32BE, us-ascii, iso-8859-1, utf-7, utf-8, utf-16.",
            "schema": {
              "type": "string",
              "default": "utf-8"
            }
          },
          {
            "name": "postfix",
            "in": "query",
            "description": "The postfix to be applied at the end of each segment, just after the segment separator. This is usually a carriage return (CR), line feed (LF) or both. By default, there is no postfix.",
            "schema": {
              "type": "string",
              "default": ""
            }
          },
          {
            "name": "sameRepetionAndDataElement",
            "in": "query",
            "description": "Sometimes the same delimiter is used to denote data element separator and repetition separator as in IATA transactions. By default, this is false.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "eancomS3",
            "in": "query",
            "description": "The default syntax for EANCOM transactions. By default all EANCOM transactions will be translated and validated according to the rules of Syntax 4. Set this flag to true if you need Syntax 3 to be used.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "requestBody": {
          "description": "The EdifactInterchange object to translate to raw EDIFACT.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EdifactInterchange"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/edifact/validate": {
      "post": {
        "tags": [
          "EDIFACT"
        ],
        "operationId": "edifactValidate",
        "summary": "Validate EDIFACT",
        "description": "Validate EDIFACT messages.",
        "externalDocs": {
          "url": "https://www.edifabric.com/docs/edifabric-cloud/edifact-operations.html#validate-edifact"
        },
        "parameters": [
          {
            "name": "syntaxSet",
            "in": "query",
            "description": "In case you need to validate against a syntax set, different than UNOA and UNOB, populate this field with all of the allowed symbols, url-escaped. All data elements with alpha (A) or alphanumeric (AN) data types are validated against a syntax set of allowed characters. The supported syntax sets are UNOA and UNOB. The validator infers the correct syntax set from EdifactInterchange.UNB.SYNTAXIDENTIFIER_1.SyntaxIdentifier_1. The symbols added to this field will override the corresponding sets in both UNOA and UNOB.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "skipTrailer",
            "in": "query",
            "description": "You are allowed to validate an EdifactInterchange with missing interchange, functional group or transaction trailers (UNZ, UNE, UNT). This is because these will be automatically applied during the Write oprtaion so you don't have to worry about counting the items. By default it is expected that all trailers are present when you validate the EdifactInterchange and by default, this is set to false. To skip all trailer validation, set this to true.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "structureOnly",
            "in": "query",
            "description": "This is equivalent to HIPAA Snip level 1, where only the structure and control segments are validated. By default, this is set to false, however if you want to not validate things such as data types, number of repeteitions or dates, set this to true.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "decimalPoint",
            "in": "query",
            "description": "This could be either point . (default) or comma ,.",
            "schema": {
              "type": "string",
              "default": "."
            }
          },
          {
            "name": "eancomS3",
            "in": "query",
            "description": "The default syntax for EANCOM transactions. By default all EANCOM transactions will be validated according to the rules of Syntax 4. Set this flag to true if you need Syntax 3 to be used.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "requestBody": {
          "description": "The EdifactInterchange object to validate.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EdifactInterchange"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperationResult"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/edifact/ack": {
      "post": {
        "tags": [
          "EDIFACT"
        ],
        "operationId": "edifactAck",
        "summary": "Acknowledge EDIFACT",
        "description": "Generate EDIFACT acknowledgments.",
        "externalDocs": {
          "url": "https://www.edifabric.com/docs/edifabric-cloud/edifact-operations.html#acknowledge-edifact"
        },
        "parameters": [
          {
            "name": "syntaxSet",
            "in": "query",
            "description": "In case you need to validate against a syntax set, different than UNOA and UNOB, populate this field with all of the allowed symbols, url-escaped. All data elements with alpha (A) or alphanumeric (AN) data types are validated against a syntax set of allowed characters. The supported syntax sets are UNOA and UNOB. The validator infers the correct syntax set from EdifactInterchange.UNB.SYNTAXIDENTIFIER_1.SyntaxIdentifier_1. The symbols added to this field will override the corresponding sets in both UNOA and UNOB.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "detectDuplicates",
            "in": "query",
            "description": "If you need to detect duplicates as in functional groups or transactions with the same reference number, set this flag to true. The default is false.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "tranRefNumber",
            "in": "query",
            "description": "The default is 1. Set this to whatever the CONTRL UNH.MessageReferenceNumber_01 needs to be.",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "interchangeRefNumber",
            "in": "query",
            "description": "The default is 1. Set this to whatever the CONTRL EdifactInterchange.UNB.InterchangeControlReference_5 needs to be.",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "ackForValidTrans",
            "in": "query",
            "description": "The default is false. Set this to true if you need UCM loops included for all valid transaction as well. By default UCM loops are generated only for invalid transactions.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "batchAcks",
            "in": "query",
            "description": "The default is true. Set this to false if you need to generate separate EdifactInterchange for each acknowledgment. By default all acknowledgments are batched in the same EdifactInterchange.",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "technicalAck",
            "in": "query",
            "description": "The default technical acknowledgment CONTRL is generated according to EdifactInterchange.UNB.AcknowledgementRequest_9. You can either enforce it to always generate technical CONTRLs or suppress it to never generate any technical CONTRLs. This will override the flag in EdifactInterchange.UNB.AcknowledgementRequest_9. The available values are: default, enforce, suppress.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "eancomS3",
            "in": "query",
            "description": "The default syntax for EANCOM transactions. By default all EANCOM transactions will be validated according to the rules of Syntax 4. Set this flag to true if you need Syntax 3 to be used.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "requestBody": {
          "description": "The EdifactInterchange object to acknowledge.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/EdifactInterchange"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EdifactInterchange"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/hl7/read": {
      "post": {
        "tags": [
          "HL7"
        ],
        "operationId": "hl7Read",
        "summary": "Read HL7",
        "description": "Convert HL7 files to JSON.",
        "externalDocs": {
          "url": "https://www.edifabric.com/docs/edifabric-cloud/hl7-operations.html#read-hl7"
        },
        "parameters": [
          {
            "name": "ignoreNullValues",
            "in": "query",
            "description": "Whether to ignore all null values in the response. The default is false.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "continueOnError",
            "in": "query",
            "description": "Whether to continue reading if a corrupt interchange is encountered. The default is false.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "charSet",
            "in": "query",
            "description": "The encoding of the file contents. The default is utf-8. The available values are: unicodeFFFE, utf-32, utf-32BE, us-ascii, iso-8859-1, utf-7, utf-8, utf-16.",
            "schema": {
              "type": "string",
              "default": "utf-8"
            }
          },
          {
            "name": "model",
            "in": "query",
            "description": "The model to use. By default, the API will infer the model based on the transaction and version identifiers.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/octet-stream": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            },
            "multipart/form-data": {
              "schema": {
                "required": [
                  "fileName"
                ],
                "type": "object",
                "properties": {
                  "fileName": {
                    "type": "string",
                    "description": "The EDI file.",
                    "format": "binary"
                  }
                }
              }
            }
          },
          "required": true,
          "description": "The EDI file, as raw bytes or as a multipart form upload."
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Hl7Interchange"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/hl7/write": {
      "post": {
        "tags": [
          "HL7"
        ],
        "operationId": "hl7Write",
        "summary": "Write HL7",
        "description": "Convert JSON to HL7 files.",
        "externalDocs": {
          "url": "https://www.edifabric.com/docs/edifabric-cloud/hl7-operations.html#write-hl7"
        },
        "parameters": [
          {
            "name": "preserveWhitespace",
            "in": "query",
            "description": "Whether to preserve blank data elements so the output contains multiple delimiters instead of omitting any excess delimiters. The default is false.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "charSet",
            "in": "query",
            "description": "The encoding of the file contents. The default is utf-8. The available values are: unicodeFFFE, utf-32, utf-32BE, us-ascii, iso-8859-1, utf-7, utf-8, utf-16.",
            "schema": {
              "type": "string",
              "default": "utf-8"
            }
          },
          {
            "name": "postfix",
            "in": "query",
            "description": "The postfix to be applied at the end of each segment, just after the segment separator. This is usually a carriage return (CR), line feed (LF) or both. By default, there is no postfix.",
            "schema": {
              "type": "string",
              "default": ""
            }
          }
        ],
        "requestBody": {
          "description": "The HL7Interchange object to translate to raw HL7.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Hl7Interchange"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/hl7/validate": {
      "post": {
        "tags": [
          "HL7"
        ],
        "operationId": "hl7Validate",
        "summary": "Validate HL7",
        "description": "Validate HL7 messages.",
        "externalDocs": {
          "url": "https://www.edifabric.com/docs/edifabric-cloud/hl7-operations.html#validate-hl7"
        },
        "parameters": [
          {
            "name": "syntaxSet",
            "in": "query",
            "description": "In case you need to validate against a syntax set, different than Basic and Extended, populate this field with all of the allowed symbols, url-escaped.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "skipTrailer",
            "in": "query",
            "description": "You are allowed to validate an Hl7Interchange with missing file or batch trailers (FTS, BTS). This is because these will be automatically applied during the Write oprtaion so you don't have to worry about counting the items. By default it is expected that all trailers are present when you validate the X12Interchange and by default, this is set to false. To skip all trailer validation, set this to true.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "structureOnly",
            "in": "query",
            "description": "This is equivalent to HIPAA Snip level 1, where only the structure and control segments are validated. By default, this is set to false, however if you want to not validate things such as data types, number of repeteitions or dates, set this to true.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "requestBody": {
          "description": "The Hl7Interchange object to validate.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Hl7Interchange"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperationResult"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/ncpdp/read": {
      "post": {
        "tags": [
          "NCPDP"
        ],
        "operationId": "ncpdpRead",
        "summary": "Read NCPDP",
        "description": "Convert NCPDP files to JSON.",
        "externalDocs": {
          "url": "https://www.edifabric.com/docs/edifabric-cloud/ncpdp-operations.html#read-ncpdp"
        },
        "parameters": [
          {
            "name": "ignoreNullValues",
            "in": "query",
            "description": "Whether to ignore all null values in the response. The default is false.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "charSet",
            "in": "query",
            "description": "The encoding of the file contents. The default is utf-8. The available values are: unicodeFFFE, utf-32, utf-32BE, us-ascii, iso-8859-1, utf-7, utf-8, utf-16.",
            "schema": {
              "type": "string",
              "default": "utf-8"
            }
          },
          {
            "name": "model",
            "in": "query",
            "description": "The model to use. By default, the API will infer the model based on the transaction and version identifiers.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/octet-stream": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            },
            "multipart/form-data": {
              "schema": {
                "required": [
                  "fileName"
                ],
                "type": "object",
                "properties": {
                  "fileName": {
                    "type": "string",
                    "description": "The EDI file.",
                    "format": "binary"
                  }
                }
              }
            }
          },
          "required": true,
          "description": "The EDI file, as raw bytes or as a multipart form upload."
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/NcpdpTransmission"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/ncpdp/write": {
      "post": {
        "tags": [
          "NCPDP"
        ],
        "operationId": "ncpdpWrite",
        "summary": "Write NCPDP",
        "description": "Convert JSON to NCPDP files.",
        "externalDocs": {
          "url": "https://www.edifabric.com/docs/edifabric-cloud/ncpdp-operations.html#write-ncpdp"
        },
        "parameters": [
          {
            "name": "noG1",
            "in": "query",
            "description": "Whether to omit the transaction header G1. The default is false.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "charSet",
            "in": "query",
            "description": "The encoding of the file contents. The default is utf-8. The available values are: unicodeFFFE, utf-32, utf-32BE, us-ascii, iso-8859-1, utf-7, utf-8, utf-16.",
            "schema": {
              "type": "string",
              "default": "utf-8"
            }
          },
          {
            "name": "trailerMessage",
            "in": "query",
            "description": "The optional message in the transmission trailer.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "description": "The NcpdpTransmission object to translate to raw NCPDP.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NcpdpTransmission"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/ncpdp/validate": {
      "post": {
        "tags": [
          "NCPDP"
        ],
        "operationId": "ncpdpValidate",
        "summary": "Validate NCPDP",
        "description": "Validate NCPDP messages.",
        "externalDocs": {
          "url": "https://www.edifabric.com/docs/edifabric-cloud/ncpdp-operations.html#validate-ncpdp"
        },
        "parameters": [
          {
            "name": "syntaxSet",
            "in": "query",
            "description": "In case you need to validate against a syntax set, different than Default, populate this field with all of the allowed symbols, url-escaped.",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "structureOnly",
            "in": "query",
            "description": "This is equivalent to HIPAA Snip level 1, where only the structure and control segments are validated. By default, this is set to false, however if you want to not validate things such as data types, number of repeteitions or dates, set this to true.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          }
        ],
        "requestBody": {
          "description": "The NcpdpTransmission object to validate.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/NcpdpTransmission"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperationResult"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/vda/read": {
      "post": {
        "tags": [
          "VDA"
        ],
        "operationId": "vdaRead",
        "summary": "Read VDA",
        "description": "Convert VDA files to JSON.",
        "externalDocs": {
          "url": "https://www.edifabric.com/docs/edifabric-cloud/vda-operations.html#read-vda"
        },
        "parameters": [
          {
            "name": "ignoreNullValues",
            "in": "query",
            "description": "Whether to ignore all null values in the response. The default is false.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "continueOnError",
            "in": "query",
            "description": "Whether to continue reading if a corrupt interchange is encountered. The default is false.",
            "schema": {
              "type": "boolean",
              "default": false
            }
          },
          {
            "name": "charSet",
            "in": "query",
            "description": "The encoding of the file contents. The default is utf-8. The available values are: unicodeFFFE, utf-32, utf-32BE, us-ascii, iso-8859-1, utf-7, utf-8, utf-16.",
            "schema": {
              "type": "string",
              "default": "utf-8"
            }
          },
          {
            "name": "model",
            "in": "query",
            "description": "The model to use. By default, the API will infer the model based on the transaction and version identifiers.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/octet-stream": {
              "schema": {
                "type": "string",
                "format": "binary"
              }
            },
            "multipart/form-data": {
              "schema": {
                "required": [
                  "fileName"
                ],
                "type": "object",
                "properties": {
                  "fileName": {
                    "type": "string",
                    "description": "The EDI file.",
                    "format": "binary"
                  }
                }
              }
            }
          },
          "required": true,
          "description": "The EDI file, as raw bytes or as a multipart form upload."
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/FlatMessage"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/vda/write": {
      "post": {
        "tags": [
          "VDA"
        ],
        "operationId": "vdaWrite",
        "summary": "Write VDA",
        "description": "Convert JSON to VDA files.",
        "externalDocs": {
          "url": "https://www.edifabric.com/docs/edifabric-cloud/vda-operations.html#write-vda"
        },
        "parameters": [
          {
            "name": "charSet",
            "in": "query",
            "description": "The encoding of the file contents. The default is utf-8. The available values are: unicodeFFFE, utf-32, utf-32BE, us-ascii, iso-8859-1, utf-7, utf-8, utf-16.",
            "schema": {
              "type": "string",
              "default": "utf-8"
            }
          },
          {
            "name": "postfix",
            "in": "query",
            "description": "The postfix to be applied at the end of each segment, just after the segment separator. This is usually a carriage return (CR), line feed (LF) or both. By default, there is no postfix.",
            "schema": {
              "type": "string",
              "default": ""
            }
          }
        ],
        "requestBody": {
          "description": "The VDA object to translate to raw VDA.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FlatMessage"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/vda/validate": {
      "post": {
        "tags": [
          "VDA"
        ],
        "operationId": "vdaValidate",
        "summary": "Validate VDA",
        "description": "Validate VDA messages.",
        "externalDocs": {
          "url": "https://www.edifabric.com/docs/edifabric-cloud/vda-operations.html#validate-vda"
        },
        "requestBody": {
          "description": "The VDA object to validate.",
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/FlatMessage"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/OperationResult"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/models": {
      "get": {
        "tags": [
          "EDI Models"
        ],
        "operationId": "modelsList",
        "summary": "Get models",
        "description": "Retrieves all models for a subscription.",
        "externalDocs": {
          "url": "https://www.edifabric.com/docs/edifabric-cloud/model-operations.html#get-models"
        },
        "parameters": [
          {
            "name": "system",
            "in": "query",
            "description": "Whether to use the system models (true) or your custom uploaded models (false). The default is true.",
            "schema": {
              "type": "boolean",
              "default": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/EdiModel"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      },
      "post": {
        "tags": [
          "EDI Models"
        ],
        "operationId": "modelsUpload",
        "summary": "Upload model",
        "description": "Uploads a model file to a subscription. It must be a valid .NET assembly.",
        "externalDocs": {
          "url": "https://www.edifabric.com/docs/edifabric-cloud/model-operations.html#upload-model"
        },
        "requestBody": {
          "required": true,
          "description": "The model file, a .NET assembly.",
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "required": [
                  "fileName"
                ],
                "properties": {
                  "fileName": {
                    "type": "string",
                    "format": "binary",
                    "description": "The model file."
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/models/{id}": {
      "get": {
        "tags": [
          "EDI Models"
        ],
        "operationId": "modelsGet",
        "summary": "Get model",
        "description": "Retrieve a particular model file as a stream.",
        "externalDocs": {
          "url": "https://www.edifabric.com/docs/edifabric-cloud/model-operations.html#get-model"
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The model name.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The model file.",
            "content": {
              "application/octet-stream": {
                "schema": {
                  "type": "string",
                  "format": "binary"
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      },
      "delete": {
        "tags": [
          "EDI Models"
        ],
        "operationId": "modelsDelete",
        "summary": "Delete model",
        "description": "Deletes a particular model from the custom models.",
        "externalDocs": {
          "url": "https://www.edifabric.com/docs/edifabric-cloud/model-operations.html#delete-model"
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The model name.",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Success"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    },
    "/models/{id}/transactions": {
      "get": {
        "tags": [
          "EDI Models"
        ],
        "operationId": "modelsTransactions",
        "summary": "Get transactions",
        "description": "Retrieves all transactions in a model file.",
        "externalDocs": {
          "url": "https://www.edifabric.com/docs/edifabric-cloud/model-operations.html#get-transactions"
        },
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "description": "The model name.",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "system",
            "in": "query",
            "description": "Whether to use the system models (true) or your custom uploaded models (false). The default is true.",
            "schema": {
              "type": "boolean",
              "default": true
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The transactions in the model.",
            "content": {
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/ModelTransaction"
                  }
                }
              }
            }
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "403": {
            "$ref": "#/components/responses/Forbidden"
          },
          "500": {
            "$ref": "#/components/responses/ServerError"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKey": {
        "type": "apiKey",
        "in": "header",
        "name": "Ocp-Apim-Subscription-Key",
        "description": "Your serial key. The demo serial key `bd96a836feca45cb91c86ee65d281f52` works without an account and has a small daily quota."
      }
    },
    "schemas": {
      "BHS": {
        "type": "object",
        "properties": {
          "FieldSeparator_01": {
            "type": "string",
            "nullable": true
          },
          "BatchEncodingCharacters_02": {
            "type": "string",
            "nullable": true
          },
          "BatchSendingApplication_03": {
            "$ref": "#/components/schemas/BatchSendingApplication"
          },
          "BatchSendingFacility_04": {
            "$ref": "#/components/schemas/BatchSendingFacility"
          },
          "BatchReceivingApplication_05": {
            "$ref": "#/components/schemas/BatchReceivingApplication"
          },
          "BatchReceivingFacility_06": {
            "$ref": "#/components/schemas/BatchReceivingFacility"
          },
          "BatchCreationDateTime_07": {
            "type": "string",
            "nullable": true
          },
          "BatchSecurity_08": {
            "type": "string",
            "nullable": true
          },
          "BatchNameIDType_09": {
            "type": "string",
            "nullable": true
          },
          "BatchComment_10": {
            "type": "string",
            "nullable": true
          },
          "BatchControlID_11": {
            "type": "string",
            "nullable": true
          },
          "ReferenceBatchControlID_12": {
            "type": "string",
            "nullable": true
          },
          "BatchSendingNetworkAddress_13": {
            "$ref": "#/components/schemas/BatchSendingNetworkAddress"
          },
          "BatchReceivingNetworkAddress_14": {
            "$ref": "#/components/schemas/BatchReceivingNetworkAddress"
          }
        },
        "additionalProperties": false
      },
      "BTS": {
        "type": "object",
        "properties": {
          "BatchMessageCount_01": {
            "type": "string",
            "nullable": true
          },
          "BatchComment_02": {
            "type": "string",
            "nullable": true
          },
          "BatchTotals_03": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BatchReceivingApplication": {
        "type": "object",
        "properties": {
          "NamespaceID_01": {
            "type": "string",
            "nullable": true
          },
          "UniversalID_02": {
            "type": "string",
            "nullable": true
          },
          "UniversalIDType_03": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BatchReceivingFacility": {
        "type": "object",
        "properties": {
          "NamespaceID_01": {
            "type": "string",
            "nullable": true
          },
          "UniversalID_02": {
            "type": "string",
            "nullable": true
          },
          "UniversalIDType_03": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BatchReceivingNetworkAddress": {
        "type": "object",
        "properties": {
          "NamespaceID_01": {
            "type": "string",
            "nullable": true
          },
          "UniversalID_02": {
            "type": "string",
            "nullable": true
          },
          "UniversalIDType_03": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BatchSendingApplication": {
        "type": "object",
        "properties": {
          "NamespaceID_01": {
            "type": "string",
            "nullable": true
          },
          "UniversalID_02": {
            "type": "string",
            "nullable": true
          },
          "UniversalIDType_03": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BatchSendingFacility": {
        "type": "object",
        "properties": {
          "NamespaceID_01": {
            "type": "string",
            "nullable": true
          },
          "UniversalID_02": {
            "type": "string",
            "nullable": true
          },
          "UniversalIDType_03": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "BatchSendingNetworkAddress": {
        "type": "object",
        "properties": {
          "NamespaceID_01": {
            "type": "string",
            "nullable": true
          },
          "UniversalID_02": {
            "type": "string",
            "nullable": true
          },
          "UniversalIDType_03": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "EdiModel": {
        "type": "object",
        "properties": {
          "Name": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "DateCreated": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "Links": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Link"
            },
            "nullable": true,
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "EdifactGroup": {
        "required": [
          "Transactions"
        ],
        "type": "object",
        "properties": {
          "UNG": {
            "$ref": "#/components/schemas/UNG"
          },
          "Transactions": {
            "type": "array",
            "items": {}
          },
          "UNETrailers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UNE"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "EdifactInterchange": {
        "required": [
          "Groups",
          "UNB"
        ],
        "type": "object",
        "properties": {
          "UNA": {
            "$ref": "#/components/schemas/UNA"
          },
          "UNB": {
            "$ref": "#/components/schemas/UNB"
          },
          "Groups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/EdifactGroup"
            }
          },
          "UNZTrailers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/UNZ"
            },
            "nullable": true
          },
          "Result": {
            "$ref": "#/components/schemas/OperationResult"
          }
        },
        "additionalProperties": false
      },
      "ErrorDetails": {
        "type": "object",
        "properties": {
          "Code": {
            "type": "integer",
            "format": "int32"
          },
          "Details": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false,
        "description": "The error body. `Code` is the HTTP status code and `Details` has the reasons."
      },
      "FHS": {
        "type": "object",
        "properties": {
          "FieldSeparator_01": {
            "type": "string",
            "nullable": true
          },
          "FileEncodingCharacters_02": {
            "type": "string",
            "nullable": true
          },
          "FileSendingApplication_03": {
            "$ref": "#/components/schemas/FileSendingApplication"
          },
          "FileSendingFacility_04": {
            "$ref": "#/components/schemas/FileSendingFacility"
          },
          "FileReceivingApplication_05": {
            "$ref": "#/components/schemas/FileReceivingApplication"
          },
          "FileReceivingFacility_06": {
            "$ref": "#/components/schemas/FileReceivingFacility"
          },
          "FileCreationDateTime_07": {
            "type": "string",
            "nullable": true
          },
          "FileSecurity_08": {
            "type": "string",
            "nullable": true
          },
          "FileNameID_09": {
            "type": "string",
            "nullable": true
          },
          "FileHeaderComment_10": {
            "type": "string",
            "nullable": true
          },
          "FileControlID_11": {
            "type": "string",
            "nullable": true
          },
          "ReferenceFileControlID_12": {
            "type": "string",
            "nullable": true
          },
          "FileSendingNetworkAddress_13": {
            "$ref": "#/components/schemas/FileSendingNetworkAddress"
          },
          "FileReceivingNetworkAddress_14": {
            "$ref": "#/components/schemas/FileReceivingNetworkAddress"
          }
        },
        "additionalProperties": false
      },
      "FTS": {
        "type": "object",
        "properties": {
          "FileBatchCount_01": {
            "type": "string",
            "nullable": true
          },
          "FileTrailerComment_02": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "FileReceivingApplication": {
        "type": "object",
        "properties": {
          "NamespaceID_01": {
            "type": "string",
            "nullable": true
          },
          "UniversalID_02": {
            "type": "string",
            "nullable": true
          },
          "UniversalIDType_03": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "FileReceivingFacility": {
        "type": "object",
        "properties": {
          "NamespaceID_01": {
            "type": "string",
            "nullable": true
          },
          "UniversalID_02": {
            "type": "string",
            "nullable": true
          },
          "UniversalIDType_03": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "FileReceivingNetworkAddress": {
        "type": "object",
        "properties": {
          "NamespaceID_01": {
            "type": "string",
            "nullable": true
          },
          "UniversalID_02": {
            "type": "string",
            "nullable": true
          },
          "UniversalIDType_03": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "FileSendingApplication": {
        "type": "object",
        "properties": {
          "NamespaceID_01": {
            "type": "string",
            "nullable": true
          },
          "UniversalID_02": {
            "type": "string",
            "nullable": true
          },
          "UniversalIDType_03": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "FileSendingFacility": {
        "type": "object",
        "properties": {
          "NamespaceID_01": {
            "type": "string",
            "nullable": true
          },
          "UniversalID_02": {
            "type": "string",
            "nullable": true
          },
          "UniversalIDType_03": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "FileSendingNetworkAddress": {
        "type": "object",
        "properties": {
          "NamespaceID_01": {
            "type": "string",
            "nullable": true
          },
          "UniversalID_02": {
            "type": "string",
            "nullable": true
          },
          "UniversalIDType_03": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "FlatMessage": {
        "type": "object",
        "properties": {
          "Id": {
            "type": "string",
            "nullable": true
          },
          "Value": {
            "nullable": true
          },
          "Result": {
            "$ref": "#/components/schemas/OperationResult"
          }
        },
        "additionalProperties": false
      },
      "GE": {
        "type": "object",
        "properties": {
          "NumberOfIncludedSets_1": {
            "type": "string",
            "nullable": true
          },
          "GroupControlNumber_2": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "GS": {
        "type": "object",
        "properties": {
          "CodeIdentifyingInformationType_1": {
            "type": "string",
            "nullable": true
          },
          "SenderIDCode_2": {
            "type": "string",
            "nullable": true
          },
          "ReceiverIDCode_3": {
            "type": "string",
            "nullable": true
          },
          "Date_4": {
            "type": "string",
            "nullable": true
          },
          "Time_5": {
            "type": "string",
            "nullable": true
          },
          "GroupControlNumber_6": {
            "type": "string",
            "nullable": true
          },
          "TransactionTypeCode_7": {
            "type": "string",
            "nullable": true
          },
          "VersionAndRelease_8": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Hl7Group": {
        "required": [
          "Transactions"
        ],
        "type": "object",
        "properties": {
          "BHS": {
            "$ref": "#/components/schemas/BHS"
          },
          "Transactions": {
            "type": "array",
            "items": {}
          },
          "BTSTrailers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/BTS"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Hl7Interchange": {
        "required": [
          "Groups"
        ],
        "type": "object",
        "properties": {
          "FHS": {
            "$ref": "#/components/schemas/FHS"
          },
          "Groups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Hl7Group"
            }
          },
          "FTSTrailers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/FTS"
            },
            "nullable": true
          },
          "Result": {
            "$ref": "#/components/schemas/OperationResult"
          }
        },
        "additionalProperties": false
      },
      "IEA": {
        "type": "object",
        "properties": {
          "NumberOfIncludedGroups_1": {
            "type": "string",
            "nullable": true
          },
          "InterchangeControlNumber_2": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ISA": {
        "type": "object",
        "properties": {
          "AuthorizationInformationQualifier_1": {
            "type": "string",
            "nullable": true
          },
          "AuthorizationInformation_2": {
            "type": "string",
            "nullable": true
          },
          "SecurityInformationQualifier_3": {
            "type": "string",
            "nullable": true
          },
          "SecurityInformation_4": {
            "type": "string",
            "nullable": true
          },
          "SenderIDQualifier_5": {
            "type": "string",
            "nullable": true
          },
          "InterchangeSenderID_6": {
            "type": "string",
            "nullable": true
          },
          "ReceiverIDQualifier_7": {
            "type": "string",
            "nullable": true
          },
          "InterchangeReceiverID_8": {
            "type": "string",
            "nullable": true
          },
          "InterchangeDate_9": {
            "type": "string",
            "nullable": true
          },
          "InterchangeTime_10": {
            "type": "string",
            "nullable": true
          },
          "InterchangeControlStandardsIdentifier_11": {
            "type": "string",
            "nullable": true
          },
          "InterchangeControlVersionNumber_12": {
            "type": "string",
            "nullable": true
          },
          "InterchangeControlNumber_13": {
            "type": "string",
            "nullable": true
          },
          "AcknowledgementRequested_14": {
            "type": "string",
            "nullable": true
          },
          "UsageIndicator_15": {
            "type": "string",
            "nullable": true
          },
          "ComponentElementSeparator_16": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Link": {
        "type": "object",
        "properties": {
          "Rel": {
            "type": "string",
            "nullable": true
          },
          "Href": {
            "type": "string",
            "nullable": true
          },
          "Action": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ModelTransaction": {
        "type": "object",
        "description": "A transaction in a model.",
        "properties": {
          "Id": {
            "type": "string",
            "description": "The transaction identifier, for example 837P or INVOIC."
          },
          "Model": {
            "type": "string",
            "description": "The transaction's class in the model, for example EdiNation.X12.HIPAA005010.TS837P."
          }
        }
      },
      "NcpdpTransmission": {
        "required": [
          "Transactions"
        ],
        "type": "object",
        "properties": {
          "TransmissionHeader": {
            "$ref": "#/components/schemas/TransmissionHeader"
          },
          "Transactions": {
            "type": "array",
            "items": {}
          },
          "TransmissionTrailer": {
            "$ref": "#/components/schemas/TransmissionTrailer"
          },
          "Result": {
            "$ref": "#/components/schemas/OperationResult"
          }
        },
        "additionalProperties": false
      },
      "OperationDetail": {
        "type": "object",
        "properties": {
          "Index": {
            "type": "integer",
            "format": "int32"
          },
          "TransactionIndex": {
            "type": "integer",
            "format": "int32"
          },
          "TransactionRef": {
            "type": "string",
            "nullable": true
          },
          "SpecRef": {
            "type": "string",
            "nullable": true
          },
          "SegmentId": {
            "type": "string",
            "nullable": true
          },
          "DataElementId": {
            "type": "string",
            "nullable": true
          },
          "DataElementIndex": {
            "type": "integer",
            "format": "int32"
          },
          "CompositeIndex": {
            "type": "integer",
            "format": "int32"
          },
          "RepIndex": {
            "type": "integer",
            "format": "int32"
          },
          "Value": {
            "type": "string",
            "nullable": true
          },
          "Message": {
            "type": "string",
            "nullable": true
          },
          "Status": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "OperationResult": {
        "type": "object",
        "properties": {
          "LastIndex": {
            "type": "integer",
            "format": "int32"
          },
          "Details": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/OperationDetail"
            },
            "nullable": true,
            "readOnly": true
          },
          "Status": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          }
        },
        "additionalProperties": false
      },
      "S001": {
        "type": "object",
        "properties": {
          "SyntaxIdentifier_1": {
            "type": "string",
            "nullable": true
          },
          "SyntaxVersionNumber_2": {
            "type": "string",
            "nullable": true
          },
          "ServiceCodeListDirectoryVersionNumber_3": {
            "type": "string",
            "nullable": true
          },
          "CharacterEncoding_4": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "S002": {
        "type": "object",
        "properties": {
          "InterchangeSenderIdentification_1": {
            "type": "string",
            "nullable": true
          },
          "IdentificationCodeQualifier_2": {
            "type": "string",
            "nullable": true
          },
          "InterchangeSenderInternalIdentification_3": {
            "type": "string",
            "nullable": true
          },
          "InterchangeSenderInternalSubIdentification_4": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "S003": {
        "type": "object",
        "properties": {
          "InterchangeRecipientIdentification_1": {
            "type": "string",
            "nullable": true
          },
          "IdentificationCodeQualifier_2": {
            "type": "string",
            "nullable": true
          },
          "InterchangeRecipientInternalIdentification_3": {
            "type": "string",
            "nullable": true
          },
          "InterchangeRecipientInternalSubIdentification_4": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "S004": {
        "type": "object",
        "properties": {
          "Date_1": {
            "type": "string",
            "nullable": true
          },
          "Time_2": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "S005": {
        "type": "object",
        "properties": {
          "RecipientReferencePassword_1": {
            "type": "string",
            "nullable": true
          },
          "RecipientReferencePasswordQualifier_2": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "S006": {
        "type": "object",
        "properties": {
          "ApplicationSenderIdentification_1": {
            "type": "string",
            "nullable": true
          },
          "IdentificationCodeQualifier_2": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "S007": {
        "type": "object",
        "properties": {
          "ApplicationRecipientIdentification_1": {
            "type": "string",
            "nullable": true
          },
          "IdentificationCodeQualifier_2": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "S008": {
        "type": "object",
        "properties": {
          "MessageVersionNumber_1": {
            "type": "string",
            "nullable": true
          },
          "MessageReleaseNumber_2": {
            "type": "string",
            "nullable": true
          },
          "AssociationAssignedCode_3": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TA1": {
        "type": "object",
        "properties": {
          "InterchangeControlNumber_1": {
            "type": "string",
            "nullable": true
          },
          "InterchangeDate_2": {
            "type": "string",
            "nullable": true
          },
          "InterchangeTime_3": {
            "type": "string",
            "nullable": true
          },
          "InterchangeAcknowledgmentCode_4": {
            "type": "string",
            "nullable": true
          },
          "InterchangeNoteCode_5": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TransmissionHeader": {
        "type": "object",
        "properties": {
          "TransmissionType_1": {
            "type": "string",
            "nullable": true
          },
          "SenderId_2": {
            "type": "string",
            "nullable": true
          },
          "BatchNumber_3": {
            "type": "string",
            "nullable": true
          },
          "CreationDate_4": {
            "type": "string",
            "nullable": true
          },
          "CreationTime_5": {
            "type": "string",
            "nullable": true
          },
          "FileType_6": {
            "type": "string",
            "nullable": true
          },
          "Version_7": {
            "type": "string",
            "nullable": true
          },
          "ReceiverId_8": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "TransmissionTrailer": {
        "type": "object",
        "properties": {
          "BatchNumber_1": {
            "type": "string",
            "nullable": true
          },
          "RecordCount_2": {
            "type": "string",
            "nullable": true
          },
          "Message_3": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UNA": {
        "type": "object",
        "properties": {
          "ComponentDataElement": {
            "type": "string"
          },
          "DataElement": {
            "type": "string"
          },
          "DecimalNotation": {
            "type": "string"
          },
          "ReleaseIndicator": {
            "type": "string"
          },
          "Reserved": {
            "type": "string"
          },
          "Segment": {
            "type": "string"
          }
        },
        "additionalProperties": false
      },
      "UNB": {
        "type": "object",
        "properties": {
          "SYNTAXIDENTIFIER_1": {
            "$ref": "#/components/schemas/S001"
          },
          "INTERCHANGESENDER_2": {
            "$ref": "#/components/schemas/S002"
          },
          "INTERCHANGERECIPIENT_3": {
            "$ref": "#/components/schemas/S003"
          },
          "DATEANDTIMEOFPREPARATION_4": {
            "$ref": "#/components/schemas/S004"
          },
          "InterchangeControlReference_5": {
            "type": "string",
            "nullable": true
          },
          "RECIPIENTSREFERENCEPASSWORDDETAILS_6": {
            "$ref": "#/components/schemas/S005"
          },
          "ApplicationReference_7": {
            "type": "string",
            "nullable": true
          },
          "ProcessingPriorityCode_8": {
            "type": "string",
            "nullable": true
          },
          "AcknowledgementRequest_9": {
            "type": "string",
            "nullable": true
          },
          "InterchangeAgreementIdentifier_10": {
            "type": "string",
            "nullable": true
          },
          "TestIndicator_11": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UNE": {
        "type": "object",
        "properties": {
          "GroupControlCount_1": {
            "type": "string",
            "nullable": true
          },
          "GroupReferenceNumber_2": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UNG": {
        "type": "object",
        "properties": {
          "MessageGroupIdentification_1": {
            "type": "string",
            "nullable": true
          },
          "APPLICATIONSENDERIDENTIFICATION_2": {
            "$ref": "#/components/schemas/S006"
          },
          "APPLICATIONRECIPIENTIDENTIFICATION_3": {
            "$ref": "#/components/schemas/S007"
          },
          "DATEANDTIMEOFPREPARATION_4": {
            "$ref": "#/components/schemas/S004"
          },
          "GroupReferenceNumber_5": {
            "type": "string",
            "nullable": true
          },
          "ControllingAgency_6": {
            "type": "string",
            "nullable": true
          },
          "MESSAGEVERSION_7": {
            "$ref": "#/components/schemas/S008"
          },
          "ApplicationPassword_8": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UNZ": {
        "type": "object",
        "properties": {
          "InterchangeControlCount_1": {
            "type": "string",
            "nullable": true
          },
          "InterchangeControlReference_2": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "X12Group": {
        "required": [
          "GS",
          "Transactions"
        ],
        "type": "object",
        "properties": {
          "GS": {
            "$ref": "#/components/schemas/GS"
          },
          "Transactions": {
            "type": "array",
            "items": {}
          },
          "GETrailers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/GE"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "X12Interchange": {
        "required": [
          "DataElementDelimiter",
          "Groups",
          "ISA",
          "SegmentDelimiter"
        ],
        "type": "object",
        "properties": {
          "SegmentDelimiter": {
            "type": "string"
          },
          "DataElementDelimiter": {
            "type": "string"
          },
          "ISA": {
            "$ref": "#/components/schemas/ISA"
          },
          "TA1": {
            "$ref": "#/components/schemas/TA1"
          },
          "Groups": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/X12Group"
            }
          },
          "IEATrailers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/IEA"
            },
            "nullable": true
          },
          "Result": {
            "$ref": "#/components/schemas/OperationResult"
          }
        },
        "additionalProperties": false
      }
    },
    "responses": {
      "BadRequest": {
        "description": "The request is invalid. `Details` has the reason.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorDetails"
            }
          }
        }
      },
      "Unauthorized": {
        "description": "The `Ocp-Apim-Subscription-Key` header is missing or the key is invalid."
      },
      "Forbidden": {
        "description": "The plan's operation quota is used up. On Community, that is the shared daily quota."
      },
      "ServerError": {
        "description": "The operation failed, or something went wrong on our end. `Details` has the reason.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorDetails"
            }
          }
        }
      }
    }
  }
}
