logo
linkExternalAccount
Use the linkExternalAccount API to link an external bank, card, or paypal account to a client..
Parameters
Request Parameters
Parameter Required Type Description
subscriberId Y Long Specify subscriber ID issued when BancBox account is created.
clientId Y Specify either the bancBoxId or subscriberReferenceId parameter.
  printer bancBoxId N Long Client ID used by BancBox, 6 digit number.
  printer subscriberReferenceId N String Subscriber created reference ID for client (Max length:45)
referenceId N String ID created by the subscriber for the newly linked external account (Max length:45)
account Y Link a paypalAccount, creditcardAccount, or a bankAccount. Choose one of these three.
  printer paypalAccount Y paypalAccount Paypal Account
    printer id Y string Id (Max length:45)
  printer cardAccount Y Long BancBox Id
    printer creditCardAccount Y creditCardAccount Credit Card Account
      printer number Y String Number
      printer expiryDate Y date Credit Card Expiry Date[MM/YY]
      printer type Y creditCardType enum { 'VISA', 'MASTERCARD', 'AMERICANEXPRESS' }
      printer name Y String Name (Max length:45)
      printer cvv Y String CVV
      printer address Y address Address
        printer line1 Y String Line 1 (Max length:128)
        printer line2 N String Line 2 (Max length:128)
        printer city Y String City (Max length:45)
        printer state N String State
        printer zipcode Y String Zip Code
    printer debitCardAccount Y debitCardAccount Debit Card Account
      printer number Y String Number (max length:45)
      printer type Y enum { 'MASTERCARD' } Type
      printer pin Y String Pin (max length:45)
    printer giftCardAccount Y giftCardAccount Gift Card Account
      printer number Y String Gift Card Account number (Max length:45)
      printer pin Y String Gift Card Account pin (Max length:45)
  printer bankAccount Y bankAccount Bank Account
    printer routingNumber Y String Routing Number (Max length:45)
    printer accountNumber Y String Account Number (Max length:45)
    printer holderName Y String Holder Name (Max length:45)
    printer bankAccountType Y bankAccountType enum{'SAVING','CHECKING'}
Response Parameters
Parameter   Type Description
status   int Status of completed request, either 1 for pass, or 0 for fail.
warnings   warning A Warning object containing a code and description.
  printer code   String A Short code for the warning message.
  printer message   String Warning message descrption as string.
errors   error Request failed, error response.
  printer code   String Code of specific error.
  printer message   String Message appears under error code, which describes the error that occurred.
Id   Newly created IDs for the linked external account, both the bancbox ID and the reference ID
  printer bancBoxId   Long ID used by BancBox for this external account.
  printer subscriberReferenceId   string ID for the external account created by the subscriber.
requestId   Long 13 digit ID for the API request being made.
Related Errors
Parameter Short error messge Description
No records
XML Examples
Request XML
<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:linkExternalAccount>
            <sch:linkExternalAccount>
                <linkExternalAccountRequest>
                    <subscriberId>?</subscriberId>
                    <clientId>
                        <!--Optional:-->
                        <bancBoxId>?</bancBoxId>
                        <!--Optional:-->
                        <subscriberReferenceId>?</subscriberReferenceId>
                    </clientId>
                    <!--Optional:-->
                    <referenceId>?</referenceId>
                    <account>
                        <!--You have a CHOICE of the next 3 items at this level-->
                        <bankAccount>
                            <routingNumber>?</routingNumber>
                            <accountNumber>?</accountNumber>
                            <holderName>?</holderName>
                            <bankAccountType>?</bankAccountType>
                        </bankAccount>
                        <cardAccount>
                            <!--You have a CHOICE of the next 3 items at this level-->
                            <creditCardAccount>
                                <number>?</number>
                                <expiryDate>?</expiryDate>
                                <type>?</type>
                                <name>?</name>
                                <cvv>?</cvv>
                                <address>
                                    <line1>?</line1>
                                    <!--Optional:-->
                                    <line2>?</line2>
                                    <city>?</city>
                                    <state>?</state>
                                    <zipcode>?</zipcode>
                                </address>
                            </creditCardAccount>
                            <debitCardAccount>
                                <number>?</number>
                                <type>?</type>
                                <pin>?</pin>
                            </debitCardAccount>
                            <giftCardAccount>
                                <number>?</number>
                                <pin>?</pin>
                            </giftCardAccount>
                        </cardAccount>
                        <paypalAccount>
                            <id>?</id>
                        </paypalAccount>
                    </account>
                </linkExternalAccountRequest>
            </sch:linkExternalAccount>
    </soapenv:Body>
</soapenv:Envelope>
Response XML
<sch:linkExternalAccountResponse>
         <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:-->
            <id>
               <!--Optional:-->
               <bancBoxId>?</bancBoxId>
               <!--Optional:-->
               <subscriberReferenceId>?</subscriberReferenceId>
            </id>
         </return>
</sch:linkExternalAccountResponse>
© 2013 BancBox.com. All Rights Reserved.