GET All Estimates
Prod Env
{{subdomain}}/api2
Prod Env
{{subdomain}}/api2
GET
{{subdomain}}/api2
Last modified:2025-03-23 23:11:40
Maintainer:Not configured
limit
: Number of records per page (1-1000)page
: Page number for paginationsearch
: Optional search term to filter resultsstart_date
: Optional filter by estimate date (YYYY-MM-DD)end_date
: Optional filter by estimate date (YYYY-MM-DD)client_id
: Optional filter by client IDstatus
: Optional filter by status (0: draft, 1: sent, 2: accepted, 3: declined)sort
: Optional field to sort by (id, date, total, etc.)direction
: Optional sort direction (asc or desc){
"result": "success",
"code": 200,
"data": [
{
"Estimate": {
"id": 234,
"number": "EST-2023-001",
"client_id": 15,
"date": "2023-03-20",
"expiry_date": "2023-04-19",
"total": 350.00,
"status": 1,
"currency_code": "USD",
// Additional estimate fields...
},
"Client": {
"id": 15,
"name": "ACME Corp",
// Additional client fields...
},
"InvoiceItem": [
{
"id": 567,
"estimate_id": 234,
"product_id": 1,
"description": "Premium Widget",
"quantity": 3,
"unit_price": 100.00,
"discount": 0,
"tax1": 50.00,
"total": 350.00
// Additional item fields...
}
]
}
// Additional estimates...
],
"pagination": {
"page": 1,
"page_count": 3,
"total_results": 45,
"prev": null,
"next": "/api2/estimates.json?page=2"
}
}
Request Request Example
Shell
JavaScript
Java
Swift
curl --location -g --request GET '{{subdomain}}/api2/api2/estimates.json?limit=20&page=1&search=&start_date=&end_date=&client_id=&status=&sort=id&direction=desc'
Response Response Example
{
"result": "success",
"code": 200,
"data": [
{
"Estimate": {
"id": 234,
"number": "EST-2023-001",
"client_id": 15,
"date": "2023-03-20",
"expiry_date": "2023-04-19",
"total": 350,
"status": 1,
"currency_code": "USD",
"draft": 0,
"notes": "Proposal for Q2 services",
"created": "2023-03-20 10:15:22",
"modified": "2023-03-20 10:15:22"
},
"Client": {
"id": 15,
"name": "ACME Corp",
"business_name": "ACME Corporation",
"email": "billing@acmecorp.com"
},
"InvoiceItem": [
{
"id": 567,
"estimate_id": 234,
"product_id": 1,
"description": "Premium Widget",
"quantity": 3,
"unit_price": 100,
"discount": 0,
"tax1": 50,
"total": 350
}
]
},
{
"Estimate": {
"id": 233,
"number": "EST-2023-002",
"client_id": 16,
"date": "2023-03-18",
"expiry_date": "2023-04-17",
"total": 750,
"status": 1,
"currency_code": "USD",
"draft": 0,
"notes": "Website development proposal",
"created": "2023-03-18 14:30:45",
"modified": "2023-03-18 14:30:45"
},
"Client": {
"id": 16,
"name": "Global Industries",
"business_name": "Global Industries Ltd.",
"email": "ap@globalindustries.com"
},
"InvoiceItem": [
{
"id": 566,
"estimate_id": 233,
"product_id": 5,
"description": "Website Design & Development",
"quantity": 1,
"unit_price": 750,
"discount": 0,
"tax1": 0,
"total": 750
}
]
}
],
"pagination": {
"page": 1,
"page_count": 3,
"total_results": 45,
"prev": null,
"next": "/api2/estimates.json?page=2"
}
}
Request
Query Params
limit
stringÂ
required
Example:
20
page
stringÂ
required
Example:
1
search
stringÂ
required
start_date
stringÂ
required
end_date
stringÂ
required
client_id
stringÂ
required
status
stringÂ
required
sort
stringÂ
required
Example:
id
direction
stringÂ
required
Example:
desc