GET All Invoices
Prod Env
{{subdomain}}/api2
Prod Env
{{subdomain}}/api2
GET
{{subdomain}}/api2
Last modified:2025-03-23 22:24:55
Maintainer:Not configured
Available Filters
Parameter | Description |
---|---|
limit | Number of results per page (max: 1000) |
page | Page number for pagination |
client_id | Filter by client ID |
date_from | Filter invoices from this date (YYYY-MM-DD) |
date_to | Filter invoices to this date (YYYY-MM-DD) |
payment_status | Filter by payment status (0=Unpaid, 1=Partially Paid, 2=Paid, 3=Refunded, 4=OverPaid, -1=Draft) |
store_id | Filter by store ID |
draft | Filter by draft status (0 or 1) |
Response
{
"code": 200,
"result": "successful",
"data": [
{
"Invoice": {
"id": 123,
"client_id": 15,
"store_id": 1,
"no": "INV-001",
"date": "2023-03-23",
"summary_total": 120.00,
"summary_paid": 0.00,
"payment_status": 0
},
"Client": {
"business_name": "ACME Corp",
"email": "contact@acme.com"
}
}
],
"pagination": {
"page": 1,
"page_count": 5,
"total_results": 98,
"prev": null,
"next": "/api2/invoices/?page=2"
}
}
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request GET '{{subdomain}}/api2/api2/invoices.json?limit=20&page=1&client_id={{client_id}}&date_from={{date_from}}&date_to={{date_to}}&payment_status={{payment_status}}&store_id={{store_id}}&draft={{draft}}' \
--header 'Authorization: Bearer {{token}}'
Response Response Example
{}
Request
Query Params
limit
stringÂ
required
Example:
20
page
stringÂ
required
Example:
1
client_id
stringÂ
required
Example:
{{client_id}}
date_from
stringÂ
required
Example:
{{date_from}}
date_to
stringÂ
required
Example:
{{date_to}}
payment_status
stringÂ
required
Example:
{{payment_status}}
store_id
stringÂ
required
Example:
{{store_id}}
draft
stringÂ
required
Example:
{{draft}}
Header Params
Authorization
stringÂ
required
Example:
Bearer {{token}}