2.0info: 0.1.1 int_notafiscal description: Logistica – Integração ERP G5 x WMS SILT – Nota Fiscal x-senior-domain: erp_isl x-senior-domain-path: erp_isl x-senior-service-path: int_notafiscal 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_islsecurityDefinitions: APIKeyHeader: type: apiKey in: header name: Authorizationsecurity: – APIKeyHeader: [] – application/json – application/jsonpaths: /int_notafiscal/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 /int_notafiscal/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 /int_notafiscal/actions/registrarNota: post: description: Registra notas fiscais de entrada e saida tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – codigoEmpresa – codigoFilial – codigoPessoa – codigoSerie – dataEntrada – dataEmissao – cfop – situacao – pesoBruto – valorBaseIcmsSubstituido – valorIcmsSubstituido – valorLiquido – pesoLiquido – dataGeracao – valorFrete – valorSeguro – valorBaseIpi – valorIpi – valorBaseIss – valorIss – valorBaseCsllRetido – valorCsllRetido – valorBasePis – valorPis – valorBaseCofins – valorCofins – valorIrrf – valorBaseIcms – valorIcms – transacaoProduto – situacaoIntegracao properties: codigoEmpresa: type: integer format: int64 description: Codigo empresa codigoFilial: type: integer format: int64 description: Codigo filial codigoPessoa: type: integer format: int64 description: Codigo pessoa codigoTransportadora: type: integer format: int64 description: Codigo transportadora numeroNota: type: integer format: int64 description: numero da nota codigoSerie: type: string description: codigo série dataEntrada: type: string format: date description: data de entrada dataEmissao: type: string format: date description: Data emissão cfop: type: string description: CFOP situacao: type: string allOf: – #/definitions/enumSituacaoNota description: Situação da nota chaveNfe: type: string description: chave NFe ufVeiculo: type: string description: Uf veiculo placaVeiculo: type: string description: placa veiculo pesoBruto: type: number format: double description: peso bruto valorBaseIcmsSubstituido: type: number format: double description: Valor base ICMS Subs valorIcmsSubstituido: type: number format: double description: Valor icms Subs valorLiquido: type: number format: double description: Valor liquido valorLiquidoProdutos: type: number format: double description: Valor liquido produto valorLiquidoServicos: type: number format: double description: Valor liquido serviços valorFinanceiro: type: number format: double description: Valor financeiro tipoNotaFiscalEntrada: type: string allOf: – #/definitions/enumTipoNotaEntrada description: Tipo nota de entrada tipoNotaFiscalSaida: type: string allOf: – #/definitions/enumTipoNotaSaida description: tipo nota de saida pesoLiquido: type: number format: double description: peso liquido codigoMotivo: type: integer format: int64 description: codigo motivo observacaoNotaFiscal: type: string description: Observacao Nota fiscal dataGeracao: type: string format: date description: Data geração valorFrete: type: number format: double description: Valor frete valorSeguro: type: number format: double description: Valor seguro valorBaseIpi: type: number format: double description: Valor base ipi valorIpi: type: number format: double description: Valor Ipi valorBaseIss: type: number format: double description: Valor base iss valorIss: type: number format: double description: Valor iss valorBaseCsllRetido: type: number format: double description: Valor base Csll retido valorCsllRetido: type: number format: double description: Valor csll retido valorBasePis: type: number format: double description: Valor base Pis valorPis: type: number format: double description: Valor pis valorBaseCofins: type: number format: double description: Valor base cofins valorCofins: type: number format: double description: Valor cofins valorIrrf: type: number format: double description: Valor irrf valorBaseIcms: type: number format: double description: Valor base icms valorIcms: type: number format: double description: Valor icms transacaoProduto: type: string description: transação produto situacaoIntegracao: type: string allOf: – #/definitions/enumSituacaoIntegracao description: situação integração calculaValores: type: boolean description: indicativo se calcula valores itens: type: array items: type: object allOf: – #/definitions/recItens description: Itens da nota responses: 200: description: Ok schema: type: object default: description: Error response schema: #/definitions/genericError /int_notafiscal/actions/atualizarNotaSaida: post: description: Atualiza nota fiscal de saida tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – codigoEmpresa – codigoFilial – numeroNota – codigoSerie properties: codigoEmpresa: type: integer format: int64 description: Codigo da empresa codigoFilial: type: integer format: int64 description: codigo filial numeroNota: type: integer format: int64 description: numero nota codigoSerie: type: string description: codigo série situacao: type: string allOf: – #/definitions/enumSituacaoNota description: situação responses: 200: description: Ok schema: type: object default: description: Error response schema: #/definitions/genericError /int_notafiscal/actions/atualizarNotaEntrada: post: description: Atualiza nota fiscal de entrada tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – codigoEmpresa – codigoFilial – numeroNota – codigoSerie – codigoPessoa – situacaoIntegracao properties: codigoEmpresa: type: integer format: int64 description: Codigo empresa codigoFilial: type: integer format: int64 description: Codigo filial numeroNota: type: integer format: int64 description: numero nota codigoSerie: type: string description: codigo série codigoPessoa: type: integer format: int64 description: codigo pessoa situacao: type: string allOf: – #/definitions/enumSituacaoNota description: situação situacaoIntegracao: type: string allOf: – #/definitions/enumSituacaoIntegracao description: situação integração responses: 200: description: Ok schema: type: object default: description: Error response schema: #/definitions/genericError /int_notafiscal/actions/atualizarLotes: post: description: Atualiza lotes da nota tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – codigoEmpresa – codigoFilial – codigoPessoa – numeroNota – codigoSerie – dataEntrada – dataEmissao – cfop – situacao – pesoBruto – valorBaseIcmsSubstituido – valorIcmsSubstituido – valorLiquido – pesoLiquido – dataGeracao – valorFrete – valorSeguro – valorBaseIpi – valorIpi – valorBaseIss – valorIss – valorBaseCsllRetido – valorCsllRetido – valorBasePis – valorPis – valorBaseCofins – valorCofins – valorIrrf – valorBaseIcms – valorIcms – transacaoProduto – situacaoIntegracao properties: codigoEmpresa: type: integer format: int64 description: Codigo empresa codigoFilial: type: integer format: int64 description: Codigo filial codigoPessoa: type: integer format: int64 description: codigo pessoa codigoTransportadora: type: integer format: int64 description: codigo transportadora numeroNota: type: integer format: int64 description: numero nota codigoSerie: type: string description: codigo série dataEntrada: type: string format: date description: data entrada dataEmissao: type: string format: date description: data emissão cfop: type: string description: CFOP situacao: type: string allOf: – #/definitions/enumSituacaoNota description: situação nota chaveNfe: type: string description: chave nfe ufVeiculo: type: string description: UF Estado placaVeiculo: type: string description: placa veiculo pesoBruto: type: number format: double description: peso bruto valorBaseIcmsSubstituido: type: number format: double description: valor Base icms subs valorIcmsSubstituido: type: number format: double description: Valor icms subs valorLiquido: type: number format: double description: Valor liquido tipoNotaFiscalEntrada: type: string allOf: – #/definitions/enumTipoNotaEntrada description: Tipo nota fiscal de entrada tipoNotaFiscalSaida: type: string allOf: – #/definitions/enumTipoNotaSaida description: Tipo nota fiscal de saida pesoLiquido: type: number format: double description: peso liquido codigoMotivo: type: integer format: int64 description: codigo motivo observacaoNotaFiscal: type: string description: observacao nota fiscal dataGeracao: type: string format: date description: data geração valorFrete: type: number format: double description: valor frete valorSeguro: type: number format: double description: valor seguro valorBaseIpi: type: number format: double description: valor base ipi valorIpi: type: number format: double description: valor ipi valorBaseIss: type: number format: double description: valor base iss valorIss: type: number format: double description: valor iss valorBaseCsllRetido: type: number format: double description: Valor base csll retido valorCsllRetido: type: number format: double description: Valor csll retido valorBasePis: type: number format: double description: Valor base pis valorPis: type: number format: double description: Valor pis valorBaseCofins: type: number format: double description: Valor base cofins valorCofins: type: number format: double description: Valor cofins valorIrrf: type: number format: double description: Valor irrf valorBaseIcms: type: number format: double description: Valor base icms valorIcms: type: number format: double description: Valor icms transacaoProduto: type: string description: transação produto situacaoIntegracao: type: string allOf: – #/definitions/enumSituacaoIntegracao description: situação integração calculaValores: type: boolean description: calcula valores itens: type: array items: type: object allOf: – #/definitions/recItens description: itens da nota responses: 200: description: Ok schema: type: object default: description: Error response schema: #/definitions/genericError /int_notafiscal/actions/reabilitarNota: post: description: Reabilitar nota tags: – Actions x-senior-visibility: PRIVATE parameters: – name: input in: body required: true schema: type: object required: – codigoEmpresa – codigoFilial – codigoPessoa – numeroNota – codigoSerie properties: codigoEmpresa: type: integer format: int64 description: Codigo empresa codigoFilial: type: integer format: int64 description: Codigo filial codigoPessoa: type: integer format: int64 description: Codigo pessoa numeroNota: type: integer format: int64 description: Numero nota codigoSerie: type: string description: Codigo série responses: 200: description: Ok schema: type: object default: description: Error response schema: #/definitions/genericError definitions: enumSituacaoNota: description: Enum situação nota type: string enum: – Digitada – Fechada – Cancelada – DocumentoFiscalEmitidoSaida – AguardandoFechamentoPosSaida – AguardandoIntegracaoWms enumTipoNotaEntrada: description: Enum tipo nota entrada type: string enum: – Entrada – DevolucaoDoCliente – DevolucaoDeSaida – RetornoIndustrializacao – RetornoOutros – Produtor – GeracaoManual – FreteServicosAgregados – Acerto – AcertoSaida – TransferenciaEntreEmpresasFiliais enumTipoNotaSaida: description: Tipo nota de saida type: string enum: – Saida – Devolucao – RemessaIndustrializacao – RemessaOutros – RetornoIndustrializacao – RetornoOutros – Acerto – CargaDistribuicao – NaoFiscal enumSituacaoIntegracao: description: Enum situacao integração type: string enum: – ParaExportar – EmExportacao – Exportado – Aprovado – EmDigitacao – AguardandoLiberacaoEnvio – Erro 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 recLotes: description: Lotes type: object required: – sequenciaItem – quantidadeMovimento properties: sequenciaItem: type: integer format: int64 description: Sequencia item codigoDeposito: type: string description: Codigo depósito dataValidade: type: string format: date description: Data validade codigoLote: type: string description: Codigo lote numeroSerie: type: string description: Numero série quantidadeMovimento: type: number format: double description: Quantidade movimento observacao: type: string description: Observação valorDimensao1: type: number format: double description: Valor dimensão 1 valorDimensao2: type: number format: double description: Valor dimensão 2 valorDimensao3: type: number format: double description: Valor dimensão 3 valorDimensao4: type: number format: double description: Valor dimensão 4 valorDimensao5: type: number format: double description: Valor dimensão 5 valorDimensao6: type: number format: double description: Valor dimensão 6 dataFabricacao: type: string format: date description: Data fabricação recItens: description: Record itens type: object required: – sequenciaItem – cfop – codigoProduto – codigoDerivacao – codigoDeposito – pesoBruto – pesoLiquido – quantidade – precoUnitario – valorLiquido – percentualIcms – valorBaseIcms – valorIcms – dataGeracao – valorBaseIcmsSubstituido – valorIcmsSubstituido – valorOutras – valorIsentoIcms – valorOutrasIpi – valorIsentoIpi – valorFrete – valorSeguro – percentualIpi – valorBaseIpi – valorIpi – percentualCsllRetido – valorBaseCsllRetido – valorCsllRetido – percentualPis – valorBasePis – valorPis – percentualCofins – valorBaseCofins – valorCofins – valorIrrf – transacaoProduto properties: sequenciaItem: type: integer format: int64 description: Sequencia item cfop: type: string description: Cfop codigoProduto: type: string description: Codigo produto codigoDerivacao: type: string description: Codigo derivacao codigoDeposito: type: string description: Codigo depósito pesoBruto: type: number format: double description: peso bruto pesoLiquido: type: number format: double description: peso liquido quantidade: type: number format: double description: Quantidade precoUnitario: type: number format: double description: Preço unitario valorLiquido: type: number format: double description: Valor liquido codigoSituacaoTributaria: type: string description: Codigo situacao tributaria percentualIcms: type: number format: double description: Percentual ICMS valorBaseIcms: type: number format: double description: Valor Base icms valorIcms: type: number format: double description: Valor icms dataGeracao: type: string format: date description: data geração valorBaseIcmsSubstituido: type: number format: double description: Valor base icms substituido valorIcmsSubstituido: type: number format: double description: Valor icms subs valorOutras: type: number format: double description: Valor outras valorIsentoIcms: type: number format: double description: Valor isento icms valorOutrasIpi: type: number format: double description: Valor outras ipi valorIsentoIpi: type: number format: double description: Valor isento ipi valorFrete: type: number format: double description: Valor frete valorSeguro: type: number format: double description: Valor seguro percentualIpi: type: number format: double description: Percentual IPI valorBaseIpi: type: number format: double description: Valor base ipi valorIpi: type: number format: double description: Valor ipi percentualCsllRetido: type: number format: double description: Percentual Csll Retido valorBaseCsllRetido: type: number format: double description: Valor base csll retido valorCsllRetido: type: number format: double description: Valor csll Retido percentualPis: type: number format: double description: Percentual Pis valorBasePis: type: number format: double description: Valor base pis valorPis: type: number format: double description: Valor pis percentualCofins: type: number format: double description: Percentual Cofins valorBaseCofins: type: number format: double description: Valor base cofins valorCofins: type: number format: double description: Valor cofins valorIrrf: type: number format: double description: Valor Irrf transacaoProduto: type: string description: Transcao produto codigoFilialNotaDevolver: type: integer format: int64 description: Codigo filial nota devolver codigoPessoaNotaDevolver: type: integer format: int64 description: Codigo pessoa nota devolver numeroNotaDevolver: type: integer format: int64 description: Numero nota devolver codigoSerieNotaDevolver: type: string description: Codigo serie nota devolver sequenciaItemNotaDevolver: type: integer format: int64 description: Sequencia item nota devolver lotes: type: array items: type: object allOf: – #/definitions/recLotes description: Lotes 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