Add view that return credit left in json format