add PastPayments in api