Lista faktur
Zwraca paginowaną listę faktur dla uwierzytelnionego użytkownika. Obsługuje filtrowanie według statusu, typu płatności, zakresu dat, zakresu kwot i konkretnych identyfikatorów.
Authorizations
Dział zatytułowany „Authorizations ”Parameters
Dział zatytułowany „ Parameters ”Query Parameters
Dział zatytułowany „Query Parameters ”Bieżąca strona
Sort order direction (ascending or descending)
Sortowanie według znacznika czasu utworzenia encji
Sort order direction (ascending or descending)
Sortuj według kwoty dokumentu
Filtr dokładny według statusu dokumentu
Filtr dokładny według typu płatności
Document ID
Filtr dokładny według identyfikatora dokumentu
Filtr dokładny według wielu identyfikatorów dokumentów
Creation timestamp
Filtr dokładny według znacznika czasu utworzenia
Filtr dokładny i zakresowy według znaczników czasu utworzenia
Document amount
Filtr zakresowy według kwoty dokumentu (wartość rzeczywista, np. 24.63 dla 24.63 EUR)
Filtr dokładny i zakresowy według kwot dokumentów (wartości rzeczywiste, np. 24.63 dla 24.63 EUR)
Payment timestamp
Filtr dokładny według znacznika czasu płatności
Filtr dokładny i zakresowy według znaczników czasu płatności
Filtr istnienia według statusu płatności: true = dokumenty opłacone, false = dokumenty nieopłacone
Responses
Dział zatytułowany „ Responses ”Invoice collection
object
JSON-LD ID
JSON-LD type
Invoice details (JSON-LD)
object
Identyfikator JSON-LD
Typ JSON-LD
Invoice ID
Creation date (unix timestamp)
Invoice amount
Waluta
Invoice status: 0 = New (unpaid), 1 = Success (paid), 2 = Failed
Payment method: 1 = SEPA, 6 = Bank Transfer, 7 = PayPal, 8 = Sofort, 91 = Stored Card, 92 = New Card
Payment date (unix timestamp), 0 if not paid
Client company name
Client address
Client info line
VAT percentage
VAT identification number
VAT value
Fee percentage
Fee value
Net cost value
ISO-2 country code
Custom text on the invoice
URI to download invoice PDF
URI to related credit note, null if none
Total number of items in the collection
Pagination links for navigating the collection
object
Search and filtering template for the collection
object
object
Examples
Invoice list example (JSON-LD)
Example response for GET /invoices with Accept: application/ld+json
{ "@context": "/contexts/Invoice", "@id": "/invoices", "@type": "Collection", "totalItems": 1, "member": [ { "@id": "/invoices/44969", "@type": "Invoice", "id": "44969", "created_at": 1626123015, "amount": 24.63, "currency": "EUR", "status": 1, "payment_type": 7, "paid_at": 1626123015, "client_name": "Example Customer Ltd.", "client_address": "Main Street 42\n12345 Example City", "client_info": "John Doe", "vat": 19, "vat_id": "DE123456789", "vat_val": 3.93, "fee": 3.5, "fee_val": 0.72, "net_val": 19.98, "iso2": "DE", "custom_text": "PO-2024-001", "pdf": "/invoices/44969/pdf", "credit_note": null } ], "view": { "@id": "/invoices?page=1", "@type": "PartialCollectionView" }, "search": { "@type": "IriTemplate", "template": "/invoices{?_order[created_at],_order[amount],status,status[],payment_type,payment_type[],id,id[],createdAt[between],createdAt[gt],createdAt[gte],createdAt[lt],createdAt[lte],amount[between],amount[gt],amount[gte],amount[lt],amount[lte],paidAt[between],paidAt[gt],paidAt[gte],paidAt[lt],paidAt[lte]}", "variableRepresentation": "BasicRepresentation", "mapping": [ { "@type": "IriTemplateMapping", "variable": "_order[created_at]", "property": "created_at", "required": false }, { "@type": "IriTemplateMapping", "variable": "_order[amount]", "property": "amount", "required": false }, { "@type": "IriTemplateMapping", "variable": "status", "property": "status", "required": false }, { "@type": "IriTemplateMapping", "variable": "status[]", "property": "status", "required": false }, { "@type": "IriTemplateMapping", "variable": "payment_type", "property": "payment_type", "required": false }, { "@type": "IriTemplateMapping", "variable": "payment_type[]", "property": "payment_type", "required": false }, { "@type": "IriTemplateMapping", "variable": "id", "property": "id", "required": false }, { "@type": "IriTemplateMapping", "variable": "id[]", "property": "id", "required": false }, { "@type": "IriTemplateMapping", "variable": "createdAt[between]", "property": "createdAt", "required": false }, { "@type": "IriTemplateMapping", "variable": "createdAt[gt]", "property": "createdAt", "required": false }, { "@type": "IriTemplateMapping", "variable": "createdAt[gte]", "property": "createdAt", "required": false }, { "@type": "IriTemplateMapping", "variable": "createdAt[lt]", "property": "createdAt", "required": false }, { "@type": "IriTemplateMapping", "variable": "createdAt[lte]", "property": "createdAt", "required": false }, { "@type": "IriTemplateMapping", "variable": "amount[between]", "property": "amount", "required": false }, { "@type": "IriTemplateMapping", "variable": "amount[gt]", "property": "amount", "required": false }, { "@type": "IriTemplateMapping", "variable": "amount[gte]", "property": "amount", "required": false }, { "@type": "IriTemplateMapping", "variable": "amount[lt]", "property": "amount", "required": false }, { "@type": "IriTemplateMapping", "variable": "amount[lte]", "property": "amount", "required": false }, { "@type": "IriTemplateMapping", "variable": "paidAt[between]", "property": "paidAt", "required": false }, { "@type": "IriTemplateMapping", "variable": "paidAt[gt]", "property": "paidAt", "required": false }, { "@type": "IriTemplateMapping", "variable": "paidAt[gte]", "property": "paidAt", "required": false }, { "@type": "IriTemplateMapping", "variable": "paidAt[lt]", "property": "paidAt", "required": false }, { "@type": "IriTemplateMapping", "variable": "paidAt[lte]", "property": "paidAt", "required": false } ] }}Invoice details
object
Identyfikator faktury
Data utworzenia (znacznik czasu unix)
Kwota faktury
Waluta
Status faktury: 0 = Nowa (nieopłacona), 1 = Sukces (opłacona), 2 = Niepowodzenie
Metoda płatności: 1 = SEPA, 6 = Przelew bankowy, 7 = PayPal, 8 = Sofort, 91 = Zapisana karta, 92 = Nowa karta
Data płatności (znacznik czasu unix), 0 jeśli nieopłacona
Nazwa firmy klienta
Adres klienta
Wiersz informacji o kliencie
Stawka VAT
Numer identyfikacji VAT
Kwota VAT
Stawka opłaty
Kwota opłaty
Wartość kosztu netto
Kod kraju ISO-2
Tekst niestandardowy na fakturze
URI do pobrania faktury PDF
URI powiązanej noty kredytowej, null jeśli brak
Examples
Invoice list example (JSON)
Example response for GET /invoices with Accept: application/json
[ { "id": "44969", "created_at": 1626123015, "amount": 24.63, "currency": "EUR", "status": 1, "payment_type": 7, "paid_at": 1626123015, "client_name": "Example Customer Ltd.", "client_address": "Main Street 42\n12345 Example City", "client_info": "John Doe", "vat": 19, "vat_id": "DE123456789", "vat_val": 3.93, "fee": 3.5, "fee_val": 0.72, "net_val": 19.98, "iso2": "DE", "custom_text": "PO-2024-001", "pdf": "/invoices/44969/pdf", "credit_note": null }]Nieprawidłowe dane wejściowe
Identyfikator klienta lub klucz API nie jest aktywny albo jest nieprawidłowy!
Konto nie jest aktywowane. Poczekaj lub skontaktuj się z pomocą techniczną!
Adres IP został tymczasowo zablokowany, ponieważ w krótkim czasie wysłano z niego wiele żądań z nieprawidłowymi danymi uwierzytelniającymi. Poczekaj i spróbuj ponownie później.
Code Samples
curl -s 'https://api.lox24.eu/invoices' -H 'X-LOX24-AUTH-TOKEN: YOUR_API_TOKEN' | jqusing System;using System.Net.Http;using System.Net.Http.Headers;using System.Threading.Tasks;
class Program{ static async Task Main() { using var client = new HttpClient(); client.DefaultRequestHeaders.Add("X-LOX24-AUTH-TOKEN", "YOUR_API_TOKEN");
var response = await client.GetStringAsync("https://api.lox24.eu/invoices"); Console.WriteLine(response); }}package main
import ( "fmt" "io" "net/http")
func main() { req, _ := http.NewRequest("GET", "https://api.lox24.eu/invoices", nil) req.Header.Set("X-LOX24-AUTH-TOKEN", "YOUR_API_TOKEN")
resp, _ := http.DefaultClient.Do(req) defer resp.Body.Close() body, _ := io.ReadAll(resp.Body) fmt.Println(string(body))}import java.net.URI;import java.net.http.HttpClient;import java.net.http.HttpRequest;import java.net.http.HttpResponse;
public class Main { public static void main(String[] args) throws Exception { var client = HttpClient.newHttpClient(); var request = HttpRequest.newBuilder() .uri(URI.create("https://api.lox24.eu/invoices")) .header("X-LOX24-AUTH-TOKEN", "YOUR_API_TOKEN") .GET() .build();
var response = client.send(request, HttpResponse.BodyHandlers.ofString()); System.out.println(response.body()); }}fetch('https://api.lox24.eu/invoices', { headers: { 'X-LOX24-AUTH-TOKEN': 'YOUR_API_TOKEN' }}).then(res => res.json()).then(console.log);<?php
$ch = curl_init('https://api.lox24.eu/invoices');curl_setopt($ch, CURLOPT_HTTPHEADER, ['X-LOX24-AUTH-TOKEN: YOUR_API_TOKEN']);curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);curl_close($ch);
echo $response;import requests
response = requests.get( 'https://api.lox24.eu/invoices', headers={'X-LOX24-AUTH-TOKEN': 'YOUR_API_TOKEN'})print(response.json())