Fiscal Year
To create a Fiscal Year
Endpoint: {SERVER_URL}/api/method/eclectics.api.fiscal_year.create
Method: POST
Payload:
{
"year": "2026",
"year_start_date": "2026-01-01",
"year_end_date": "2026-12-31"
}
Headers:
{
"Authorization": "token <YOUR_TOKEN>"
}
These fields may not be exhaustive. Check the general guidance section on how to check all the parameters that an endpoint can accept
Get list of Fiscal Years
Endpoint: {SERVER_URL}/api/method/eclectics.api.fiscal_year.list
Method: GET
Payload:
{
"fields": ["year", "year_start_date", "year_end_date"],
"filters": [["year_start_date", "<", "2035-02-24"]],
"start": 0,
"page_length": 0,
"order_by": "creation desc"
}
Headers:
{
"Authorization": "token <YOUR_TOKEN>"
}
Refer to Document List API Parameters for guidance on the payload
Get a single Fiscal Year
Endpoint: {SERVER_URL}/api/method/eclectics.api.fiscal_year.get
Method: GET
Payload:
{
"year": "2026"
}
Headers:
{
"Authorization": "token <YOUR_TOKEN>"
}
Delete a Fiscal Year
Endpoint: {SERVER_URL}/api/method/eclectics.api.fiscal_year.delete
Method: DELETE
Payload:
{
"year": "2026"
}