> ## Documentation Index
> Fetch the complete documentation index at: https://api-docs.erp.olist.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Consultar NFS-e

> Serviço para consultar situação de uma nota fiscal de serviço na prefeitura.

## Endpoint

```
POST https://api.tiny.com.br/api2/nota.servico.consultar.php
```

## Parâmetros

| Parâmetro | Tipo   | Ocorrência  | Descrição                                 |
| --------- | ------ | ----------- | ----------------------------------------- |
| token     | string | obrigatório | Chave gerada para identificar sua empresa |
| formato   | string | obrigatório | Formato do retorno (json)                 |
| id        | int    | obrigatório | ID da nota de serviço                     |

## Descrição

Consulta a situação atual da NFS-e no sistema da prefeitura, retornando informações sobre autorização, cancelamento ou rejeição.

## Exemplo de chamada

```bash theme={null}
curl -X POST https://api.tiny.com.br/api2/nota.servico.consultar.php \
  -d "token=SEU_TOKEN&formato=json&id=456789"
```
