Przejdź do głównej zawartości

Lista faktur

GET
/invoices

Zwraca paginowaną listę faktur dla uwierzytelnionego użytkownika. Obsługuje filtrowanie według statusu, typu płatności, zakresu dat, zakresu kwot i konkretnych identyfikatorów.

page
integer
default: 1 >= 1 <= 1000000

Bieżąca strona

_order[created_at]

Sort order direction (ascending or descending)

string
default: asc
Allowed values: asc desc

Sortowanie według znacznika czasu utworzenia encji

_order[amount]

Sort order direction (ascending or descending)

string
default: asc
Allowed values: asc desc

Sortuj według kwoty dokumentu

status
integer
Allowed values: 0 1 2

Filtr dokładny według statusu dokumentu

paymentType
integer
Allowed values: 1 6 7 8 91 92

Filtr dokładny według typu płatności

id

Document ID

integer
>= 1

Filtr dokładny według identyfikatora dokumentu

id[]
Array<integer>

Filtr dokładny według wielu identyfikatorów dokumentów

created_at

Creation timestamp

integer

Filtr dokładny według znacznika czasu utworzenia

created_at[]
Array<integer>

Filtr dokładny i zakresowy według znaczników czasu utworzenia

amount

Document amount

number

Filtr zakresowy według kwoty dokumentu (wartość rzeczywista, np. 24.63 dla 24.63 EUR)

amount[]
Array<number>

Filtr dokładny i zakresowy według kwot dokumentów (wartości rzeczywiste, np. 24.63 dla 24.63 EUR)

paid_at

Payment timestamp

integer

Filtr dokładny według znacznika czasu płatności

paid_at[]
Array<integer>

Filtr dokładny i zakresowy według znaczników czasu płatności

exists[paid_at]
boolean

Filtr istnienia według statusu płatności: true = dokumenty opłacone, false = dokumenty nieopłacone

Invoice collection

object
@context
One of:
string
@id

JSON-LD ID

string
@type

JSON-LD type

string
member
Array<object>

Invoice details (JSON-LD)

object
@id

Identyfikator JSON-LD

string
@type

Typ JSON-LD

string
@context
One of:
string
id

Invoice ID

string
created_at

Creation date (unix timestamp)

integer
amount

Invoice amount

number
currency

Waluta

string
default: EUR
Allowed values: EUR CHF
status

Invoice status: 0 = New (unpaid), 1 = Success (paid), 2 = Failed

integer
Allowed values: 0 1 2
payment_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
paid_at

Payment date (unix timestamp), 0 if not paid

integer
client_name

Client company name

string
client_address

Client address

string
client_info

Client info line

string
vat

VAT percentage

number
vat_id

VAT identification number

string
vat_val

VAT value

number
fee

Fee percentage

number
fee_val

Fee value

number
net_val

Net cost value

number
iso2

ISO-2 country code

string
custom_text

Custom text on the invoice

string
pdf

URI to download invoice PDF

string
credit_note

URI to related credit note, null if none

string | null
key
additional properties
any
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 invoices_jsonld

Invoice list example (JSON-LD)

Example response for GET /invoices with Accept: application/ld+json

{
"@context": "/contexts/Invoice",
"@id": "/invoices",
"@type": "Collection",
"totalItems": 1,
"member": [
{
"@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": null
}
],
"view": {
"@id": "/invoices?page=1",
"@type": "PartialCollectionView"
},
"search": {
"@type": "IriTemplate",
"template": "/invoices{?_order[created_at],_order[amount],status,status[],payment_type,payment_type[],id,id[],createdAt[between],createdAt[gt],createdAt[gte],createdAt[lt],createdAt[lte],amount[between],amount[gt],amount[gte],amount[lt],amount[lte],paidAt[between],paidAt[gt],paidAt[gte],paidAt[lt],paidAt[lte]}",
"variableRepresentation": "BasicRepresentation",
"mapping": [
{
"@type": "IriTemplateMapping",
"variable": "_order[created_at]",
"property": "created_at",
"required": false
},
{
"@type": "IriTemplateMapping",
"variable": "_order[amount]",
"property": "amount",
"required": false
},
{
"@type": "IriTemplateMapping",
"variable": "status",
"property": "status",
"required": false
},
{
"@type": "IriTemplateMapping",
"variable": "status[]",
"property": "status",
"required": false
},
{
"@type": "IriTemplateMapping",
"variable": "payment_type",
"property": "payment_type",
"required": false
},
{
"@type": "IriTemplateMapping",
"variable": "payment_type[]",
"property": "payment_type",
"required": false
},
{
"@type": "IriTemplateMapping",
"variable": "id",
"property": "id",
"required": false
},
{
"@type": "IriTemplateMapping",
"variable": "id[]",
"property": "id",
"required": false
},
{
"@type": "IriTemplateMapping",
"variable": "createdAt[between]",
"property": "createdAt",
"required": false
},
{
"@type": "IriTemplateMapping",
"variable": "createdAt[gt]",
"property": "createdAt",
"required": false
},
{
"@type": "IriTemplateMapping",
"variable": "createdAt[gte]",
"property": "createdAt",
"required": false
},
{
"@type": "IriTemplateMapping",
"variable": "createdAt[lt]",
"property": "createdAt",
"required": false
},
{
"@type": "IriTemplateMapping",
"variable": "createdAt[lte]",
"property": "createdAt",
"required": false
},
{
"@type": "IriTemplateMapping",
"variable": "amount[between]",
"property": "amount",
"required": false
},
{
"@type": "IriTemplateMapping",
"variable": "amount[gt]",
"property": "amount",
"required": false
},
{
"@type": "IriTemplateMapping",
"variable": "amount[gte]",
"property": "amount",
"required": false
},
{
"@type": "IriTemplateMapping",
"variable": "amount[lt]",
"property": "amount",
"required": false
},
{
"@type": "IriTemplateMapping",
"variable": "amount[lte]",
"property": "amount",
"required": false
},
{
"@type": "IriTemplateMapping",
"variable": "paidAt[between]",
"property": "paidAt",
"required": false
},
{
"@type": "IriTemplateMapping",
"variable": "paidAt[gt]",
"property": "paidAt",
"required": false
},
{
"@type": "IriTemplateMapping",
"variable": "paidAt[gte]",
"property": "paidAt",
"required": false
},
{
"@type": "IriTemplateMapping",
"variable": "paidAt[lt]",
"property": "paidAt",
"required": false
},
{
"@type": "IriTemplateMapping",
"variable": "paidAt[lte]",
"property": "paidAt",
"required": false
}
]
}
}

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