2.0info: 1.188.2 Nota Fiscal de Saída description: Serviço de Nota Fiscal de Saída do ERPX x-senior-domain: erpx_com_fat x-senior-domain-path: erpx_com_fat x-senior-service-path: saleinvoice contact: name: Senior X Platform url: https://dev.senior.com.br email: seniorx-dev@senior.com.brhost: api.senior.com.br /erpx_com_fat/saleinvoicesecurityDefinitions: bearerAuth: type: apiKey in: header name: Authorization – application/json – application/jsonparameters: clientId: name: client_id type: string in: header required: true description: Identificação da aplicação cadastrada no portal do desenvolvedor (api.xplatform.com.br)paths: /reprocessAgreementInvoice: post: description: Reprocessar nota fiscal de saída via contrato
### Resources:
- res://senior.com.br/erpx_com_fat/saleinvoice/actions/reprocessAgreementInvoice – Processar
x-senior-event: false deprecated: false tags: – Endpoints security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: type: object required: – invoiceId properties: invoiceId: type: string description: Id da nota responses: 200: description: Ok 404: description: Entidade ou Registro não encontrado 403: description: Permissão negada 401: description: Usuário ou senha inválido 400: description: Requisição inválida, parâmetros obrigatórios não informados ou campo informado incorretamente default: description: Error response schema: #/definitions/genericError /externalInvoiceProcessed: post: description: Evento que representa o processamento da nota fiscal de origem externa x-senior-event: true deprecated: false tags: – Events security: – bearerAuth: [] parameters: – #/parameters/clientId – name: input in: body required: true schema: type: object required: – id – branch – serie properties: id: type: string description: ID da nota no ERPX externalInvoiceId: type: string description: Identificador externo da nota fiscal proveniente de integração branch: #/definitions/branch serie: #/definitions/series number: type: string description: Número da nota rpsNumber: type: integer description: Numero da RPS success: type: boolean description: Processado com sucesso invoiceStatus: #/definitions/invoiceStatus closingEventError: type: string description: Evento de fechamento da nota fiscal com erro messageError: type: string description: Mensagem de erro electronicStatus: #/definitions/eletronicStatus responses: 200: description: Ok default: description: Error response schema: #/definitions/genericErrordefinitions: invoiceStatus: type: string enum: – PREPARATION – TYPING – CLOSED – CANCELLED – PROCESSING_CLOSURE – PROCESSING_CANCELLATION – DISABLED – PROCESSING_REHABILITATION – PROCESSING_DISABLING – REVERSED – PROCESSING_CALCULATION – INCONSISTENT – PROCESSING_VOLUME eletronicStatus: type: string enum: – NOT_SENT – SENT – ISSUED – REJECTED – DENIED – REQUESTED_DISABLING – REQUESTED_CANCELLATION – DISABLED – CANCELLED – GENERATION_ERROR – REQUESTED_CANCELLATION_ERROR – REQUESTED_DISABLING_ERROR – PENDING_CANCELLATION – CLOSURE_REQUESTED – CLOSED – ISSUED_CONTINGENCY – REGISTERED_EVENT – PARTIAL_DEFERRED – INDEFERRED enumDisAut: type: string enum: – V1 – V2 – V3 – V4 – V5 – V6 – V7 – V8 – V9 – V10 – V11 – V12 branch: type: object properties: id: type: string description: ID da Filial code: type: integer description: código da Filial tradeName: type: string description: nome Filial city: #/definitions/city city: type: object properties: id: type: string description: id code: type: integer description: código da cidade name: type: string description: Nome da Cidade state: #/definitions/state state: type: object properties: id: type: string description: Id da UF initials: type: string description: Sigla da UF name: type: string description: Nome da UF country: #/definitions/country country: type: object properties: id: type: string description: Id do País code: type: string description: Código do páis name: type: string description: Nome do país series: type: object properties: id: type: string description: id da série fiscal code: type: string description: código da série fiscal description: type: string description: descrição da série fiscal legalCode: type: string description: Código da série legal authorizedDevice: #/definitions/enumDisAut 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