SOAP API – UpdateUserPaymentMethodCreditCard

UpdateUserPaymentMethodCreditCard( userPaymentMethodCreditCardID, accountHolder, creditCardNumber, expireMonth, expireYear, cardTypeID, country, state, city, address, zipcode, phone, email ) : Void

Since: EngageIP v25.2

Updates the credit card information for a UserPaymentMethodCreditCard or throws exception if the UserPaymentMethodCreditCard does not exist.

Address components of the credit card details are optional. Use empty strings if these details are unchanged.

Parameters:

  • userPaymentMethodCreditCardID (Integer) - The ID of the credit card payment method that is to be updated.

  • accountHolder (String) - The name on the credit card

  • creditCardNumber (String) - The credit card number

  • expireMonth (String) - The two digit representation of the month of expiry

  • expireYear (String) - The two digit representation of the year of expiry

  • cardTypeID (String) - The name of the card type as defined in your configuration

  • country (String) - Optionally update the country of the card holder

  • state (String) - Optionally update the state of the card holder

  • city (String) - Optionally update the city of the card holder

  • address (String) - Optionally update the address of the card holder

  • zipcode (String) - Optionally update the zip code of the card holder

  • phone (String) - Optionally update the phone number of the card holder

  • email (String) - Optionally update the email address of the card holder

Possible Exceptions:

  • INVALID USER PAYMENT METHOD CREDIT CARD ID

SOAP 1.2

The following is a sample SOAP 1.2 request and response. The placeholders shown need to be replaced with actual values.

POST /AdminPortal/webservice.asmx HTTP/1.1 Host: localhost Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Header> <AuthHeader xmlns="Logisense_EngageIP"> <Username>string</Username> <Password>string</Password> </AuthHeader> </soap12:Header> <soap12:Body> <UpdateUserPaymentMethodCreditCard xmlns="Logisense_EngageIP"> <userPaymentMethodCreditCardID>int</userPaymentMethodCreditCardID> <accountHolder>string</accountHolder> <creditCardNumber>string</creditCardNumber> <expireMonth>string</expireMonth> <expireYear>string</expireYear> <cardTypeID>int</cardTypeID> <country>string</country> <state>string</state> <city>string</city> <address>string</address> <zipcode>string</zipcode> <phone>string</phone> <email>string</email> </UpdateUserPaymentMethodCreditCard> </soap12:Body> </soap12:Envelope> HTTP/1.1 200 OK Content-Type: application/soap+xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap12:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap12="http://www.w3.org/2003/05/soap-envelope"> <soap12:Body> <UpdateUserPaymentMethodCreditCardResponse xmlns="Logisense_EngageIP" /> </soap12:Body> </soap12:Envelope>

SOAP 1.1

The following is a sample SOAP 1.1 request and response. The placeholders shown need to be replaced with actual values.

POST /AdminPortal/webservice.asmx HTTP/1.1 Host: localhost Content-Type: text/xml; charset=utf-8 Content-Length: length SOAPAction: "Logisense_EngageIP/UpdateUserPaymentMethodCreditCard" <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Header> <AuthHeader xmlns="Logisense_EngageIP"> <Username>string</Username> <Password>string</Password> </AuthHeader> </soap:Header> <soap:Body> <UpdateUserPaymentMethodCreditCard xmlns="Logisense_EngageIP"> <userPaymentMethodCreditCardID>int</userPaymentMethodCreditCardID> <accountHolder>string</accountHolder> <creditCardNumber>string</creditCardNumber> <expireMonth>string</expireMonth> <expireYear>string</expireYear> <cardTypeID>int</cardTypeID> <country>string</country> <state>string</state> <city>string</city> <address>string</address> <zipcode>string</zipcode> <phone>string</phone> <email>string</email> </UpdateUserPaymentMethodCreditCard> </soap:Body> </soap:Envelope> HTTP/1.1 200 OK Content-Type: text/xml; charset=utf-8 Content-Length: length <?xml version="1.0" encoding="utf-8"?> <soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"> <soap:Body> <UpdateUserPaymentMethodCreditCardResponse xmlns="Logisense_EngageIP" /> </soap:Body> </soap:Envelope>