{
  "openapi": "3.1.1",
  "info": {
    "title": "Ecuafact API",
    "description": "API publica de facturacion electronica del SRI (Ecuador): emision y consulta de comprobantes, catastro del SRI y webhooks firmados. Requiere la cabecera X-Api-Key. La version del contrato viaja en la cabecera X-Api-Version.",
    "contact": {
      "name": "Ecuafact",
      "url": "https://docsapi.ecuafact.com/v1/guias/agentes"
    },
    "license": {
      "name": "Uso comercial"
    },
    "version": "2026-10-03"
  },
  "servers": [
    {
      "url": "https://dev-api.mynexusapi.com/"
    }
  ],
  "paths": {
    "/salud": {
      "get": {
        "tags": [
          "EcuafactSRIApi.Api"
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/catalogos/{nombre}": {
      "get": {
        "tags": [
          "Catalogos"
        ],
        "parameters": [
          {
            "name": "nombre",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceResponseOfIReadOnlyListOfCatalogoItemDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceResponseOfIReadOnlyListOfCatalogoItemDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceResponseOfIReadOnlyListOfCatalogoItemDto"
                }
              }
            }
          }
        }
      }
    },
    "/v1/contexto": {
      "get": {
        "tags": [
          "Consultas"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceResponseOfContextoDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceResponseOfContextoDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceResponseOfContextoDto"
                }
              }
            }
          }
        }
      }
    },
    "/v1/contribuyentes/{identificacion}/comprobantes/{direccion}": {
      "get": {
        "tags": [
          "Consultas"
        ],
        "parameters": [
          {
            "name": "identificacion",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "direccion",
            "in": "path",
            "required": true,
            "schema": {
              "pattern": "^(emitidos|recibidos)$",
              "type": "string"
            }
          },
          {
            "name": "desde",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "hasta",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "codDoc",
            "in": "query",
            "schema": {
              "type": "string",
              "default": ""
            }
          },
          {
            "name": "buscar",
            "in": "query",
            "schema": {
              "type": "string",
              "default": ""
            }
          },
          {
            "name": "pagina",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 1
            }
          },
          {
            "name": "tamanoPagina",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 20
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceResponseOfPaginaComprobantesDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceResponseOfPaginaComprobantesDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceResponseOfPaginaComprobantesDto"
                }
              }
            }
          }
        }
      }
    },
    "/v1/consultas/contribuyentes/{identificacion}": {
      "get": {
        "tags": [
          "ConsultasSri"
        ],
        "parameters": [
          {
            "name": "identificacion",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "fusionar",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": true
            }
          },
          {
            "name": "fuente",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "Todas"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ContribuyenteConsultaDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContribuyenteConsultaDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ContribuyenteConsultaDto"
                }
              }
            }
          }
        }
      }
    },
    "/v1/consultas/contribuyentes": {
      "get": {
        "tags": [
          "ConsultasSri"
        ],
        "parameters": [
          {
            "name": "apellidos",
            "in": "query",
            "schema": {
              "type": "string",
              "default": ""
            }
          },
          {
            "name": "nombres",
            "in": "query",
            "schema": {
              "type": "string",
              "default": ""
            }
          },
          {
            "name": "clase",
            "in": "query",
            "schema": {
              "type": "string",
              "default": ""
            }
          },
          {
            "name": "max",
            "in": "query",
            "schema": {
              "pattern": "^-?(?:0|[1-9]\\d*)$",
              "type": [
                "integer",
                "string"
              ],
              "format": "int32",
              "default": 10
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BusquedaContribuyenteDto"
                  }
                }
              },
              "application/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BusquedaContribuyenteDto"
                  }
                }
              },
              "text/json": {
                "schema": {
                  "type": "array",
                  "items": {
                    "$ref": "#/components/schemas/BusquedaContribuyenteDto"
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v1/consultas/establecimientos/{ruc}": {
      "get": {
        "tags": [
          "ConsultasSri"
        ],
        "parameters": [
          {
            "name": "ruc",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "filtro",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "Todos"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/EstablecimientosConsultaDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/EstablecimientosConsultaDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/EstablecimientosConsultaDto"
                }
              }
            }
          }
        }
      }
    },
    "/v1/consultas/identificacion/validar/{numero}": {
      "get": {
        "tags": [
          "ConsultasSri"
        ],
        "parameters": [
          {
            "name": "numero",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ValidacionIdentificacionDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidacionIdentificacionDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ValidacionIdentificacionDto"
                }
              }
            }
          }
        }
      }
    },
    "/v1/consultas/comprobantes/decodificar/{claveAcceso}": {
      "get": {
        "tags": [
          "ConsultasSri"
        ],
        "parameters": [
          {
            "name": "claveAcceso",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ClaveAccesoDecodificadaDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClaveAccesoDecodificadaDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ClaveAccesoDecodificadaDto"
                }
              }
            }
          }
        }
      }
    },
    "/v1/contribuyentes/{identificacion}/comprobantes/{claveAcceso}/correo": {
      "post": {
        "tags": [
          "CorreoComprobante"
        ],
        "parameters": [
          {
            "name": "identificacion",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "claveAcceso",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CorreoComprobanteDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/CorreoComprobanteDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceResponseOfCorreoEnviadoDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceResponseOfCorreoEnviadoDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceResponseOfCorreoEnviadoDto"
                }
              }
            }
          }
        }
      }
    },
    "/v1/contribuyentes/{identificacion}/comprobantes/{claveAcceso}/ride": {
      "get": {
        "tags": [
          "DocumentosArchivo"
        ],
        "parameters": [
          {
            "name": "identificacion",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "claveAcceso",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/contribuyentes/{identificacion}/comprobantes/{claveAcceso}/xml": {
      "get": {
        "tags": [
          "DocumentosArchivo"
        ],
        "parameters": [
          {
            "name": "identificacion",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "claveAcceso",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/contribuyentes/{identificacion}/comprobantes": {
      "post": {
        "tags": [
          "Documents"
        ],
        "parameters": [
          {
            "name": "identificacion",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ComprobanteRequestDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/ComprobanteRequestDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "202": {
            "description": "Accepted",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/AdmissionDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdmissionDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/AdmissionDto"
                }
              }
            }
          }
        }
      }
    },
    "/v1/operaciones/{id}": {
      "get": {
        "tags": [
          "Documents"
        ],
        "parameters": [
          {
            "name": "id",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceResponseOfOperationDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceResponseOfOperationDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceResponseOfOperationDto"
                }
              }
            }
          }
        }
      }
    },
    "/v1/consumo": {
      "get": {
        "tags": [
          "Documents"
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/QuotaBucketDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/QuotaBucketDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/QuotaBucketDto"
                }
              }
            }
          }
        }
      }
    },
    "/interno/v1/comprobantes/ride": {
      "get": {
        "tags": [
          "InternoRide"
        ],
        "parameters": [
          {
            "name": "cliente",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          },
          {
            "name": "identificacion",
            "in": "query",
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "claveAcceso",
            "in": "query",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/v1/contribuyentes/{identificacion}/perfil": {
      "get": {
        "tags": [
          "PerfilEmisor"
        ],
        "parameters": [
          {
            "name": "identificacion",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceResponseOfPerfilEmisorDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceResponseOfPerfilEmisorDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceResponseOfPerfilEmisorDto"
                }
              }
            }
          }
        }
      },
      "put": {
        "tags": [
          "PerfilEmisor"
        ],
        "parameters": [
          {
            "name": "identificacion",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/PerfilEmisorUpdateDto"
              }
            },
            "application/*+json": {
              "schema": {
                "$ref": "#/components/schemas/PerfilEmisorUpdateDto"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceResponseOfPerfilEmisorDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceResponseOfPerfilEmisorDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceResponseOfPerfilEmisorDto"
                }
              }
            }
          }
        }
      }
    },
    "/v1/contribuyentes/{identificacion}/perfil/logo": {
      "post": {
        "tags": [
          "PerfilEmisor"
        ],
        "parameters": [
          {
            "name": "identificacion",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "multipart/form-data": {
              "schema": {
                "type": "object",
                "properties": {
                  "logo": {
                    "$ref": "#/components/schemas/IFormFile"
                  }
                }
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "text/plain": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceResponseOfPerfilEmisorDto"
                }
              },
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceResponseOfPerfilEmisorDto"
                }
              },
              "text/json": {
                "schema": {
                  "$ref": "#/components/schemas/ServiceResponseOfPerfilEmisorDto"
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "AdmissionDto": {
        "type": "object",
        "properties": {
          "uid": {
            "type": "string"
          },
          "idOperacion": {
            "type": "string",
            "format": "uuid"
          },
          "urlEstado": {
            "type": "string"
          },
          "codigo": {
            "type": "string"
          },
          "mensaje": {
            "type": "string"
          }
        }
      },
      "BusquedaContribuyenteDto": {
        "required": [
          "identificacion",
          "tipoIdentificacion",
          "nombreCompleto",
          "clase",
          "estado",
          "fuenteOrigen"
        ],
        "type": "object",
        "properties": {
          "identificacion": {
            "type": [
              "null",
              "string"
            ]
          },
          "tipoIdentificacion": {
            "type": [
              "null",
              "string"
            ]
          },
          "nombreCompleto": {
            "type": [
              "null",
              "string"
            ]
          },
          "clase": {
            "type": [
              "null",
              "string"
            ]
          },
          "estado": {
            "type": [
              "null",
              "string"
            ]
          },
          "fuenteOrigen": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "CampoAdicionalDto": {
        "type": "object",
        "properties": {
          "nombre": {
            "type": [
              "null",
              "string"
            ]
          },
          "valor": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "CatalogoItemDto": {
        "required": [
          "codigo",
          "nombre",
          "tarifa"
        ],
        "type": "object",
        "properties": {
          "codigo": {
            "type": "string"
          },
          "nombre": {
            "type": "string"
          },
          "tarifa": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "ClaveAccesoDecodificadaDto": {
        "required": [
          "entrada",
          "normalizada",
          "valido",
          "longitud",
          "fechaEmision",
          "tipo",
          "rucEmisor",
          "ambiente",
          "establecimiento",
          "puntoEmision",
          "secuencial",
          "codigoNumerico",
          "tipoEmision",
          "tipoEmisionDescripcion",
          "digitoVerificador",
          "mensaje"
        ],
        "type": "object",
        "properties": {
          "entrada": {
            "type": [
              "null",
              "string"
            ]
          },
          "normalizada": {
            "type": [
              "null",
              "string"
            ]
          },
          "valido": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "longitud": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "fechaEmision": {
            "type": [
              "null",
              "string"
            ]
          },
          "tipo": {
            "type": [
              "null",
              "string"
            ]
          },
          "rucEmisor": {
            "type": [
              "null",
              "string"
            ]
          },
          "ambiente": {
            "type": [
              "null",
              "string"
            ]
          },
          "establecimiento": {
            "type": [
              "null",
              "string"
            ]
          },
          "puntoEmision": {
            "type": [
              "null",
              "string"
            ]
          },
          "secuencial": {
            "type": [
              "null",
              "string"
            ]
          },
          "codigoNumerico": {
            "type": [
              "null",
              "string"
            ]
          },
          "tipoEmision": {
            "type": [
              "null",
              "string"
            ]
          },
          "tipoEmisionDescripcion": {
            "type": [
              "null",
              "string"
            ]
          },
          "digitoVerificador": { },
          "mensaje": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "CompensacionDto": {
        "type": "object",
        "properties": {
          "codigo": {
            "type": [
              "null",
              "string"
            ]
          },
          "tarifa": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "valor": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "CompensacionReembolsoDto": {
        "type": "object",
        "properties": {
          "codigo": {
            "type": [
              "null",
              "string"
            ]
          },
          "tarifa": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "valor": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "CompraCajBananoDto": {
        "type": "object",
        "properties": {
          "numCajBan": {
            "type": [
              "null",
              "string"
            ]
          },
          "precCajBan": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "ComprobanteDto": {
        "required": [
          "claveAcceso",
          "numeroDocumento",
          "codDoc",
          "fechaEmision",
          "identificacionContraparte",
          "razonSocialContraparte",
          "total",
          "estadoAutorizacion",
          "fechaAutorizacion",
          "codigoError"
        ],
        "type": "object",
        "properties": {
          "claveAcceso": {
            "type": "string"
          },
          "numeroDocumento": {
            "type": "string"
          },
          "codDoc": {
            "type": "string"
          },
          "fechaEmision": {
            "type": "string"
          },
          "identificacionContraparte": {
            "type": "string"
          },
          "razonSocialContraparte": {
            "type": "string"
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "number",
              "string"
            ],
            "format": "double"
          },
          "estadoAutorizacion": {
            "type": "string"
          },
          "fechaAutorizacion": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "codigoError": {
            "type": [
              "null",
              "string"
            ]
          },
          "fechaExpress": {
            "type": [
              "null",
              "string"
            ]
          },
          "idExpressDocument": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int64"
          }
        }
      },
      "ComprobanteRequestDto": {
        "type": "object",
        "properties": {
          "origenReferencia": {
            "type": [
              "null",
              "string"
            ]
          },
          "referenciaExterna": {
            "type": [
              "null",
              "string"
            ]
          },
          "infoTributaria": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/InfoTributariaDto"
              }
            ]
          },
          "info": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/InfoDocumentoDto"
              }
            ]
          },
          "detalles": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/DetalleDto"
            }
          },
          "motivos": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/MotivoDto"
            }
          },
          "destinatarios": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/DestinatarioDto"
            }
          },
          "docsSustento": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/DocsSustentoDto"
            }
          },
          "infoAdicional": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/CampoAdicionalDto"
            }
          }
        }
      },
      "ContextoDto": {
        "required": [
          "idCliente",
          "nombre",
          "contribuyentes"
        ],
        "type": "object",
        "properties": {
          "idCliente": {
            "type": "string",
            "format": "uuid"
          },
          "nombre": {
            "type": "string"
          },
          "contribuyentes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ContribuyenteDto"
            }
          }
        }
      },
      "ContribuyenteConsultaDto": {
        "required": [
          "identificacion",
          "tipoIdentificacion",
          "nombreCompleto",
          "razonSocial",
          "nombreComercial",
          "clase",
          "estado",
          "regimen",
          "actividadEconomicaPrincipal",
          "obligadoLlevarContabilidad",
          "agenteRetencion",
          "contribuyenteEspecial",
          "fechaInicioActividades",
          "fechaCese",
          "fechaReinicioActividades",
          "fechaActualizacion",
          "representantesLegales",
          "establecimientos",
          "estadoTributario",
          "fuenteOrigen",
          "consultadoEn"
        ],
        "type": "object",
        "properties": {
          "identificacion": {
            "type": [
              "null",
              "string"
            ]
          },
          "tipoIdentificacion": {
            "type": [
              "null",
              "string"
            ]
          },
          "nombreCompleto": {
            "type": [
              "null",
              "string"
            ]
          },
          "razonSocial": {
            "type": [
              "null",
              "string"
            ]
          },
          "nombreComercial": {
            "type": [
              "null",
              "string"
            ]
          },
          "clase": {
            "type": [
              "null",
              "string"
            ]
          },
          "estado": {
            "type": [
              "null",
              "string"
            ]
          },
          "regimen": {
            "type": [
              "null",
              "string"
            ]
          },
          "actividadEconomicaPrincipal": {
            "type": [
              "null",
              "string"
            ]
          },
          "obligadoLlevarContabilidad": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "agenteRetencion": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "contribuyenteEspecial": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "fechaInicioActividades": {
            "type": [
              "null",
              "string"
            ]
          },
          "fechaCese": {
            "type": [
              "null",
              "string"
            ]
          },
          "fechaReinicioActividades": {
            "type": [
              "null",
              "string"
            ]
          },
          "fechaActualizacion": {
            "type": [
              "null",
              "string"
            ]
          },
          "representantesLegales": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/RepresentanteLegalDto"
            }
          },
          "establecimientos": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/EstablecimientoConsultaDto"
            }
          },
          "estadoTributario": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/EstadoTributarioDto"
              }
            ]
          },
          "fuenteOrigen": {
            "type": [
              "null",
              "string"
            ]
          },
          "consultadoEn": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ContribuyenteDto": {
        "required": [
          "identificacion",
          "identificacionCompleta",
          "puedeEmitir",
          "puedeRecibir",
          "tiposComprobante"
        ],
        "type": "object",
        "properties": {
          "identificacion": {
            "type": "string"
          },
          "identificacionCompleta": {
            "type": "string"
          },
          "puedeEmitir": {
            "type": "boolean"
          },
          "puedeRecibir": {
            "type": "boolean"
          },
          "tiposComprobante": {
            "type": "array",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "CorreoComprobanteDto": {
        "required": [
          "destinatario"
        ],
        "type": "object",
        "properties": {
          "destinatario": {
            "type": "string"
          }
        }
      },
      "CorreoEnviadoDto": {
        "required": [
          "claveAcceso",
          "destinatario"
        ],
        "type": "object",
        "properties": {
          "claveAcceso": {
            "type": "string"
          },
          "destinatario": {
            "type": "string"
          }
        }
      },
      "DestinatarioDto": {
        "type": "object",
        "properties": {
          "identificacionDestinatario": {
            "type": [
              "null",
              "string"
            ]
          },
          "razonSocialDestinatario": {
            "type": [
              "null",
              "string"
            ]
          },
          "dirDestinatario": {
            "type": [
              "null",
              "string"
            ]
          },
          "motivoTraslado": {
            "type": [
              "null",
              "string"
            ]
          },
          "docAduaneroUnico": {
            "type": [
              "null",
              "string"
            ]
          },
          "codEstabDestino": {
            "type": [
              "null",
              "string"
            ]
          },
          "ruta": {
            "type": [
              "null",
              "string"
            ]
          },
          "detalles": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/DetalleDto"
            }
          }
        }
      },
      "DestinoSustitutivaDto": {
        "type": "object",
        "properties": {
          "motivoTraslado": {
            "type": [
              "null",
              "string"
            ]
          },
          "docAduaneroUnico": {
            "type": [
              "null",
              "string"
            ]
          },
          "codEstabDestino": {
            "type": [
              "null",
              "string"
            ]
          },
          "ruta": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "DetalleDto": {
        "type": "object",
        "properties": {
          "codigoPrincipal": {
            "type": [
              "null",
              "string"
            ]
          },
          "codigoAuxiliar": {
            "type": [
              "null",
              "string"
            ]
          },
          "codigoInterno": {
            "type": [
              "null",
              "string"
            ]
          },
          "codigoAdicional": {
            "type": [
              "null",
              "string"
            ]
          },
          "descripcion": {
            "type": [
              "null",
              "string"
            ]
          },
          "unidadMedida": {
            "type": [
              "null",
              "string"
            ]
          },
          "cantidad": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "precioUnitario": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "precioSinSubsidio": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "descuento": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "precioTotalSinImpuesto": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "impuestos": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/ImpuestoDto"
            }
          },
          "detallesAdicionales": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/CampoAdicionalDto"
            }
          }
        }
      },
      "DetalleImpuestoReembolsoDto": {
        "type": "object",
        "properties": {
          "codigo": {
            "type": [
              "null",
              "string"
            ]
          },
          "codigoPorcentaje": {
            "type": [
              "null",
              "string"
            ]
          },
          "tarifa": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "baseImponibleReembolso": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "impuestoReembolso": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "DividendosDto": {
        "type": "object",
        "properties": {
          "fechaPagoDiv": {
            "type": [
              "null",
              "string"
            ]
          },
          "imRentaSoc": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "ejerFisUtDiv": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "DocsSustentoDto": {
        "type": "object",
        "properties": {
          "codSustento": {
            "type": [
              "null",
              "string"
            ]
          },
          "codDocSustento": {
            "type": [
              "null",
              "string"
            ]
          },
          "numDocSustento": {
            "type": [
              "null",
              "string"
            ]
          },
          "fechaEmisionDocSustento": {
            "type": [
              "null",
              "string"
            ]
          },
          "fechaRegistroContable": {
            "type": [
              "null",
              "string"
            ]
          },
          "numAutDocSustento": {
            "type": [
              "null",
              "string"
            ]
          },
          "pagoLocExt": {
            "type": [
              "null",
              "string"
            ]
          },
          "tipoRegi": {
            "type": [
              "null",
              "string"
            ]
          },
          "paisEfecPago": {
            "type": [
              "null",
              "string"
            ]
          },
          "aplicConvDobTrib": {
            "type": [
              "null",
              "string"
            ]
          },
          "pagExtSujRetNorLeg": {
            "type": [
              "null",
              "string"
            ]
          },
          "pagoRegFis": {
            "type": [
              "null",
              "string"
            ]
          },
          "totalSinImpuestos": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "totalComprobantesReembolso": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "totalBaseImponibleReembolso": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "totalImpuestoReembolso": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "importeTotal": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "impuestosDocSustento": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/ImpuestoDocSustentoDto"
            }
          },
          "retenciones": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/RetencionLineaDto"
            }
          },
          "reembolsos": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/ReembolsoDetalleDto"
            }
          },
          "pagos": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/PagoDto"
            }
          }
        }
      },
      "DocumentType": { },
      "EstablecimientoConsultaDto": {
        "required": [
          "numero",
          "nombreComercial",
          "tipo",
          "direccionCompleta",
          "estado",
          "esMatriz"
        ],
        "type": "object",
        "properties": {
          "numero": {
            "type": [
              "null",
              "string"
            ]
          },
          "nombreComercial": {
            "type": [
              "null",
              "string"
            ]
          },
          "tipo": {
            "type": [
              "null",
              "string"
            ]
          },
          "direccionCompleta": {
            "type": [
              "null",
              "string"
            ]
          },
          "estado": {
            "type": [
              "null",
              "string"
            ]
          },
          "esMatriz": {
            "type": [
              "null",
              "boolean"
            ]
          }
        }
      },
      "EstablecimientosConsultaDto": {
        "required": [
          "ruc",
          "filtro",
          "cantidad",
          "establecimientos"
        ],
        "type": "object",
        "properties": {
          "ruc": {
            "type": [
              "null",
              "string"
            ]
          },
          "filtro": {
            "type": [
              "null",
              "string"
            ]
          },
          "cantidad": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "establecimientos": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/EstablecimientoConsultaDto"
            }
          }
        }
      },
      "EstadoTributarioDto": {
        "required": [
          "tieneDeuda",
          "tieneImpugnacion",
          "tieneRemision",
          "resumenDeuda",
          "resumenImpugnacion",
          "resumenRemision",
          "consultadoEn"
        ],
        "type": "object",
        "properties": {
          "tieneDeuda": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "tieneImpugnacion": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "tieneRemision": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "resumenDeuda": {
            "type": [
              "null",
              "string"
            ]
          },
          "resumenImpugnacion": {
            "type": [
              "null",
              "string"
            ]
          },
          "resumenRemision": {
            "type": [
              "null",
              "string"
            ]
          },
          "consultadoEn": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "FiscalEnvironment": {
        "type": "integer"
      },
      "IFormFile": {
        "type": "string",
        "format": "binary"
      },
      "ImpuestoDocSustentoDto": {
        "type": "object",
        "properties": {
          "codImpuestoDocSustento": {
            "type": [
              "null",
              "string"
            ]
          },
          "codigoPorcentaje": {
            "type": [
              "null",
              "string"
            ]
          },
          "baseImponible": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "tarifa": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "valorImpuesto": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "ImpuestoDto": {
        "type": "object",
        "properties": {
          "codigo": {
            "type": [
              "null",
              "string"
            ]
          },
          "codigoPorcentaje": {
            "type": [
              "null",
              "string"
            ]
          },
          "tarifa": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "baseImponible": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "valor": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "descuentoAdicional": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "valorDevolucionIva": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "InfoDocumentoDto": {
        "type": "object",
        "properties": {
          "fechaEmision": {
            "type": [
              "null",
              "string"
            ]
          },
          "dirEstablecimiento": {
            "type": [
              "null",
              "string"
            ]
          },
          "tipoIdentificacionComprador": {
            "type": [
              "null",
              "string"
            ]
          },
          "razonSocialComprador": {
            "type": [
              "null",
              "string"
            ]
          },
          "identificacionComprador": {
            "type": [
              "null",
              "string"
            ]
          },
          "direccionComprador": {
            "type": [
              "null",
              "string"
            ]
          },
          "tipoIdentificacionProveedor": {
            "type": [
              "null",
              "string"
            ]
          },
          "razonSocialProveedor": {
            "type": [
              "null",
              "string"
            ]
          },
          "identificacionProveedor": {
            "type": [
              "null",
              "string"
            ]
          },
          "direccionProveedor": {
            "type": [
              "null",
              "string"
            ]
          },
          "totalSinImpuestos": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "moneda": {
            "type": [
              "null",
              "string"
            ]
          },
          "totalDescuento": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "totalConImpuestos": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/ImpuestoDto"
            }
          },
          "importeTotal": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "propina": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "pagos": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/PagoDto"
            }
          },
          "codDocModificado": {
            "type": [
              "null",
              "string"
            ]
          },
          "numDocModificado": {
            "type": [
              "null",
              "string"
            ]
          },
          "fechaEmisionDocSustento": {
            "type": [
              "null",
              "string"
            ]
          },
          "totalDocumentoSustento": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "motivo": {
            "type": [
              "null",
              "string"
            ]
          },
          "valorModificacion": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "impuestos": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/ImpuestoDto"
            }
          },
          "valorTotal": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "dirPartida": {
            "type": [
              "null",
              "string"
            ]
          },
          "razonSocialTransportista": {
            "type": [
              "null",
              "string"
            ]
          },
          "tipoIdentificacionTransportista": {
            "type": [
              "null",
              "string"
            ]
          },
          "rucTransportista": {
            "type": [
              "null",
              "string"
            ]
          },
          "fechaIniTransporte": {
            "type": [
              "null",
              "string"
            ]
          },
          "fechaFinTransporte": {
            "type": [
              "null",
              "string"
            ]
          },
          "placa": {
            "type": [
              "null",
              "string"
            ]
          },
          "tipoIdentificacionSujetoRetenido": {
            "type": [
              "null",
              "string"
            ]
          },
          "razonSocialSujetoRetenido": {
            "type": [
              "null",
              "string"
            ]
          },
          "identificacionSujetoRetenido": {
            "type": [
              "null",
              "string"
            ]
          },
          "periodoFiscal": {
            "type": [
              "null",
              "string"
            ]
          },
          "parteRel": {
            "type": [
              "null",
              "string"
            ]
          },
          "tipoSujetoRetenido": {
            "type": [
              "null",
              "string"
            ]
          },
          "contribuyenteEspecial": {
            "type": [
              "null",
              "string"
            ]
          },
          "obligadoContabilidad": {
            "type": [
              "null",
              "string"
            ]
          },
          "telefono": {
            "type": [
              "null",
              "string"
            ]
          },
          "correo": {
            "type": [
              "null",
              "string"
            ]
          },
          "comercioExterior": {
            "type": [
              "null",
              "string"
            ]
          },
          "incoTermFactura": {
            "type": [
              "null",
              "string"
            ]
          },
          "lugarIncoTerm": {
            "type": [
              "null",
              "string"
            ]
          },
          "paisOrigen": {
            "type": [
              "null",
              "string"
            ]
          },
          "puertoEmbarque": {
            "type": [
              "null",
              "string"
            ]
          },
          "puertoDestino": {
            "type": [
              "null",
              "string"
            ]
          },
          "paisDestino": {
            "type": [
              "null",
              "string"
            ]
          },
          "paisAdquisicion": {
            "type": [
              "null",
              "string"
            ]
          },
          "guiaRemision": {
            "type": [
              "null",
              "string"
            ]
          },
          "totalSubsidio": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "incoTermTotalSinImpuestos": {
            "type": [
              "null",
              "string"
            ]
          },
          "codDocReembolso": {
            "type": [
              "null",
              "string"
            ]
          },
          "totalComprobantesReembolso": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "totalBaseImponibleReembolso": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "totalImpuestoReembolso": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "compensaciones": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/CompensacionDto"
            }
          },
          "fleteInternacional": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "seguroInternacional": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "gastosAduaneros": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "gastosTransporteOtros": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "valorRetIva": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "valorRetRenta": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "reembolsos": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/ReembolsoDetalleDto"
            }
          },
          "retenciones": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/RetencionFacturaLineaDto"
            }
          },
          "infoSustitutivaGuiaRemision": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/InfoSustitutivaGuiaDto"
              }
            ]
          },
          "otrosRubrosTerceros": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/RubroTerceroDto"
            }
          },
          "tipoNegociable": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/TipoNegociableDto"
              }
            ]
          },
          "maquinaFiscal": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/MaquinaFiscalDto"
              }
            ]
          }
        }
      },
      "InfoSustitutivaGuiaDto": {
        "type": "object",
        "properties": {
          "dirPartida": {
            "type": [
              "null",
              "string"
            ]
          },
          "dirDestinatario": {
            "type": [
              "null",
              "string"
            ]
          },
          "fechaIniTransporte": {
            "type": [
              "null",
              "string"
            ]
          },
          "fechaFinTransporte": {
            "type": [
              "null",
              "string"
            ]
          },
          "razonSocialTransportista": {
            "type": [
              "null",
              "string"
            ]
          },
          "tipoIdentificacionTransportista": {
            "type": [
              "null",
              "string"
            ]
          },
          "rucTransportista": {
            "type": [
              "null",
              "string"
            ]
          },
          "placa": {
            "type": [
              "null",
              "string"
            ]
          },
          "destinos": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/DestinoSustitutivaDto"
            }
          }
        }
      },
      "InfoTributariaDto": {
        "type": "object",
        "properties": {
          "ruc": {
            "type": [
              "null",
              "string"
            ]
          },
          "codDoc": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/DocumentType"
              }
            ]
          },
          "estab": {
            "type": [
              "null",
              "string"
            ]
          },
          "ptoEmi": {
            "type": [
              "null",
              "string"
            ]
          },
          "secuencial": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "MaquinaFiscalDto": {
        "type": "object",
        "properties": {
          "marca": {
            "type": [
              "null",
              "string"
            ]
          },
          "modelo": {
            "type": [
              "null",
              "string"
            ]
          },
          "serie": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "MotivoDto": {
        "type": "object",
        "properties": {
          "razon": {
            "type": [
              "null",
              "string"
            ]
          },
          "valor": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "OperationDto": {
        "type": "object",
        "properties": {
          "uid": {
            "type": [
              "null",
              "string"
            ]
          },
          "idOperacion": {
            "type": "string",
            "format": "uuid"
          },
          "ambiente": {
            "$ref": "#/components/schemas/FiscalEnvironment"
          },
          "codDoc": {
            "$ref": "#/components/schemas/DocumentType"
          },
          "estado": {
            "type": "string"
          },
          "claveAcceso": {
            "type": [
              "null",
              "string"
            ]
          },
          "codigoError": {
            "type": [
              "null",
              "string"
            ]
          },
          "fechaCreacion": {
            "type": "string",
            "format": "date-time"
          },
          "fechaActualizacion": {
            "type": "string",
            "format": "date-time"
          },
          "estadoAutorizacion": {
            "type": "string"
          },
          "fechaAutorizacion": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "fechaConsulta": {
            "type": [
              "null",
              "string"
            ],
            "format": "date-time"
          },
          "codigoErrorConsulta": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PaginaComprobantesDto": {
        "required": [
          "comprobantes",
          "pagina",
          "tamanoPagina",
          "hayMas"
        ],
        "type": "object",
        "properties": {
          "comprobantes": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/ComprobanteDto"
            }
          },
          "pagina": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "tamanoPagina": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "hayMas": {
            "type": "boolean"
          }
        }
      },
      "PagoDto": {
        "type": "object",
        "properties": {
          "formaPago": {
            "type": [
              "null",
              "string"
            ]
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "plazo": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "unidadTiempo": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PerfilEmisorDto": {
        "required": [
          "identificacion",
          "razonSocial",
          "nombreComercial",
          "direccionMatriz",
          "direccionEstablecimiento",
          "codigoEstablecimiento",
          "codigoPuntoEmision",
          "moneda",
          "obligadoContabilidad",
          "correo",
          "telefono",
          "ciudad",
          "provincia",
          "pais",
          "logo"
        ],
        "type": "object",
        "properties": {
          "identificacion": {
            "type": "string"
          },
          "razonSocial": {
            "type": "string"
          },
          "nombreComercial": {
            "type": [
              "null",
              "string"
            ]
          },
          "direccionMatriz": {
            "type": [
              "null",
              "string"
            ]
          },
          "direccionEstablecimiento": {
            "type": [
              "null",
              "string"
            ]
          },
          "codigoEstablecimiento": {
            "type": [
              "null",
              "string"
            ]
          },
          "codigoPuntoEmision": {
            "type": [
              "null",
              "string"
            ]
          },
          "moneda": {
            "type": [
              "null",
              "string"
            ]
          },
          "obligadoContabilidad": {
            "type": "boolean"
          },
          "correo": {
            "type": [
              "null",
              "string"
            ]
          },
          "telefono": {
            "type": [
              "null",
              "string"
            ]
          },
          "ciudad": {
            "type": [
              "null",
              "string"
            ]
          },
          "provincia": {
            "type": [
              "null",
              "string"
            ]
          },
          "pais": {
            "type": [
              "null",
              "string"
            ]
          },
          "logo": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "PerfilEmisorUpdateDto": {
        "required": [
          "nombreComercial",
          "direccionMatriz",
          "correo",
          "telefono",
          "ciudad",
          "provincia"
        ],
        "type": "object",
        "properties": {
          "nombreComercial": {
            "type": [
              "null",
              "string"
            ]
          },
          "direccionMatriz": {
            "type": [
              "null",
              "string"
            ]
          },
          "correo": {
            "type": [
              "null",
              "string"
            ]
          },
          "telefono": {
            "type": [
              "null",
              "string"
            ]
          },
          "ciudad": {
            "type": [
              "null",
              "string"
            ]
          },
          "provincia": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "QuotaBucketDto": {
        "type": "object",
        "properties": {
          "limiteDocumentos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "reservados": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "consumidos": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "disponibles": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "vigenteHasta": {
            "type": "string",
            "format": "date-time"
          },
          "limiteExtra": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "reservadosExtra": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "consumidosExtra": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "disponiblesExtra": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "integer",
              "string"
            ],
            "format": "int32"
          }
        }
      },
      "ReembolsoDetalleDto": {
        "type": "object",
        "properties": {
          "tipoIdentificacionProveedorReembolso": {
            "type": [
              "null",
              "string"
            ]
          },
          "identificacionProveedorReembolso": {
            "type": [
              "null",
              "string"
            ]
          },
          "codPaisPagoProveedorReembolso": {
            "type": [
              "null",
              "string"
            ]
          },
          "tipoProveedorReembolso": {
            "type": [
              "null",
              "string"
            ]
          },
          "codDocReembolso": {
            "type": [
              "null",
              "string"
            ]
          },
          "estabDocReembolso": {
            "type": [
              "null",
              "string"
            ]
          },
          "ptoEmiDocReembolso": {
            "type": [
              "null",
              "string"
            ]
          },
          "secuencialDocReembolso": {
            "type": [
              "null",
              "string"
            ]
          },
          "fechaEmisionDocReembolso": {
            "type": [
              "null",
              "string"
            ]
          },
          "numeroautorizacionDocReemb": {
            "type": [
              "null",
              "string"
            ]
          },
          "detalleImpuestos": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/DetalleImpuestoReembolsoDto"
            }
          },
          "compensacionesReembolso": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/CompensacionReembolsoDto"
            }
          }
        }
      },
      "RepresentanteLegalDto": {
        "required": [
          "identificacion",
          "nombre"
        ],
        "type": "object",
        "properties": {
          "identificacion": {
            "type": [
              "null",
              "string"
            ]
          },
          "nombre": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "RetencionFacturaLineaDto": {
        "type": "object",
        "properties": {
          "codigo": {
            "type": [
              "null",
              "string"
            ]
          },
          "codigoPorcentaje": {
            "type": [
              "null",
              "string"
            ]
          },
          "tarifa": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "valor": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "RetencionLineaDto": {
        "type": "object",
        "properties": {
          "codigo": {
            "type": [
              "null",
              "string"
            ]
          },
          "codigoRetencion": {
            "type": [
              "null",
              "string"
            ]
          },
          "baseImponible": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "porcentajeRetener": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "valorRetenido": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          },
          "dividendos": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/DividendosDto"
              }
            ]
          },
          "compraCajBanano": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/CompraCajBananoDto"
              }
            ]
          }
        }
      },
      "RubroTerceroDto": {
        "type": "object",
        "properties": {
          "concepto": {
            "type": [
              "null",
              "string"
            ]
          },
          "total": {
            "pattern": "^-?(?:0|[1-9]\\d*)(?:\\.\\d+)?$",
            "type": [
              "null",
              "number",
              "string"
            ],
            "format": "double"
          }
        }
      },
      "ServiceResponseOfContextoDto": {
        "required": [
          "datos"
        ],
        "type": "object",
        "properties": {
          "datos": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/ContextoDto"
              }
            ]
          }
        }
      },
      "ServiceResponseOfCorreoEnviadoDto": {
        "required": [
          "datos"
        ],
        "type": "object",
        "properties": {
          "datos": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/CorreoEnviadoDto"
              }
            ]
          }
        }
      },
      "ServiceResponseOfIReadOnlyListOfCatalogoItemDto": {
        "required": [
          "datos"
        ],
        "type": "object",
        "properties": {
          "datos": {
            "type": [
              "null",
              "array"
            ],
            "items": {
              "$ref": "#/components/schemas/CatalogoItemDto"
            }
          }
        }
      },
      "ServiceResponseOfOperationDto": {
        "required": [
          "datos"
        ],
        "type": "object",
        "properties": {
          "datos": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/OperationDto"
              }
            ]
          }
        }
      },
      "ServiceResponseOfPaginaComprobantesDto": {
        "required": [
          "datos"
        ],
        "type": "object",
        "properties": {
          "datos": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/PaginaComprobantesDto"
              }
            ]
          }
        }
      },
      "ServiceResponseOfPerfilEmisorDto": {
        "required": [
          "datos"
        ],
        "type": "object",
        "properties": {
          "datos": {
            "oneOf": [
              {
                "type": "null"
              },
              {
                "$ref": "#/components/schemas/PerfilEmisorDto"
              }
            ]
          }
        }
      },
      "TipoNegociableDto": {
        "type": "object",
        "properties": {
          "correo": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      },
      "ValidacionIdentificacionDto": {
        "required": [
          "entrada",
          "normalizado",
          "valido",
          "tipo",
          "longitud",
          "esSoloDigitos",
          "cedulaBaseDelRuc",
          "mensaje"
        ],
        "type": "object",
        "properties": {
          "entrada": {
            "type": [
              "null",
              "string"
            ]
          },
          "normalizado": {
            "type": [
              "null",
              "string"
            ]
          },
          "valido": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "tipo": {
            "type": [
              "null",
              "string"
            ]
          },
          "longitud": {
            "pattern": "^-?(?:0|[1-9]\\d*)$",
            "type": [
              "null",
              "integer",
              "string"
            ],
            "format": "int32"
          },
          "esSoloDigitos": {
            "type": [
              "null",
              "boolean"
            ]
          },
          "cedulaBaseDelRuc": {
            "type": [
              "null",
              "string"
            ]
          },
          "mensaje": {
            "type": [
              "null",
              "string"
            ]
          }
        }
      }
    }
  },
  "tags": [
    {
      "name": "EcuafactSRIApi.Api"
    },
    {
      "name": "Catalogos"
    },
    {
      "name": "Consultas"
    },
    {
      "name": "ConsultasSri"
    },
    {
      "name": "CorreoComprobante"
    },
    {
      "name": "DocumentosArchivo"
    },
    {
      "name": "Documents"
    },
    {
      "name": "InternoRide"
    },
    {
      "name": "PerfilEmisor"
    }
  ]
}