
collectFunds
The collectFunds method allows you to bring funds into your client's BancBox account from an external source, another BancBox acount, or credit card . Possible methods include funding using ACH, Credit Card and internal Book transfers. You can schedule funds movement in the future by specifying a date, give multiple dates for recurring payments, or have BancBox execute immediately by not specifying a date..
Parameters
Request Parameters
| Parameter | Required | Type | Description |
| destinationAccount | Y | The funds will move from the source to the destination account specified in this parameter. | |
| |
N | Long | BancBox issued ID for the client account. |
| |
N | String | Reference ID for the account chosen by subscriber when account is created (Max length:45) |
| items | Y | items | |
| |
N | String | Subscriber specified reference ID for the transaction being completed (Max length:45) |
| |
Y | double | How much money is being transferred (Max Value:9999999999999.995) |
| |
N | String | Memo (Max length:128) |
| |
Y | scheduled | If scheduled parameter is included, the transaction will take place on the specified date. Otherwise, it will be executed immediately. |
| |
Y | date | Schedule Date[YYYY-MM-DD] |
| source | Y | Must choose from linkedExternalAccountId, newExternalAccount, or account parameters. Do not include more than one. | |
| |
Y | Choose either the BancboxId or subscriberReferenceId parameter. | |
| |
N | long | BancBox issued ID for the linked External Account. |
| |
N | string | Reference ID for the external account chosen by subscriber (Max length:45) |
| |
Y | Using the newExternalAccount parameter allows the subscriber to create a new linked external account without having to use the linkExternalAccount API. | |
| |
Y | id | Account |
| |
Y | bankaccount | Bankaccount |
| |
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'} |
| |
Y | creditCardAccount | Credit Card Account |
| |
N | String | Track data |
| |
N | String | Number |
| |
N | date | Credit Card Expiry Date[MM/YY] |
| |
N | creditCardType | enum { 'VISA', 'MASTERCARD', 'AMERICANEXPRESS' } |
| |
N | String | Name (Max length:45) |
| |
N | String | CVV |
| |
N | address | Address |
| |
Y | String | Line 1 (Max length:128) |
| |
N | String | Line 2 (Max length:128) |
| |
Y | String | City (Max length:45) |
| |
Y | String | State |
| |
Y | String | Zip Code |
| |
Y | The account parameter is a BancBox account for a client. | |
| |
N | long | BancBox issued ID for the client account. |
| |
N | string | Reference ID for the account chosen by subscriber when account is created (Max length:45) |
| subscriberId | Y | long | Specify subscriber ID issued when BancBox account is created |
| method | Y | The method must include only one of {book, ach, creditcard} as an empty parameter. | |
| |
N | book | Book method moves funds from one BancBox account into another BancBox account. |
| |
N | ach | ach method moves funds from an external account to a BancBox account. |
| |
N | creditcard | Creditcard method moves funds from a credit card account to a BancBox account. |
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. | |
| itemStatuses | itemStatuses | Item Statuses | |
| |
ID's of the collectFunds transaction. | ||
| |
long | ID of the transaction used by BancBox. | |
| |
string | ID of the transaction created by the subscriber. | |
| |
int | RThis status shows the state of the transaction, IN_PROCESS or SCHEDULED. | |
| |
String | Message code | |
| |
String | Message description | |
| |
String | Error code | |
| |
String | Error message | |
| |
int | This status shows if the transaction itself went through, 0 for fail, 1 for pass. |
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:collectFunds>
<collectFundsRequest>
<subscriberId>?</subscriberId>
<method>
<!--You have a CHOICE of the next 3 items at this level-->
<book/>
<ach/>
<creditcard/>
</method>
<source>
<!--You have a CHOICE of the next 3 items at this level-->
<account>
<!--Optional:-->
<bancBoxId>?</bancBoxId>
<!--Optional:-->
<subscriberReferenceId>?</subscriberReferenceId>
</account>
<linkedExternalAccountId>
<!--Optional:-->
<bancBoxId>?</bancBoxId>
<!--Optional:-->
<subscriberReferenceId>?</subscriberReferenceId>
</linkedExternalAccountId>
<newExternalAccount>
<account>
<!--You have a CHOICE of the next 2 items at this level-->
<bankAccount>
<routingNumber>?</routingNumber>
<accountNumber>?</accountNumber>
<holderName>?</holderName>
<bankAccountType>?</bankAccountType>
</bankAccount>
<creditCardAccount>
<!--Optional:-->
<trackdata>?</trackdata>
<!--Optional:-->
<number>?</number>
<!--Optional:-->
<expiryDate>?</expiryDate>
<!--Optional:-->
<type>?</type>
<!--Optional:-->
<name>?</name>
<!--Optional:-->
<cvv>?</cvv>
<!--Optional:-->
<address>
<line1>?</line1>
<!--Optional:-->
<line2>?</line2>
<city>?</city>
<state>?</state>
<zipcode>?</zipcode>
</address>
</creditCardAccount>
</account>
</newExternalAccount>
</source>
<destinationAccount>
<!--Optional:-->
<bancBoxId>?</bancBoxId>
<!--Optional:-->
<subscriberReferenceId>?</subscriberReferenceId>
</destinationAccount>
<!--1 or more repetitions:-->
<items>
<!--Optional:-->
<referenceId>?</referenceId>
<amount>?</amount>
<!--Optional:-->
<memo>?</memo>
<!--Optional:-->
<scheduled>
<scheduleDate>?</scheduleDate>
</scheduled>
</items>
</collectFundsRequest>
</sch:collectFunds>
</soapenv:Body>
</soapenv:Envelope>Response XML
<sch:collectFundsResponse>
<requestId></requestId>
<status></status>
<itemStatuses>
<id>
<bancBoxId></bancBoxId>
<subscriberReferenceId></subscriberReferenceId>
</id>
<status></status>
<messageCode></messageCode>
<messageDesc></messageDesc>
<code></code>
<message></message>
<itemStatus></itemStatus>
</itemStatuses>
</sch:collectFundsResponse>© 2013 BancBox.com. All Rights Reserved.