{
  "openapi": "3.0.1",
  "info": {
    "title": "API MultiTenant para Latinium",
    "version": "1.4.2"
  },
  "paths": {
    "/api/{tenantId}/Articulo": {
      "post": {
        "tags": [
          "Articulo"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ArticuloDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ArticuloDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ArticuloDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      },
      "get": {
        "tags": [
          "Articulo"
        ],
        "parameters": [
          {
            "name": "codigo",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "nombre",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Articulo"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Articulo"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/Articulo"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/api/{tenantId}/Articulo/{codigo}": {
      "put": {
        "tags": [
          "Articulo"
        ],
        "parameters": [
          {
            "name": "codigo",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ArticuloDto"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/ArticuloDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ArticuloDto"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/{tenantId}/Asiento": {
      "get": {
        "tags": [
          "Asiento"
        ],
        "parameters": [
          {
            "name": "invoiceNumber",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/UsuarioLatinium"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UsuarioLatinium"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/UsuarioLatinium"
                }
              }
            }
          }
        }
      }
    },
    "/api/{tenantId}/Auth/validate": {
      "post": {
        "tags": [
          "Auth"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "string"
              }
            },
            "text/json": {
              "schema": {
                "type": "string"
              }
            },
            "application/*+json": {
              "schema": {
                "type": "string"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/{tenantId}/Auth/login": {
      "post": {
        "tags": [
          "Auth"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LoginModel"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/LoginModel"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/LoginModel"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/{tenantId}/Cliente/{cedula}": {
      "get": {
        "tags": [
          "Cliente"
        ],
        "parameters": [
          {
            "name": "cedula",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Cliente"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cliente"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cliente"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "Cliente"
        ],
        "parameters": [
          {
            "name": "cedula",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cliente"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cliente"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cliente"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/{tenantId}/Cliente": {
      "post": {
        "tags": [
          "Cliente"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/Cliente"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/Cliente"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/Cliente"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/Cliente"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cliente"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/Cliente"
                }
              }
            }
          }
        }
      }
    },
    "/api/{tenantId}/Facturacion": {
      "post": {
        "tags": [
          "Facturacion"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/InvoiceView"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/InvoiceView"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/InvoiceView"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/{tenantId}/Facturacion/collection": {
      "post": {
        "tags": [
          "Facturacion"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/InvoiceView"
                }
              }
            },
            "text/json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/InvoiceView"
                }
              }
            },
            "application/*+json": {
              "schema": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/InvoiceView"
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/monitoreo/login": {
      "post": {
        "tags": [
          "Monitoring"
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/LoginRequest"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/LoginRequest"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/LoginRequest"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/monitoreo/bases": {
      "get": {
        "tags": [
          "Monitoring"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/monitoreo/ejecuciones": {
      "get": {
        "tags": [
          "Monitoring"
        ],
        "parameters": [
          {
            "name": "nombreBase",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "desde",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "hasta",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "idTipo",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/{tenantId}/Pagos": {
      "post": {
        "tags": [
          "Pagos"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PaymentView"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PaymentView"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PaymentView"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/{tenantId}/Pagos/cliente": {
      "post": {
        "tags": [
          "Pagos"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PaymentClientView"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/PaymentClientView"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PaymentClientView"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/{tenantId}/Retencion": {
      "post": {
        "tags": [
          "Retencion"
        ],
        "parameters": [
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/RetencionView"
              }
            },
            "text/json": {
              "schema": {
                "$ref": "#/components/schemas/RetencionView"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/RetencionView"
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/{tenantId}/XML/new_fast": {
      "get": {
        "tags": [
          "XML"
        ],
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 10
            }
          },
          {
            "name": "Inicio",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "Final",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "Numero",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ClaveAcceso",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "RucCliente",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "IdEmpresa",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "Pagination",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/{tenantId}/XML": {
      "get": {
        "tags": [
          "XML"
        ],
        "parameters": [
          {
            "name": "page",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 0
            }
          },
          {
            "name": "pageSize",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32",
              "default": 10
            }
          },
          {
            "name": "Inicio",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "Final",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date-time"
            }
          },
          {
            "name": "Numero",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "ClaveAcceso",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "RucCliente",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "IdEmpresa",
            "in": "query",
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "Pagination",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/api/{tenantId}/XML/byId/{documentType}/{id}": {
      "get": {
        "tags": [
          "XML"
        ],
        "parameters": [
          {
            "name": "documentType",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "integer",
              "format": "int32"
            }
          },
          {
            "name": "tenantId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AccountingEntry": {
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string",
            "nullable": true
          },
          "notas": {
            "type": "string",
            "nullable": true
          },
          "detalles": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/AccountingEntryLine"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "AccountingEntryLine": {
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string",
            "nullable": true
          },
          "debito": {
            "type": "number",
            "format": "double"
          },
          "credito": {
            "type": "number",
            "format": "double"
          },
          "detalle": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Articulo": {
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string",
            "nullable": true
          },
          "codigoAlterno": {
            "type": "string",
            "nullable": true
          },
          "nombre": {
            "type": "string",
            "nullable": true
          },
          "unidadMedida": {
            "type": "string",
            "nullable": true,
            "readOnly": true
          },
          "fechaIngreso": {
            "type": "string",
            "format": "date-time"
          },
          "descontinuado": {
            "type": "boolean",
            "nullable": true
          },
          "dVenta": {
            "type": "boolean",
            "nullable": true
          },
          "dCompra": {
            "type": "boolean",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ArticuloDto": {
        "type": "object",
        "properties": {
          "nombre": {
            "type": "string",
            "nullable": true
          },
          "codigo": {
            "type": "string",
            "nullable": true
          },
          "precio1": {
            "type": "number",
            "format": "double"
          },
          "precio2": {
            "type": "number",
            "format": "double"
          },
          "codigoIva": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Cliente": {
        "required": [
          "ruc"
        ],
        "type": "object",
        "properties": {
          "nombre": {
            "type": "string",
            "nullable": true
          },
          "direccion": {
            "type": "string",
            "nullable": true
          },
          "ruc": {
            "minLength": 1,
            "type": "string"
          },
          "email": {
            "type": "string",
            "nullable": true
          },
          "telefono": {
            "type": "string",
            "nullable": true
          },
          "idTipoRuc": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "complemento": {
            "$ref": "#/components/schemas/Complemento"
          }
        },
        "additionalProperties": false
      },
      "Complemento": {
        "type": "object",
        "properties": {
          "nombreGrupo": {
            "type": "string",
            "nullable": true
          },
          "formaPago": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Compra": {
        "type": "object",
        "properties": {
          "fechaEmision": {
            "type": "string",
            "format": "date-time"
          },
          "idTipoFactura": {
            "type": "integer",
            "format": "int32"
          },
          "bodega": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "servicio": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "notas": {
            "type": "string",
            "nullable": true
          },
          "comprobante": {
            "type": "string",
            "nullable": true
          },
          "codigoComprobante": {
            "type": "string",
            "nullable": true
          },
          "diasCredito": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "numero": {
            "type": "string",
            "nullable": true
          },
          "descuento": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "recalcular": {
            "type": "boolean"
          },
          "idAsiento": {
            "type": "integer",
            "format": "int32"
          },
          "descripcion": {
            "type": "string",
            "nullable": true
          },
          "pdfFormat": {
            "type": "string",
            "nullable": true
          },
          "pdfNombre": {
            "type": "string",
            "nullable": true
          },
          "autFactura": {
            "type": "string",
            "nullable": true
          },
          "formaPago": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "ContadoCredito": {
        "enum": [
          1,
          2
        ],
        "type": "integer",
        "format": "int32"
      },
      "DetCompra": {
        "required": [
          "cantidad",
          "codigoIva",
          "precio"
        ],
        "type": "object",
        "properties": {
          "articulo": {
            "$ref": "#/components/schemas/Articulo"
          },
          "subProyecto": {
            "$ref": "#/components/schemas/SubProyecto"
          },
          "proyecto": {
            "$ref": "#/components/schemas/Proyecto"
          },
          "cantidad": {
            "type": "number",
            "format": "double"
          },
          "precio": {
            "type": "number",
            "format": "double"
          },
          "descuento": {
            "type": "number",
            "format": "double",
            "nullable": true
          },
          "bodega": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "codigoIva": {
            "minLength": 1,
            "type": "string"
          },
          "notas": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "InvoicePayment": {
        "type": "object",
        "properties": {
          "numero": {
            "type": "string",
            "nullable": true
          },
          "valor": {
            "type": "number",
            "format": "double"
          }
        },
        "additionalProperties": false
      },
      "InvoiceView": {
        "required": [
          "cliente",
          "compra"
        ],
        "type": "object",
        "properties": {
          "cliente": {
            "$ref": "#/components/schemas/Cliente"
          },
          "proyecto": {
            "$ref": "#/components/schemas/Proyecto"
          },
          "subProyecto": {
            "$ref": "#/components/schemas/SubProyecto"
          },
          "personal": {
            "$ref": "#/components/schemas/Personal"
          },
          "compra": {
            "$ref": "#/components/schemas/Compra"
          },
          "detalles": {
            "minItems": 1,
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DetCompra"
            },
            "nullable": true
          },
          "paymentView": {
            "$ref": "#/components/schemas/PaymentView"
          },
          "asiento": {
            "$ref": "#/components/schemas/AccountingEntry"
          }
        },
        "additionalProperties": false
      },
      "LoginModel": {
        "type": "object",
        "properties": {
          "username": {
            "type": "string",
            "nullable": true
          },
          "password": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "LoginRequest": {
        "type": "object",
        "properties": {
          "usuario": {
            "type": "string",
            "nullable": true
          },
          "password": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Pago": {
        "type": "object",
        "properties": {
          "notas": {
            "type": "string",
            "nullable": true
          },
          "cheque": {
            "type": "string",
            "nullable": true
          },
          "cuentaCorriente": {
            "type": "string",
            "nullable": true
          },
          "formaPago": {
            "type": "string",
            "nullable": true
          },
          "valor": {
            "type": "number",
            "format": "double"
          },
          "fecha": {
            "type": "string",
            "format": "date-time"
          }
        },
        "additionalProperties": false
      },
      "PaymentClientView": {
        "required": [
          "cliente",
          "cuentaCorriente",
          "fecha",
          "formaPago"
        ],
        "type": "object",
        "properties": {
          "cliente": {
            "minLength": 1,
            "type": "string"
          },
          "formaPago": {
            "minLength": 1,
            "type": "string"
          },
          "notas": {
            "type": "string",
            "nullable": true
          },
          "cheque": {
            "type": "string",
            "nullable": true
          },
          "fecha": {
            "minLength": 1,
            "type": "string"
          },
          "cuentaCorriente": {
            "minLength": 1,
            "type": "string"
          },
          "pagos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/InvoicePayment"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "PaymentView": {
        "required": [
          "contadoCredito"
        ],
        "type": "object",
        "properties": {
          "contadoCredito": {
            "$ref": "#/components/schemas/ContadoCredito"
          },
          "numero": {
            "type": "string",
            "nullable": true
          },
          "idTipoFactura": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "pagos": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Pago"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Personal": {
        "type": "object",
        "properties": {
          "cedula": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "Proyecto": {
        "type": "object",
        "properties": {
          "centroCosto": {
            "type": "string",
            "nullable": true
          },
          "nombre": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "RetencionView": {
        "required": [
          "idTipoFactura",
          "numero"
        ],
        "type": "object",
        "properties": {
          "numero": {
            "minLength": 1,
            "type": "string"
          },
          "idTipoFactura": {
            "type": "integer",
            "format": "int32"
          },
          "claveAcceso": {
            "type": "string",
            "nullable": true
          },
          "codigo": {
            "type": "string",
            "nullable": true
          },
          "serie": {
            "type": "string",
            "nullable": true
          },
          "retencionIva1": {
            "type": "string",
            "nullable": true
          },
          "retencionIva": {
            "type": "string",
            "nullable": true
          },
          "retencionesRenta": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "SubProyecto": {
        "type": "object",
        "properties": {
          "nombre": {
            "type": "string",
            "nullable": true
          },
          "codigo": {
            "type": "string",
            "nullable": true
          }
        },
        "additionalProperties": false
      },
      "UsuarioLatinium": {
        "type": "object",
        "properties": {
          "idUsuario": {
            "type": "integer",
            "format": "int32"
          },
          "nombre": {
            "type": "string",
            "nullable": true
          },
          "clave": {
            "type": "string",
            "nullable": true
          },
          "idGrupo": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          },
          "idEmpresa": {
            "type": "integer",
            "format": "int32",
            "nullable": true
          }
        },
        "additionalProperties": false
      }
    },
    "securitySchemes": {
      "Bearer": {
        "type": "http",
        "description": "Ingrese el token JWT en este formato: Bearer {token}",
        "scheme": "bearer",
        "bearerFormat": "JWT"
      }
    }
  },
  "security": [
    {
      "Bearer": [ ]
    }
  ]
}