Baixar PDF da nota de crédito
GET
/credit_notes/{id}/pdf
Baixa o arquivo PDF de uma nota de crédito específica. Requer autenticação; retorna apenas documentos pertencentes ao usuário autenticado.
Authorizations
Seção intitulada “Authorizations ”Parameters
Seção intitulada “ Parameters ”Path Parameters
Seção intitulada “Path Parameters ” id
required
Document ID
integer
ID da nota de crédito
Responses
Seção intitulada “ Responses ”Credit Note PDF file
Media type application/pdf
string format: binary
Client ID or API key isn’t active or invalid!
Account isn’t activated. Please wait or contact to support!
Resource not found
O endereço IP foi bloqueado temporariamente, pois durante um curto período de tempo foram enviadas várias solicitações com credenciais inválidas. Aguarde e tente mais tarde.
Code Samples
curl -s 'https://api.lox24.eu/credit_notes/7/pdf' -H 'X-LOX24-AUTH-TOKEN: YOUR_API_TOKEN' --output credit_note.pdfusing var client = new HttpClient();client.DefaultRequestHeaders.Add("X-LOX24-AUTH-TOKEN", "YOUR_API_TOKEN");var response = await client.GetByteArrayAsync("https://api.lox24.eu/credit_notes/7/pdf");await File.WriteAllBytesAsync("credit_note.pdf", response);package mainimport ("net/http"; "os"; "io")func main() { req, _ := http.NewRequest("GET", "https://api.lox24.eu/credit_notes/7/pdf", nil) req.Header.Set("X-LOX24-AUTH-TOKEN", "YOUR_API_TOKEN") resp, _ := http.DefaultClient.Do(req) f, _ := os.Create("credit_note.pdf") io.Copy(f, resp.Body)}import java.net.http.*;import java.net.URI;import java.nio.file.*;var request = HttpRequest.newBuilder().uri(URI.create("https://api.lox24.eu/credit_notes/7/pdf")).header("X-LOX24-AUTH-TOKEN", "YOUR_API_TOKEN").build();var response = HttpClient.newHttpClient().send(request, HttpResponse.BodyHandlers.ofByteArray());Files.write(Path.of("credit_note.pdf"), response.body());fetch('https://api.lox24.eu/credit_notes/7/pdf', {headers: {'X-LOX24-AUTH-TOKEN': 'YOUR_API_TOKEN'}}).then(r => r.blob()).then(b => { /* save blob */ })<?php$ch = curl_init("https://api.lox24.eu/credit_notes/7/pdf");curl_setopt($ch, CURLOPT_HTTPHEADER, ["X-LOX24-AUTH-TOKEN: YOUR_API_TOKEN"]);curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);file_put_contents("credit_note.pdf", curl_exec($ch));curl_close($ch);import requests; r = requests.get("https://api.lox24.eu/credit_notes/7/pdf", headers={"X-LOX24-AUTH-TOKEN": "YOUR_API_TOKEN"}); open("credit_note.pdf", "wb").write(r.content)