---
title: "Status da NFS-e."
url: "https://devcenter.stone.com.br/apis/stone-tax/versions/206fd1c1-6382-4ada-8612-c67fdc65e050/paths/api-v1-Nfse-filtro--StatusFiscal/get"
---

> Full API specification: https://devcenter.stone.com.br/apis/stone-tax/versions/206fd1c1-6382-4ada-8612-c67fdc65e050.md

# Status da NFS-e.

`GET` `/api/v1/Nfse/{filtro}/StatusFiscal`

Retorna o <strong>status</strong> de uma nota fiscal de serviço identificada pelo filtro. 🔍 **IDENTIFICAÇÃO**: O filtro aceita a <strong>ChaveNfse</strong> ou o <strong>Código ERP</strong> informado pelo integrador no momento da emissão. 📋 **RETORNO**: Inclui série, número da DPS, número da NFS-e, chaves, status, protocolo de autorização e mensagem do ADN.

## Path parameters

- `filtro` (string, required) - ChaveNfse ou Código ERP.

## Header parameters

- `DocumentoEmissor` (string, required) - Documento do emissor.

## Responses

- `200` - OK
- `400` - Bad Request
- `401` - Unauthorized
- `403` - Forbidden
- `404` - Not Found
- `500` - Internal Server Error

## OpenAPI definition

```yaml
openapi: 3.0.4
info:
  title: Stone Tax API
  version: 1.0.0
servers:
  - url: https://stone-tax-sdx.stone.com.br
    description: Ambiente de Desenvolvimento
  - url: https://stone-tax.stone.com.br
    description: Ambiente de Produção
paths:
  /api/v1/Nfse/{filtro}/StatusFiscal:
    get:
      tags:
        - Nfse
      summary: Status da NFS-e.
      description: >-
        Retorna o <strong>status</strong> de uma nota fiscal de serviço
        identificada pelo filtro.
                    
        🔍 **IDENTIFICAÇÃO**: O filtro aceita a <strong>ChaveNfse</strong> ou o
        <strong>Código ERP</strong> informado pelo integrador no momento da
        emissão.
                    
        📋 **RETORNO**: Inclui série, número da DPS, número da NFS-e, chaves,
        status, protocolo de autorização e mensagem do ADN.
      parameters:
        - name: filtro
          in: path
          description: ChaveNfse ou Código ERP.
          required: true
          schema:
            type: string
        - name: DocumentoEmissor
          in: header
          description: Documento do emissor.
          required: true
          schema:
            type: string
      responses:
        "200":
          description: OK
          content:
            text/plain:
              schema:
                $ref: "#/components/schemas/ObterStatusFiscalNfseViewModel"
            application/json:
              schema:
                $ref: "#/components/schemas/ObterStatusFiscalNfseViewModel"
            text/json:
              schema:
                $ref: "#/components/schemas/ObterStatusFiscalNfseViewModel"
        "400":
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ResponseErrorResult"
        "401":
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ResponseErrorResult"
        "403":
          description: Forbidden
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ResponseErrorResult"
        "404":
          description: Not Found
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ResponseErrorResult"
        "500":
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: "#/components/schemas/ResponseErrorResult"
      security:
        - BearerAuth: []
security:
  - BearerAuth: []
components:
  schemas:
    ObterStatusFiscalNfseViewModel:
      type: object
      properties:
        codigoErp:
          type: string
          description: Identificador da operação fiscal no ERP.
          nullable: true
        serie:
          type: string
          description: Série da DPS.
          nullable: true
        numeroDps:
          type: integer
          description: Número sequencial da DPS.
          format: int64
        numeroNfse:
          type: integer
          description: Número sequencial da NFS-e gerado pelo ADN após autorização.
          format: int64
          nullable: true
        chaveNfse:
          type: string
          description: Chave de acesso da NFS-e.
          nullable: true
        dataEmissao:
          type: string
          description: Data de emissão da DPS.
          format: date-time
        dataCompetencia:
          type: string
          description: Mês de competência da prestação do serviço (formato "AAAA-MM").
          nullable: true
        tipoAmbiente:
          $ref: "#/components/schemas/TipoAmbienteSefazModelEnum"
        status:
          $ref: "#/components/schemas/StatusNotaFiscalServicoModelEnum"
        ultimoCstat:
          type: integer
          description: Último código de status retornado pela sefaz.
          format: int32
          nullable: true
        mensagemSefaz:
          type: string
          description: Última mensagem retornada pelo ADN.
          nullable: true
        protocoloAutorizacao:
          type: string
          description: Protocolo de autorização emitido pelo ADN.
          nullable: true
      additionalProperties: false
      description: Dados fiscais de uma nota fiscal de serviço identificada pelo filtro.
    ResponseErrorResult:
      type: object
      properties:
        status:
          type: integer
          format: int32
        titulo:
          type: string
          nullable: true
        erros:
          type: object
          additionalProperties:
            type: array
            items:
              type: string
          nullable: true
      additionalProperties: false
    TipoAmbienteSefazModelEnum:
      enum:
        - Producao
        - Homologacao
      type: string
      description: Tipo de ambiente da SEFAZ.
    StatusNotaFiscalServicoModelEnum:
      enum:
        - Pendente
        - Autorizada
        - Cancelada
        - Rejeitada
        - EmCancelamento
        - Substituida
        - Inutilizada
      type: string
      description: Status da nota fiscal de serviço.
  securitySchemes:
    BearerAuth:
      type: http
      description: Autenticação via token JWT. Obtenha o token através do endpoint
        /Autenticacao/ObterToken usando Basic Auth. O token expira em 1 hora.
      scheme: bearer
      bearerFormat: JWT
```
