GET
/nfcom/{idOrChaveOrProtocolo}/eventosnfcom/xmlDownload event XML
Downloads the XML of an NFCom event. The invoice must be CONCLUIDO. If status and protocolo are omitted, the latest matching authorized event is returned.
Production: https://api.otentecnologia.com.brSandbox: https://api.sandbox.otentecnologia.com.br
Parameters
codigo query · required | Send code `110300` to return the XML of the latest authorized payment-link eventculação de pagamento. |
protocolo query | Send the event submission protocol. |
status query | Send the event status. * `autorizacao` * `cancellation` |
Request
cURL
curl -X GET 'https://api.otentecnologia.com.br/nfcom/{idOrChaveOrProtocolo}/eventosnfcom/xml' \
-H 'x-api-key: $OTEN_API_KEY' \
-H 'Content-Type: application/json'Responses
200OK
400Bad Request
JSON
{
"error": {
"message": "Código do evento é obrigatório."
}
}401Unauthorized
JSON
{
"error": {
"message": "O token informado é inválido. Para o ambiente de produção, Acesse https://www.otentecnologia.com.br/, e gere o seu TOKEN de acesso"
}
}404Not Found
JSON
{
"error": {
"message": "Não localizamos qualquer Evento NFCom com os parâmetros informados"
}
}