List invoices
GET
/invoicesList all VAT invoices for the account.
Request
Query Params
page
integerÂ
optional
Request samples
Responses
List of all invoices.(200)
List of all invoices.
HTTP Code:Â 200
Content Type :Â JSONapplication/json
Data Schema
data
array [object]Â
required
links
objectÂ
required
first
stringÂ
required
last
stringÂ
required
prev
nullÂ
required
next
nullÂ
required
meta
objectÂ
required
current_page
integerÂ
required
from
integerÂ
required
last_page
integerÂ
required
links
array [object {3}]Â
required
path
stringÂ
required
per_page
integerÂ
required
to
integerÂ
required
total
integerÂ
required
Example
{
"data": [
{
"id": 8431,
"invoice_number": "0000007398",
"created_at": "2024-08-27T21:00:00.000000Z",
"amount": 90,
"amount_with_vat": 108,
"type": "proform",
"order_ids": [
7398
]
},
{
"id": 8425,
"invoice_number": "0000001594",
"created_at": "2024-08-04T21:00:00.000000Z",
"amount": 0,
"amount_with_vat": 0,
"type": "original",
"order_ids": [
7390
]
}
],
"links": {
"first": "https://api.vpsbg.eu/v1/invoices?page=1",
"last": "https://api.vpsbg.eu/v1/invoices?page=1",
"prev": null,
"next": null
},
"meta": {
"current_page": 1,
"from": 1,
"last_page": 1,
"links": [
{
"url": null,
"label": "« Previous",
"active": false
},
{
"url": "https://api.vpsbg.eu/v1/invoices?page=1",
"label": "1",
"active": true
},
{
"url": null,
"label": "Next »",
"active": false
}
],
"path": "https://api.vpsbg.eu/v1/invoices",
"per_page": 30,
"to": 26,
"total": 26
}
}
Last modified: 2 months ago