Baixar o XML da NFS-e
curl --request GET \
--url https://notasx-api.fly.dev/v1/notas/{nota_id}/xml \
--header 'Authorization: Bearer <token>'import requests
url = "https://notasx-api.fly.dev/v1/notas/{nota_id}/xml"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://notasx-api.fly.dev/v1/notas/{nota_id}/xml', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://notasx-api.fly.dev/v1/notas/{nota_id}/xml",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://notasx-api.fly.dev/v1/notas/{nota_id}/xml"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://notasx-api.fly.dev/v1/notas/{nota_id}/xml")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://notasx-api.fly.dev/v1/notas/{nota_id}/xml")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"expira_em": "2026-11-11T21:45:00Z",
"url": "https://<conta>.r2.cloudflarestorage.com/nfse/<prestador>/<nota>.xml?X-Amz-Expires=300&X-Amz-Signature=..."
}Notas
Baixar o XML da NFS-e
Devolve um link temporário (5 minutos) para o XML oficial da NFS-e. Disponível pouco depois de
emitida; antes disso, 404 xml_indisponivel.
GET
/
v1
/
notas
/
{nota_id}
/
xml
Baixar o XML da NFS-e
curl --request GET \
--url https://notasx-api.fly.dev/v1/notas/{nota_id}/xml \
--header 'Authorization: Bearer <token>'import requests
url = "https://notasx-api.fly.dev/v1/notas/{nota_id}/xml"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://notasx-api.fly.dev/v1/notas/{nota_id}/xml', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://notasx-api.fly.dev/v1/notas/{nota_id}/xml",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://notasx-api.fly.dev/v1/notas/{nota_id}/xml"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://notasx-api.fly.dev/v1/notas/{nota_id}/xml")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://notasx-api.fly.dev/v1/notas/{nota_id}/xml")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"expira_em": "2026-11-11T21:45:00Z",
"url": "https://<conta>.r2.cloudflarestorage.com/nfse/<prestador>/<nota>.xml?X-Amz-Expires=300&X-Amz-Signature=..."
}Authorizations
Authorization: Bearer nx_... com uma Chave de API, ou o JWT de sessão do painel (Supabase Auth). As duas credenciais representam a mesma Conta.
Path Parameters
Id da Nota, devolvido na criação.