POST Card

Request Information

URI Parameters

None.

Body Parameters

CreateCardTokenRequest
NameDescriptionTypeAdditional information
merchantToken

string

None.

number

string

None.

expiry_month

string

None.

expiry_year

string

None.

cvc

string

None.

name

string

None.

Request Formats

application/json, text/json

Sample:
{
  "merchantToken": "sample string 1",
  "number": "sample string 2",
  "expiry_month": "sample string 3",
  "expiry_year": "sample string 4",
  "cvc": "sample string 5",
  "name": "sample string 6"
}

text/html

Sample:
{"merchantToken":"sample string 1","number":"sample string 2","expiry_month":"sample string 3","expiry_year":"sample string 4","cvc":"sample string 5","name":"sample string 6"}

application/xml, text/xml

Sample:
<CreateCardTokenRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Core.CardToken.Contracts">
  <cvc>sample string 5</cvc>
  <expiry_month>sample string 3</expiry_month>
  <expiry_year>sample string 4</expiry_year>
  <merchantToken>sample string 1</merchantToken>
  <name>sample string 6</name>
  <number>sample string 2</number>
</CreateCardTokenRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

CreateCardTokenResponse
NameDescriptionTypeAdditional information
card_token

string

None.

failure_information

Collection of ErrorResponse

None.

response

Collection of APIResponse

None.

success

boolean

None.

Response Formats

application/json, text/json

Sample:
{
  "card_token": "sample string 1",
  "failure_information": [
    {
      "errorcode": "sample string 1",
      "errormessage": "sample string 2"
    },
    {
      "errorcode": "sample string 1",
      "errormessage": "sample string 2"
    }
  ],
  "response": [
    {
      "responsecode": "sample string 1",
      "responsemessage": "sample string 2"
    },
    {
      "responsecode": "sample string 1",
      "responsemessage": "sample string 2"
    }
  ],
  "success": true
}

text/html

Sample:
{"card_token":"sample string 1","failure_information":[{"errorcode":"sample string 1","errormessage":"sample string 2"},{"errorcode":"sample string 1","errormessage":"sample string 2"}],"response":[{"responsecode":"sample string 1","responsemessage":"sample string 2"},{"responsecode":"sample string 1","responsemessage":"sample string 2"}],"success":true}

application/xml, text/xml

Sample:
<CreateCardTokenResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Core.CardToken.Contracts">
  <failure_information xmlns="http://schemas.datacontract.org/2004/07/Core">
    <ErrorResponse>
      <errorcode>sample string 1</errorcode>
      <errormessage>sample string 2</errormessage>
    </ErrorResponse>
    <ErrorResponse>
      <errorcode>sample string 1</errorcode>
      <errormessage>sample string 2</errormessage>
    </ErrorResponse>
  </failure_information>
  <response xmlns="http://schemas.datacontract.org/2004/07/Core">
    <APIResponse>
      <responsecode>sample string 1</responsecode>
      <responsemessage>sample string 2</responsemessage>
    </APIResponse>
    <APIResponse>
      <responsecode>sample string 1</responsecode>
      <responsemessage>sample string 2</responsemessage>
    </APIResponse>
  </response>
  <success xmlns="http://schemas.datacontract.org/2004/07/Core">true</success>
  <card_token>sample string 1</card_token>
</CreateCardTokenResponse>