2.0info: 2.16.3 contas x-senior-domain: erpx_bnk_tes x-senior-domain-path: erpx_bnk_tes x-senior-service-path: contas contact: name: Senior X Platform url: https://dev.senior.com.br email: seniorx-dev@senior.com.brhost: platform.senior.com.br /t/senior.com.br/bridge/1.0/rest/erpx_bnk_tessecurityDefinitions: APIKeyHeader: type: apiKey in: header name: Authorizationsecurity: – APIKeyHeader: [] – application/json – application/jsonpaths: /contas/queries/healthcheck: post: description: Query for health check – SRE tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object responses: 200: description: Ok schema: type: object required: – status – checks properties: status: type: string allOf: – #/definitions/upDown description: Status checks: type: array items: type: object allOf: – #/definitions/checkData minimum: 1 description: Verify 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError get: description: Query for health check – SRE tags: – Queries x-senior-visibility: PRIVATE parameters: responses: 200: description: Ok schema: type: object required: – status – checks properties: status: type: string allOf: – #/definitions/upDown description: Status checks: type: array items: type: object allOf: – #/definitions/checkData minimum: 1 description: Verify 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/queries/listContas: post: description: Lista contas bancárias tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – pageRequest properties: empresaIds: type: array items: type: string description: Identificadores das empresas cnpjs: type: array items: type: string description: CNPJs das filiais filtro: type: object allOf: – #/definitions/recListContaFiltro description: Filtro pageRequest: type: object allOf: – #/definitions/recPageRequest description: Controle de paginação e ordenação responses: 200: description: Ok schema: type: object required: – contas – totalElements properties: contas: type: array items: type: object allOf: – #/definitions/recConta minimum: 1 description: Contas totalElements: type: integer format: int64 description: Total de registros encontrados 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/queries/listContasPendentesConfiguracao: post: description: Lista contas pendentes de configuração inicial (sem saldo inicial) tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object responses: 200: description: Ok schema: type: object required: – contasPendentes – totalElements properties: contasPendentes: type: array items: type: object allOf: – #/definitions/recContaPendenteConfiguracao minimum: 1 description: Contas pendentes de configuração totalElements: type: integer format: int64 description: Total de registros encontrados 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError get: description: Lista contas pendentes de configuração inicial (sem saldo inicial) tags: – Queries x-senior-visibility: PRIVATE parameters: responses: 200: description: Ok schema: type: object required: – contasPendentes – totalElements properties: contasPendentes: type: array items: type: object allOf: – #/definitions/recContaPendenteConfiguracao minimum: 1 description: Contas pendentes de configuração totalElements: type: integer format: int64 description: Total de registros encontrados 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/queries/getSaldoTotal: post: description: Retorna saldo total de todas as contas tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object properties: empresaIds: type: array items: type: string description: Identificadores das empresas cnpjs: type: array items: type: string description: CNPJs das filiais empresaId: type: string description: Identificador da empresa cnpj: type: string maxLength: 14 description: CNPJ filtro: type: array items: type: object allOf: – #/definitions/recFiltroConta description: Filtro responses: 200: description: Ok schema: type: object required: – valorTotalDisponivel – valorTotalBloqueado properties: valorTotalDisponivel: type: string description: Valor total disponível valorTotalBloqueado: type: string description: Valor total bloqueado 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/queries/listSaldoBancos: post: description: Lista o saldo de cada banco tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – pageRequest properties: empresaIds: type: array items: type: string description: Identificadores das empresas cnpjs: type: array items: type: string description: CNPJs das filiais empresaId: type: string description: Identificador da empresa cnpj: type: string maxLength: 14 description: CNPJ filtro: type: array items: type: object allOf: – #/definitions/recFiltroConta description: Filtro pageRequest: type: object allOf: – #/definitions/recPageRequest description: Controle de paginação e ordenação responses: 200: description: Ok schema: type: object required: – saldos – totalElements properties: saldos: type: array items: type: object allOf: – #/definitions/recSaldoBanco minimum: 1 description: Saldos totalElements: type: integer format: int64 description: Total de registros encontrados 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/queries/listSaldoContas: post: description: Lista o saldo das contas de cada banco tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – pageRequest properties: empresaIds: type: array items: type: string description: Identificadores das empresas cnpjs: type: array items: type: string description: CNPJs das filiais filtro: type: object allOf: – #/definitions/recFiltroSaldoConta description: Saldos pageRequest: type: object allOf: – #/definitions/recPageRequest description: Controle de paginação e ordenação responses: 200: description: Ok schema: type: object required: – saldos – totalElements properties: saldos: type: array items: type: object allOf: – #/definitions/recSaldoConta minimum: 1 description: Saldos totalElements: type: integer format: int64 description: Total de registros encontrados 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/queries/consultarStatusAtualizacaoSaldos: post: description: Consulta o estado da atualização dos saldos tags: – Queries x-senior-visibility: PRIVATE responses: 200: description: Ok schema: type: object required: – consultasManuaisDisponiveis properties: consultasManuaisDisponiveis: type: integer format: int64 description: Quantidade de consultas manuais disponíveis para a autoridade autenticada ultimaAtualizacao: type: string format: date-time description: Data e hora da última atualização bem-sucedida contasComFalha: type: array items: type: object allOf: – #/definitions/recContaSaldoDesatualizado description: Contas cujo saldo permanece desatualizado 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError get: description: Consulta o estado da atualização dos saldos tags: – Queries x-senior-visibility: PRIVATE responses: 200: description: Ok schema: type: object required: – consultasManuaisDisponiveis properties: consultasManuaisDisponiveis: type: integer format: int64 description: Quantidade de consultas manuais disponíveis para a autoridade autenticada ultimaAtualizacao: type: string format: date-time description: Data e hora da última atualização bem-sucedida contasComFalha: type: array items: type: object allOf: – #/definitions/recContaSaldoDesatualizado description: Contas cujo saldo permanece desatualizado 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/queries/consultarStatusAtualizacaoExtrato: post: description: Consulta o estado da atualização automática dos extratos tags: – Queries x-senior-visibility: PRIVATE responses: 200: description: Ok schema: type: object properties: ultimaAtualizacao: type: string format: date-time description: Data e hora de conclusão do ciclo automático mais recente com sucesso 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError get: description: Consulta o estado da atualização automática dos extratos tags: – Queries x-senior-visibility: PRIVATE responses: 200: description: Ok schema: type: object properties: ultimaAtualizacao: type: string format: date-time description: Data e hora de conclusão do ciclo automático mais recente com sucesso 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/queries/listConsolidadoDiario: post: description: Lista o consolidado diário das movimentações tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – dataInicial – dataFinal – pageRequest properties: empresaIds: type: array items: type: string description: Identificadores das empresas cnpjs: type: array items: type: string description: CNPJs das filiais dataInicial: type: string format: date description: Data inicial dataFinal: type: string format: date description: Data final filtro: type: array items: type: object allOf: – #/definitions/recFiltroConta description: Filtro pageRequest: type: object allOf: – #/definitions/recPageRequest description: Controle de paginação e ordenação responses: 200: description: Ok schema: type: object required: – consolidados – totalElements properties: consolidados: type: array items: type: object allOf: – #/definitions/recConsolidadoDiario minimum: 1 description: Dados dos extratos consolidados diários totalElements: type: integer format: int64 description: Total de registros encontrados 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/queries/listMovimentacoes: post: description: Lista as movimentações bancárias autorizadas tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – dataInicial – dataFinal – pageRequest properties: empresaIds: type: array items: type: string description: Identificadores das empresas cnpjs: type: array items: type: string description: CNPJs das filiais dataInicial: type: string format: date description: Data inicial dataFinal: type: string format: date description: Data final filtro: type: array items: type: object allOf: – #/definitions/recFiltroConta description: Filtro pageRequest: type: object allOf: – #/definitions/recPageRequest description: Controle de paginação e ordenação responses: 200: description: Ok schema: type: object required: – movimentacoes – totalElements properties: movimentacoes: type: array items: type: object allOf: – #/definitions/recMovimentacao minimum: 1 description: Movimentações bancárias totalElements: type: integer format: int64 description: Total de registros encontrados 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/queries/eligibleToExclude: post: description: Query para verificar se um registro de uma tabela é elegível para exclusão tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – entityName – id properties: entityName: type: string description: Nome da entidade id: type: string description: Id do registro responses: 200: description: Ok schema: type: object required: – eligible properties: eligible: type: boolean description: Indica se o registro é elegível para exclusão notEligibleMessage: type: string description: Mensagem quando o registro não estiver elegível para exclusão unkownEntity: type: boolean description: Indica se a entidade é desconhecida pelo serviço 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError get: description: Query para verificar se um registro de uma tabela é elegível para exclusão tags: – Queries x-senior-visibility: PRIVATE parameters: – name: entityName description: Nome da entidade in: query required: true type: string – name: id description: Id do registro in: query required: true type: string responses: 200: description: Ok schema: type: object required: – eligible properties: eligible: type: boolean description: Indica se o registro é elegível para exclusão notEligibleMessage: type: string description: Mensagem quando o registro não estiver elegível para exclusão unkownEntity: type: boolean description: Indica se a entidade é desconhecida pelo serviço 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/queries/resumoImportacaoOfx: post: description: Retorna o resumo agregado, por conta, dos dados lidos em importações de extrato OFX tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – idsImportacoes properties: idsImportacoes: type: array items: type: string minimum: 1 description: Identificadores das importações responses: 200: description: Ok schema: type: object required: – contas properties: contas: type: array items: type: object allOf: – #/definitions/recResumoImportacaoConta minimum: 1 description: Contas identificadas nas importações, com dados agregados por arquivo 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/queries/listImportacoes: post: description: Lista o histórico de importações de extratos OFX do tenant tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – pageRequest properties: pageRequest: type: object allOf: – #/definitions/recPageRequest description: Controle de paginação responses: 200: description: Ok schema: type: object required: – importacoes – totalElements properties: importacoes: type: array items: type: object allOf: – #/definitions/recImportacaoExtrato minimum: 1 description: Importações de extratos OFX totalElements: type: integer format: int64 description: Total de importações encontradas 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/queries/listarMovimentacoesConferencia: post: description: Lista as movimentações de conferência agrupadas por conta, com saldo calculado tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – idsImportacoes properties: idsImportacoes: type: array items: type: string minimum: 1 description: Identificadores das importações responses: 200: description: Ok schema: type: object required: – contas properties: contas: type: array items: type: object allOf: – #/definitions/recContaMovimentacoesConferencia minimum: 1 description: Contas com suas movimentações para conferência 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/queries/consultarStatusImportacao: post: description: Consulta o status atual da importação definitiva. Retorna status, contadores e mensagem de erro quando aplicável. tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – idsImportacoes properties: idsImportacoes: type: array items: type: string minimum: 1 description: Identificadores das importações (1 a 20) responses: 200: description: Ok schema: type: object required: – resultados properties: resultados: type: array items: type: object allOf: – #/definitions/recStatusImportacao minimum: 1 description: Status de cada importação 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/queries/getMetadata: post: description: Default getMetadata query. Every service must handle this command and return metadata in the format requested. tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object properties: metadataFormat: type: string description: responses: 200: description: Ok schema: type: object required: – metadata properties: metadata: type: string description: 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError get: description: Default getMetadata query. Every service must handle this command and return metadata in the format requested. tags: – Queries x-senior-visibility: PRIVATE parameters: – name: metadataFormat description: in: query type: string responses: 200: description: Ok schema: type: object required: – metadata properties: metadata: type: string description: 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/queries/exportE070emp: post: description: tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – config properties: config: type: object allOf: – #/definitions/exportConfig description: responses: 200: description: Ok schema: type: object required: – exportJobId properties: exportJobId: type: string description: 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/queries/exportE070fil: post: description: tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – config properties: config: type: object allOf: – #/definitions/exportConfig description: responses: 200: description: Ok schema: type: object required: – exportJobId properties: exportJobId: type: string description: 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/queries/exportCargaInicial: post: description: tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – config properties: config: type: object allOf: – #/definitions/exportConfig description: responses: 200: description: Ok schema: type: object required: – exportJobId properties: exportJobId: type: string description: 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/queries/exportConta: post: description: tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – config properties: config: type: object allOf: – #/definitions/exportConfig description: responses: 200: description: Ok schema: type: object required: – exportJobId properties: exportJobId: type: string description: 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/queries/exportSaldoConta: post: description: tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – config properties: config: type: object allOf: – #/definitions/exportConfig description: responses: 200: description: Ok schema: type: object required: – exportJobId properties: exportJobId: type: string description: 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/queries/exportStatusAtualizacaoExtrato: post: description: tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – config properties: config: type: object allOf: – #/definitions/exportConfig description: responses: 200: description: Ok schema: type: object required: – exportJobId properties: exportJobId: type: string description: 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/queries/exportCotaAtualizacaoSaldo: post: description: tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – config properties: config: type: object allOf: – #/definitions/exportConfig description: responses: 200: description: Ok schema: type: object required: – exportJobId properties: exportJobId: type: string description: 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/queries/exportExtratoConta: post: description: tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – config properties: config: type: object allOf: – #/definitions/exportConfig description: responses: 200: description: Ok schema: type: object required: – exportJobId properties: exportJobId: type: string description: 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/queries/exportOfxDadosBancariosConta: post: description: tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – config properties: config: type: object allOf: – #/definitions/exportConfig description: responses: 200: description: Ok schema: type: object required: – exportJobId properties: exportJobId: type: string description: 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/queries/exportOfxExtratoImportadoConta: post: description: tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – config properties: config: type: object allOf: – #/definitions/exportConfig description: responses: 200: description: Ok schema: type: object required: – exportJobId properties: exportJobId: type: string description: 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/queries/exportOfxLancamentoConta: post: description: tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – config properties: config: type: object allOf: – #/definitions/exportConfig description: responses: 200: description: Ok schema: type: object required: – exportJobId properties: exportJobId: type: string description: 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/queries/exportOfxSaldoAdicionalConta: post: description: tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – config properties: config: type: object allOf: – #/definitions/exportConfig description: responses: 200: description: Ok schema: type: object required: – exportJobId properties: exportJobId: type: string description: 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/queries/exportOfxImportacaoArquivoExtrato: post: description: tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – config properties: config: type: object allOf: – #/definitions/exportConfig description: responses: 200: description: Ok schema: type: object required: – exportJobId properties: exportJobId: type: string description: 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/queries/exportOfxLancamentoManualConta: post: description: tags: – Queries x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – config properties: config: type: object allOf: – #/definitions/exportConfig description: responses: 200: description: Ok schema: type: object required: – exportJobId properties: exportJobId: type: string description: 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/queries/getDependencies: post: description: Returns a list with all dependencies from this service, along with their respective versions tags: – Queries x-senior-visibility: PRIVATE responses: 200: description: Ok schema: type: object required: – dependencies properties: dependencies: type: array items: type: object allOf: – #/definitions/dependency minimum: 1 description: List with this service dependencies 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError get: description: Returns a list with all dependencies from this service, along with their respective versions tags: – Queries x-senior-visibility: PRIVATE responses: 200: description: Ok schema: type: object required: – dependencies properties: dependencies: type: array items: type: object allOf: – #/definitions/dependency minimum: 1 description: List with this service dependencies 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/actions/configurarSaldoInicial: post: description: Configura a data-inicial e o saldo inicial das contas bancárias tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – saldos properties: saldos: type: array items: type: object allOf: – #/definitions/recSaldoInicialContaConfig minimum: 1 description: Configurações iniciais das contas responses: 200: description: Ok schema: type: object required: – sucesso properties: sucesso: type: boolean description: Indica se a configuração foi concluída com sucesso 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/actions/solicitarAtualizacaoSaldos: post: description: Solicita a atualização dos saldos das contas integradas ao BTG tags: – Actions x-senior-visibility: PRIVATE responses: 200: description: Ok schema: type: object required: – consultasManuaisDisponiveis properties: consultasManuaisDisponiveis: type: integer format: int64 description: Quantidade de consultas manuais disponíveis após a solicitação 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/actions/atualizarExtrato: post: description: API responsável por atualizar o extrato de acordo com as movimentações financeiras da conta tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object allOf: – #/definitions/movimentoConta responses: 200: description: Ok schema: type: object 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/actions/atualizarSaldo: post: description: API responsável por atualizar o saldo da conta tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object allOf: – #/definitions/saldoDisponivel responses: 200: description: Ok schema: type: object 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/actions/softExclude: post: description: Realiza a exclusão lógica para o registro de uma tabela tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – entityName – id properties: entityName: type: string description: Nome da entidade id: type: string description: Id do registro responses: 200: description: Ok schema: type: object required: – deleted properties: deleted: type: boolean description: Indica se o registro está/foi excluído errorMessage: type: string description: Mensagem de erro 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/actions/undoSoftExclude: post: description: Realiza a compensação da exclusão lógica para o registro de uma tabela tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – entityName – id properties: entityName: type: string description: Nome da entidade id: type: string description: Id do registro responses: 200: description: Ok schema: type: object required: – deleted properties: deleted: type: boolean description: Indica se o registro está/foi excluído errorMessage: type: string description: Mensagem de erro 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/actions/getTablesWithForeignKeyReferences: post: description: Retorna quais tabelas possuem Foreign Keys para a tabela informada tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – tableNames properties: tableNames: type: array items: type: string minimum: 1 description: Nomes das tabelas responses: 200: description: Ok schema: type: object required: – tablesReferences properties: tablesReferences: type: array items: type: object allOf: – #/definitions/tableForeignKeyReference minimum: 1 description: Lista de tabelas referenciadas 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/actions/obterUrlUpload: post: description: Retorna a Url para upload do arquivo tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – nomeArquivo properties: nomeArquivo: type: string description: nome do arquivo anexo responses: 200: description: Ok schema: type: object required: – id – url – nome – versao properties: id: type: string description: id do arquivo url: type: string description: URL para upload do arquivo nome: type: string description: nome do arquivo versao: type: string description: versão do arquivo 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/actions/salvarArquivo: post: description: Confirma a gravação do arquivo no serviço na versão em que ocorreu o upload tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – nomeArquivo – versao properties: nomeArquivo: type: string description: Nome do Arquivo versao: type: string description: Versão do Arquivo responses: 200: description: Ok schema: type: object required: – resultado properties: resultado: type: string description: Resultado da operação (OK) 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/actions/importarExtrato: post: description: Inicia o processo de importação de extrato tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – nomeArquivo – versaoArquivo properties: nomeArquivo: type: string description: Nome do arquivo versaoArquivo: type: string description: Versão do arquivo responses: 200: description: Ok schema: type: object required: – id properties: id: type: string description: Id da importação criada 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/actions/vincularFilialConta: post: description: Vincula a filial à conta importada via arquivo OFX tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – contaId – cnpj properties: contaId: type: string description: Id da entidade conta bancária de origem do arquivo OFX cnpj: type: string description: CNPJ da filial associado à conta vinculada responses: 200: description: Ok schema: type: object 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/actions/configurarSaldoInicialImportacao: post: description: Configura o saldo inicial de contas importadas via OFX que não possuem histórico prévio tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – saldos properties: saldos: type: array items: type: object allOf: – #/definitions/recSaldoInicialConta minimum: 1 description: Lista de saldos iniciais por conta responses: 200: description: Ok schema: type: object required: – sucesso properties: sucesso: type: boolean description: Indica se a operação foi concluída com sucesso 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/actions/excluirMovimentacaoConferencia: post: description: Exclui uma movimentação da conferência (lógica para OFX, física para manual) tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – id – origem properties: id: type: string description: UUID da movimentação a excluir origem: type: string description: Origem do lançamento: OFX ou MANUAL responses: 200: description: Ok schema: type: object required: – sucesso properties: sucesso: type: boolean description: Indica se a operação foi concluída com sucesso 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/actions/incluirMovimentacaoManual: post: description: Adiciona um lançamento manual na conferência da importação OFX tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – idConta – data – operacao – valor – descricao properties: idConta: type: string description: ID da conta bancária OFX (ofxDadosBancariosConta.id) data: type: string format: date description: Data da movimentação operacao: type: string allOf: – #/definitions/enumOperacao description: Tipo de operação valor: type: string description: Valor da movimentação (deve ser maior que zero) descricao: type: string maxLength: 255 description: Descrição/histórico da movimentação responses: 200: description: Ok schema: type: object required: – id properties: id: type: string description: ID do lançamento manual criado 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/actions/confirmarImportacaoDefinitiva: post: description: Confirma a importação definitiva de extratos OFX. Valida as importações individualmente, altera status para EM_PROCESSAMENTO e dispara o processamento assíncrono das importações válidas. tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – idsImportacoes properties: idsImportacoes: type: array items: type: string minimum: 1 description: Identificadores das importações a confirmar (1 a 100) responses: 200: description: Ok schema: type: object required: – aceito – idsAceitos – rejeitadas properties: aceito: type: boolean description: Indica se ao menos uma importação foi aceita para processamento idsAceitos: type: array items: type: string minimum: 1 description: Identificadores das importações aceitas para processamento rejeitadas: type: array items: type: object allOf: – #/definitions/recImportacaoRejeitada minimum: 1 description: Importações rejeitadas e o motivo de cada rejeição 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/actions/reenviarImportacaoErp: post: description: Reenvia ao ERP as movimentações que falharam no envio anterior tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – idsImportacoes properties: idsImportacoes: type: array items: type: string minimum: 1 description: Identificadores das importações responses: 200: description: Ok schema: type: object required: – resultados properties: resultados: type: array items: type: object allOf: – #/definitions/recResultadoReenvio minimum: 1 description: Resultado do reenvio por importação 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/actions/odata: post: description: tags: – Actions x-senior-visibility: PRIVATE responses: 204: description: No response 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/actions/importE070emp: post: description: tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – config properties: config: type: object allOf: – #/definitions/importConfig description: responses: 200: description: Ok schema: type: object required: – importJobId properties: importJobId: type: string description: 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/actions/importE070fil: post: description: tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – config properties: config: type: object allOf: – #/definitions/importConfig description: responses: 200: description: Ok schema: type: object required: – importJobId properties: importJobId: type: string description: 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/actions/importCargaInicial: post: description: tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – config properties: config: type: object allOf: – #/definitions/importConfig description: responses: 200: description: Ok schema: type: object required: – importJobId properties: importJobId: type: string description: 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/actions/importConta: post: description: tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – config properties: config: type: object allOf: – #/definitions/importConfig description: responses: 200: description: Ok schema: type: object required: – importJobId properties: importJobId: type: string description: 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/actions/importSaldoConta: post: description: tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – config properties: config: type: object allOf: – #/definitions/importConfig description: responses: 200: description: Ok schema: type: object required: – importJobId properties: importJobId: type: string description: 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/actions/importStatusAtualizacaoExtrato: post: description: tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – config properties: config: type: object allOf: – #/definitions/importConfig description: responses: 200: description: Ok schema: type: object required: – importJobId properties: importJobId: type: string description: 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/actions/importCotaAtualizacaoSaldo: post: description: tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – config properties: config: type: object allOf: – #/definitions/importConfig description: responses: 200: description: Ok schema: type: object required: – importJobId properties: importJobId: type: string description: 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/actions/importExtratoConta: post: description: tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – config properties: config: type: object allOf: – #/definitions/importConfig description: responses: 200: description: Ok schema: type: object required: – importJobId properties: importJobId: type: string description: 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/actions/importOfxDadosBancariosConta: post: description: tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – config properties: config: type: object allOf: – #/definitions/importConfig description: responses: 200: description: Ok schema: type: object required: – importJobId properties: importJobId: type: string description: 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/actions/importOfxExtratoImportadoConta: post: description: tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – config properties: config: type: object allOf: – #/definitions/importConfig description: responses: 200: description: Ok schema: type: object required: – importJobId properties: importJobId: type: string description: 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/actions/importOfxLancamentoConta: post: description: tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – config properties: config: type: object allOf: – #/definitions/importConfig description: responses: 200: description: Ok schema: type: object required: – importJobId properties: importJobId: type: string description: 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/actions/importOfxSaldoAdicionalConta: post: description: tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – config properties: config: type: object allOf: – #/definitions/importConfig description: responses: 200: description: Ok schema: type: object required: – importJobId properties: importJobId: type: string description: 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/actions/importOfxImportacaoArquivoExtrato: post: description: tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – config properties: config: type: object allOf: – #/definitions/importConfig description: responses: 200: description: Ok schema: type: object required: – importJobId properties: importJobId: type: string description: 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/actions/importOfxLancamentoManualConta: post: description: tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – config properties: config: type: object allOf: – #/definitions/importConfig description: responses: 200: description: Ok schema: type: object required: – importJobId properties: importJobId: type: string description: 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/signals/atualizarSaldosAutomaticamente: post: description: Signal interno para executar a atualização automática dos saldos tags: – Signals parameters: – name: input in: body required: true schema: type: object responses: 202: description: Accepted default: description: Error response schema: #/definitions/genericError /contas/signals/atualizarExtratosAutomaticamente: post: description: Signal interno para executar a atualização automática dos extratos tags: – Signals parameters: – name: input in: body required: true schema: type: object responses: 202: description: Accepted default: description: Error response schema: #/definitions/genericError /contas/signals/processarImportacaoOFX: post: description: Signal interno para processamento assíncrono da importação OFX. Persiste movimentações nas tabelas principais e calcula saldos. Processa em lote e de forma sequencial as importações confirmadas juntas para evitar concorrência na criação de contas e no cálculo de saldos. tags: – Signals parameters: – name: input in: body required: true schema: type: object required: – idsImportacoes properties: idsImportacoes: type: array items: type: string minimum: 1 description: Identificadores das importações a processar, na ordem de processamento (mais antiga primeiro) responses: 202: description: Accepted default: description: Error response schema: #/definitions/genericError /contas/signals/finalizarImportacaoOFX: post: description: Signal interno para finalização da importação OFX. Responsável pelo envio das movimentações ao ERP cliente. tags: – Signals parameters: – name: input in: body required: true schema: type: object required: – idImportacao properties: idImportacao: type: string description: Identificador da importação finalizada responses: 202: description: Accepted default: description: Error response schema: #/definitions/genericError /contas/events/statementUpdated: post: description: Evento público responsável por informar a atualização do extrato de acordo com as movimentações financeiras da conta x-senior-event: true tags: – Events parameters: – name: input in: body required: true schema: type: object allOf: – #/definitions/accountMovement responses: 200: description: OK default: description: Error response schema: #/definitions/genericError /contas/events/importE070empEvent: post: description: x-senior-event: true tags: – Events parameters: – name: input in: body required: true schema: type: object required: – eventpl properties: eventpl: type: object allOf: – #/definitions/importEventStatus description: responses: 200: description: OK default: description: Error response schema: #/definitions/genericError /contas/events/exportE070empEvent: post: description: x-senior-event: true tags: – Events parameters: – name: input in: body required: true schema: type: object required: – eventpl properties: eventpl: type: object allOf: – #/definitions/exportEventStatus description: responses: 200: description: OK default: description: Error response schema: #/definitions/genericError /contas/events/importE070filEvent: post: description: x-senior-event: true tags: – Events parameters: – name: input in: body required: true schema: type: object required: – eventpl properties: eventpl: type: object allOf: – #/definitions/importEventStatus description: responses: 200: description: OK default: description: Error response schema: #/definitions/genericError /contas/events/exportE070filEvent: post: description: x-senior-event: true tags: – Events parameters: – name: input in: body required: true schema: type: object required: – eventpl properties: eventpl: type: object allOf: – #/definitions/exportEventStatus description: responses: 200: description: OK default: description: Error response schema: #/definitions/genericError /contas/events/importCargaInicialEvent: post: description: x-senior-event: true tags: – Events parameters: – name: input in: body required: true schema: type: object required: – eventpl properties: eventpl: type: object allOf: – #/definitions/importEventStatus description: responses: 200: description: OK default: description: Error response schema: #/definitions/genericError /contas/events/exportCargaInicialEvent: post: description: x-senior-event: true tags: – Events parameters: – name: input in: body required: true schema: type: object required: – eventpl properties: eventpl: type: object allOf: – #/definitions/exportEventStatus description: responses: 200: description: OK default: description: Error response schema: #/definitions/genericError /contas/events/importContaEvent: post: description: x-senior-event: true tags: – Events parameters: – name: input in: body required: true schema: type: object required: – eventpl properties: eventpl: type: object allOf: – #/definitions/importEventStatus description: responses: 200: description: OK default: description: Error response schema: #/definitions/genericError /contas/events/exportContaEvent: post: description: x-senior-event: true tags: – Events parameters: – name: input in: body required: true schema: type: object required: – eventpl properties: eventpl: type: object allOf: – #/definitions/exportEventStatus description: responses: 200: description: OK default: description: Error response schema: #/definitions/genericError /contas/events/importSaldoContaEvent: post: description: x-senior-event: true tags: – Events parameters: – name: input in: body required: true schema: type: object required: – eventpl properties: eventpl: type: object allOf: – #/definitions/importEventStatus description: responses: 200: description: OK default: description: Error response schema: #/definitions/genericError /contas/events/exportSaldoContaEvent: post: description: x-senior-event: true tags: – Events parameters: – name: input in: body required: true schema: type: object required: – eventpl properties: eventpl: type: object allOf: – #/definitions/exportEventStatus description: responses: 200: description: OK default: description: Error response schema: #/definitions/genericError /contas/events/importStatusAtualizacaoExtratoEvent: post: description: x-senior-event: true tags: – Events parameters: – name: input in: body required: true schema: type: object required: – eventpl properties: eventpl: type: object allOf: – #/definitions/importEventStatus description: responses: 200: description: OK default: description: Error response schema: #/definitions/genericError /contas/events/exportStatusAtualizacaoExtratoEvent: post: description: x-senior-event: true tags: – Events parameters: – name: input in: body required: true schema: type: object required: – eventpl properties: eventpl: type: object allOf: – #/definitions/exportEventStatus description: responses: 200: description: OK default: description: Error response schema: #/definitions/genericError /contas/events/importCotaAtualizacaoSaldoEvent: post: description: x-senior-event: true tags: – Events parameters: – name: input in: body required: true schema: type: object required: – eventpl properties: eventpl: type: object allOf: – #/definitions/importEventStatus description: responses: 200: description: OK default: description: Error response schema: #/definitions/genericError /contas/events/exportCotaAtualizacaoSaldoEvent: post: description: x-senior-event: true tags: – Events parameters: – name: input in: body required: true schema: type: object required: – eventpl properties: eventpl: type: object allOf: – #/definitions/exportEventStatus description: responses: 200: description: OK default: description: Error response schema: #/definitions/genericError /contas/events/importExtratoContaEvent: post: description: x-senior-event: true tags: – Events parameters: – name: input in: body required: true schema: type: object required: – eventpl properties: eventpl: type: object allOf: – #/definitions/importEventStatus description: responses: 200: description: OK default: description: Error response schema: #/definitions/genericError /contas/events/exportExtratoContaEvent: post: description: x-senior-event: true tags: – Events parameters: – name: input in: body required: true schema: type: object required: – eventpl properties: eventpl: type: object allOf: – #/definitions/exportEventStatus description: responses: 200: description: OK default: description: Error response schema: #/definitions/genericError /contas/events/importOfxDadosBancariosContaEvent: post: description: x-senior-event: true tags: – Events parameters: – name: input in: body required: true schema: type: object required: – eventpl properties: eventpl: type: object allOf: – #/definitions/importEventStatus description: responses: 200: description: OK default: description: Error response schema: #/definitions/genericError /contas/events/exportOfxDadosBancariosContaEvent: post: description: x-senior-event: true tags: – Events parameters: – name: input in: body required: true schema: type: object required: – eventpl properties: eventpl: type: object allOf: – #/definitions/exportEventStatus description: responses: 200: description: OK default: description: Error response schema: #/definitions/genericError /contas/events/importOfxExtratoImportadoContaEvent: post: description: x-senior-event: true tags: – Events parameters: – name: input in: body required: true schema: type: object required: – eventpl properties: eventpl: type: object allOf: – #/definitions/importEventStatus description: responses: 200: description: OK default: description: Error response schema: #/definitions/genericError /contas/events/exportOfxExtratoImportadoContaEvent: post: description: x-senior-event: true tags: – Events parameters: – name: input in: body required: true schema: type: object required: – eventpl properties: eventpl: type: object allOf: – #/definitions/exportEventStatus description: responses: 200: description: OK default: description: Error response schema: #/definitions/genericError /contas/events/importOfxLancamentoContaEvent: post: description: x-senior-event: true tags: – Events parameters: – name: input in: body required: true schema: type: object required: – eventpl properties: eventpl: type: object allOf: – #/definitions/importEventStatus description: responses: 200: description: OK default: description: Error response schema: #/definitions/genericError /contas/events/exportOfxLancamentoContaEvent: post: description: x-senior-event: true tags: – Events parameters: – name: input in: body required: true schema: type: object required: – eventpl properties: eventpl: type: object allOf: – #/definitions/exportEventStatus description: responses: 200: description: OK default: description: Error response schema: #/definitions/genericError /contas/events/importOfxSaldoAdicionalContaEvent: post: description: x-senior-event: true tags: – Events parameters: – name: input in: body required: true schema: type: object required: – eventpl properties: eventpl: type: object allOf: – #/definitions/importEventStatus description: responses: 200: description: OK default: description: Error response schema: #/definitions/genericError /contas/events/exportOfxSaldoAdicionalContaEvent: post: description: x-senior-event: true tags: – Events parameters: – name: input in: body required: true schema: type: object required: – eventpl properties: eventpl: type: object allOf: – #/definitions/exportEventStatus description: responses: 200: description: OK default: description: Error response schema: #/definitions/genericError /contas/events/importOfxImportacaoArquivoExtratoEvent: post: description: x-senior-event: true tags: – Events parameters: – name: input in: body required: true schema: type: object required: – eventpl properties: eventpl: type: object allOf: – #/definitions/importEventStatus description: responses: 200: description: OK default: description: Error response schema: #/definitions/genericError /contas/events/exportOfxImportacaoArquivoExtratoEvent: post: description: x-senior-event: true tags: – Events parameters: – name: input in: body required: true schema: type: object required: – eventpl properties: eventpl: type: object allOf: – #/definitions/exportEventStatus description: responses: 200: description: OK default: description: Error response schema: #/definitions/genericError /contas/events/importOfxLancamentoManualContaEvent: post: description: x-senior-event: true tags: – Events parameters: – name: input in: body required: true schema: type: object required: – eventpl properties: eventpl: type: object allOf: – #/definitions/importEventStatus description: responses: 200: description: OK default: description: Error response schema: #/definitions/genericError /contas/events/exportOfxLancamentoManualContaEvent: post: description: x-senior-event: true tags: – Events parameters: – name: input in: body required: true schema: type: object required: – eventpl properties: eventpl: type: object allOf: – #/definitions/exportEventStatus description: responses: 200: description: OK default: description: Error response schema: #/definitions/genericError /contas/entities/e070emp: get: description: Esta entidade pode ser customizada. tags: – CRUD x-senior-visibility: PRIVATE parameters: – name: offset in: query type: number – name: size in: query type: number – name: filter in: query type: string – name: groupby in: query type: string – name: displayfields in: query type: string – name: translation in: query type: boolean responses: 200: description: Ok schema: type: object properties: totalPages: description: Quantidade total de páginas: total de registros dividido pelo tamanho solicitado da página, arredondado pra cima type: integer format: int64 totalElements: description: Quantidade total de registros type: integer format: int64 contents: type: array items: #/definitions/e070emp 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/entities/e070fil: get: description: Esta entidade pode ser customizada. tags: – CRUD x-senior-visibility: PRIVATE parameters: – name: offset in: query type: number – name: size in: query type: number – name: filter in: query type: string – name: groupby in: query type: string – name: displayfields in: query type: string – name: translation in: query type: boolean responses: 200: description: Ok schema: type: object properties: totalPages: description: Quantidade total de páginas: total de registros dividido pelo tamanho solicitado da página, arredondado pra cima type: integer format: int64 totalElements: description: Quantidade total de registros type: integer format: int64 contents: type: array items: #/definitions/e070fil 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/entities/cargaInicial: get: description: Esta entidade pode ser customizada. tags: – CRUD x-senior-visibility: PRIVATE parameters: – name: offset in: query type: number – name: size in: query type: number – name: filter in: query type: string – name: groupby in: query type: string – name: displayfields in: query type: string – name: translation in: query type: boolean responses: 200: description: Ok schema: type: object properties: totalPages: description: Quantidade total de páginas: total de registros dividido pelo tamanho solicitado da página, arredondado pra cima type: integer format: int64 totalElements: description: Quantidade total de registros type: integer format: int64 contents: type: array items: #/definitions/cargaInicial 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/entities/conta: get: description: Esta entidade pode ser customizada. tags: – CRUD x-senior-visibility: PRIVATE parameters: – name: offset in: query type: number – name: size in: query type: number – name: filter in: query type: string – name: groupby in: query type: string – name: displayfields in: query type: string – name: translation in: query type: boolean responses: 200: description: Ok schema: type: object properties: totalPages: description: Quantidade total de páginas: total de registros dividido pelo tamanho solicitado da página, arredondado pra cima type: integer format: int64 totalElements: description: Quantidade total de registros type: integer format: int64 contents: type: array items: #/definitions/conta 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/entities/saldoConta: get: description: Esta entidade pode ser customizada. tags: – CRUD x-senior-visibility: PRIVATE parameters: – name: offset in: query type: number – name: size in: query type: number – name: filter in: query type: string – name: groupby in: query type: string – name: displayfields in: query type: string – name: translation in: query type: boolean responses: 200: description: Ok schema: type: object properties: totalPages: description: Quantidade total de páginas: total de registros dividido pelo tamanho solicitado da página, arredondado pra cima type: integer format: int64 totalElements: description: Quantidade total de registros type: integer format: int64 contents: type: array items: #/definitions/saldoConta 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/entities/conta/{parentId}/saldoConta: post: description: Esta entidade pode ser customizada. tags: – CRUD x-senior-visibility: PRIVATE parameters: – name: parentId in: path required: true type: string – name: entity in: body required: true schema: type: object allOf: – #/definitions/saldoConta responses: 200: description: The created resource schema: #/definitions/saldoConta 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError patch: description: Esta entidade pode ser customizada. tags: – CRUD x-senior-visibility: PRIVATE parameters: – name: parentId in: path required: true type: string – name: entity in: body required: true schema: type: object allOf: – #/definitions/saldoConta responses: 200: description: The created resource schema: #/definitions/saldoConta 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError get: description: Esta entidade pode ser customizada. tags: – CRUD x-senior-visibility: PRIVATE parameters: – name: parentId in: path required: true type: string – name: offset in: query type: number – name: size in: query type: number – name: filter in: query type: string – name: groupby in: query type: string – name: displayfields in: query type: string – name: translation in: query type: boolean responses: 200: description: Ok schema: type: object properties: totalPages: description: Quantidade total de páginas: total de registros dividido pelo tamanho solicitado da página, arredondado pra cima type: integer format: int64 totalElements: description: Quantidade total de registros type: integer format: int64 contents: type: array items: #/definitions/saldoConta 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/entities/conta/{parentId}/saldoConta/{id}: put: description: Esta entidade pode ser customizada. tags: – CRUD x-senior-visibility: PRIVATE parameters: – name: parentId in: path required: true type: string – name: id in: path required: true type: string – name: entity in: body required: true schema: #/definitions/editSaldoConta responses: 200: description: Ok schema: #/definitions/editSaldoConta 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError patch: description: Esta entidade pode ser customizada. tags: – CRUD x-senior-visibility: PRIVATE parameters: – name: parentId in: path required: true type: string – name: id in: path required: true type: string – name: entity in: body required: true schema: #/definitions/saldoConta responses: 200: description: Ok schema: #/definitions/saldoConta 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError get: description: Esta entidade pode ser customizada. tags: – CRUD x-senior-visibility: PRIVATE parameters: – name: parentId in: path required: true type: string – name: id in: path required: true type: string responses: 200: description: Ok schema: #/definitions/saldoConta 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError delete: description: Esta entidade pode ser customizada. tags: – CRUD x-senior-visibility: PRIVATE parameters: – name: parentId in: path required: true type: string – name: id in: path required: true type: string responses: 200: description: Ok 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/entities/extratoConta: get: description: Esta entidade pode ser customizada. tags: – CRUD x-senior-visibility: PRIVATE parameters: – name: offset in: query type: number – name: size in: query type: number – name: filter in: query type: string – name: groupby in: query type: string – name: displayfields in: query type: string – name: translation in: query type: boolean responses: 200: description: Ok schema: type: object properties: totalPages: description: Quantidade total de páginas: total de registros dividido pelo tamanho solicitado da página, arredondado pra cima type: integer format: int64 totalElements: description: Quantidade total de registros type: integer format: int64 contents: type: array items: #/definitions/extratoConta 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/entities/conta/{parentId}/extratoConta: post: description: Esta entidade pode ser customizada. tags: – CRUD x-senior-visibility: PRIVATE parameters: – name: parentId in: path required: true type: string – name: entity in: body required: true schema: type: array items: #/definitions/extratoConta responses: 200: description: The created resources schema: type: array items: #/definitions/extratoConta 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError patch: description: Esta entidade pode ser customizada. tags: – CRUD x-senior-visibility: PRIVATE parameters: – name: parentId in: path required: true type: string – name: entity in: body required: true schema: type: array items: #/definitions/extratoConta responses: 200: description: The created resources schema: type: array items: #/definitions/extratoConta 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError get: description: Esta entidade pode ser customizada. tags: – CRUD x-senior-visibility: PRIVATE parameters: – name: parentId in: path required: true type: string – name: offset in: query type: number – name: size in: query type: number – name: filter in: query type: string – name: groupby in: query type: string – name: displayfields in: query type: string – name: translation in: query type: boolean responses: 200: description: Ok schema: type: object properties: totalPages: description: Quantidade total de páginas: total de registros dividido pelo tamanho solicitado da página, arredondado pra cima type: integer format: int64 totalElements: description: Quantidade total de registros type: integer format: int64 contents: type: array items: #/definitions/extratoConta 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/entities/conta/{parentId}/extratoConta/{id}: put: description: Esta entidade pode ser customizada. tags: – CRUD x-senior-visibility: PRIVATE parameters: – name: parentId in: path required: true type: string – name: id in: path required: true type: string – name: entity in: body required: true schema: #/definitions/editExtratoConta responses: 200: description: Ok schema: #/definitions/editExtratoConta 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError patch: description: Esta entidade pode ser customizada. tags: – CRUD x-senior-visibility: PRIVATE parameters: – name: parentId in: path required: true type: string – name: id in: path required: true type: string – name: entity in: body required: true schema: #/definitions/extratoConta responses: 200: description: Ok schema: #/definitions/extratoConta 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError get: description: Esta entidade pode ser customizada. tags: – CRUD x-senior-visibility: PRIVATE parameters: – name: parentId in: path required: true type: string – name: id in: path required: true type: string responses: 200: description: Ok schema: #/definitions/extratoConta 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError delete: description: Esta entidade pode ser customizada. tags: – CRUD x-senior-visibility: PRIVATE parameters: – name: parentId in: path required: true type: string – name: id in: path required: true type: string responses: 200: description: Ok 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/entities/ofxDadosBancariosConta: get: description: Esta entidade pode ser customizada. tags: – CRUD x-senior-visibility: PRIVATE parameters: – name: offset in: query type: number – name: size in: query type: number – name: filter in: query type: string – name: groupby in: query type: string – name: displayfields in: query type: string – name: translation in: query type: boolean responses: 200: description: Ok schema: type: object properties: totalPages: description: Quantidade total de páginas: total de registros dividido pelo tamanho solicitado da página, arredondado pra cima type: integer format: int64 totalElements: description: Quantidade total de registros type: integer format: int64 contents: type: array items: #/definitions/ofxDadosBancariosConta 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/entities/ofxExtratoImportadoConta: get: description: Esta entidade pode ser customizada. tags: – CRUD x-senior-visibility: PRIVATE parameters: – name: offset in: query type: number – name: size in: query type: number – name: filter in: query type: string – name: groupby in: query type: string – name: displayfields in: query type: string – name: translation in: query type: boolean responses: 200: description: Ok schema: type: object properties: totalPages: description: Quantidade total de páginas: total de registros dividido pelo tamanho solicitado da página, arredondado pra cima type: integer format: int64 totalElements: description: Quantidade total de registros type: integer format: int64 contents: type: array items: #/definitions/ofxExtratoImportadoConta 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/entities/ofxDadosBancariosConta/{parentId}/extratos: post: description: Esta entidade pode ser customizada. tags: – CRUD x-senior-visibility: PRIVATE parameters: – name: parentId in: path required: true type: string – name: entity in: body required: true schema: type: array items: #/definitions/ofxExtratoImportadoConta responses: 200: description: The created resources schema: type: array items: #/definitions/ofxExtratoImportadoConta 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError patch: description: Esta entidade pode ser customizada. tags: – CRUD x-senior-visibility: PRIVATE parameters: – name: parentId in: path required: true type: string – name: entity in: body required: true schema: type: array items: #/definitions/ofxExtratoImportadoConta responses: 200: description: The created resources schema: type: array items: #/definitions/ofxExtratoImportadoConta 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError get: description: Esta entidade pode ser customizada. tags: – CRUD x-senior-visibility: PRIVATE parameters: – name: parentId in: path required: true type: string – name: offset in: query type: number – name: size in: query type: number – name: filter in: query type: string – name: groupby in: query type: string – name: displayfields in: query type: string – name: translation in: query type: boolean responses: 200: description: Ok schema: type: object properties: totalPages: description: Quantidade total de páginas: total de registros dividido pelo tamanho solicitado da página, arredondado pra cima type: integer format: int64 totalElements: description: Quantidade total de registros type: integer format: int64 contents: type: array items: #/definitions/ofxExtratoImportadoConta 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/entities/ofxDadosBancariosConta/{parentId}/extratos/{id}: put: description: Esta entidade pode ser customizada. tags: – CRUD x-senior-visibility: PRIVATE parameters: – name: parentId in: path required: true type: string – name: id in: path required: true type: string – name: entity in: body required: true schema: #/definitions/editOfxExtratoImportadoConta responses: 200: description: Ok schema: #/definitions/editOfxExtratoImportadoConta 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError patch: description: Esta entidade pode ser customizada. tags: – CRUD x-senior-visibility: PRIVATE parameters: – name: parentId in: path required: true type: string – name: id in: path required: true type: string – name: entity in: body required: true schema: #/definitions/ofxExtratoImportadoConta responses: 200: description: Ok schema: #/definitions/ofxExtratoImportadoConta 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError get: description: Esta entidade pode ser customizada. tags: – CRUD x-senior-visibility: PRIVATE parameters: – name: parentId in: path required: true type: string – name: id in: path required: true type: string responses: 200: description: Ok schema: #/definitions/ofxExtratoImportadoConta 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError delete: description: Esta entidade pode ser customizada. tags: – CRUD x-senior-visibility: PRIVATE parameters: – name: parentId in: path required: true type: string – name: id in: path required: true type: string responses: 200: description: Ok 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/entities/ofxLancamentoConta: get: description: Esta entidade pode ser customizada. tags: – CRUD x-senior-visibility: PRIVATE parameters: – name: offset in: query type: number – name: size in: query type: number – name: filter in: query type: string – name: groupby in: query type: string – name: displayfields in: query type: string – name: translation in: query type: boolean responses: 200: description: Ok schema: type: object properties: totalPages: description: Quantidade total de páginas: total de registros dividido pelo tamanho solicitado da página, arredondado pra cima type: integer format: int64 totalElements: description: Quantidade total de registros type: integer format: int64 contents: type: array items: #/definitions/ofxLancamentoConta 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/entities/ofxExtratoImportadoConta/{parentId}/lancamentos: post: description: Esta entidade pode ser customizada. tags: – CRUD x-senior-visibility: PRIVATE parameters: – name: parentId in: path required: true type: string – name: entity in: body required: true schema: type: array items: #/definitions/ofxLancamentoConta responses: 200: description: The created resources schema: type: array items: #/definitions/ofxLancamentoConta 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError patch: description: Esta entidade pode ser customizada. tags: – CRUD x-senior-visibility: PRIVATE parameters: – name: parentId in: path required: true type: string – name: entity in: body required: true schema: type: array items: #/definitions/ofxLancamentoConta responses: 200: description: The created resources schema: type: array items: #/definitions/ofxLancamentoConta 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError get: description: Esta entidade pode ser customizada. tags: – CRUD x-senior-visibility: PRIVATE parameters: – name: parentId in: path required: true type: string – name: offset in: query type: number – name: size in: query type: number – name: filter in: query type: string – name: groupby in: query type: string – name: displayfields in: query type: string – name: translation in: query type: boolean responses: 200: description: Ok schema: type: object properties: totalPages: description: Quantidade total de páginas: total de registros dividido pelo tamanho solicitado da página, arredondado pra cima type: integer format: int64 totalElements: description: Quantidade total de registros type: integer format: int64 contents: type: array items: #/definitions/ofxLancamentoConta 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/entities/ofxExtratoImportadoConta/{parentId}/lancamentos/{id}: put: description: Esta entidade pode ser customizada. tags: – CRUD x-senior-visibility: PRIVATE parameters: – name: parentId in: path required: true type: string – name: id in: path required: true type: string – name: entity in: body required: true schema: #/definitions/editOfxLancamentoConta responses: 200: description: Ok schema: #/definitions/editOfxLancamentoConta 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError patch: description: Esta entidade pode ser customizada. tags: – CRUD x-senior-visibility: PRIVATE parameters: – name: parentId in: path required: true type: string – name: id in: path required: true type: string – name: entity in: body required: true schema: #/definitions/ofxLancamentoConta responses: 200: description: Ok schema: #/definitions/ofxLancamentoConta 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError get: description: Esta entidade pode ser customizada. tags: – CRUD x-senior-visibility: PRIVATE parameters: – name: parentId in: path required: true type: string – name: id in: path required: true type: string responses: 200: description: Ok schema: #/definitions/ofxLancamentoConta 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError delete: description: Esta entidade pode ser customizada. tags: – CRUD x-senior-visibility: PRIVATE parameters: – name: parentId in: path required: true type: string – name: id in: path required: true type: string responses: 200: description: Ok 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/entities/ofxSaldoAdicionalConta: get: description: Esta entidade pode ser customizada. tags: – CRUD x-senior-visibility: PRIVATE parameters: – name: offset in: query type: number – name: size in: query type: number – name: filter in: query type: string – name: groupby in: query type: string – name: displayfields in: query type: string – name: translation in: query type: boolean responses: 200: description: Ok schema: type: object properties: totalPages: description: Quantidade total de páginas: total de registros dividido pelo tamanho solicitado da página, arredondado pra cima type: integer format: int64 totalElements: description: Quantidade total de registros type: integer format: int64 contents: type: array items: #/definitions/ofxSaldoAdicionalConta 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/entities/ofxExtratoImportadoConta/{parentId}/saldosAdicionais: post: description: Esta entidade pode ser customizada. tags: – CRUD x-senior-visibility: PRIVATE parameters: – name: parentId in: path required: true type: string – name: entity in: body required: true schema: type: array items: #/definitions/ofxSaldoAdicionalConta responses: 200: description: The created resources schema: type: array items: #/definitions/ofxSaldoAdicionalConta 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError patch: description: Esta entidade pode ser customizada. tags: – CRUD x-senior-visibility: PRIVATE parameters: – name: parentId in: path required: true type: string – name: entity in: body required: true schema: type: array items: #/definitions/ofxSaldoAdicionalConta responses: 200: description: The created resources schema: type: array items: #/definitions/ofxSaldoAdicionalConta 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError get: description: Esta entidade pode ser customizada. tags: – CRUD x-senior-visibility: PRIVATE parameters: – name: parentId in: path required: true type: string – name: offset in: query type: number – name: size in: query type: number – name: filter in: query type: string – name: groupby in: query type: string – name: displayfields in: query type: string – name: translation in: query type: boolean responses: 200: description: Ok schema: type: object properties: totalPages: description: Quantidade total de páginas: total de registros dividido pelo tamanho solicitado da página, arredondado pra cima type: integer format: int64 totalElements: description: Quantidade total de registros type: integer format: int64 contents: type: array items: #/definitions/ofxSaldoAdicionalConta 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/entities/ofxExtratoImportadoConta/{parentId}/saldosAdicionais/{id}: put: description: Esta entidade pode ser customizada. tags: – CRUD x-senior-visibility: PRIVATE parameters: – name: parentId in: path required: true type: string – name: id in: path required: true type: string – name: entity in: body required: true schema: #/definitions/editOfxSaldoAdicionalConta responses: 200: description: Ok schema: #/definitions/editOfxSaldoAdicionalConta 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError patch: description: Esta entidade pode ser customizada. tags: – CRUD x-senior-visibility: PRIVATE parameters: – name: parentId in: path required: true type: string – name: id in: path required: true type: string – name: entity in: body required: true schema: #/definitions/ofxSaldoAdicionalConta responses: 200: description: Ok schema: #/definitions/ofxSaldoAdicionalConta 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError get: description: Esta entidade pode ser customizada. tags: – CRUD x-senior-visibility: PRIVATE parameters: – name: parentId in: path required: true type: string – name: id in: path required: true type: string responses: 200: description: Ok schema: #/definitions/ofxSaldoAdicionalConta 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError delete: description: Esta entidade pode ser customizada. tags: – CRUD x-senior-visibility: PRIVATE parameters: – name: parentId in: path required: true type: string – name: id in: path required: true type: string responses: 200: description: Ok 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/entities/ofxImportacaoArquivoExtrato: get: description: Esta entidade pode ser customizada. tags: – CRUD x-senior-visibility: PRIVATE parameters: – name: offset in: query type: number – name: size in: query type: number – name: filter in: query type: string – name: groupby in: query type: string – name: displayfields in: query type: string – name: translation in: query type: boolean responses: 200: description: Ok schema: type: object properties: totalPages: description: Quantidade total de páginas: total de registros dividido pelo tamanho solicitado da página, arredondado pra cima type: integer format: int64 totalElements: description: Quantidade total de registros type: integer format: int64 contents: type: array items: #/definitions/ofxImportacaoArquivoExtrato 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError /contas/entities/ofxLancamentoManualConta: get: description: Esta entidade pode ser customizada. tags: – CRUD x-senior-visibility: PRIVATE parameters: – name: offset in: query type: number – name: size in: query type: number – name: filter in: query type: string – name: groupby in: query type: string – name: displayfields in: query type: string – name: translation in: query type: boolean responses: 200: description: Ok schema: type: object properties: totalPages: description: Quantidade total de páginas: total de registros dividido pelo tamanho solicitado da página, arredondado pra cima type: integer format: int64 totalElements: description: Quantidade total de registros type: integer format: int64 contents: type: array items: #/definitions/ofxLancamentoManualConta 401: description: Invalid Credentials default: description: Error response schema: #/definitions/genericError definitions: upDown: type: string enum: – UP – DOWN description: Up or down: * `UP` – Up * `DOWN` – Down enumTypeOrder: type: string enum: – ASC – DESC description: Enumeração para o tipo de ordenação: * `ASC` – Tipo de ordenação – Crescente * `DESC` – Tipo de ordenação – Decrescente enumBanco: type: string enum: – AILOS – AGIBANK – ASAAS – BANCO_ABC – BANCO_BMG – BANCO_BV – BANCO_DA_AMAZONIA – BANCO_DO_BRASIL – BANCO_FIBRA – BANCO_INTER – BANCO_MERCANTIL – BANCO_NORDESTE_BRASIL – BANCO_ORIGINAL – BANCO_PAN – BANCO_PAULISTA – BANCO_SAFRA – BANCO_SOFISA – BANCO_XP – BANPARA – BANRISUL – BRADESCO – BTG_PACTUAL – C6_BANK – CAIXA_ECONOMICA_FEDERAL – CITIBANK – CREFISA – CRESOL – DAYCOVAL – DIGIO – ITAU – NEON – NUBANK – PARANA_BANCO – PICPAY – SANTANDER – SICREDI – SICOOB – UNICRED description: Enumeration de bancos de recebimento: * `AILOS` – Ailos – 085 * `AGIBANK` – Agibank – 121 * `ASAAS` – Asaas – 461 * `BANCO_ABC` – Banco ABC – 246 * `BANCO_BMG` – Banco BMG – 318 * `BANCO_BV` – Banco BV – 413 * `BANCO_DA_AMAZONIA` – Banco da Amazônia – 003 * `BANCO_DO_BRASIL` – Banco do Brasil – 001 * `BANCO_FIBRA` – Banco Fibra – 224 * `BANCO_INTER` – Banco Inter – 077 * `BANCO_MERCANTIL` – Banco Mercantil – 389 * `BANCO_NORDESTE_BRASIL` – Banco do Nordeste do Brasil – 004 * `BANCO_ORIGINAL` – Banco Original – 212 * `BANCO_PAN` – Banco Pan – 623 * `BANCO_PAULISTA` – Banco Paulista – 611 * `BANCO_SAFRA` – Banco Safra – 422 * `BANCO_SOFISA` – Banco Sofisa – 637 * `BANCO_XP` – Banco XP – 348 * `BANPARA` – Banpará – 037 * `BANRISUL` – Banrisul – 041 * `BRADESCO` – Bradesco – 237 * `BTG_PACTUAL` – BTG Pactual – 208 * `C6_BANK` – C6 Bank – 336 * `CAIXA_ECONOMICA_FEDERAL` – Caixa Econômica Federal – 104 * `CITIBANK` – Citibank – 745 * `CREFISA` – Crefisa – 069 * `CRESOL` – Cresol – 133 * `DAYCOVAL` – Daycoval – 707 * `DIGIO` – Digio – 335 * `ITAU` – Itaú – 341 * `NEON` – Neon – 536 * `NUBANK` – Nubank – 260 * `PARANA_BANCO` – Paraná Banco – 254 * `PICPAY` – PicPay – 380 * `SANTANDER` – Santander – 033 * `SICREDI` – Sicredi – 748 * `SICOOB` – Sicoob – 756 * `UNICRED` – Unicred – 126 enumTipoConta: type: string enum: – CONTA_CORRENTE – CONTA_INVESTIMENTO – OPEN_FINANCE description: Enumeration de tipos de conta: * `CONTA_CORRENTE` – Conta Corrente * `CONTA_INVESTIMENTO` – Conta Investimento * `OPEN_FINANCE` – Open Finance enumOrigemConta: type: string enum: – OPEN_FINANCE – OFX description: Origem da conta bancária: * `OPEN_FINANCE` – Conta integrada via Open Finance * `OFX` – Conta importada via arquivo OFX enumEscopo: type: string enum: – SALDO – EXTRATO – CONTA description: Escopos disponiveis no banco BTG: * `SALDO` – Saldo * `EXTRATO` – Extrato * `CONTA` – Conta enumSituacaoCargaInicial: type: string enum: – PENDENTE – PROCESSANDO – SUCESSO – ERRO description: Situação da carga inicial: * `PENDENTE` – Pendente * `PROCESSANDO` – Processando * `SUCESSO` – Sucesso * `ERRO` – Erro enumOperacao: type: string enum: – DEBITO – CREDITO description: Tipo da operação: * `DEBITO` – Débito * `CREDITO` – Crédito enumCreditDebitIndicator: type: string enum: – DEBIT – CREDIT description: Tipo da operação: * `DEBIT` – Débito * `CREDIT` – Crédito enumMovementType: type: string enum: – PIX – BOLETO – OUTROS description: Tipo da operação: * `PIX` – Pix * `BOLETO` – Boleto * `OUTROS` – Outros enumOfxTipoConta: type: string enum: – CHECKING – SAVINGS – MONEYMRKT – CREDITLINE – CD description: Tipo de conta OFX (ACCTTYPE): * `CHECKING` – Conta corrente * `SAVINGS` – Poupanca * `MONEYMRKT` – Money market * `CREDITLINE` – Linha de credito * `CD` – Certificado de deposito enumOfxTipoTransacao: type: string enum: – CREDIT – DEBIT – INT – DIV – FEE – SRVCHG – DEP – ATM – POS – XFER – CHECK – PAYMENT – CASH – DIRECTDEP – DIRECTDEBIT – REPEATPMT – HOLD – OTHER description: Tipo de transação OFX (TRNTYPE): * `CREDIT` – Crédito genérico * `DEBIT` – Débito genérico * `INT` – Juros * `DIV` – Dividendo * `FEE` – Tarifa * `SRVCHG` – Encargo de serviço * `DEP` – Depósito * `ATM` – Caixa eletrônico * `POS` – Ponto de venda * `XFER` – Transferência * `CHECK` – Cheque * `PAYMENT` – Pagamento eletrônico * `CASH` – Saque * `DIRECTDEP` – Depósito direto * `DIRECTDEBIT` – Débito de comerciante * `REPEATPMT` – Pagamento recorrente * `HOLD` – Bloqueio pendente * `OTHER` – Outros enumOfxAcaoCorrecao: type: string enum: – REPLACE – DELETE description: Ação de correção da transação OFX (CORRECTACTION): * `REPLACE` – Substitui a transação corrigida * `DELETE` – Exclui a transação corrigida enumOfxTipoSaldo: type: string enum: – DOLLAR – PERCENT – NUMBER description: Tipo de saldo adicional OFX (BALTYPE): * `DOLLAR` – Valor monetario * `PERCENT` – Percentual * `NUMBER` – Numero enumStatusImportacao: type: string enum: – PENDENTE – PROCESSANDO – FINALIZADO_COM_ERRO – SUCESSO – ERRO – EM_PROCESSAMENTO – PERSISTIDO – FINALIZANDO – FINALIZADO description: Situação do processo de importação dos extratos: * `PENDENTE` – Pendente * `PROCESSANDO` – Processando * `FINALIZADO_COM_ERRO` – Finalizado com Erro * `SUCESSO` – Sucesso * `ERRO` – Erro * `EM_PROCESSAMENTO` – Em processamento (persistência e saldo) * `PERSISTIDO` – Persistido no ERP Banking, aguardando envio ao ERP cliente * `FINALIZANDO` – Finalizando (publicando movimentações ao ERP cliente) * `FINALIZADO` – Finalizado com sucesso enumOrigemMovimentacao: type: string enum: – OFX – MANUAL – OPEN_FINANCE description: Origem da movimentação: * `OFX` – OFX * `MANUAL` – Manual * `OPEN_FINANCE` – Open Finance userNotificationKind: type: string enum: – Operational – Management – News description: User notification kind.: * `Operational` – Operational * `Management` – Management * `News` – News userNotificationPriority: type: string enum: – Error – Alert – None description: User notification priority.: * `Error` – Error * `Alert` – Alert * `None` – None eventEmailFormat: type: string enum: – HTML – PLAIN_TEXT description: Format of the email: * `HTML` – Html * `PLAIN_TEXT` – Plain Text fieldType: type: string enum: – BINARY – BOOLEAN – DATE – DATETIME – LOCALDATETIME – DOUBLE – ENUM – INTEGER – MONEY – STRING – TIME description: FieldType: * `BINARY` – Binary * `BOOLEAN` – Boolean * `DATE` – Date * `DATETIME` – Datetime * `LOCALDATETIME` – Localdatetime * `DOUBLE` – Double * `ENUM` – Enum * `INTEGER` – Integer * `MONEY` – Money * `STRING` – String * `TIME` – Time fileFormat: type: string enum: – CSV – FLAT – JSON – XML description: FileFormat: * `CSV` – Csv * `FLAT` – Flat * `JSON` – Json * `XML` – Xml hookFunction: type: string enum: – BEFORE_PARSE – BEFORE_CONVERSION – ON_ERROR – VALIDATE description: HookFunction: * `BEFORE_PARSE` – Before parse * `BEFORE_CONVERSION` – Before conversion * `ON_ERROR` – On error * `VALIDATE` – Validate eventType: type: string enum: – CHUNK – DOWNLOAD – ERROR – FINISH – START description: EventType: * `CHUNK` – Chunk * `DOWNLOAD` – Download * `ERROR` – Error * `FINISH` – Finish * `START` – Start errorStrategy: type: string enum: – CALL_SCRIPT – IGNORE – STOP description: ErrorStrategy: * `CALL_SCRIPT` – Call script * `IGNORE` – Ignore * `STOP` – Stop status: type: string enum: – DONE – DONE_WITH_ERRORS – DOWNLOADING – ERROR – NOT_STARTED – RUNNING description: Status: * `DONE` – Done * `DONE_WITH_ERRORS` – Done with errors * `DOWNLOADING` – Downloading * `ERROR` – Error * `NOT_STARTED` – Not started * `RUNNING` – Running errorType: type: string enum: – CONVERT_ERROR – SERVICE_ERROR description: ErrorType: * `CONVERT_ERROR` – Convert error * `SERVICE_ERROR` – Service error recImportacaoExtrato: description: Dados de uma importação de extrato OFX type: object properties: nomeArquivo: type: string description: Nome do arquivo importado dataImportacao: type: string format: date-time description: Data e hora de criação da importação usuarioImportacao: type: string description: Login do usuário que iniciou a importação status: type: string allOf: – #/definitions/enumStatusImportacao description: Status atual da importação mensagemErro: type: string description: Mensagem de erro, quando houver dataInicioProcessamento: type: string format: date-time description: Timestamp de início do processamento atual (sobrescrito a cada fase) dataFimProcessamento: type: string format: date-time description: Timestamp de fim do processamento atual (sobrescrito a cada fase) quantidadeContasProcessadas: type: integer format: int64 description: Número de contas processadas quantidadeMovimentacoesPersistidas: type: integer format: int64 description: Total de movimentações persistidas na fase atual quantidadeMovimentacoesEnviadasSucesso: type: integer format: int64 description: Movimentações com evento enviado com sucesso quantidadeMovimentacoesEnviadasErro: type: integer format: int64 description: Movimentações cujo envio de evento falhou usuarioConfirmacao: type: string maxLength: 255 description: Login do usuário que confirmou a importação recImportacaoRejeitada: description: Importação rejeitada na confirmação da importação definitiva type: object required: – idImportacao – motivo properties: idImportacao: type: string description: Identificador da importação rejeitada motivo: type: string description: Motivo da rejeição recResumoImportacaoConta: description: Dados agregados de uma conta identificada em uma importação de extrato OFX type: object required: – idImportacao – idConta – numero – quantidadeMovimentacoes – totalCreditos – totalDebitos – possuiHistoricoPrevio properties: idImportacao: type: string description: Identificador da importação do arquivo idConta: type: string description: Identificador da conta banco: type: string allOf: – #/definitions/enumBanco description: Banco agencia: type: string maxLength: 22 description: Agência numero: type: string maxLength: 22 description: Número da conta tipoConta: type: string allOf: – #/definitions/enumOfxTipoConta description: Tipo de conta OFX moeda: type: string maxLength: 3 description: Moeda cnpj: type: string maxLength: 14 description: CNPJ associado à conta, quando vinculada a uma filial dataInicial: type: string format: date description: Data do lançamento mais antigo do período importado dataFinal: type: string format: date description: Data do lançamento mais recente do período importado quantidadeMovimentacoes: type: integer format: int64 description: Quantidade de movimentações da conta na importação totalCreditos: type: string description: Soma dos lançamentos de crédito totalDebitos: type: string description: Soma dos lançamentos de débito saldoFinal: type: string description: Saldo contábil (Ledger Balance) do extrato importado, quando informado no OFX possuiHistoricoPrevio: type: boolean description: Indica se a conta (banco+agência+número) já possui histórico de importação anterior concluída com sucesso movimentoConta: description: Dados da movimentação type: object required: – data properties: webhookId: type: string description: Id do webhook event: type: string description: Evento publicado data: type: object allOf: – #/definitions/detalhesMovimentacao description: Detalhes da movimentação detalhesMovimentacao: description: Detalhes da movimentação type: object required: – accountId – date – creditDebitIndicator – amount – currency properties: accountId: type: string description: Identificador da conta no formato CNPJ-banco-agência-conta date: type: string description: Data da movimentação creditDebitIndicator: type: string description: Indica se é crédito ou débito amount: type: string description: Valor da movimentação currency: type: string description: Moeda transactionId: type: string description: Id da transação type: type: string description: Tipo de pagamento/cobrança reason: type: string description: Razão relatedParty: type: object allOf: – #/definitions/recRelatedParty description: Dados da conta payload: type: object allOf: – #/definitions/recTransaction description: Dados de transação description: type: string description: Descrição febrabanCode: type: string description: Código de ocorrência accountMovement: description: Dados da movimentação type: object required: – account – movementDate – creditDebitIndicator – amount – currency properties: account: type: object allOf: – #/definitions/recAccount description: Dados da conta movementDate: type: string format: date-time description: Data da movimentação movementDateUtc: type: string format: date-time description: Data da movimentação em UTC creditDebitIndicator: type: string allOf: – #/definitions/enumCreditDebitIndicator description: Indica se é crédito ou débito amount: type: string description: Valor da movimentação currency: type: string description: Moeda documentNumber: type: string description: Número do documento movementType: type: string allOf: – #/definitions/enumMovementType description: Tipo de pagamento/cobrança reason: type: string description: Razão relatedParty: type: object allOf: – #/definitions/recRelatedParty description: Dados da parte relacionada transaction: type: object allOf: – #/definitions/recTransaction description: Dados de transação description: type: string description: Descrição febrabanCode: type: string description: Código de ocorrência saldoDisponivel: description: Dados de saldo disponível type: object properties: webhookId: type: string description: Id do webhook event: type: string description: Evento publicado data: type: object allOf: – #/definitions/detalhesSaldoDisponivel description: Detalhes do saldo disponível detalhesSaldoDisponivel: description: Dados de saldo disponível type: object required: – accountId – bankCode – taxId – branchCode – number – timestamp – available properties: accountId: type: string description: Id da conta bankCode: type: string description: Cóigo do banco taxId: type: string description: Documento CNPJ/CPF branchCode: type: string description: Agência number: type: string description: Número da conta timestamp: type: string description: Data/hora da atualização do saldo available: type: object allOf: – #/definitions/recAvailable description: Dados do valor disponível recAccount: description: Dados da conta type: object required: – taxId – bankCode – branchCode – number properties: taxId: type: string description: Número do documento bankCode: type: string description: Código do banco branchCode: type: string description: Agência number: type: string description: Número da conta recRelatedParty: description: Dados da parte relacionada type: object properties: taxId: type: string description: Número do documento bankCode: type: string description: Código do banco name: type: string description: Nome currency: type: string description: Moeda branchCode: type: string description: Agência number: type: string description: Número da conta recTransaction: description: Dados de transação type: object properties: id: type: string description: Identificador único da transação txId: type: string description: Id da transação endToEndId: type: string description: Id da transação pix barCode: type: string description: Código de barras ourNumber: type: string description: Nosso número recAvailable: description: Dados do valor disponível type: object required: – amount properties: amount: type: string description: Valor disponível checkData: description: Dados do healthcheck type: object required: – name – status properties: name: type: string description: Nome do healthcheck status: type: string allOf: – #/definitions/upDown description: Status do healthcheck recConsolidadoDiario: description: Dados dos extratos consolidados diários type: object properties: data: type: string format: date description: Data das movimentações quantidadeMovimentacoes: type: integer format: int64 description: Quantidade total de movimentações do dia saldo: type: string description: Saldo total do dia saldoFinal: type: string description: Saldo final do dia (saldo acumulado após as movimentações do dia) saldosContas: type: array items: type: object allOf: – #/definitions/recSaldoContaDia description: Saldos inicial e final de cada conta no dia recSaldoContaDia: description: Saldo inicial e final de uma conta em um dia do consolidado diário type: object properties: banco: type: string allOf: – #/definitions/enumBanco description: Banco agencia: type: string maxLength: 7 description: Agência da conta numero: type: string maxLength: 15 description: Número da conta saldoInicial: type: string description: Saldo inicial da conta no início do dia saldoFinal: type: string description: Saldo final da conta após as movimentações do dia recMovimentacao: description: Dados da movimentação bancária type: object required: – banco – agencia – numero – data – operacao – valor properties: cnpj: type: string maxLength: 14 description: CNPJ da conta banco: type: string allOf: – #/definitions/enumBanco description: Banco agencia: type: string maxLength: 7 description: Agência da conta numero: type: string maxLength: 15 description: Número da conta data: type: string format: date-time description: Data da movimentação operacao: type: string allOf: – #/definitions/enumOperacao description: Operação valor: type: string description: Valor da movimentação descricao: type: string description: Descrição codigoFebraban: type: string description: Código de ocorrência da FEBRABAN acumulado: type: string description: Saldo acumulado após a movimentação recConta: description: Dados da conta type: object properties: cnpj: type: string maxLength: 14 description: CNPJ da filial banco: type: string allOf: – #/definitions/enumBanco description: Banco tipo: type: string allOf: – #/definitions/enumTipoConta description: Tipo de conta numero: type: string maxLength: 15 description: Número da Conta agencia: type: string maxLength: 7 description: Agência da conta recContaPendenteConfiguracao: description: Conta pendente de configuração inicial type: object properties: contaId: type: string description: Identificador da conta cnpj: type: string maxLength: 14 description: CNPJ da filial banco: type: string allOf: – #/definitions/enumBanco description: Banco numero: type: string maxLength: 15 description: Número da conta agencia: type: string maxLength: 7 description: Agência da conta recSaldoInicialContaConfig: description: Configuração inicial de uma conta bancária type: object required: – contaId – dataInicial – saldoInicial properties: contaId: type: string description: Identificador da conta dataInicial: type: string format: date description: Data-inicial da configuração saldoInicial: type: string description: Saldo inicial da conta recListContaFiltro: description: Record para filtro da listagem de contas type: object properties: banco: type: array items: type: string allOf: – #/definitions/enumBanco description: Banco tipo: type: array items: type: string allOf: – #/definitions/enumTipoConta description: Tipo de conta numero: type: string maxLength: 15 description: Número da Conta agencia: type: string maxLength: 7 description: Agência da conta recPageRequest: description: Record para paginação e ordenação type: object required: – offset – size properties: offset: type: integer format: int64 description: Página atual size: type: integer format: int64 description: Total de registros da página orderBy: type: array items: type: object allOf: – #/definitions/recFieldsOrderBy description: Campos da ordenação dos registros a serem pesquisados recFieldsOrderBy: description: Define o registro com os dados dos campos à serem ordenados type: object required: – field – order properties: field: type: string description: Nome do campo a ser ordenado order: type: string allOf: – #/definitions/enumTypeOrder description: Tipo de ordenação do campo (ASC / DESC) recFiltroConta: description: Dados do saldo type: object properties: cnpj: type: string maxLength: 14 description: CNPJ da filial banco: type: string allOf: – #/definitions/enumBanco description: Banco agencia: type: string maxLength: 7 description: Agência da conta numero: type: string maxLength: 15 description: Número da Conta recSaldoBanco: description: Dados do saldo dos bancos type: object properties: banco: type: string allOf: – #/definitions/enumBanco description: Banco valorDisponivel: type: string description: Valor Disponivel valorBloqueado: type: string description: Valor Bloqueado recFiltroSaldoConta: description: Dados do saldo das contas type: object required: – banco properties: cnpj: type: string maxLength: 14 description: CNPJ da filial banco: type: string allOf: – #/definitions/enumBanco description: Banco agencia: type: string maxLength: 7 description: Agência da conta numeros: type: array items: type: string description: Contas recSaldoConta: description: Dados do saldo das contas type: object required: – valorDisponivel – valorBloqueado – origemOpenFinance properties: cnpj: type: string maxLength: 14 description: CNPJ da filial banco: type: string allOf: – #/definitions/enumBanco description: Banco numero: type: string maxLength: 15 description: Número da Conta agencia: type: string maxLength: 7 description: Agência da conta valorDisponivel: type: string description: Valor Disponivel valorBloqueado: type: string description: Valor Bloqueado origemOpenFinance: type: boolean description: Indica se o saldo foi consultado pelo Open Finance falhaAtualizacao: type: boolean description: Indica que ocorreu falha na última atualização do saldo default: false ultimaAtualizacao: type: string format: date-time description: Data e hora da última atualização bem-sucedida do saldo recContaSaldoDesatualizado: description: Conta com falha na atualização de saldo type: object required: – cnpj – banco – agencia – numero properties: cnpj: type: string maxLength: 14 description: CNPJ da conta banco: type: string allOf: – #/definitions/enumBanco description: Banco agencia: type: string maxLength: 7 description: Agência numero: type: string maxLength: 15 description: Número ultimaAtualizacao: type: string format: date-time description: Data e hora da última atualização bem-sucedida tableForeignKeyReference: description: Resulado da consulta de tabelas referenciada por uma Foreign Key type: object required: – referenceTableName – tableName – columnName – constraintName properties: referenceTableName: type: string description: Referenced table tableName: type: string description: Tabela referenciada columnName: type: string description: Coluna referenciada pela FK exclusionField: type: string description: Coluna com o campo de exclusão constraintName: type: string description: Nome da ForeignKey recSaldoInicialConta: description: Saldo inicial informado pelo usuário para uma conta importada via OFX type: object required: – idConta – saldoInicial – dataReferencia properties: idConta: type: string description: Identificador da conta bancária OFX (ofxDadosBancariosConta.id) saldoInicial: type: string description: Saldo inicial informado pelo usuário dataReferencia: type: string format: date description: Data de referência do saldo (data mais antiga do OFX) recContaMovimentacoesConferencia: description: Conta bancária com movimentações para conferência type: object required: – idConta – numero – saldoInicial – saldoFinal – movimentacoes properties: idConta: type: string description: Identificador da conta (ofxDadosBancariosConta.id) banco: type: string allOf: – #/definitions/enumBanco description: Banco agencia: type: string maxLength: 22 description: Agência numero: type: string maxLength: 22 description: Número da conta tipoConta: type: string allOf: – #/definitions/enumOfxTipoConta description: Tipo de conta OFX saldoInicial: type: string description: Saldo inicial da conta (configurado na Etapa 3) saldoFinal: type: string description: Saldo final após todas as movimentações ativas movimentacoes: type: array items: type: object allOf: – #/definitions/recMovimentacaoConferencia minimum: 1 description: Lista de movimentações ativas (OFX não excluídas + manuais) recMovimentacaoConferencia: description: Movimentação individual na conferência type: object required: – id – data – operacao – valor – saldo – origem properties: id: type: string description: UUID do lançamento (de ofx_lancamento_conta ou ofx_lancamento_manual_conta) data: type: string format: date description: Data da movimentação descricao: type: string description: Descrição/histórico operacao: type: string allOf: – #/definitions/enumOperacao description: Tipo de operação valor: type: string description: Valor absoluto (sempre positivo) minimum: 0.00 saldo: type: string description: Saldo acumulado calculado pelo backend nesta posição origem: type: string allOf: – #/definitions/enumOrigemMovimentacao description: Origem do lançamento: OFX ou MANUAL recStatusImportacao: description: Status de uma importação type: object required: – idImportacao properties: idImportacao: type: string description: Identificador da importação status: type: string allOf: – #/definitions/enumStatusImportacao description: Status atual da importação quantidadeContasProcessadas: type: integer format: int64 description: Quantidade de contas processadas quantidadeMovimentacoesPersistidas: type: integer format: int64 description: Quantidade total de movimentações persistidas quantidadeMovimentacoesEnviadasSucesso: type: integer format: int64 description: Quantidade de movimentações enviadas com sucesso ao ERP quantidadeMovimentacoesEnviadasErro: type: integer format: int64 description: Quantidade de movimentações com falha no envio ao ERP mensagemErro: type: string description: Mensagem de erro, quando houver naoEncontrada: type: boolean description: Indica se a importação não foi encontrada recResultadoReenvio: description: Resultado do reenvio de uma importação ao ERP type: object required: – idImportacao – aceito properties: idImportacao: type: string description: Identificador da importação aceito: type: boolean description: Indica se o reenvio foi aceito mensagemErro: type: string description: Mensagem de erro quando rejeitado e070emp: description: Empresa type: object properties: id: type: string format: uuid description: Id da entidade codEmp: type: integer format: int64 description: Código da empresa minimum: 0 maximum: 9999 nomEmp: type: string maxLength: 100 description: Nome da empresa sigEmp: type: string maxLength: 100 description: Nome fantasia da empresa excluido: type: boolean description: Indica se o registro foi excluído default: false extIntSts: type: string description: Estado de integração com a entidade externa extIntMsg: type: string description: Mensagem do resultado da integração usuger: type: string description: dthger: type: string format: date-time description: usualt: type: string description: dthalt: type: string format: date-time description: e070fil: description: Filial type: object properties: id: type: string format: uuid description: Id da entidade e070emp: type: object allOf: – #/definitions/e070emp description: Empresa codFil: type: integer format: int64 description: Filial minimum: 0 maximum: 9999 nomFil: type: string maxLength: 100 description: Nome sigFil: type: string maxLength: 100 description: Fantasia numCgc: type: string maxLength: 18 description: CPF/CNPJ excluido: type: boolean description: Indica se o registro foi excluído default: false extIntSts: type: string description: Estado de integração com a entidade externa extIntMsg: type: string description: Mensagem do resultado da integração usuger: type: string description: dthger: type: string format: date-time description: usualt: type: string description: dthalt: type: string format: date-time description: cargaInicial: description: Carga inicial de contas, saldos e extratos type: object required: – cnpj – escopo – situacao properties: id: type: string format: uuid description: Id da entidade cnpj: type: string maxLength: 14 description: CNPJ escopo: type: string allOf: – #/definitions/enumEscopo description: Escopo situacao: type: string allOf: – #/definitions/enumSituacaoCargaInicial description: Situação mensagemErro: type: string description: Mensagem de erro usuger: type: string description: dthger: type: string format: date-time description: usualt: type: string description: dthalt: type: string format: date-time description: conta: description: Conta bancária type: object required: – cnpj – banco – agencia – numero properties: id: type: string format: uuid description: Id da entidade cnpj: type: string maxLength: 14 description: CNPJ banco: type: string allOf: – #/definitions/enumBanco description: Banco agencia: type: string maxLength: 7 description: Agência numero: type: string maxLength: 15 description: Número tipo: type: string allOf: – #/definitions/enumTipoConta description: Tipo da conta origem: type: string allOf: – #/definitions/enumOrigemConta description: Origem da conta dataInicial: type: string format: date description: Data-inicial da configuração saldoInicial: type: string description: Saldo inicial da conta saldoConta: type: object allOf: – #/definitions/saldoConta description: Saldo da conta extratoConta: type: array items: type: object allOf: – #/definitions/extratoConta description: Extratos da conta excluido: type: boolean description: Indica se o registro foi excluído default: false usuger: type: string description: dthger: type: string format: date-time description: usualt: type: string description: dthalt: type: string format: date-time description: saldoConta: description: Saldo da conta bancária type: object required: – saldoDisponivel – saldoBloqueado properties: id: type: string format: uuid description: Id da entidade conta: type: object allOf: – #/definitions/conta description: Conta saldoDisponivel: type: string description: Saldo disponível saldoBloqueado: type: string description: Saldo bloqueado ultimaAtualizacao: type: string format: date-time description: Data e hora da última atualização bem-sucedida da conta falhaAtualizacao: type: boolean description: Indica que ocorreu falha na última atualização default: false usuger: type: string description: dthger: type: string format: date-time description: usualt: type: string description: dthalt: type: string format: date-time description: editSaldoConta: type: object required: – id allOf: – #/definitions/saldoConta statusAtualizacaoExtrato: description: Estado da atualização automática do extrato da conta bancária type: object properties: id: type: string format: uuid description: Id da entidade conta: type: object allOf: – #/definitions/conta description: Conta ultimaAtualizacao: type: string format: date-time description: Data e hora da última atualização bem-sucedida do extrato falhaAtualizacao: type: boolean description: Indica que ocorreu falha na última atualização do extrato default: false usuger: type: string description: dthger: type: string format: date-time description: usualt: type: string description: dthalt: type: string format: date-time description: cotaAtualizacaoSaldo: description: Controle da cota manual diária de atualização de saldo type: object required: – autoridade – dataReferencia – quantidadeConsumida properties: id: type: string format: uuid description: Id da entidade autoridade: type: string description: Identificação da autoridade autenticada dona da cota dataReferencia: type: string format: date description: Data de referência da cota quantidadeConsumida: type: integer format: int64 description: Quantidade de consultas manuais consumidas ultimaAtualizacao: type: string format: date-time description: Data e hora da última atualização executada usuger: type: string description: dthger: type: string format: date-time description: usualt: type: string description: dthalt: type: string format: date-time description: extratoConta: description: Extrato da conta bancária type: object required: – data – operacao – valor properties: id: type: string format: uuid description: Id da entidade conta: type: object allOf: – #/definitions/conta description: Conta data: type: string format: date-time description: Data da movimentação operacao: type: string allOf: – #/definitions/enumOperacao description: Operação descricao: type: string description: Descrição valor: type: string description: Valor da movimentação codigoFebraban: type: string description: Código de ocorrência da FEBRABAN transacaoId: type: string description: Identificador único da transação usuger: type: string description: dthger: type: string format: date-time description: usualt: type: string description: dthalt: type: string format: date-time description: editExtratoConta: type: object required: – id allOf: – #/definitions/extratoConta ofxDadosBancariosConta: description: Conta bancária de origem do arquivo OFX type: object required: – numero properties: id: type: string format: uuid description: Id da entidade cnpj: type: string maxLength: 14 description: CNPJ do titular banco: type: string allOf: – #/definitions/enumBanco description: Banco mapeado para enumBanco organizacaoFi: type: string maxLength: 100 description: Organização da instituição (ORG) identificadorFi: type: string maxLength: 32 description: Identificador da instituição (FID) bankId: type: string maxLength: 9 description: Código bancário (BANKID) agencia: type: string maxLength: 22 description: Agência (BRANCHID) numero: type: string maxLength: 22 description: Número da conta (ACCTID) digito: type: string maxLength: 22 description: Dígito/checksum (ACCTKEY) tipoContaOfx: type: string allOf: – #/definitions/enumOfxTipoConta description: Tipo da conta OFX (ACCTTYPE) moeda: type: string maxLength: 3 description: Moeda padrão da conta saldoInicial: type: string description: Saldo inicial informado pelo usuário na importação OFX dataReferencia: type: string format: date description: Data de referência do saldo inicial informado extratos: type: array items: type: object allOf: – #/definitions/ofxExtratoImportadoConta description: Extratos importados usuger: type: string description: dthger: type: string format: date-time description: usualt: type: string description: dthalt: type: string format: date-time description: ofxExtratoImportadoConta: description: Cabeçalho do extrato importado OFX type: object properties: id: type: string format: uuid description: Id da entidade dadosBancariosConta: type: object allOf: – #/definitions/ofxDadosBancariosConta description: Conta bancária de origem moedaPadrao: type: string maxLength: 3 description: Moeda padrão do extrato (CURDEF) dataInicio: type: string format: date-time description: Início do período (DTSTART) dataFim: type: string format: date-time description: Fim do período (DTEND) dataPendentesGeradas: type: string format: date-time description: Data de geração das pendências saldoContabil: type: string description: Saldo contábil (LEDGERBAL/BALAMT) saldoContabilData: type: string format: date-time description: Data do saldo contábil saldoDisponivel: type: string description: Saldo disponível (AVAILBAL/BALAMT) saldoDisponivelData: type: string format: date-time description: Data do saldo disponível lancamentos: type: array items: type: object allOf: – #/definitions/ofxLancamentoConta description: Lançamentos importados saldosAdicionais: type: array items: type: object allOf: – #/definitions/ofxSaldoAdicionalConta description: Saldos adicionais importacao: type: object allOf: – #/definitions/ofxImportacaoArquivoExtrato description: Entidade de controle da importacao enviadoErp: type: boolean description: Indica se a movimentação OFX foi enviada ao ERP do cliente default: false usuger: type: string description: dthger: type: string format: date-time description: usualt: type: string description: dthalt: type: string format: date-time description: editOfxExtratoImportadoConta: type: object required: – id allOf: – #/definitions/ofxExtratoImportadoConta ofxLancamentoConta: description: Lançamento de movimentação do extrato OFX type: object required: – tipoTransacao – valor properties: id: type: string format: uuid description: Id da entidade extratoImportadoConta: type: object allOf: – #/definitions/ofxExtratoImportadoConta description: Extrato pai pendente: type: boolean description: Indica se a transação está pendente default: false tipoTransacao: type: string allOf: – #/definitions/enumOfxTipoTransacao description: Tipo da transação (TRNTYPE) dataPostada: type: string format: date-time description: Data de postagem (DTPOSTED) dataIniciada: type: string format: date-time description: Data de iniciação (DTUSER/DTTRAN) dataDisponivel: type: string format: date-time description: Data de disponibilidade (DTAVAIL) dataExpiracao: type: string format: date-time description: Data de expiração (DTEXPIRE) valor: type: string description: Valor da movimentação (TRNAMT) fitid: type: string maxLength: 255 description: Identificador bancário (FITID) fitidCorrigido: type: string maxLength: 255 description: FITID corrigido (CORRECTFITID) acaoCorrecao: type: string allOf: – #/definitions/enumOfxAcaoCorrecao description: Ação de correção (CORRECTACTION) srvrtid: type: string maxLength: 10 description: Id de servidor (SRVRTID) numeroCheque: type: string maxLength: 12 description: Número de cheque (CHECKNUM) numeroReferencia: type: string maxLength: 32 description: Número de referência (REFNUM) codigoSic: type: string maxLength: 6 description: Código SIC (SIC) idFavorecido: type: string maxLength: 12 description: Identificador do favorecido (PAYEEID) nome: type: string maxLength: 64 description: Descrição principal (NAME) nomeEstendido: type: string maxLength: 100 description: Descrição estendida (EXTDNAME) memo: type: string maxLength: 255 description: Complemento textual (MEMO) moeda: type: string maxLength: 3 description: Moeda da transação taxaCambio: type: string description: Taxa de câmbio valorConvertido: type: boolean description: Indica valor convertido contraparteBanco: type: string maxLength: 9 description: Banco da contraparte contraparteAgencia: type: string maxLength: 22 description: Agência da contraparte contraparteConta: type: string maxLength: 22 description: Conta da contraparte excluido: type: boolean description: Indica se o lançamento foi excluído na conferência default: false usuger: type: string description: dthger: type: string format: date-time description: usualt: type: string description: dthalt: type: string format: date-time description: editOfxLancamentoConta: type: object required: – id allOf: – #/definitions/ofxLancamentoConta ofxSaldoAdicionalConta: description: Saldo adicional do extrato OFX type: object required: – nome – tipoSaldo – valor properties: id: type: string format: uuid description: Id da entidade extratoImportadoConta: type: object allOf: – #/definitions/ofxExtratoImportadoConta description: Extrato pai nome: type: string maxLength: 32 description: Nome técnico do saldo (NAME) descricao: type: string maxLength: 80 description: Descrição legível (DESC) tipoSaldo: type: string allOf: – #/definitions/enumOfxTipoSaldo description: Tipo do saldo (BALTYPE) valor: type: string description: Valor do saldo (VALUE) dataReferencia: type: string format: date-time description: Data de referência (DTASOF) moeda: type: string maxLength: 3 description: Moeda do saldo usuger: type: string description: dthger: type: string format: date-time description: usualt: type: string description: dthalt: type: string format: date-time description: editOfxSaldoAdicionalConta: type: object required: – id allOf: – #/definitions/ofxSaldoAdicionalConta ofxImportacaoArquivoExtrato: description: Processo de importação de extrato type: object required: – urlArquivo – versaoArquivo – statusImportacao properties: id: type: string format: uuid description: Id da entidade nomeArquivo: type: string description: Nome do arquivo urlArquivo: type: string description: URL do arquivo versaoArquivo: type: string description: Versão do arquivo statusImportacao: type: string allOf: – #/definitions/enumStatusImportacao description: Situação do processo de importação dataInicioProcessamento: type: string format: date-time description: Timestamp de início do processamento atual (sobrescrito a cada fase) dataFimProcessamento: type: string format: date-time description: Timestamp de fim do processamento atual (sobrescrito a cada fase) quantidadeContasProcessadas: type: integer format: int64 description: Número de contas processadas quantidadeMovimentacoesPersistidas: type: integer format: int64 description: Total de movimentações persistidas na fase atual quantidadeMovimentacoesEnviadasSucesso: type: integer format: int64 description: Movimentações com evento enviado com sucesso quantidadeMovimentacoesEnviadasErro: type: integer format: int64 description: Movimentações cujo envio de evento falhou usuarioConfirmacao: type: string maxLength: 255 description: Login do usuário que confirmou a importação mensagemErro: type: string maxLength: 250 description: Mensagem de Erro usuger: type: string description: dthger: type: string format: date-time description: usualt: type: string description: dthalt: type: string format: date-time description: ofxLancamentoManualConta: description: Lançamento manual adicionado na conferência da importação OFX type: object required: – data – operacao – valor – descricao properties: id: type: string format: uuid description: Id da entidade dadosBancariosConta: type: object allOf: – #/definitions/ofxDadosBancariosConta description: Conta bancária OFX associada data: type: string format: date description: Data da movimentação operacao: type: string allOf: – #/definitions/enumOperacao description: Tipo de operação (CREDITO ou DEBITO) valor: type: string description: Valor da movimentação (sempre positivo) minimum: 0.00 descricao: type: string maxLength: 255 description: Descrição/histórico da movimentação usuger: type: string description: dthger: type: string format: date-time description: usualt: type: string description: dthalt: type: string format: date-time description: notifyUserEventPayload: description: Represents a regular user event notification payload discriminator: _discriminator type: object required: – notificationKind – notificationPriority – notificationSubject – notificationContent – sourceDomain – sourceService – destinationUser – _discriminator properties: notificationClass: type: string description: Class of notification notificationOrigin: type: string description: Origin of notification. Free text. Optional. notificationKind: type: string allOf: – #/definitions/userNotificationKind description: Notification kind. notificationPriority: type: string allOf: – #/definitions/userNotificationPriority description: Notification priority. notificationSubject: type: string description: Notification subject. notificationContent: type: string description: Notification content. sourceDomain: type: string description: Domain that generates the notification. sourceService: type: string description: Service that generates the notification. destinationUser: type: string description: Username of the destination user. link: type: string description: Notification link _discriminator: type: string description: emailNotifyUserEventPayload: description: Represents an email notification payload allOf: – #/definitions/notifyUserEventPayload – type: object required: – from properties: from: type: string description: Email sender address sendTo: type: array items: type: string description: Additional recipients to send the email to format: type: string allOf: – #/definitions/eventEmailFormat description: Email format pushNotifyUserEventPayload: description: Represents a push notification payload allOf: – #/definitions/notifyUserEventPayload – type: object required: – applicationId properties: applicationId: type: string description: Apple/Google application id blobReference: description: Default blob reference type. Every service defines its own. type: object required: – targetObjectId properties: domainName: type: string description: The domain the blob belongs to. serviceName: type: string description: The service the blob belongs to. targetObjectId: type: string description: The basic id of the blob. targetCopyId: type: string description: The id of the blob copy. basicErrorPayload: description: Default error payload type. Every service defines its own. type: object properties: message: type: string description: The user-facing error message, if any. errorCode: type: string description: The program-accessible (and service-specific) error code. importError: description: type: object required: – errorType – lineNumber – bean – message – exceptionClass properties: errorType: type: string allOf: – #/definitions/errorType description: lineNumber: type: integer format: int64 description: bean: type: string description: message: type: string description: exceptionClass: type: string description: fielddto: description: type: object required: – id – name – fieldType properties: id: type: integer format: int64 description: name: type: string description: fieldType: type: string allOf: – #/definitions/fieldType description: start: type: integer format: int64 description: size: type: integer format: int64 description: maskPattern: type: string description: hookdto: description: type: object required: – hookFunction – script properties: hookFunction: type: string allOf: – #/definitions/hookFunction description: script: type: string description: layoutdto: description: type: object required: – id – description – fileFormat – errorStrategy – skipLines – fields properties: id: type: integer format: int64 description: description: type: string description: fileFormat: type: string allOf: – #/definitions/fileFormat description: errorStrategy: type: string allOf: – #/definitions/errorStrategy description: delimiter: type: string description: skipLines: type: integer format: int64 description: fields: type: array items: type: object allOf: – #/definitions/fielddto minimum: 1 description: hooks: type: array items: type: object allOf: – #/definitions/hookdto description: importReport: description: type: object required: – id – startTime – endTime – uri – beanClass – serviceClass – layout – sucessCount – errorsCount – filteredCount – skippedCount properties: id: type: string description: startTime: type: string format: date-time description: endTime: type: string format: date-time description: uri: type: string description: beanClass: type: string description: serviceClass: type: string description: layout: type: object allOf: – #/definitions/layoutdto description: sucessCount: type: integer format: int64 description: errorsCount: type: integer format: int64 description: filteredCount: type: integer format: int64 description: skippedCount: type: integer format: int64 description: importErrors: type: array items: type: object allOf: – #/definitions/importError description: exportEventStatus: description: type: object required: – importerId – eventType – recordCount properties: importerId: type: string description: eventType: type: string allOf: – #/definitions/eventType description: recordCount: type: integer format: int64 description: importEventStatus: description: type: object required: – importerId – eventType – status – recordCount properties: importerId: type: string description: eventType: type: string allOf: – #/definitions/eventType description: status: type: string allOf: – #/definitions/status description: errorMessage: type: string description: recordCount: type: integer format: int64 description: importReport: type: object allOf: – #/definitions/importReport description: exportConfig: description: type: object required: – uri – layout – async – errorStrategy properties: uri: type: string description: layout: type: object allOf: – #/definitions/layoutdto description: async: type: boolean description: errorStrategy: type: string description: importConfig: description: type: object required: – uri – layout – async – batchSize – errorStrategy properties: uri: type: string description: layout: type: object allOf: – #/definitions/layoutdto description: async: type: boolean description: batchSize: type: integer format: int64 description: errorStrategy: type: string allOf: – #/definitions/errorStrategy description: dependency: description: Represents a service dependency type: object required: – domain – service – version properties: domain: type: string description: Domain of the dependency service service: type: string description: Name of the dependency service type: string description: Version of the dependency service genericError: properties: message: type: string description: Messaging describing the error. reason: type: string enum: – BAD_REQUEST – UNAUTHORIZED – PAYMENT_REQUIRED – FORBIDDEN – OBJECT_NOT_FOUND – REQUEST_TIMEOUT – GONE – UNPROCESSABLE – INTERNAL_ERROR – NOT_IMPLEMENTED – SERVICE_UNAVAILABLE – INSUFFICIENT_STORAGE description: A symbolic code identifying the category of the reason of the error: * `BAD_REQUEST` – Bad Request * `UNAUTHORIZED` – Unauthorized * `PAYMENT_REQUIRED` – Payment Required * `OBJECT_NOT_FOUND` – Object Not Found * `REQUEST_TIMEOUT` – Request Timeout * `GONE` – Gone * `UNPROCESSABLE` – Unprocessable * `INTERNAL_ERROR` – Internal Error * `NOT_IMPLEMENTED` – Not Implemented * `SERVICE_UNAVAILABLE` – Service Unavailable * `INSUFFICIENT_STORAGE` – Insufficient Storage