POST api/cards/Purchase

Request Information

URI Parameters

None.

Body Parameters

PurchaseCardBindingModel
NameDescriptionTypeAdditional information
TelNo

integer

None.

VoucherNo

integer

None.

OwnerName

string

None.

NID

integer

None.

PackageID

integer

None.

CardType

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "TelNo": 1,
  "VoucherNo": 2,
  "OwnerName": "sample string 3",
  "NID": 4,
  "PackageID": 5,
  "CardType": 6
}

text/xml

Sample:
<PurchaseCardBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/iCashAPI.Models">
  <CardType>6</CardType>
  <NID>4</NID>
  <OwnerName>sample string 3</OwnerName>
  <PackageID>5</PackageID>
  <TelNo>1</TelNo>
  <VoucherNo>2</VoucherNo>
</PurchaseCardBindingModel>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'PurchaseCardBindingModel'.

Response Information

Resource Description

integer

Response Formats

application/json, text/json

Sample:
1

text/xml

Sample:
<long xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</long>