Soap API v1.6


Contains customer data.


This object contains all relevant customer data including the CustNum (a unique customer number assigned by the gateway), CustID (a merchant assigned customer ID), as well as customer name, address, recurring billing status and schedule, and any other relevant data.


Type Name Description
string CustNum Customer Number (System assigned)
string CustomerID Customer ID (Merchant assigned)
Address BillingAddress Customer Address information. (Uses Address object.)
PaymentMethodPaymentMethods Array of PaymentMethod objects. Multiple credit cards or ACH accounts may be stored for each customer.
string Notes Notes (visible to merchant only).
string CustomData Custom data is a raw text field, please serialize and encode (ie: base64) your data so that complex types are stored and retrieved correctly.
FieldValueCustomFields Array of field values containing the merchant defined customer fields. These fields are defined in the merchant console.
string URL URL for customers website
datetime Created Date/Time customer was created (Read Only)
datetime Modified Date/Time customer was last changed (Read Only)
Recurring Billing
boolean Enabled Notes whether or not a customer has been enabled for a recurring billing cycle. The customer billing does not need to be enabled to run one time transactions via the runCustomerTransaction method.
string Schedule Recurring billing schedule, if any. Possible values include: daily, weekly, bi-weekly (every two weeks), monthly, bi-monthly (every two months), quarterly, bi-annually (every six months), annually, first of month, last day of month.
integer NumLeft Number of transactions remaining in customer's recurring billing cycle. “-1” indicates unlimited transactions.
string Next Date of customer's next scheduled transaction.
double Amount Total Amount to be billed in recurring billing cycle.
double Tax Portion of “Amount” that is Tax
string Currency Numeric currency code for Amount. (Only needed if multicurrency merchant account)
string Description Description of transaction.
string OrderID Transaction Order ID
string User Merchant username assigned to billing.
string Source Name of source key assigned to billing.
boolean SendReceipt Send client a receipt.
string ReceiptNote Note to send on receipt.
int Failures Number of failures since last approval.
Point of Sale
string PriceTier Name of customer price tier
string TaxClass Tax Class (Group)
string LookupCode Lookup code from customer/member id card. Either barcode or Magnetic stripe. Can be assigned by merchants. Defaults to system assigned if left blank.

Places Used



// for directions on how to set up the  
// WSDL link and create "$token" and "$client," 
// see:
		'Company'=>'Acme Corp',
		'Street'=>'1234 main st',
		'Street2'=>'Suite #123',
		'City'=>'Los Angeles',
	'PaymentMethods' => 
				"MethodName"=>"My Visa",
	'CustomData'=>base64_encode(serialize(array("mydata"=>"We could put anything in here!"))),
		array('Field'=>'Foo', 'Value'=>'Testing'),
		array('Field'=>'Bar', 'Value'=>'Tested')
	'CustomerID'=>123123 + rand(),
	'Description'=>'Weekly Bill',
	'Notes'=>'Testing the soap addCustomer Function',
	'ReceiptNote'=>'addCustomer test Created Charge',
$CustomerObject= $this->client->getCustomer($this->token, $CustomerNumber);
echo $CustomerObject->CustNum;


Dim customer As usaepay.CustomerObject = New usaepay.CustomerObject
        Dim address As usaepay.Address = New usaepay.Address
        address.FirstName = "John"
        address.LastName = "Doe"
        address.Company = "Acme"
        address.Street = "123 main st."
        address.City = "Hollywood"
        address.State = "ca"
        address.Zip = "91607"
        address.Country = "USA"
        customer.BillingAddress = address
        customer.Enabled = True
        customer.Amount = 5.0
        customer.Next = "2010-08-15"
        customer.Schedule = "monthly"
        Dim payMethod(0) As usaepay.PaymentMethod
        payMethod(0) = New usaepay.PaymentMethod
        payMethod(0).CardExpiration = "1212"
        payMethod(0).CardNumber = "4444555566667779"
        payMethod(0).AvsStreet = "123 Main st."
        payMethod(0).AvsZip = "90046"
        payMethod(0).MethodName = "My Visa"
        customer.PaymentMethods = payMethod


usaepay.CustomerObject customer = new usaepay.CustomerObject();
            usaepay.Address address = new usaepay.Address();
            address.FirstName = "John";
            address.LastName = "Doe";
            address.Company = "Acme";
            address.Street = "123 main st.";
            address.City = "Hollywood";
            address.State = "ca";
            address.Zip = "91607";
            address.Country = "USA";
            customer.BillingAddress = address;
            customer.Enabled = true;
            customer.Amount = 5.00;
            customer.Next = "2010-08-15";
            customer.Schedule = "monthly";
            usaepay.PaymentMethod[] payMethod = new usaepay.PaymentMethod[1];
            payMethod[0] = new usaepay.PaymentMethod();
            payMethod[0].CardExpiration = "1212";
            payMethod[0].CardNumber = "4444555566667779";
            payMethod[0].AvsStreet = "123 Main st.";
            payMethod[0].AvsZip = "90046";
            payMethod[0].MethodName = "My Visa";
            customer.PaymentMethods = payMethod;


<getCustomerReturn xsi:type="ns1:CustomerObject">
<Amount xsi:type="xsd:double">1.00</Amount>
<BillingAddress xsi:type="ns1:Address">
 <City xsi:type="xsd:string">Los Angeles</City>
 <Company xsi:type="xsd:string">UsaEpay</Company>
 <Country xsi:type="xsd:string">US</Country>
 <Email xsi:type="xsd:string"></Email>
 <Fax xsi:type="xsd:string">333-333-3334</Fax>
 <FirstName xsi:type="xsd:string">Example</FirstName>
 <LastName xsi:type="xsd:string">Generator</LastName>
 <Phone xsi:type="xsd:string">333-333-3333</Phone>
 <State xsi:type="xsd:string">CA</State>
 <Street xsi:type="xsd:string">1234 main st</Street>
 <Street2 xsi:type="xsd:string">Suite #123</Street2>
 <Zip xsi:type="xsd:string">12345</Zip>
<CustNum xsi:type="xsd:string">21727</CustNum>
<CustomData xsi:type="xsd:string">
<CustomFields SOAP-ENC:arrayType="ns1:FieldValue[2]" xsi:type="ns1:FieldValueArray">
 <item xsi:type="ns1:FieldValue">
  <Field xsi:type="xsd:string">Example</Field>
  <Value xsi:type="xsd:string">Field</Value>
<CustomerID xsi:type="xsd:string">156244967</CustomerID>
<Created xsi:type="xsd:string">2008-05-08 13:40:35</Created>
<Description xsi:type="xsd:string">Weekly Bill</Description>
<Enabled xsi:type="xsd:boolean">false</Enabled>
<Modified xsi:type="xsd:string">2008-05-08 13:40:35</Modified>
<Next xsi:type="xsd:string">2012-01-21T12:00:00</Next>
<Notes xsi:type="xsd:string">Any notes go here</Notes>
<NumLeft xsi:type="xsd:integer">50</NumLeft>
<OrderID xsi:type="xsd:string">1707022452</OrderID>
<PaymentMethods SOAP-ENC:arrayType="ns1:PaymentMethod[1]" xsi:type="ns1:PaymentMethodArray">
 <item xsi:type="ns1:PaymentMethod">
  <CheckData xsi:type="ns1:CheckData">
   <Account xsi:nil="true"/>
   <Routing xsi:nil="true"/>
  <CreditCardData xsi:type="ns1:CreditCardData">
   <AvsStreet xsi:type="xsd:string">1234 main st</AvsStreet>
   <AvsZip xsi:type="xsd:string">12345</AvsZip>
   <CardExpiration xsi:type="xsd:string">XXXX</CardExpiration>
   <CardNumber xsi:type="xsd:string">XXXXXXXXXXXX7779</CardNumber>
   <CardType xsi:type="xsd:string">V</CardType>
  <Expires xsi:type="xsd:string">2008-05-08</Expires>
  <MethodID xsi:type="xsd:integer">7353</MethodID>
  <MethodName xsi:type="xsd:string">My Visa</MethodName>
  <SecondarySort xsi:type="xsd:integer">1</SecondarySort>
<ReceiptNote xsi:type="xsd:string">Example Receipt Note</ReceiptNote>
<Schedule xsi:type="xsd:string">Weekly</Schedule>
<SendReceipt xsi:type="xsd:boolean">true</SendReceipt>
<Source xsi:type="xsd:string">Recurring</Source>
<Tax xsi:type="xsd:double">0</Tax>
<User xsi:type="xsd:string">(Auto)</User>

Change History

Version Change
1.4 Addition of PriceTier, LookupCode and TaxClass parameters. Changed Currency parameter from integer to string
1.0 Addition of CustomFields parameter, addition of Tax parameter, addition of PaymentMethods, removal of CheckData and CreditCardData parameters
developer/soap-1.6/objects/customerobject.txt · Last modified: 2015/03/17 11:31 by charlie

Page Tools