logo
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.
  printer bancBoxId N Long BancBox issued ID for the client account.
  printer subscriberReferenceId N String Reference ID for the account chosen by subscriber when account is created (Max length:45)
items Y items
  printer referenceId N String Subscriber specified reference ID for the transaction being completed (Max length:45)
  printer amount Y double How much money is being transferred (Max Value:9999999999999.995)
  printer memo N String Memo (Max length:128)
  printer scheduled Y scheduled If scheduled parameter is included, the transaction will take place on the specified date. Otherwise, it will be executed immediately.
    printer scheduleDate Y date Schedule Date[YYYY-MM-DD]
source Y Must choose from linkedExternalAccountId, newExternalAccount, or account parameters. Do not include more than one.
  printer linkedExternalAccountId Y Choose either the BancboxId or subscriberReferenceId parameter.
    printer bancBoxId N long BancBox issued ID for the linked External Account.
    printer subscriberReferenceId N string Reference ID for the external account chosen by subscriber (Max length:45)
  printer newExternalAccount Y Using the newExternalAccount parameter allows the subscriber to create a new linked external account without having to use the linkExternalAccount API.
    printer account Y id Account
      printer bankaccount Y bankaccount Bankaccount
        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'}
      printer creditCardAccount Y creditCardAccount Credit Card Account
        printer trackdata N String Track data
        printer number N String Number
        printer expiryDate N date Credit Card Expiry Date[MM/YY]
        printer type N creditCardType enum { 'VISA', 'MASTERCARD', 'AMERICANEXPRESS' }
        printer name N String Name (Max length:45)
        printer cvv N String CVV
        printer address N 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 Y String State
          printer zipcode Y String Zip Code
  printer account Y The account parameter is a BancBox account for a client.
    printer bancBoxId N long BancBox issued ID for the client account.
    printer subscriberReferenceId 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.
  printer book N book Book method moves funds from one BancBox account into another BancBox account.
  printer ach N ach ach method moves funds from an external account to a BancBox account.
  printer creditcard 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
  printer id   ID's of the collectFunds transaction.
    printer bancBoxId   long ID of the transaction used by BancBox.
    printer subscriberReferenceId   string ID of the transaction created by the subscriber.
  printer status   int RThis status shows the state of the transaction, IN_PROCESS or SCHEDULED.
  printer messageCode   String Message code
  printer messageDesc   String Message description
  printer code   String Error code
  printer message   String Error message
  printer itemStatus   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.