POST api/PromoCode/AddPromoCode
Request Information
URI Parameters
None.
Body Parameters
clsPromoCodeMaster| Name | Description | Type | Additional information |
|---|---|---|---|
| PromocodeId | integer |
None. |
|
| PromocodeName | string |
None. |
|
| ClientId | integer |
None. |
|
| ClientName | string |
None. |
|
| ProductId | integer |
None. |
|
| PackageId | integer |
None. |
|
| PackageName | string |
None. |
|
| PackageVersion | integer |
None. |
|
| PackageType | string |
None. |
|
| Standard | string |
None. |
|
| PackageSubjects | string |
None. |
|
| OrderId | integer |
None. |
|
| StartDate | date |
None. |
|
| EndDate | date |
None. |
|
| Validity | integer |
None. |
|
| PromoCodeQuantity | integer |
None. |
|
| Discount | integer |
None. |
|
| IsActive | boolean |
None. |
|
| Status | integer |
None. |
|
| CreatedOn | date |
None. |
|
| CreatedBy | integer |
None. |
|
| IsUsed | boolean |
None. |
|
| PackageValue | decimal number |
None. |
Request Formats
application/json, text/json
Sample:
{
"PromocodeId": 1,
"PromocodeName": "sample string 2",
"ClientId": 1,
"ClientName": "sample string 3",
"ProductId": 1,
"PackageId": 1,
"PackageName": "sample string 4",
"PackageVersion": 1,
"PackageType": "sample string 5",
"Standard": "sample string 6",
"PackageSubjects": "sample string 7",
"OrderId": 1,
"StartDate": "2025-12-13T10:13:51.5236147+05:30",
"EndDate": "2025-12-13T10:13:51.5236147+05:30",
"Validity": 1,
"PromoCodeQuantity": 1,
"Discount": 1,
"IsActive": true,
"Status": 1,
"CreatedOn": "2025-12-13T10:13:51.5236147+05:30",
"CreatedBy": 1,
"IsUsed": true,
"PackageValue": 1.0
}
application/xml, text/xml
Sample:
<clsPromoCodeMaster xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LiveTextBooksModel.Entity"> <ClientId>1</ClientId> <ClientName>sample string 3</ClientName> <CreatedBy>1</CreatedBy> <CreatedOn>2025-12-13T10:13:51.5236147+05:30</CreatedOn> <Discount>1</Discount> <EndDate>2025-12-13T10:13:51.5236147+05:30</EndDate> <IsActive>true</IsActive> <IsUsed>true</IsUsed> <OrderId>1</OrderId> <PackageId>1</PackageId> <PackageName>sample string 4</PackageName> <PackageSubjects>sample string 7</PackageSubjects> <PackageType>sample string 5</PackageType> <PackageValue>1</PackageValue> <PackageVersion>1</PackageVersion> <ProductId>1</ProductId> <PromoCodeQuantity>1</PromoCodeQuantity> <PromocodeId>1</PromocodeId> <PromocodeName>sample string 2</PromocodeName> <Standard>sample string 6</Standard> <StartDate>2025-12-13T10:13:51.5236147+05:30</StartDate> <Status>1</Status> <Validity>1</Validity> </clsPromoCodeMaster>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
clsPromoCodeResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| ResponseCode | integer |
None. |
|
| ResponseMessage | string |
None. |
|
| PromoCodeList | Collection of clsPromoCodeMaster |
None. |
Response Formats
application/json, text/json
Sample:
{
"ResponseCode": 1,
"ResponseMessage": "sample string 2",
"PromoCodeList": [
{
"PromocodeId": 1,
"PromocodeName": "sample string 2",
"ClientId": 1,
"ClientName": "sample string 3",
"ProductId": 1,
"PackageId": 1,
"PackageName": "sample string 4",
"PackageVersion": 1,
"PackageType": "sample string 5",
"Standard": "sample string 6",
"PackageSubjects": "sample string 7",
"OrderId": 1,
"StartDate": "2025-12-13T10:13:51.5236147+05:30",
"EndDate": "2025-12-13T10:13:51.5236147+05:30",
"Validity": 1,
"PromoCodeQuantity": 1,
"Discount": 1,
"IsActive": true,
"Status": 1,
"CreatedOn": "2025-12-13T10:13:51.5236147+05:30",
"CreatedBy": 1,
"IsUsed": true,
"PackageValue": 1.0
},
{
"PromocodeId": 1,
"PromocodeName": "sample string 2",
"ClientId": 1,
"ClientName": "sample string 3",
"ProductId": 1,
"PackageId": 1,
"PackageName": "sample string 4",
"PackageVersion": 1,
"PackageType": "sample string 5",
"Standard": "sample string 6",
"PackageSubjects": "sample string 7",
"OrderId": 1,
"StartDate": "2025-12-13T10:13:51.5236147+05:30",
"EndDate": "2025-12-13T10:13:51.5236147+05:30",
"Validity": 1,
"PromoCodeQuantity": 1,
"Discount": 1,
"IsActive": true,
"Status": 1,
"CreatedOn": "2025-12-13T10:13:51.5236147+05:30",
"CreatedBy": 1,
"IsUsed": true,
"PackageValue": 1.0
}
]
}
application/xml, text/xml
Sample:
<clsPromoCodeResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/LiveTextBooksModel.Entity">
<PromoCodeList>
<clsPromoCodeMaster>
<ClientId>1</ClientId>
<ClientName>sample string 3</ClientName>
<CreatedBy>1</CreatedBy>
<CreatedOn>2025-12-13T10:13:51.5236147+05:30</CreatedOn>
<Discount>1</Discount>
<EndDate>2025-12-13T10:13:51.5236147+05:30</EndDate>
<IsActive>true</IsActive>
<IsUsed>true</IsUsed>
<OrderId>1</OrderId>
<PackageId>1</PackageId>
<PackageName>sample string 4</PackageName>
<PackageSubjects>sample string 7</PackageSubjects>
<PackageType>sample string 5</PackageType>
<PackageValue>1</PackageValue>
<PackageVersion>1</PackageVersion>
<ProductId>1</ProductId>
<PromoCodeQuantity>1</PromoCodeQuantity>
<PromocodeId>1</PromocodeId>
<PromocodeName>sample string 2</PromocodeName>
<Standard>sample string 6</Standard>
<StartDate>2025-12-13T10:13:51.5236147+05:30</StartDate>
<Status>1</Status>
<Validity>1</Validity>
</clsPromoCodeMaster>
<clsPromoCodeMaster>
<ClientId>1</ClientId>
<ClientName>sample string 3</ClientName>
<CreatedBy>1</CreatedBy>
<CreatedOn>2025-12-13T10:13:51.5236147+05:30</CreatedOn>
<Discount>1</Discount>
<EndDate>2025-12-13T10:13:51.5236147+05:30</EndDate>
<IsActive>true</IsActive>
<IsUsed>true</IsUsed>
<OrderId>1</OrderId>
<PackageId>1</PackageId>
<PackageName>sample string 4</PackageName>
<PackageSubjects>sample string 7</PackageSubjects>
<PackageType>sample string 5</PackageType>
<PackageValue>1</PackageValue>
<PackageVersion>1</PackageVersion>
<ProductId>1</ProductId>
<PromoCodeQuantity>1</PromoCodeQuantity>
<PromocodeId>1</PromocodeId>
<PromocodeName>sample string 2</PromocodeName>
<Standard>sample string 6</Standard>
<StartDate>2025-12-13T10:13:51.5236147+05:30</StartDate>
<Status>1</Status>
<Validity>1</Validity>
</clsPromoCodeMaster>
</PromoCodeList>
<ResponseCode>1</ResponseCode>
<ResponseMessage>sample string 2</ResponseMessage>
</clsPromoCodeResponse>