add api methods for spendings