:doc:`MTurk <../../mturk>` / Client / get_account_balance

*******************
get_account_balance
*******************



.. py:method:: MTurk.Client.get_account_balance()

  

  The ``GetAccountBalance`` operation retrieves the Prepaid HITs balance in your Amazon Mechanical Turk account if you are a Prepaid Requester. Alternatively, this operation will retrieve the remaining available AWS Billing usage if you have enabled AWS Billing. Note: If you have enabled AWS Billing and still have a remaining Prepaid HITs balance, this balance can be viewed on the My Account page in the Requester console.

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/mturk-requester-2017-01-17/GetAccountBalance>`_  


  **Request Syntax**
  ::

    response = client.get_account_balance()
    
    
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'AvailableBalance': 'string',
          'OnHoldBalance': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 
      

      - **AvailableBalance** *(string) --* 

        A string representing a currency amount.

        
      

      - **OnHoldBalance** *(string) --* 

        A string representing a currency amount.

        
  
  **Exceptions**
  
  *   :py:class:`MTurk.Client.exceptions.ServiceFault`

  
  *   :py:class:`MTurk.Client.exceptions.RequestError`

  