I am using calling https://api.xero.com/api.xro/2.0/Reports/ endpoint to get the balance sheet report. Now from the response I need to pick the “Net income” row which is called “Crrent year earnings” in Xero.
I am currently reading first cell of every row and checking if it’s title property is “Current year earnings”. But this is a bad approach because if tomorrow Xero team changes the displayname then my code will break. Can someone tell me what will be the best way to identify Net income row in balance sheet