Download credit note PDF
GET
/credit_notes/{id}/pdf
Downloads the PDF file for a specific credit note. Requires authentication; only returns documents belonging to the authenticated user.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ” id
required
integer
Credit Note ID
Responses
Section titled “ 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
IP address was temporary blocked, because during short time from it was sent many request with invalid credentials. Please wait and try later.
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)