Difference between revisions of "API/Account/GetAccountBalance"

From Emersion
Jump to: navigation, search
(Created page with "'''GetAccountBalance''' '''Purpose''' The purpose of this API is to fetch the account balance of an account along with a few additional columns. '''Inputs''' {noformat} <so...")
 
Line 1: Line 1:
 
'''GetAccountBalance'''
 
'''GetAccountBalance'''
  
'''Purpose'''
+
'''Purpose:'''
 
The purpose of this API is to fetch the account balance of an account along with a few additional columns.
 
The purpose of this API is to fetch the account balance of an account along with a few additional columns.
  

Revision as of 14:53, 15 July 2016

GetAccountBalance

Purpose: The purpose of this API is to fetch the account balance of an account along with a few additional columns.

Inputs

{noformat} <soapenv:Header/>

  <soapenv:Body>
     <acc:GetAccountBalance>
        <acc:AccountID>9999999</acc:AccountID>
     </acc:GetAccountBalance>
  </soapenv:Body>

{noformat}

Outputs

{noformat} <SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:ns1="http://external.fmahmood.dev.emersion.com.au/Account">

  <SOAP-ENV:Body>
     <ns1:GetAccountBalanceResponse>
        <ns1:AccountBalancesList>
           <ns1:AccountBalance>0</ns1:AccountBalance>
           <ns1:TotalUnallocatedAmount>0</ns1:TotalUnallocatedAmount>
           <ns1:TotalPayable>0</ns1:TotalPayable>
           <ns1:TotalOverduePayable>0</ns1:TotalOverduePayable>
           <ns1:TotalDisputedAmount>0</ns1:TotalDisputedAmount>
           <ns1:TotalPaymentPlansAmount>0</ns1:TotalPaymentPlansAmount>
        </ns1:AccountBalancesList>
     </ns1:GetAccountBalanceResponse>
  </SOAP-ENV:Body>

</SOAP-ENV:Envelope> {noformat}

Error Strings:

  • 'Missing mandatory Account ID' - Account ID is not provided
  • 'Undefined Account ID' - Account ID is provided but either it does not exist in the system or does not belong to the Caller Account