POST api/Booking/ValidatePromoCode
Request Information
URI Parameters
None.
Body Parameters
PromoCodeModelName | Description | Type | Additional information |
---|---|---|---|
PromoCode | string |
None. |
|
BookingId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "PromoCode": "sample string 1", "BookingId": 2 }
application/xml, text/xml
Sample:
<PromoCodeModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Flynet.API.Models"> <BookingId>2</BookingId> <PromoCode>sample string 1</PromoCode> </PromoCodeModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
decimal numberResponse Formats
application/json, text/json
Sample:
1.0
application/xml, text/xml
Sample:
<decimal xmlns="http://schemas.microsoft.com/2003/10/Serialization/">1</decimal>