Xero - beautiful accounting software

Xero Developer Help Center

Xero Developer Community

Community > API Endpoints >

budget endpoint cannot return budget lines with period provided

Started by Smetric Insights -   in API Endpoints

I query the budget details giving the requests link as https://api.xero.com/api.xro/2.0/Budgets/d141abfa-a577-4033-b357-d100eab6f1a9. It will return the BudgetBalances for previous month, current month and next month.

From the documentation, it can provide the DateTo and DateFrom to retrieve a maximum of 24 months of data in a single request. However, after I provided the DateTo and DateFrom parameters as following: https://api.xero.com/api.xro/2.0/Budgets/d141abfa-a577-4033-b357-d100eab6f1a9?DateTo=2021-08-01&DateFrom=2021-12-31, the return BudgetLines become a empty list. can you advise how to query a budget with period for 24 months?