added api to get payments