add spending details api