PUT api/Payment/{accountNumber}/UpdateCreditCardInfo

Updates a credit card on the account. Sequence must be provided. Only the ExpirationMonth, ExpirationYear and Name can be updated. All other parameters will be ignored. Use a value of 0 for the ExpirationMonth and ExpirationYear if you want the field to be ignored. Use a value of "" for the Name if you want the field to be ignored.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
accountNumber

The account number

string

Required

Body Parameters

The CreditCardInfoDto object

CreditCardInfoDto
NameDescriptionTypeAdditional information
Sequence

Sequence number

integer

None.

CardNumber

The credit card number

string

None.

CardType

The card type. One of {Visa, Mastercard, AmericanExpress, Discover, JCB} or one of {V, M, A, D, J}

string

None.

ExpirationMonth

The expiration month of the card

integer

None.

ExpirationYear

The expiration year of the card

integer

None.

Name

The name of the credit card

string

None.

Request Formats

application/json, text/json

Sample:
{
  "Sequence": 1,
  "CardNumber": "sample string 2",
  "CardType": "sample string 3",
  "ExpirationMonth": 4,
  "ExpirationYear": 5,
  "Name": "sample string 6"
}

application/xml, text/xml

Sample:
<CreditCardInfoDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RestAPI.Models">
  <CardNumber>sample string 2</CardNumber>
  <CardType>sample string 3</CardType>
  <ExpirationMonth>4</ExpirationMonth>
  <ExpirationYear>5</ExpirationYear>
  <Name>sample string 6</Name>
  <Sequence>1</Sequence>
</CreditCardInfoDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

A boolean indicating success

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.