{
  "swagger": "2.0",
  "info": {
    "title": "Wke.ArqWin.A3AsesorAH.Api",
    "description": "Swagger for Wke.ArqWin.A3AsesorAH.Api",
    "version": "v1"
  },
  "paths": {
    "/api/LegalEntity/Create/{operationId}/{clientCode}/{installationCode}": {
      "post": {
        "tags": [
          "A3Asesor"
        ],
        "summary": "Enqueues an operation to create a new legal entity in Innuva.",
        "consumes": [
          "application/json"
        ],
        "produces": [
          "application/json"
        ],
        "parameters": [
          {
            "in": "path",
            "name": "operationId",
            "description": "Operation identifier.",
            "required": true,
            "type": "string"
          },
          {
            "in": "path",
            "name": "clientCode",
            "description": "Client code.",
            "required": true,
            "type": "string"
          },
          {
            "in": "path",
            "name": "installationCode",
            "description": "Installation code.",
            "required": true,
            "type": "string"
          },
          {
            "in": "body",
            "name": "body",
            "description": "DTO with legal entity data.",
            "schema": {
              "$ref": "#/definitions/InnuvaLegalEntityDto"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "The legal entity was created successfully.",
            "schema": {
              "$ref": "#/definitions/InnuvaLegalEntityDto"
            }
          },
          "500": {
            "description": "An error occurred while creating the legal entity."
          }
        }
      }
    },
    "/api2/health": {
      "get": {
        "tags": [
          "Health"
        ],
        "summary": "Checks the system health status.",
        "description": "Sample request:\r\n\r\n    GET /api/health",
        "responses": {
          "200": {
            "description": "The API is available."
          }
        }
      }
    }
  },
  "definitions": {
    "InnuvaLegalEntityDto": {
      "description": "Data Transfer Object representing a legal entity in the Innuva system.",
      "required": [
        "operation"
      ],
      "type": "object",
      "properties": {
        "operation": {
          "description": "Gets or sets the operation identifier.",
          "minLength": 1,
          "type": "string"
        },
        "clientCode": {
          "description": "Gets or sets the client code.",
          "type": "string"
        },
        "installationId": {
          "description": "Gets or sets the installation identifier.",
          "type": "string"
        },
        "tenantId": {
          "description": "Gets or sets the tenant identifier.",
          "type": "string"
        },
        "messageReference": {
          "description": "Gets or sets the optional message reference.",
          "type": "string"
        },
        "correlationId": {
          "description": "Gets or sets the optional correlation identifier.",
          "type": "string"
        },
        "document": {
          "description": "Gets or sets the optional document identifier.",
          "type": "string"
        },
        "name": {
          "description": "Gets or sets the optional name of the legal entity.",
          "type": "string"
        },
        "surname1": {
          "description": "Gets or sets the optional first surname of the legal entity.",
          "type": "string"
        },
        "surname2": {
          "description": "Gets or sets the optional second surname of the legal entity.",
          "type": "string"
        }
      },
      "additionalProperties": false
    }
  },
  "securityDefinitions": {
    "Token": {
      "type": "apiKey",
      "name": "Authorization",
      "in": "header",
      "description": "Token for authentication"
    }
  },
  "security": [
    {
      "Token": [ ]
    }
  ]
}