POST api/User/CarPark/Payment/ApplyDiscount
Request Information
URI Parameters
None.
Body Parameters
ApplyDiscountCodeBindingModel| Name | Description | Type | Additional information |
|---|---|---|---|
| DiscountCode | string |
Required |
|
| SessionId | globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{
"DiscountCode": "sample string 1",
"SessionId": "1bc6ad22b4e9429c9883e5e42a8db59d"
}
application/xml, text/xml
Sample:
<ApplyDiscountCodeBindingModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ParkJet.Models.BindingModels"> <SessionId>1bc6ad22-b4e9-429c-9883-e5e42a8db59d</SessionId> <DiscountCode>sample string 1</DiscountCode> </ApplyDiscountCodeBindingModel>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ServiceResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| Success | boolean |
None. |
|
| MessageId | integer |
None. |
|
| Message | string |
None. |
|
| Data | Object |
None. |
Response Formats
application/json, text/json
Sample:
{
"Success": true,
"MessageId": 899,
"Message": "\r\n",
"Data": {}
}
application/xml, text/xml
Sample:
<ServiceResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/ParkJet.Services.Response">
<MessageLog xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d2p1:string></d2p1:string>
<d2p1:string></d2p1:string>
</MessageLog>
</ServiceResponse>