POST api/PromoCode/GetPromoCodes
Request Information
URI Parameters
None.
Body Parameters
None.
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:50.7268471+05:30",
"EndDate": "2025-12-13T10:13:50.7268471+05:30",
"Validity": 1,
"PromoCodeQuantity": 1,
"Discount": 1,
"IsActive": true,
"Status": 1,
"CreatedOn": "2025-12-13T10:13:50.7268471+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:50.7268471+05:30",
"EndDate": "2025-12-13T10:13:50.7268471+05:30",
"Validity": 1,
"PromoCodeQuantity": 1,
"Discount": 1,
"IsActive": true,
"Status": 1,
"CreatedOn": "2025-12-13T10:13:50.7268471+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:50.7268471+05:30</CreatedOn>
<Discount>1</Discount>
<EndDate>2025-12-13T10:13:50.7268471+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:50.7268471+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:50.7268471+05:30</CreatedOn>
<Discount>1</Discount>
<EndDate>2025-12-13T10:13:50.7268471+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:50.7268471+05:30</StartDate>
<Status>1</Status>
<Validity>1</Validity>
</clsPromoCodeMaster>
</PromoCodeList>
<ResponseCode>1</ResponseCode>
<ResponseMessage>sample string 2</ResponseMessage>
</clsPromoCodeResponse>