Baixa o laudo da notificação.
import requests
url = "https://pombo.digital/api/integrations/v1/notifications/{id}/report/download"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)curl --request GET \
--url https://pombo.digital/api/integrations/v1/notifications/{id}/report/download \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://pombo.digital/api/integrations/v1/notifications/{id}/report/download', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));"<string>"Notificações
Baixa o laudo da notificação.
Devolve o Relatório Técnico de Rastreabilidade, o laudo com carimbo do tempo ICP-Brasil que comprova a notificação.
A resposta é o PDF em si, com Content-Type: application/pdf, não um link. Grave os bytes em disco.
Gere o laudo depois de a notificação atingir um estado final, para que ele reflita o resultado completo da entrega.
GET
/
notifications
/
{id}
/
report
/
download
Baixa o laudo da notificação.
import requests
url = "https://pombo.digital/api/integrations/v1/notifications/{id}/report/download"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)curl --request GET \
--url https://pombo.digital/api/integrations/v1/notifications/{id}/report/download \
--header 'Authorization: Bearer <token>'const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://pombo.digital/api/integrations/v1/notifications/{id}/report/download', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));"<string>"Authorizations
Sua credencial de API no cabeçalho Authorization: Bearer sk_live_.... Crie e revogue credenciais no painel, em Conta → API Keys. O segredo aparece uma única vez, na criação.
A credencial identifica a organização: organization_id não é aceito em nenhuma requisição.
Path Parameters
O identificador da notificação.
Pattern:
^PBD_NOT_[0-9A-HJKMNP-TV-Z]{26}$Example:
"PBD_NOT_01J9Z2Q8XK3M7WPTV6RB4CYH0N"
Response
O laudo, em PDF.
The response is of type file.

