Debit/Credit Cards manipulations

addDebitCreditCard()

This application is used to add a Debit/Credit Card.

Note! Either i_account or i_customer is to be supplied.

Parameters:

  • i_account - i_account of owner of the card. Integer. Required.
  • i_customer - i_customer of owner of the card. Integer. Required.
  • alias - Alias of the card. String. Required.
  • i_card_type - Card Type. Integer. Required. Possible values are:
    • 1 - Visa
    • 2 - American Express
    • 3 - MasterCard
    • 4 - Discover
    • 5 - JCB
    • 6 - Diner's Club
  • number - Card number. String. Required.
  • holder - Card holder's name. String. Required.
  • exp_mm - Month of expiration date (1 - January, 2 - February, etc). Integer. Required.
  • exp_yy - Year of expiration date in 4-digits format (2010, 2011, etc). Integer. Required.
  • cvv - CVV/CVC code. String. Optional.
  • street_addr1 - Street address, line #1. String. Required.
  • street_addr2 - Street address, line #2. String. Optional.
  • state - Province/State. String. Required.
  • postal_code - ZIP/Postal Code. String. Required.
  • city - City. String. Required.
  • country - Country/Region in iso-3166 format (2 letters). String. Required.
  • phone - Phone number. String. Required.
  • primary - Is the card primary one. Boolean. Optional.

Returns:

  • result - OK. String.
  • i_debit_credit_card - ID of the newly created card. Integer.
  • XMLRPC fault in case of any error.

updateDebitCreditCard()

This application is used to update a Debit/Credit Card.

Note! Either i_account or i_customer is to be supplied.

Parameters:

  • i_account - i_account of owner of the card. Integer. Required.
  • i_customer - i_customer of owner of the card. Integer. Required.
  • i_debit_credit_card - i_debit_credit_card of updated card. Integer. Required.
  • any of parameter(s) from addDebitCreditCard() call.

Returns:

  • result - OK. String.
  • XMLRPC fault in case of any error.

deleteDebitCreditCard()

This application is used to delete a Debit/Credit Card.

Note! Either i_account or i_customer is to be supplied.

Parameters:

  • i_account - i_account of owner of the card. Integer. Required.
  • i_customer - i_customer of owner of the card. Integer. Required.
  • i_debit_credit_card - i_debit_credit_card of updated card. Integer. Required.

Returns:

  • result - OK. String.
  • XMLRPC fault in case of any error.

getDebitCreditCardInfo()

This application is used to get Debit/Credit Card info.

Note! Either i_account or i_customer is to be supplied.
Note! Card Number is returned as 4 last digits. CVV/CVC code is never returned.

Parameters:

  • i_account - i_account of owner of the card. Integer. Required.
  • i_customer - i_customer of owner of the card. Integer. Required.
  • i_debit_credit_card - i_debit_credit_card of updated card. Integer. Required.

Returns:

  • result - OK. String.
  • parameters from addDebitCreditCard() call.
  • XMLRPC fault in case of any error.

listDebitCreditCards()

This application is used to delete a Debit/Credit Card.

Note! Either i_account or i_customer is to be supplied.

Parameters:

  • i_account - i_account of owner of the card. Integer. Required.
  • i_customer - i_customer of owner of the card. Integer. Required.
  • offset - skip first offset entries. Integer. Optional.
  • limit - fetch only limit entries. Integer. Optional.

Returns:

  • result - OK. String.
  • debit_credit_cards - array of structures (see addDebitCreditCard() call for more explanation):
    • i_debit_credit_card - Integer.
    • primary - Boolean.
    • alias - String.
    • i_card_type - Integer.
    • card_name - Human readable type of the card (Visa, MasterCard, etc). String.
    • number - Last 4 digits of card number. String.
    • exp_mm - Integer.
    • exp_yy - Integer.
  • XMLRPC fault in case of any error.