Pular para o conteúdo

Listar tentativas de pagamento

GET
/payments

Retorna uma lista paginada de tentativas de pagamento para o usuário autenticado. Suporta filtragem por status, tipo de pagamento, intervalo de datas e IDs específicos.

page
integer
default: 1 >= 1 <= 1000000

Current page

_order[created_at]

Sort order direction (ascending or descending)

string
default: asc
Allowed values: asc desc

Sort by timestamp when the entity was created

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

Filtro exato por status do pagamento

type
integer
Allowed values: 1 6 7 8 91 92

Filtro exato por tipo de método de pagamento

id

Payment attempt ID

integer
>= 1

Filtro exato por ID da tentativa de pagamento

id[]
Array<integer>

Filtro exato por múltiplos IDs de tentativas de pagamento

created_at

Payment creation timestamp

integer

Filtro exato por timestamp de criação

created_at[]
Array<integer>

Filtro exato e por intervalo de timestamps de criação

Payment collection

object
@context
One of:
string
@id

JSON-LD ID

string
@type

JSON-LD type

string
member
Array<object>

Payment attempt details (JSON-LD)

object
@id

JSON-LD ID

string
@type

JSON-LD type

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

Currency

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
hydra:totalItems

Total number of items in the collection

integer
hydra:view

Pagination links for navigating the collection

object
@id
string format: iri-reference
@type
string
hydra:first
string format: iri-reference
hydra:last
string format: iri-reference
hydra:previous
string format: iri-reference
hydra:next
string format: iri-reference
hydra:search

Search and filtering template for the collection

object
@type
string
hydra:template
string
hydra:variableRepresentation
string
hydra:mapping
Array<object>
object
@type
string
variable
string
property
string | null
required
boolean
key
additional properties
any
Examples
Example payments_jsonld

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
}
]
}
}

Invalid input

Client ID or API key isn’t active or invalid!

Account isn’t activated. Please wait or contact to support!

O endereço IP foi bloqueado temporariamente, pois durante um curto período de tempo foram enviadas várias solicitações com credenciais inválidas. Aguarde e tente mais tarde.

Code Samples

curl -s 'https://api.lox24.eu/payments' -H 'X-LOX24-AUTH-TOKEN: YOUR_API_TOKEN' | jq