Obtener detalles de la factura
Devuelve información detallada sobre una factura específica. Requiere autenticación; solo devuelve documentos pertenecientes al usuario autenticado.
Authorizations
Sección titulada «Authorizations »Parameters
Sección titulada « Parameters »Path Parameters
Sección titulada «Path Parameters »Document ID
ID de la factura
Responses
Sección titulada « Responses »Invoice resource
Invoice details (JSON-LD)
object
JSON-LD ID
JSON-LD type
Invoice ID
Creation date (unix timestamp)
Invoice amount
Moneda
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
Examples
Invoice detail example (JSON-LD)
Example response for GET /invoices/{id} with Accept: application/ld+json
{ "@context": "/contexts/Invoice", "@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": "/credit_notes/240"}Invoice details
object
ID de la factura
Fecha de creación (timestamp Unix)
Importe de la factura
Código de moneda
Estado de la factura: 0 = Nueva (no pagada), 1 = Exitosa (pagada), 2 = Fallida
Método de pago: 1 = SEPA, 6 = Transferencia, 7 = PayPal, 8 = Sofort, 91 = Tarjeta guardada, 92 = Nueva tarjeta
Fecha de pago (timestamp Unix), 0 si no pagado
Nombre de la empresa del cliente
Dirección del cliente
Línea de información del cliente
Porcentaje de IVA
Número de identificación fiscal
Valor del IVA
Porcentaje de comisión
Valor de la comisión
Valor del coste neto
Código de país ISO-2
Texto personalizado en la factura
URI para descargar el PDF de la factura
URI a la nota de crédito relacionada, null si no existe
Examples
Invoice detail example
Example response for GET /invoices/{id}
{ "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": "/credit_notes/240"}El ID de cliente o la clave API no están activos o no son válidos.
La cuenta no está activada. Espere o póngase en contacto con el servicio de asistencia.
No se ha encontrado el recurso
La dirección IP fue bloqueada temporalmente, ya que durante poco tiempo se enviaron muchas solicitudes con credenciales no válidas. Espere y pruebe más tarde.
Code Samples
curl -s 'https://api.lox24.eu/invoices/34101' -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/34101"); Console.WriteLine(response); }}package main
import ( "fmt" "io" "net/http")
func main() { req, _ := http.NewRequest("GET", "https://api.lox24.eu/invoices/34101", 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/34101")) .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/34101', { headers: { 'X-LOX24-AUTH-TOKEN': 'YOUR_API_TOKEN' }}).then(res => res.json()).then(console.log);<?php
$ch = curl_init('https://api.lox24.eu/invoices/34101');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/34101', headers={'X-LOX24-AUTH-TOKEN': 'YOUR_API_TOKEN'})print(response.json())