add GET credit endpoint