Zahlungsstatus abrufen
Gibt detaillierte Informationen zu einem bestimmten Zahlungsversuch zurück. Erfordert Authentifizierung; gibt nur Zahlungsversuche des authentifizierten Benutzers zurück.
Authorizations
Abschnitt betitelt „Authorizations “Parameters
Abschnitt betitelt „ Parameters “Path Parameters
Abschnitt betitelt „Path Parameters “Payment attempt ID
Zahlungsversuchs-ID
Responses
Abschnitt betitelt „ Responses “Payment details
Payment attempt details (JSON-LD)
object
JSON-LD ID
JSON-LD type
Payment Attempt ID
Creation date (unix timestamp)
Completion date (unix timestamp), null if not completed
Payment status: 0 = New, 10 = In Progress (before request), 20 = In Progress (after request), 100 = Done, 200 = Canceled by user, 300 = Canceled by timeout, 400 = Canceled by admin, 1000 = Error
Total payment amount
Net cost value
VAT value
Fee value
Ihre Währung
Payment method: 1 = SEPA, 6 = Bank Transfer, 7 = PayPal, 8 = Sofort, 91 = Stored Card, 92 = New Card
URI to related invoice, null if not yet created
Error message if payment failed, null otherwise
Examples
Payment attempt detail (JSON-LD)
Example response for GET /payments/{id} with Accept: application/ld+json
{ "@id": "/payments/123", "@type": "PaymentAttempt", "id": 123, "created_at": 1750152600, "completed_at": null, "status": 20, "amount": 121.38, "net_val": 100, "vat_val": 19.38, "fee_val": 2, "currency": "EUR", "type": 7, "invoice": null, "error": null}Payment attempt details
object
Zahlungsversuchs-ID
Erstellungsdatum (Unix-Zeitstempel)
Abschlussdatum (Unix-Zeitstempel), null wenn nicht abgeschlossen
Zahlungsstatus: 0 = Neu, 10 = In Bearbeitung (vor Anfrage), 20 = In Bearbeitung (nach Anfrage), 100 = Erledigt, 200 = Vom Benutzer abgebrochen, 300 = Durch Zeitüberschreitung abgebrochen, 400 = Vom Administrator abgebrochen, 1000 = Fehler
Gesamtzahlungsbetrag
Nettobetrag
MwSt.-Wert
Gebührenwert
Währungscode
Zahlungsmethode: 1 = SEPA, 6 = Überweisung, 7 = PayPal, 8 = Sofort, 91 = Gespeicherte Karte, 92 = Neue Karte
URI zur zugehörigen Rechnung, null wenn noch nicht erstellt
Fehlermeldung wenn die Zahlung fehlgeschlagen ist, null sonst
ID der verwendeten Zahlungsmethode (gespeicherte Karten-ID oder SEPA-Mandats-ID), null falls nicht zutreffend
Examples
Payment attempt detail
Example response for GET /payments/{id} (payment with redirect URL)
{ "id": 123, "created_at": 1750152600, "completed_at": null, "status": 20, "amount": 121.38, "net_val": 100, "vat_val": 19.38, "fee_val": 2, "currency": "EUR", "type": 7, "invoice": null, "error": null}Kunden-Nr oder API Key sind ungültig oder inaktiv!
Account ist noch nicht innerhalb von 24h nach Registrierung aktiviert. Bitte warten oder Support kontaktieren
Quelle nicht gefunden
Die IP-Adresse wurde vorübergehend blockiert, da in kurzer Zeit viele Anfragen mit ungültigen Anmeldeinformationen gesendet wurden. Bitte warten Sie und versuchen Sie es später.
Code Samples
curl -s 'https://api.lox24.eu/payments/123' -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/payments/123"); Console.WriteLine(response); }}package main
import ( "fmt" "io" "net/http")
func main() { req, _ := http.NewRequest("GET", "https://api.lox24.eu/payments/123", 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/payments/123")) .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/payments/123', { headers: { 'X-LOX24-AUTH-TOKEN': 'YOUR_API_TOKEN' }}).then(res => res.json()).then(console.log);<?php
$ch = curl_init('https://api.lox24.eu/payments/123');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/payments/123', headers={'X-LOX24-AUTH-TOKEN': 'YOUR_API_TOKEN'})print(response.json())