Lista prób płatności
Zwraca paginowaną listę prób płatności dla uwierzytelnionego użytkownika. Obsługuje filtrowanie według statusu, typu płatności, zakresu dat 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
Filtr dokładny według statusu płatności
Filtr dokładny według typu metody płatności
Payment attempt ID
Filtr dokładny według identyfikatora próby płatności
Filtr dokładny według wielu identyfikatorów prób płatności
Payment creation timestamp
Filtr dokładny według znacznika czasu utworzenia
Filtr dokładny i zakresowy według znaczników czasu utworzenia
Responses
Dział zatytułowany „ Responses ”Payment collection
object
JSON-LD ID
JSON-LD type
Payment attempt details (JSON-LD)
object
Identyfikator JSON-LD
Typ JSON-LD
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
Waluta
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
Total number of items in the collection
Pagination links for navigating the collection
object
Search and filtering template for the collection
object
object
Examples
Payment list (JSON-LD)
Example response for GET /payments with Accept: application/ld+json
{ "@context": "/contexts/PaymentAttempt", "@id": "/payments", "@type": "Collection", "totalItems": 2, "member": [ { "@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 }, { "@id": "/payments/120", "@type": "PaymentAttempt", "id": 120, "created_at": 1750066200, "completed_at": 1750066200, "status": 100, "amount": 100, "net_val": 100, "vat_val": 0, "fee_val": 0, "currency": "EUR", "type": 6, "invoice": "/invoices/456", "error": null } ], "view": { "@id": "/payments?page=1", "@type": "PartialCollectionView" }, "search": { "@type": "IriTemplate", "template": "/payments{?page,_order[created_at],status,type,id,id[],created_at,created_at[]}", "variableRepresentation": "BasicRepresentation", "mapping": [ { "@type": "IriTemplateMapping", "variable": "page", "property": "page", "required": false }, { "@type": "IriTemplateMapping", "variable": "_order[created_at]", "property": "created_at", "required": false }, { "@type": "IriTemplateMapping", "variable": "status", "property": "status", "required": false }, { "@type": "IriTemplateMapping", "variable": "type", "property": "type", "required": false }, { "@type": "IriTemplateMapping", "variable": "id", "property": "id", "required": false }, { "@type": "IriTemplateMapping", "variable": "id[]", "property": "id", "required": false }, { "@type": "IriTemplateMapping", "variable": "created_at", "property": "created_at", "required": false }, { "@type": "IriTemplateMapping", "variable": "created_at[]", "property": "created_at", "required": false } ] }}Payment attempt details
object
Identyfikator próby płatności
Data utworzenia (znacznik czasu unix)
Data zakończenia (znacznik czasu unix), null jeśli niezakończona
Status płatności: 0 = Nowa, 10 = W toku (przed żądaniem), 20 = W toku (po żądaniu), 100 = Zakończona, 200 = Anulowana przez użytkownika, 300 = Anulowana przez przekroczenie limitu czasu, 400 = Anulowana przez administratora, 1000 = Błąd
Łączna kwota płatności
Wartość kosztu netto
Kwota VAT
Kwota opłaty
Waluta
Metoda płatności: 1 = SEPA, 6 = Przelew bankowy, 7 = PayPal, 8 = Sofort, 91 = Zapisana karta, 92 = Nowa karta
URI powiązanej faktury, null jeśli jeszcze nie utworzono
Komunikat błędu, jeśli płatność nie powiodła się, w przeciwnym razie null
Identyfikator użytej metody płatności (identyfikator zapisanej karty lub mandatu SEPA), null jeśli nie dotyczy
Examples
Payment list
Example response for GET /payments with Accept: application/json
[ { "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 }, { "id": 120, "created_at": 1750066200, "completed_at": 1750066200, "status": 100, "amount": 100, "net_val": 100, "vat_val": 0, "fee_val": 0, "currency": "EUR", "type": 6, "invoice": "/invoices/456", "error": 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/payments' -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"); Console.WriteLine(response); }}package main
import ( "fmt" "io" "net/http")
func main() { req, _ := http.NewRequest("GET", "https://api.lox24.eu/payments", 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")) .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', { headers: { 'X-LOX24-AUTH-TOKEN': 'YOUR_API_TOKEN' }}).then(res => res.json()).then(console.log);<?php
$ch = curl_init('https://api.lox24.eu/payments');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', headers={'X-LOX24-AUTH-TOKEN': 'YOUR_API_TOKEN'})print(response.json())