Expense by Suppliers

Expense by Suppliers is a financial report that outlines the total expenses a business has incurred with individual suppliers over a specified period.

Get All Expense by Suppliers

To get all Expense by Suppliers, make a GET request to the /api/v3/reports/suppliers/:from/:to endpoint. Sample request using axios:

js
const response = await axios.get("/api/v3/reports/suppliers/:from/:to");

Where <from> is the start date and <to> is the end date of the expense by suppliers list

Sample Response object:

json
{ { "id": 1573, "owner_id": 1, "business_id": 1, "supplier_name": "Albert Fynn", "supplier_address": "", "supplier_phone": "", "supplier_location": "", "supplier_email": "", "created_at": "2021-07-28 23:55:22", "updated_at": "2024-11-05 16:56:33", "bank_code": null, "account_number": null, "account_name": null, "bank_id": null, "account_id": 116258, "archived": 1, "amount_due": 130, "bill_count": 1, "balance": 0, "amount_paid": 130, "online_amount_paid": null, "dateFrom": "2024-11-01", "dateTo": "2024-11-11", "average_payment_terms": 1, "total_paid": 130, "owing": 0, "bills": 1 }, { "id": 9166, "owner_id": 1, "business_id": 1, "supplier_name": "AAAAAA", "supplier_address": "", "supplier_phone": "", "supplier_location": "", "supplier_email": "", "created_at": "2023-03-23 14:25:08", "updated_at": "2023-03-23 14:25:08", "bank_code": "", "account_number": null, "account_name": null, "bank_id": "", "account_id": 570543, "archived": 0, "amount_due": 12, "bill_count": 1, "balance": 25269.18, "amount_paid": null, "online_amount_paid": null, "dateFrom": "2024-11-01", "dateTo": "2024-11-11", "average_payment_terms": 0, "total_paid": 0, "owing": 12, "bills": 1 } }