Finxera

Back to documentation index

getClientAccounts

Use the getClientAccounts method to get a list of all the Finxera accounts created under a specific client.

Request Parameters

  Parameter Required Type Description
subscriberId Y Long Specify subscriber ID issued when Finxera account is created.
+ clientId Y Object Specify either the bancBoxId or subscriberReferenceId parameter.

Response Parameters

  Parameter   Type Description
requestId   Long 13 digit ID for the API request being made.
status   Int Status of completed request, either 1 for pass, or 0 for fail.
+ warnings   Object A Warning object containing a code and description.
+ errors   Object Request failed, error response.
+ clientId   Object Client Id
+ accounts   Object This lists all the Finxera accounts and their details under the specified client.

WSDL URL (Production) :  https://api.bancbox.com/v1/BBXPort?wsdl
WSDL URL (SandBox) :  https://sandbox-api.bancbox.com/v1/BBXPort?wsdl

Sample Request

<soapenv:Envelope xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:sch="schema.bancbox.com">
<soapenv:Header>
<wsse:Security soapenv:mustUnderstand="1" xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd">
<wsse:UsernameToken wsu:Id="XWSSGID-1261544568770-474929336" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd">
<wsse:Username>sample@email.com</wsse:Username>
<wsse:Password Type="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-username-token-profile-1.0#PasswordText">sample</wsse:Password>
</wsse:UsernameToken>
</wsse:Security>
</soapenv:Header>
   <soapenv:Body>
      <sch:getClientAccounts>
         <getClientAccountsRequest>
             <subscriberId>?</subscriberId>
            <clientId>
               <!--Optional:-->
               <bancBoxId>?</bancBoxId>
               <!--Optional:-->
               <subscriberReferenceId>?</subscriberReferenceId>
            </clientId>
         </getClientAccountsRequest>
      </sch:getClientAccounts>
   </soapenv:Body>
</soapenv:Envelope>

Sample Response

<sch:getClientAccountsResponse>
        <return>
            <!--Optional:-->
            <requestId>?</requestId>
            <status>?</status>
            <!--Zero or more repetitions:-->
            <warnings>
               <!--Optional:-->
               <code>?</code>
               <!--Optional:-->
               <message>?</message>
            </warnings>
            <!--Zero or more repetitions:-->
            <errors>
               <!--Optional:-->
               <code>?</code>
               <!--Optional:-->
               <message>?</message>
            </errors>
            <!--Optional:-->
            <clientId>
               <!--Optional:-->
               <bancBoxId>?</bancBoxId>
               <!--Optional:-->
               <subscriberReferenceId>?</subscriberReferenceId>
            </clientId>
            <!--Zero or more repetitions:-->
            <accounts>
               <!--Optional:-->
               <id>
                  <!--Optional:-->
                  <bancBoxId>?</bancBoxId>
                  <!--Optional:-->
                  <subscriberReferenceId>?</subscriberReferenceId>
               </id>
	       <!--Optional:-->
               <accountType>?</accountType>
	       <routable>
                  <credits>?</credits>
                  <debits>?</debits>
               </routable>
               <routingNumber>?</routingNumber>
               <!--Optional:-->
               <current_balance>?</current_balance>
               <!--Optional:-->
               <pending_balance>?</pending_balance>
               <!--Optional:-->
               <status>?</status>
            </accounts>
         </return>
</sch:getClientAccountsResponse>

Note:For REST, Content-type should be set to application/json
URL (Production) :  https://api.bancbox.com/v1/BBXPortRest/getClientAccounts
URL (SandBox) :  https://sandbox-api.bancbox.com/v1/BBXPortRest/getClientAccounts

Sample Request

{
    "authentication": {
        "apiKey": "YOUR_API_KEY_HERE",
        "secret": "SECRET_PASSPHRASE"
    },
    "subscriberId": ,
    "clientId": {
        "bancBoxId": ,
        "subscriberReferenceId": ""
    }
}

Sample Response

{
    "clientId": {
        "bancBoxId": ? ,
        "subscriberReferenceId" : "?"
    },
    "accounts": [{
        "id": {
            "bancBoxId": ? ,
            "subscriberReferenceId" : "?"
        },
	"accountType" : "?",
        "routable": {
            "credits": "?",
            "debits": "?"
        },
        "routingNumber": "?",
        "current_balance": ? ,
        "pending_balance" : ? ,
        "status" : "?"
    }],
    "requestId": ? ,
    "status" : ? ,
    "warnings" : [{
        "code": "?",
        "message": "?"
    }],
    "errors": [{
        "code": "?",
        "message": "?"
    }]
}