
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. | |
| |
N | Long | Client ID used by BancBox, 6 digit number. |
| |
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. | |
| |
Y | paypalAccount | Paypal Account |
| |
Y | string | Id (Max length:45) |
| |
Y | Long | BancBox Id |
| |
Y | creditCardAccount | Credit Card Account |
| |
Y | String | Number |
| |
Y | date | Credit Card Expiry Date[MM/YY] |
| |
Y | creditCardType | enum { 'VISA', 'MASTERCARD', 'AMERICANEXPRESS' } |
| |
Y | String | Name (Max length:45) |
| |
Y | String | CVV |
| |
Y | address | Address |
| |
Y | String | Line 1 (Max length:128) |
| |
N | String | Line 2 (Max length:128) |
| |
Y | String | City (Max length:45) |
| |
N | String | State |
| |
Y | String | Zip Code |
| |
Y | debitCardAccount | Debit Card Account |
| |
Y | String | Number (max length:45) |
| |
Y | enum { 'MASTERCARD' } | Type |
| |
Y | String | Pin (max length:45) |
| |
Y | giftCardAccount | Gift Card Account |
| |
Y | String | Gift Card Account number (Max length:45) |
| |
Y | String | Gift Card Account pin (Max length:45) |
| |
Y | bankAccount | Bank Account |
| |
Y | String | Routing Number (Max length:45) |
| |
Y | String | Account Number (Max length:45) |
| |
Y | String | Holder Name (Max length:45) |
| |
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. | |
| |
String | A Short code for the warning message. | |
| |
String | Warning message descrption as string. | |
| errors | error | Request failed, error response. | |
| |
String | Code of specific error. | |
| |
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 | ||
| |
Long | ID used by BancBox for this external account. | |
| |
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.