POST api/flight/order/{orderCode}/promotion
Request Information
URI Parameters
| Name | Description | Type | Additional information |
|---|---|---|---|
| orderCode | string |
Required |
Body Parameters
ApplyPromotionRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| PromoId | integer |
None. |
|
| PromoValue | decimal number |
None. |
|
| PromoCurrency | string |
None. |
|
| Quantity | integer |
None. |
|
| AddonServiceId | integer |
None. |
|
| AddonServiceText | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"PromoId": 1,
"PromoValue": 2.0,
"PromoCurrency": "sample string 3",
"Quantity": 4,
"AddonServiceId": 1,
"AddonServiceText": "sample string 5"
}
application/xml, text/xml
Sample:
<ApplyPromotionRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/SmiletripB2B.API.Models"> <AddonServiceId>1</AddonServiceId> <AddonServiceText>sample string 5</AddonServiceText> <PromoCurrency>sample string 3</PromoCurrency> <PromoId>1</PromoId> <PromoValue>2</PromoValue> <Quantity>4</Quantity> </ApplyPromotionRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.