POST api/IClassUsers/AddPromoCode

Request Information

URI Parameters

None.

Body Parameters

clsPromoCodeRequest
NameDescriptionTypeAdditional information
IclassuserId

integer

None.

PromoCode

string

None.

PackageId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "IclassuserId": 1,
  "PromoCode": "sample string 2",
  "PackageId": 1
}

application/xml, text/xml

Sample:
<clsPromoCodeRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LiveTextBooksModel.Entity">
  <IclassuserId>1</IclassuserId>
  <PackageId>1</PackageId>
  <PromoCode>sample string 2</PromoCode>
</clsPromoCodeRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

APIResponse
NameDescriptionTypeAdditional information
ResponseCode

integer

None.

ResponseMessage

string

None.

Id

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "ResponseCode": 1,
  "ResponseMessage": "sample string 2",
  "Id": 3
}

application/xml, text/xml

Sample:
<APIResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LiveTextBooksModel.Entity">
  <Id>3</Id>
  <ResponseCode>1</ResponseCode>
  <ResponseMessage>sample string 2</ResponseMessage>
</APIResponse>