api for balance endpoint