GET api/Promotions/GetPromotionByPhonenumber/{promoCode}/{phoneNumber}
Request Information
URI Parameters
Name | Description | Type | Additional information |
---|---|---|---|
promoCode | string |
Required |
|
phoneNumber | string |
Required |
Body Parameters
None.
Response Information
Resource Description
PersonalPromotionName | Description | Type | Additional information |
---|---|---|---|
CustomerId | integer |
None. |
|
PromoCode | string |
None. |
|
Denominations | Collection of PersonalPromotionPrice |
None. |
Response Formats
application/json, text/json
Sample:
{ "CustomerId": 1, "PromoCode": "sample string 2", "Denominations": [ { "Price": 1.0, "PromoAmount": 2.0, "PromoPercent": 3.0 }, { "Price": 1.0, "PromoAmount": 2.0, "PromoPercent": 3.0 } ] }
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"> <CustomerId>1</CustomerId> <Denominations> <PersonalPromotionPrice> <Price>1</Price> <PromoAmount>2</PromoAmount> <PromoPercent>3</PromoPercent> </PersonalPromotionPrice> <PersonalPromotionPrice> <Price>1</Price> <PromoAmount>2</PromoAmount> <PromoPercent>3</PromoPercent> </PersonalPromotionPrice> </Denominations> <PromoCode>sample string 2</PromoCode> </PersonalPromotion>