POST GeneralService/GetPromotionCode
Request Information
URI Parameters
None.
Body Parameters
PromotionCodeRequestName | Description | Type | Additional information |
---|---|---|---|
string |
None. |
||
Mobile | string |
None. |
|
PromoCode | string |
None. |
Request Formats
application/json, text/json
Sample:
{ "Email": "sample string 1", "Mobile": "sample string 2", "PromoCode": "sample string 3" }
application/xml, text/xml
Sample:
<PromotionCodeRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SAPTCO.Mobile.Forms.Models"> <Email>sample string 1</Email> <Mobile>sample string 2</Mobile> <PromoCode>sample string 3</PromoCode> </PromotionCodeRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
PromotionCodeResponseName | Description | Type | Additional information |
---|---|---|---|
PromoCode | string |
None. |
|
DiscountPercentage | decimal number |
None. |
|
IsEnabled | boolean |
None. |
|
ProviderName | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "PromoCode": "sample string 1", "DiscountPercentage": 2.1, "IsEnabled": true, "ProviderName": "sample string 4" }
application/xml, text/xml
Sample:
<PromotionCodeResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SAPTCO.Mobile.Forms.Models"> <DiscountPercentage>2.1</DiscountPercentage> <IsEnabled>true</IsEnabled> <PromoCode>sample string 1</PromoCode> <ProviderName>sample string 4</ProviderName> </PromotionCodeResponse>