GET api/Promotions/GetPromotionByPhonenumber/{promoCode}/{phoneNumber}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
promoCode

string

Required

phoneNumber

string

Required

Body Parameters

None.

Response Information

Resource Description

PersonalPromotion
NameDescriptionTypeAdditional information
CustomerId

integer

None.

PromoCode

string

None.

Denominations

Collection of PersonalPromotionPrice

None.

IsNewCustomer

boolean

None.

CountryToId

integer

None.

CurrencyCode

string

None.

Caption

string

None.

Description

string

None.

Icon

string

None.

BannerNav

string

None.

LandingPageImage

string

None.

MobileThumbnail

string

None.

Response Formats

application/json, text/json

Sample:
{
  "CustomerId": 1,
  "PromoCode": "sample string 2",
  "Denominations": [
    {
      "Price": 1.0,
      "PromoAmount": 2.0,
      "PromoPercent": 3.0,
      "ServiceChargePercent": 4.0,
      "CardId": 5,
      "CardName": "sample string 6",
      "SubCardId": "sample string 7"
    },
    {
      "Price": 1.0,
      "PromoAmount": 2.0,
      "PromoPercent": 3.0,
      "ServiceChargePercent": 4.0,
      "CardId": 5,
      "CardName": "sample string 6",
      "SubCardId": "sample string 7"
    }
  ],
  "IsNewCustomer": true,
  "CountryToId": 4,
  "CurrencyCode": "sample string 5",
  "Caption": "sample string 6",
  "Description": "sample string 7",
  "Icon": "sample string 8",
  "BannerNav": "sample string 9",
  "LandingPageImage": "sample string 10",
  "MobileThumbnail": "sample string 11"
}

application/xml, text/xml

Sample:
<PersonalPromotion xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Raza.Objects.Business.Promotions">
  <BannerNav>sample string 9</BannerNav>
  <Caption>sample string 6</Caption>
  <CountryToId>4</CountryToId>
  <CurrencyCode>sample string 5</CurrencyCode>
  <CustomerId>1</CustomerId>
  <Denominations>
    <PersonalPromotionPrice>
      <CardId>5</CardId>
      <CardName>sample string 6</CardName>
      <Price>1</Price>
      <PromoAmount>2</PromoAmount>
      <PromoPercent>3</PromoPercent>
      <ServiceChargePercent>4</ServiceChargePercent>
      <SubCardId>sample string 7</SubCardId>
    </PersonalPromotionPrice>
    <PersonalPromotionPrice>
      <CardId>5</CardId>
      <CardName>sample string 6</CardName>
      <Price>1</Price>
      <PromoAmount>2</PromoAmount>
      <PromoPercent>3</PromoPercent>
      <ServiceChargePercent>4</ServiceChargePercent>
      <SubCardId>sample string 7</SubCardId>
    </PersonalPromotionPrice>
  </Denominations>
  <Description>sample string 7</Description>
  <Icon>sample string 8</Icon>
  <IsNewCustomer>true</IsNewCustomer>
  <LandingPageImage>sample string 10</LandingPageImage>
  <MobileThumbnail>sample string 11</MobileThumbnail>
  <PromoCode>sample string 2</PromoCode>
</PersonalPromotion>