POST api/MakePay/CardConnectCreateToken

Card Connect Create Token

Request Information

URI Parameters

None.

Body Parameters

CardTokenRequestViewModel
NameDescriptionTypeAdditional information
CardNo

string

None.

ExpireYear

integer

None.

ExpireMonth

integer

None.

CVV

string

None.

APIKey

string

None.

CustomerID

integer

None.

UserID

integer

None.

Request Formats

application/json, text/json, text/plain, text/html

Sample:
{
  "cardNo": "sample string 1",
  "expireYear": 2,
  "expireMonth": 3,
  "cvv": "sample string 4",
  "apiKey": "sample string 5",
  "customerID": 6,
  "userID": 7
}

application/xml, text/xml

Sample:
<CardTokenRequestViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMMS_V2.Core.RequestModel">
  <APIKey>sample string 5</APIKey>
  <CVV>sample string 4</CVV>
  <CardNo>sample string 1</CardNo>
  <CustomerID>6</CustomerID>
  <ExpireMonth>3</ExpireMonth>
  <ExpireYear>2</ExpireYear>
  <UserID>7</UserID>
</CardTokenRequestViewModel>

multipart/form-data

Sample:
<CardTokenRequestViewModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMMS_V2.Core.RequestModel"><APIKey>sample string 5</APIKey><CVV>sample string 4</CVV><CardNo>sample string 1</CardNo><CustomerID>6</CustomerID><ExpireMonth>3</ExpireMonth><ExpireYear>2</ExpireYear><UserID>7</UserID></CardTokenRequestViewModel>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

PaymentResponseModel
NameDescriptionTypeAdditional information
IsSuccess

boolean

None.

Message

string

None.

PaymentRefNumber

string

None.

cardconnectProfileId

string

None.

acctid

string

None.

token

string

None.

Response Formats

application/json, text/json, text/plain, text/html

Sample:
{
  "isSuccess": true,
  "message": "sample string 2",
  "paymentRefNumber": "sample string 3",
  "cardconnectProfileId": "sample string 4",
  "acctid": "sample string 5",
  "token": "sample string 6"
}

application/xml, text/xml

Sample:
<PaymentResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMMS_V2.Core.RequestModel">
  <IsSuccess>true</IsSuccess>
  <Message>sample string 2</Message>
  <PaymentRefNumber>sample string 3</PaymentRefNumber>
  <acctid>sample string 5</acctid>
  <cardconnectProfileId>sample string 4</cardconnectProfileId>
  <token>sample string 6</token>
</PaymentResponseModel>

multipart/form-data

Sample:
<PaymentResponseModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CMMS_V2.Core.RequestModel"><IsSuccess>true</IsSuccess><Message>sample string 2</Message><PaymentRefNumber>sample string 3</PaymentRefNumber><acctid>sample string 5</acctid><cardconnectProfileId>sample string 4</cardconnectProfileId><token>sample string 6</token></PaymentResponseModel>