GET api/Promotions/{promotionCode}/{countryFrom}
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| promotionCode | string |
Required |
|
| countryFrom | integer |
Required |
Body Parameters
None.
Response Information
Resource Description
Promotion| Name | Description | Type | Additional information |
|---|---|---|---|
| PromotionCode | string |
None. |
|
| PromotionName | string |
None. |
|
| Description | string |
None. |
|
| CountryFrom | integer |
None. |
|
| Icon | string |
None. |
|
| BannerNav | string |
None. |
|
| LandingPageImage | string |
None. |
|
| MobileThumbnail | string |
None. |
|
| IsGroupedPromotion | boolean |
None. |
|
| Template | string |
None. |
|
| IsPopupView | boolean |
None. |
|
| Access | PromotionAccess |
None. |
|
| Plans | Collection of PromotionPlan |
None. |
|
| IgnoreBundle | boolean |
None. |
|
| InstanceId | integer |
None. |
Response Formats
application/json, text/json
Sample:
{
"PromotionCode": "sample string 1",
"PromotionName": "sample string 2",
"Description": "sample string 3",
"CountryFrom": 4,
"Icon": "sample string 5",
"BannerNav": "sample string 6",
"LandingPageImage": "sample string 7",
"MobileThumbnail": "sample string 8",
"IsGroupedPromotion": true,
"Template": "sample string 10",
"IsPopupView": true,
"Access": 0,
"Plans": [
{
"PromotionPlanId": 1,
"CardId": 2,
"CardName": "sample string 3",
"CouponCode": "sample string 4",
"ServiceCharge": 5.1,
"IsMobile": true,
"IsLandLine": true,
"IsEditCoupon": true,
"Denominations": [
{
"SubCardId": "sample string 1",
"CurrencyCode": "sample string 2",
"CountryToId": 3,
"Price": 4.1,
"ServiceCharge": 5.1,
"RegularMin": 6,
"FreeMin": 7,
"RatePerMin": 8.0,
"CountryToName": "sample string 9",
"IsPercentageAmountOffer": true,
"OfferPercentage": 11.0
},
{
"SubCardId": "sample string 1",
"CurrencyCode": "sample string 2",
"CountryToId": 3,
"Price": 4.1,
"ServiceCharge": 5.1,
"RegularMin": 6,
"FreeMin": 7,
"RatePerMin": 8.0,
"CountryToName": "sample string 9",
"IsPercentageAmountOffer": true,
"OfferPercentage": 11.0
}
]
},
{
"PromotionPlanId": 1,
"CardId": 2,
"CardName": "sample string 3",
"CouponCode": "sample string 4",
"ServiceCharge": 5.1,
"IsMobile": true,
"IsLandLine": true,
"IsEditCoupon": true,
"Denominations": [
{
"SubCardId": "sample string 1",
"CurrencyCode": "sample string 2",
"CountryToId": 3,
"Price": 4.1,
"ServiceCharge": 5.1,
"RegularMin": 6,
"FreeMin": 7,
"RatePerMin": 8.0,
"CountryToName": "sample string 9",
"IsPercentageAmountOffer": true,
"OfferPercentage": 11.0
},
{
"SubCardId": "sample string 1",
"CurrencyCode": "sample string 2",
"CountryToId": 3,
"Price": 4.1,
"ServiceCharge": 5.1,
"RegularMin": 6,
"FreeMin": 7,
"RatePerMin": 8.0,
"CountryToName": "sample string 9",
"IsPercentageAmountOffer": true,
"OfferPercentage": 11.0
}
]
}
],
"IgnoreBundle": true,
"InstanceId": 13
}
application/xml, text/xml
Sample:
<Promotion xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Raza.Objects.Business.Promotions">
<InstanceId xmlns="http://schemas.datacontract.org/2004/07/Raza.Core">13</InstanceId>
<Access>Public</Access>
<BannerNav>sample string 6</BannerNav>
<CountryFrom>4</CountryFrom>
<Description>sample string 3</Description>
<Icon>sample string 5</Icon>
<IgnoreBundle>true</IgnoreBundle>
<IsGroupedPromotion>true</IsGroupedPromotion>
<IsPopupView>true</IsPopupView>
<LandingPageImage>sample string 7</LandingPageImage>
<MobileThumbnail>sample string 8</MobileThumbnail>
<Plans>
<PromotionPlan>
<CardId>2</CardId>
<CardName>sample string 3</CardName>
<CouponCode>sample string 4</CouponCode>
<Denominations>
<PromotionDenomination>
<CountryToId>3</CountryToId>
<CurrencyCode>sample string 2</CurrencyCode>
<FreeMin>7</FreeMin>
<IsPercentageAmountOffer>true</IsPercentageAmountOffer>
<OfferPercentage>11</OfferPercentage>
<Price>4.1</Price>
<RatePerMin>8</RatePerMin>
<RegularMin>6</RegularMin>
<ServiceCharge>5.1</ServiceCharge>
<SubCardId>sample string 1</SubCardId>
</PromotionDenomination>
<PromotionDenomination>
<CountryToId>3</CountryToId>
<CurrencyCode>sample string 2</CurrencyCode>
<FreeMin>7</FreeMin>
<IsPercentageAmountOffer>true</IsPercentageAmountOffer>
<OfferPercentage>11</OfferPercentage>
<Price>4.1</Price>
<RatePerMin>8</RatePerMin>
<RegularMin>6</RegularMin>
<ServiceCharge>5.1</ServiceCharge>
<SubCardId>sample string 1</SubCardId>
</PromotionDenomination>
</Denominations>
<IsEditCoupon>true</IsEditCoupon>
<IsLandLine>true</IsLandLine>
<IsMobile>true</IsMobile>
<PromotionPlanId>1</PromotionPlanId>
<ServiceCharge>5.1</ServiceCharge>
</PromotionPlan>
<PromotionPlan>
<CardId>2</CardId>
<CardName>sample string 3</CardName>
<CouponCode>sample string 4</CouponCode>
<Denominations>
<PromotionDenomination>
<CountryToId>3</CountryToId>
<CurrencyCode>sample string 2</CurrencyCode>
<FreeMin>7</FreeMin>
<IsPercentageAmountOffer>true</IsPercentageAmountOffer>
<OfferPercentage>11</OfferPercentage>
<Price>4.1</Price>
<RatePerMin>8</RatePerMin>
<RegularMin>6</RegularMin>
<ServiceCharge>5.1</ServiceCharge>
<SubCardId>sample string 1</SubCardId>
</PromotionDenomination>
<PromotionDenomination>
<CountryToId>3</CountryToId>
<CurrencyCode>sample string 2</CurrencyCode>
<FreeMin>7</FreeMin>
<IsPercentageAmountOffer>true</IsPercentageAmountOffer>
<OfferPercentage>11</OfferPercentage>
<Price>4.1</Price>
<RatePerMin>8</RatePerMin>
<RegularMin>6</RegularMin>
<ServiceCharge>5.1</ServiceCharge>
<SubCardId>sample string 1</SubCardId>
</PromotionDenomination>
</Denominations>
<IsEditCoupon>true</IsEditCoupon>
<IsLandLine>true</IsLandLine>
<IsMobile>true</IsMobile>
<PromotionPlanId>1</PromotionPlanId>
<ServiceCharge>5.1</ServiceCharge>
</PromotionPlan>
</Plans>
<PromotionCode>sample string 1</PromotionCode>
<PromotionName>sample string 2</PromotionName>
<Template>sample string 10</Template>
</Promotion>