POST api/SubscriptionPackage/Add
Request Information
URI Parameters
None.
Body Parameters
SubscriptionPackageName | Description | Type | Additional information |
---|---|---|---|
SubscriptionPackageID | integer |
None. |
|
Title | string |
None. |
|
SubTitle | string |
None. |
|
PricePerMonth | decimal number |
None. |
|
CommitmentMonth | integer |
None. |
|
SessionInMonth | integer |
None. |
|
UnusedSessionRollOverUntillCancel | boolean |
None. |
|
AdditionalSessionPrice | decimal number |
None. |
|
ProductID | integer |
None. |
|
ProductDiscount | decimal number |
None. |
|
Note | string |
None. |
|
ColorCode | string |
None. |
|
DiscountOnActivationFees | decimal number |
None. |
|
AllAccessGuestPassPerMonth | integer |
None. |
|
IsNeverExpire | boolean |
None. |
|
CompanyID | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "SubscriptionPackageID": 1, "Title": "sample string 2", "SubTitle": "sample string 3", "PricePerMonth": 4.0, "CommitmentMonth": 5, "SessionInMonth": 6, "UnusedSessionRollOverUntillCancel": true, "AdditionalSessionPrice": 8.0, "ProductID": 1, "ProductDiscount": 1.0, "Note": "sample string 9", "ColorCode": "sample string 10", "DiscountOnActivationFees": 1.0, "AllAccessGuestPassPerMonth": 1, "IsNeverExpire": true, "CompanyID": 11 }
application/xml, text/xml
Sample:
<SubscriptionPackage xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/KSolApi.Models"> <AdditionalSessionPrice>8</AdditionalSessionPrice> <AllAccessGuestPassPerMonth>1</AllAccessGuestPassPerMonth> <ColorCode>sample string 10</ColorCode> <CommitmentMonth>5</CommitmentMonth> <CompanyID>11</CompanyID> <DiscountOnActivationFees>1</DiscountOnActivationFees> <IsNeverExpire>true</IsNeverExpire> <Note>sample string 9</Note> <PricePerMonth>4</PricePerMonth> <ProductDiscount>1</ProductDiscount> <ProductID>1</ProductID> <SessionInMonth>6</SessionInMonth> <SubTitle>sample string 3</SubTitle> <SubscriptionPackageID>1</SubscriptionPackageID> <Title>sample string 2</Title> <UnusedSessionRollOverUntillCancel>true</UnusedSessionRollOverUntillCancel> </SubscriptionPackage>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
integerResponse Formats
application/json, text/json
Sample:
1
application/xml, text/xml
Sample:
<int xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</int>