---
description: >-
  Responsável por permitir ao integrador a consulta dos PDFs relacionados às
  NFS-es recebidas.
---

# Consultar PDF importado

### Endpoints

<mark style="color:blue;">`GET`</mark> `https://sandbox-api.invoisys.io/v1/nfse-entrada/obter-pdf-chave/{ambiente}/{id}`

#### Headers

| Name          | Type   | Description        |
| ------------- | ------ | ------------------ |
| Accept        | string | `application/json` |
| Authorization | string | `bearer <valor>`   |

#### Request Body por ID

| Name      | Type    | Description                                                                                                     |
| --------- | ------- | --------------------------------------------------------------------------------------------------------------- |
| ambiente  | integer | <p>Ambiente de importação do XML<br><code>ENUM: 1 - Produção; 2 - Homologação</code><br><code>TAM: 1</code></p> |
| idArquivo | integer | ID invoiSys da NFS-e                                                                                            |

#### Response

{% tabs %}
{% tab title="200 - Sucesso" %}
```csharp
	
{
  "id": 4207,
  "pdf": "JVBERi0xLjQKJeLjz9MKMSAwIG9iago8PC9UeXBlL1hPYmplY3QvU3VidHlwZS9JbWFnZS9XaWR0aCAzNzAvSGVpZ2h0IDM3MC9MZW5ndGggNTMzMS9Db2xvclNwYWNlL0RldmljZVJHQi9CaXRzUGVyQ29tcG9uZW50IDgvRmlsdGVyL0ZsYXRlRGVjb2RlPj5zdHJlYW0KeJztk8GuLTkIA+f/f/rN9iyuWorc1cbEtQdMkfz7V0oppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkops/hvHW6jf6Nk5vZNTJWIYiMRt+/3cRv9GyUzt29iqkQUG4m4fb+P2+jfKJm5fRNTJaLYSMTt+33cRv9Gycztm5gqEcVGIm7f7+M2+jdKZm7fxFSJKDYScft+H7fRv1Eyc/smpkpEsZGI2/f7uI3+jZKZ2zcxVSKKjUTcvt/HbfRvlMzcvompElFsJOL2/T5uo3+jZOb2TUyViGIjEbfv93Eb/RslM7dvYqpEFBuJJNpIzKzges9KZ1eti8T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822cvaQElH1vc6XAvTqu1tW5lFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFJKKaWUUkoppZRSSimllFKm8T8Tbi+0CmVuZHN0cmVhbQplbmRvYmoKNSAwIG9iago8PC9UeXBlL1hPYmplY3QvU3VidHlwZS9JbWFnZS9XaWR0aCAyMDAvSGVpZ2h0IDIwMC9MZW5ndGggMjk2OS9Db2xvclNwYWNlL0RldmljZUdyYXkvQml0c1BlckNvbXBvbmVudCA4L0ZpbHRlci9GbGF0ZURlY29kZT4+c3RyZWFtCnic7Zx5XBRHFseb+xblEAQRvPEieISgEYjHosYE0InrgYpGXcMaieDFqsAuKoJH1KiRQxAcE/PxjElcoxKzIILBC1FIRFRARUSNQTlECGRmqvp..",
  "mensagem": "Sucesso."
}
```
{% endtab %}

{% tab title="400 - NFS-e inexistente" %}
```csharp
{
  "id": 4209,
  "pdf": "",
  "mensagem": "NFS-e inexistente ou XML incompleto na base de dados."
}
```
{% endtab %}
{% endtabs %}

{% hint style="info" %}
#### Swagger

[Você pode acessar nossa API e realizar testes diretamente na nossa plataforma Swagger!](https://sandbox-api.invoisys.io/swagger/index.html)
{% endhint %}

## APIs Relacionadas 🎈

* [Importar XML](../ct-e/api-entrada-de-nf-e-por-xml)

## Referências à API 📌

* Passo-a-Passo do Recebimento NFS-e
* Fluxograma - Recebimento NFS-e
