POST api/ccms/store-card/{customerId}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
customerId

globally unique identifier

Required

Body Parameters

AddNewCardObject
NameDescriptionTypeAdditional information
PaymentTypeId

string

None.

CardNumber

string

None.

AccountToken

string

None.

ExpirationDate

string

None.

Request Formats

application/json, text/json

Sample:
{
  "PaymentTypeId": "sample string 1",
  "CardNumber": "sample string 2",
  "AccountToken": "sample string 3",
  "ExpirationDate": "sample string 4"
}

application/xml, text/xml

Sample:
<AddNewCardObject xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CCMSAPI.Models">
  <AccountToken>sample string 3</AccountToken>
  <CardNumber>sample string 2</CardNumber>
  <ExpirationDate>sample string 4</ExpirationDate>
  <PaymentTypeId>sample string 1</PaymentTypeId>
</AddNewCardObject>

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.