---
title: "NFS-e - Consultar benefício fiscal do município."
url: "https://devcenter.stone.com.br/apis/stone-tax/versions/206fd1c1-6382-4ada-8612-c67fdc65e050/paths/api-v1-RecursosAdicionais-Nfse-Municipio-codigoMunicipio--Beneficio--codigoBeneficio--Consultar/get"
---

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

# NFS-e - Consultar benefício fiscal do município.

`GET` `/api/v1/RecursosAdicionais/Nfse/Municipio/{codigoMunicipio}/Beneficio/{codigoBeneficio}/Consultar`

Consulta os detalhes de um benefício fiscal parametrizado no Ambiente Nacional NFS-e para o município informado, incluindo tipo, percentuais de redução de base de cálculo ou alíquota diferenciada, serviços contemplados e período de vigência. ⚠️ **ATENÇÃO**: O código do município deve ser o código IBGE de 7 dígitos.

## Path parameters

- `codigoMunicipio` (string, required) - Código IBGE do município.
- `codigoBeneficio` (string, required) - Código do benefício fiscal.

## Header parameters

- `DocumentoEmissor` (string, optional) - 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/RecursosAdicionais/Nfse/Municipio/{codigoMunicipio}/Beneficio/{codigoBeneficio}/Consultar:
    get:
      tags:
        - RecursosAdicionais
      summary: NFS-e - Consultar benefício fiscal do município.
      description: >-
        Consulta os detalhes de um benefício fiscal parametrizado no Ambiente
        Nacional NFS-e para o município informado,

        incluindo tipo, percentuais de redução de base de cálculo ou alíquota
        diferenciada, serviços contemplados e período de vigência.
                    
        ⚠️ **ATENÇÃO**: O código do município deve ser o código IBGE de 7
        dígitos.
      parameters:
        - name: codigoMunicipio
          in: path
          description: Código IBGE do município.
          required: true
          schema:
            type: string
        - name: codigoBeneficio
          in: path
          description: Código do benefício fiscal.
          required: true
          schema:
            type: string
        - name: DocumentoEmissor
          in: header
          description: Documento do emissor.
          schema:
            type: string
      responses:
        "200":
          description: OK
          content:
            text/plain:
              schema:
                $ref: "#/components/schemas/ConsultarBeneficioNfseViewModel"
            application/json:
              schema:
                $ref: "#/components/schemas/ConsultarBeneficioNfseViewModel"
            text/json:
              schema:
                $ref: "#/components/schemas/ConsultarBeneficioNfseViewModel"
        "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:
    ConsultarBeneficioNfseViewModel:
      type: object
      properties:
        codigoBeneficio:
          type: string
          description: Código do benefício fiscal.
          nullable: true
        descricao:
          type: string
          description: Descrição do benefício fiscal.
          nullable: true
        dataInicioVigencia:
          type: string
          description: Data de início da vigência do benefício.
          format: date-time
        dataFimVigencia:
          type: string
          description: Data de fim da vigência do benefício, se houver.
          format: date-time
          nullable: true
        tipoBeneficio:
          type: integer
          description: Tipo do benefício fiscal.
          format: int32
        tipoReducaoBC:
          type: integer
          description: Tipo de redução da base de cálculo, se aplicável.
          format: int32
          nullable: true
        reducaoPercentualBC:
          type: number
          description: Percentual de redução da base de cálculo, se aplicável.
          format: double
          nullable: true
        aliquotaDiferenciada:
          type: number
          description: Alíquota diferenciada aplicada pelo benefício, se houver.
          format: double
          nullable: true
        restritoAoMunicipio:
          type: boolean
          description: Indica se o benefício é restrito ao município.
          nullable: true
        servicos:
          type: array
          items:
            $ref: "#/components/schemas/ServicoVigenciaBeneficioNfseViewModel"
          description: Lista de serviços contemplados pelo benefício e seus períodos de
            vigência.
          nullable: true
        contribuintes:
          type: array
          items:
            type: string
          description: Lista de contribuintes contemplados pelo benefício, se houver
            restrição.
          nullable: true
      additionalProperties: false
      description: Benefício fiscal vigente no município para o código informado.
    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
    ServicoVigenciaBeneficioNfseViewModel:
      type: object
      properties:
        codigoServico:
          type: string
          description: Código do serviço (LC 116/2003).
          nullable: true
        dataInicioVigencia:
          type: string
          description: Data de início da vigência do serviço no benefício.
          format: date-time
        dataFimVigencia:
          type: string
          description: Data de fim da vigência do serviço no benefício, se houver.
          format: date-time
          nullable: true
      additionalProperties: false
      description: Serviço contemplado pelo benefício fiscal e seu período de vigência.
  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
```
