Przejdź do głównej zawartości

Pobierz status płatności

GET
/payments/{id}

Zwraca szczegółowe informacje o wybranej próbie płatności. Wymaga uwierzytelnienia; zwraca wyłącznie próby płatności należące do uwierzytelnionego użytkownika.

id
required

Payment attempt ID

integer
>= 1

Identyfikator próby płatności

Payment details

Payment attempt details (JSON-LD)

object
@id

Identyfikator JSON-LD

string
@type

Typ JSON-LD

string
@context
One of:
string
id

Payment Attempt ID

integer
created_at

Creation date (unix timestamp)

integer
completed_at

Completion date (unix timestamp), null if not completed

integer | null
status

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

integer
Allowed values: 0 10 20 100 200 300 400 1000
amount

Total payment amount

number
net_val

Net cost value

number
vat_val

VAT value

number
fee_val

Fee value

number
currency

Waluta

string
default: EUR
Allowed values: EUR CHF
type

Payment method: 1 = SEPA, 6 = Bank Transfer, 7 = PayPal, 8 = Sofort, 91 = Stored Card, 92 = New Card

integer
Allowed values: 1 6 7 8 91 92
invoice

URI to related invoice, null if not yet created

string | null
error

Error message if payment failed, null otherwise

string | null
Examples
Example payment_jsonld

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
}

Identyfikator klienta lub klucz API nie jest aktywny albo jest nieprawidłowy!

Konto nie jest aktywowane. Poczekaj lub skontaktuj się z pomocą techniczną!

Nie znaleziono zasobu

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/123' -H 'X-LOX24-AUTH-TOKEN: YOUR_API_TOKEN' | jq