2.0info: 0.1.1 ig5_contaspagar description: Serviço destinado a integração do contas a pagar G7 X G5 x-senior-domain: erp_fin x-senior-domain-path: erp_fin x-senior-service-path: ig5_contaspagar contact: name: Senior X Platform url: http://dev.senior.com.br email: seniorx-dev@senior.com.brhost: platform.senior.com.br /t/senior.com.br/bridge/1.0/rest/erp_finsecurityDefinitions: APIKeyHeader: type: apiKey in: header name: Authorizationsecurity: – APIKeyHeader: [] – application/json – application/jsonpaths: /ig5_contaspagar/queries/buscarArquivosDebitoDiretoAutorizado: post: description: tags: – Queries x-senior-visibility: PRIVATE responses: 200: description: Ok schema: type: object properties: arquivos: type: array items: type: object allOf: – #/definitions/recArquivo description: default: description: Error response schema: #/definitions/genericError get: description: tags: – Queries x-senior-visibility: PRIVATE responses: 200: description: Ok schema: type: object properties: arquivos: type: array items: type: object allOf: – #/definitions/recArquivo description: default: description: Error response schema: #/definitions/genericError /ig5_contaspagar/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: 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 in: query type: string responses: 200: description: Ok schema: type: object required: – metadata properties: metadata: type: string description: default: description: Error response schema: #/definitions/genericError /ig5_contaspagar/queries/getDependencies: post: description: Returns a list with all dependencies from this service, along with their respective versions tags: – Queries x-senior-visibility: PUBLIC 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 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: PUBLIC 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 default: description: Error response schema: #/definitions/genericError /ig5_contaspagar/actions/moverArquivosImportadosDebitoDiretoAutorizado: post: description: tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – arquivos properties: arquivos: type: array items: type: object allOf: – #/definitions/recArquivo minimum: 1 description: responses: 200: description: Ok schema: type: object default: description: Error response schema: #/definitions/genericError /ig5_contaspagar/actions/inserirTituloPagarDebitoDiretoAutorizado: post: description: Inserir um tÃtulo previsto via Débito Direto Autorizado tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – tituloPagar properties: tituloPagar: type: object allOf: – #/definitions/recTituloPagar description: responses: 200: description: Ok schema: type: object default: description: Error response schema: #/definitions/genericError /ig5_contaspagar/actions/alterarTituloPagarDebitoDiretoAutorizado: post: description: Alterar o tÃtulo a pagar após uma efetivação ou desassociação de um código de barras tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – tituloPagar properties: tituloPagar: type: object allOf: – #/definitions/recTituloPagar description: responses: 200: description: Ok schema: type: object default: description: Error response schema: #/definitions/genericError /ig5_contaspagar/actions/excluirTituloPagarDebitoDiretoAutorizado: post: description: Excluir o tÃtulo a pagar gerado via débito direto autorizado ao realizar uma desassociação tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – tituloPagar properties: tituloPagar: type: object allOf: – #/definitions/recTituloPagar description: responses: 200: description: Ok schema: type: object default: description: Error response schema: #/definitions/genericError /ig5_contaspagar/actions/baixarTituloPagarDebitoDiretoAutorizado: post: description: Efetua uma baixa por cancelamento tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – empresaId – filial – fornecedorId – tipoTituloId – numeroTitulo – dataBaixa – transacaoBaixa – valorBaixa – valorLiquido properties: empresaId: type: integer format: int64 description: filial: type: integer format: int64 description: fornecedorId: type: integer format: int64 description: tipoTituloId: type: string description: numeroTitulo: type: string description: dataBaixa: type: string format: date description: transacaoBaixa: type: string description: valorBaixa: type: string description: valorDesconto: type: string description: valorJuros: type: string description: valorMulta: type: string description: valorEncargos: type: string description: valorCorrecao: type: string description: valorOutrosAcrescimos: type: string description: valorOutrosDescontos: type: string description: valorLiquido: type: string description: responses: 200: description: Ok schema: type: object properties: sequenciaMovimento: type: integer format: int64 description: default: description: Error response schema: #/definitions/genericError /ig5_contaspagar/actions/estornarBaixaTituloPagarDebitoDiretoAutorizado: post: description: Cancela uma baixa por cancelamento tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – empresaId – filial – fornecedorId – tipoTituloId – numeroTitulo – sequenciaMovimento properties: empresaId: type: integer format: int64 description: filial: type: integer format: int64 description: fornecedorId: type: integer format: int64 description: tipoTituloId: type: string description: numeroTitulo: type: string description: sequenciaMovimento: type: integer format: int64 description: responses: 200: description: Ok schema: type: object default: description: Error response schema: #/definitions/genericError definitions: userNotificationKind: description: User notification kind. type: string enum: – Operational – Management – News userNotificationPriority: description: User notification priority. type: string enum: – Error – Alert – None eventEmailFormat: description: Format of the email type: string enum: – HTML – PLAIN_TEXT recArquivo: description: type: object required: – nomeArquivo properties: arquivoBase64: type: string description: nomeArquivo: type: string description: recObservacaoTitulo: description: type: object required: – observacao properties: observacao: type: string description: Observação do tÃtulo usuarioGeracao: type: string description: Usuário de cadastro do tipo de tÃtulo dataGeracao: type: string format: date-time description: Data de cadastro do tipo de tÃtulo recTituloPagar: description: Define o registro com os dados do tÃtulo à pagar type: object required: – tituloPagarId – empresaId – filial – fornecedorId – tipoTituloId – numeroTitulo – dataEntrada – transacaoEntrada – dataEmissao – valorOriginal – vencimentoOriginal – vencimentoProrrogado – provavelPagamento – situacao – portador – carteira properties: tituloPagarId: type: integer format: int64 description: Identificação do tÃtulo a pagar empresaId: type: integer format: int64 description: Empresa do tÃtulo a pagar filial: type: integer format: int64 description: Filial do tÃtulo a pagar fornecedorId: type: integer format: int64 description: Fornecedor do tÃtulo a pagar tipoTituloId: type: string description: Estrutura do tipo de tÃtulo do tÃtulo a pagar numeroTitulo: type: string description: Número do tÃtulo a pagar dataEntrada: type: string format: date description: Data de entrada do tÃtulo a pagar transacaoEntrada: type: string description: Transação de entrada do tÃtulo a pagar dataEmissao: type: string format: date description: Data de emissão do tÃtulo a pagar valorOriginal: type: string description: Valor original do tÃtulo a pagar vencimentoOriginal: type: string format: date description: Vencimento original do tÃtulo a pagar vencimentoProrrogado: type: string format: date description: Vencimento prorrogado do tÃtulo a pagar provavelPagamento: type: string format: date description: Provavel pagamento do tÃtulo a pagar situacao: type: string description: Indicativo da situação do tÃtulo a pagar outrosNegociados: type: string description: Valor de outros acréscimos do tÃtulo a pagar outrosDescontos: type: string description: Valor de outros descontos do tÃtulo a pagar observacoes: type: array items: type: object allOf: – #/definitions/recObservacaoTitulo description: Observações do tÃtulo jurosDia: type: string description: Valor de juros por dia portador: type: string description: Portador do tÃtulo a pagar carteira: type: string description: Carteira do tÃtulo a pagar dataDesconto: type: string format: date description: Data limite de desconto tipoDesconto: type: string description: Tipo de desconto a ser concedido valorDesconto: type: string description: Valor do desconto a ser concedido percentualDesconto: type: number format: double description: Percentual de desconto a ser concedido percentualMulta: type: number format: double description: Percentual de multa moeda: type: string description: Moeda do tÃtulo a pagar codigoBarras: type: string description: Código de barras notifyUserEventPayload: description: Represents a regular user event notification payload discriminator: _discriminator type: object required: – notificationKind – notificationPriority – notificationSubject – notificationContent – sourceDomain – sourceService – destinationUser – _discriminator properties: 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 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 description: A symbolic code identifying the category of the reason of the error. enum: – BAD_REQUEST – UNAUTHORIZED – PAYMENT_REQUIRED – FORBIDDEN – OBJECT_NOT_FOUND – REQUEST_TIMEOUT – GONE – UNPROCESSABLE – INTERNAL_ERROR – NOT_IMPLEMENTED – SERVICE_UNAVAILABLE – INSUFFICIENT_STORAGE