POST api/customer/stored-payments/{clientKey}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
clientKey

globally unique identifier

Required

Body Parameters

CreditCardInfo
NameDescriptionTypeAdditional information
CustomerId

globally unique identifier

None.

CreditCardNumber

string

None.

CardType

string

None.

ExpirationMonth

integer

None.

ExpirationYear

integer

None.

NameOnCard

string

None.

Request Formats

application/json, text/json

Sample:
{
  "CustomerId": "bd14174b-bf50-4ae1-9c77-f5c7c8c7dfa1",
  "CreditCardNumber": "sample string 2",
  "CardType": "sample string 3",
  "ExpirationMonth": 4,
  "ExpirationYear": 5,
  "NameOnCard": "sample string 6"
}

application/xml, text/xml

Sample:
<CreditCardInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CCMSAPI.Models">
  <CardType>sample string 3</CardType>
  <CreditCardNumber>sample string 2</CreditCardNumber>
  <CustomerId>bd14174b-bf50-4ae1-9c77-f5c7c8c7dfa1</CustomerId>
  <ExpirationMonth>4</ExpirationMonth>
  <ExpirationYear>5</ExpirationYear>
  <NameOnCard>sample string 6</NameOnCard>
</CreditCardInfo>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

JsonResultOfObject
NameDescriptionTypeAdditional information
Content

Object

None.

SerializerSettings

JsonSerializerSettings

None.

Encoding

Encoding

None.

Request

HttpRequestMessage

None.

Response Formats

application/json, text/json

Sample:

Sample not available.