POST api/FareMedia/LinkCard

Request Information

URI Parameters

None.

Body Parameters

CardAccountInfo
NameDescriptionTypeAdditional information
cardid

integer

None.

accountid

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "cardid": 1,
  "accountid": 2
}

application/xml, text/xml

Sample:
<CardAccountInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CustomerFrontEnd.Controllers">
  <accountid>2</accountid>
  <cardid>1</cardid>
</CardAccountInfo>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

ReturnResult
NameDescriptionTypeAdditional information
success

boolean

None.

message

string

None.

Response Formats

application/json, text/json

Sample:
{
  "success": true,
  "message": "sample string 2"
}

application/xml, text/xml

Sample:
<ReturnResult xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/FareBackEndData">
  <message>sample string 2</message>
  <success>true</success>
</ReturnResult>