DELETE api/Payment/{accountNumber}/DeleteCreditCardInfo
Deletes a credit card on the account. Sequence must be provided.
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| accountNumber |
The account number |
string |
Required |
Body Parameters
The credit card info object
CreditCardInfoDto| Name | Description | Type | Additional 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:
Response Information
Resource Description
A boolean indicating success
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.