Welcome‎ > ‎Version 3‎ > ‎Publisher Api‎ > ‎Data Structures‎ > ‎

Credit Card

Data Structure holding information about a previously used and stored credit card.

Fields:
Field Data Type Nulls Description
billingAddressstring
Y
The billing address associated with the credit card.
billingAddress2string
Y
The second line of the billing address associated with the credit card.
billingCitystring
Y
The billing city associated with the credit card.
billingCountrystring
Y
The billing country associated with the credit card.
billingPhonestring
Y
The billing phone associated with the credit card.
billingStatestring
Y
The billing state associated with the credit card.
billingZipstring
Y
The billing zip code associated with the credit card.
storedCreditCardId
string

The id used to look up this credit card.
expiration
string

The expiration date of the card.  String format: year-month (yyyy-MM)
type
string

The type of the credit card.  One of {Unknown, HouseAccount, MasterCard, Visa, Amex, Discover, DinersClub, JCB, enRoute}
maskedCardNumber
string

The last four digits of the credit card.
 

Sample JSON Response:
{
    "billingAddress": "24139 Wimbledon",
    "billingAddress2": null,
    "billingCity": "Shaker Heights",
    "billingCountry": null,
    "billingPhone": null,
    "billingState": "OH",
    "billingZip": "44122",
    "expiration": "2015-01",
    "maskedCardNumber": "XXXX5454",
    "nameOnCard": "G Commerce",
    "storedCreditCardId": "5008200",
    "type": "MasterCard"
}



Sample XML Response:
<creditCard>
    <billingAddress>24139 Wimbledon</billingAddress>
    <billingAddress2 i:nil="true"/>
    <billingCity>Shaker Heights</billingCity>
    <billingCountry i:nil="true"/>
    <billingPhone
i:nil="true"/>
    <billingState>OH</billingState>
    <billingZip>44122</billingZip>
    <expiration>2015-01</expiration>
    <maskedCardNumber>XXXX5454</maskedCardNumber>
    <nameOnCard>G Commerce</nameOnCard>
    <storedCreditCardId>5008200</storedCreditCardId><type>MasterCard</type>

</creditCard>
Comments