POST api/UI/AddVoucher
Request Information
URI Parameters
None.
Body Parameters
VoucherAddDto| Name | Description | Type | Additional information |
|---|---|---|---|
| VoucherPrefix | string |
None. |
|
| VoucherCode | string |
None. |
|
| NameSurname | string |
None. |
|
| Passport | string |
None. |
|
| Phone | string |
None. |
|
| string |
None. |
||
| Country | string |
None. |
|
| Hotel | string |
None. |
|
| RoomNumber | string |
None. |
|
| Description | string |
None. |
|
| Amount | decimal number |
None. |
|
| Discount | decimal number |
None. |
|
| TotalAmount | decimal number |
None. |
|
| Currency | string |
None. |
|
| VoucherDate | date |
None. |
|
| Tours | Collection of VoucherTourAddDto |
None. |
|
| WebSiteID | globally unique identifier |
None. |
Request Formats
application/json, text/json
Sample:
{
"voucherPrefix": "sample string 1",
"voucherCode": "sample string 2",
"nameSurname": "sample string 3",
"passport": "sample string 4",
"phone": "sample string 5",
"email": "sample string 6",
"country": "sample string 7",
"hotel": "sample string 8",
"roomNumber": "sample string 9",
"description": "sample string 10",
"amount": 11.1,
"discount": 12.1,
"totalAmount": 13.1,
"currency": "sample string 14",
"voucherDate": "2025-12-11T17:32:57.5712966+03:00",
"tours": [
{
"voucherID": "f513267b-d0f8-45bd-a545-c69453982476",
"tourID": "edca2011-90c7-4444-96ee-0328b72094ae",
"regionID": "431c50d0-a5c6-48ef-90c8-a26d520ea01a",
"tourDate": "2025-12-11T17:32:57.5722966+03:00",
"pickupTime": "sample string 5",
"information": "sample string 6",
"amount": 7.1,
"discount": 8.1,
"totalAmount": 9.1
},
{
"voucherID": "f513267b-d0f8-45bd-a545-c69453982476",
"tourID": "edca2011-90c7-4444-96ee-0328b72094ae",
"regionID": "431c50d0-a5c6-48ef-90c8-a26d520ea01a",
"tourDate": "2025-12-11T17:32:57.5722966+03:00",
"pickupTime": "sample string 5",
"information": "sample string 6",
"amount": 7.1,
"discount": 8.1,
"totalAmount": 9.1
}
],
"webSiteID": "a8ea9015-86a6-4376-85be-fb9ac3fae143"
}
application/xml, text/xml
Sample:
<VoucherAddDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RS.Core.Service.DTOs">
<Amount>11.1</Amount>
<Country>sample string 7</Country>
<Currency>sample string 14</Currency>
<Description>sample string 10</Description>
<Discount>12.1</Discount>
<Email>sample string 6</Email>
<Hotel>sample string 8</Hotel>
<NameSurname>sample string 3</NameSurname>
<Passport>sample string 4</Passport>
<Phone>sample string 5</Phone>
<RoomNumber>sample string 9</RoomNumber>
<TotalAmount>13.1</TotalAmount>
<Tours>
<VoucherTourAddDto>
<Amount>7.1</Amount>
<Discount>8.1</Discount>
<Information>sample string 6</Information>
<PickupTime>sample string 5</PickupTime>
<RegionID>431c50d0-a5c6-48ef-90c8-a26d520ea01a</RegionID>
<TotalAmount>9.1</TotalAmount>
<TourDate>2025-12-11T17:32:57.5722966+03:00</TourDate>
<TourID>edca2011-90c7-4444-96ee-0328b72094ae</TourID>
<VoucherID>f513267b-d0f8-45bd-a545-c69453982476</VoucherID>
</VoucherTourAddDto>
<VoucherTourAddDto>
<Amount>7.1</Amount>
<Discount>8.1</Discount>
<Information>sample string 6</Information>
<PickupTime>sample string 5</PickupTime>
<RegionID>431c50d0-a5c6-48ef-90c8-a26d520ea01a</RegionID>
<TotalAmount>9.1</TotalAmount>
<TourDate>2025-12-11T17:32:57.5722966+03:00</TourDate>
<TourID>edca2011-90c7-4444-96ee-0328b72094ae</TourID>
<VoucherID>f513267b-d0f8-45bd-a545-c69453982476</VoucherID>
</VoucherTourAddDto>
</Tours>
<VoucherCode>sample string 2</VoucherCode>
<VoucherDate>2025-12-11T17:32:57.5712966+03:00</VoucherDate>
<VoucherPrefix>sample string 1</VoucherPrefix>
<WebSiteID>a8ea9015-86a6-4376-85be-fb9ac3fae143</WebSiteID>
</VoucherAddDto>
application/x-www-form-urlencoded
Sample:
Sample not available.
text/html
Sample:
{"VoucherPrefix":"sample string 1","VoucherCode":"sample string 2","NameSurname":"sample string 3","Passport":"sample string 4","Phone":"sample string 5","Email":"sample string 6","Country":"sample string 7","Hotel":"sample string 8","RoomNumber":"sample string 9","Description":"sample string 10","Amount":11.1,"Discount":12.1,"TotalAmount":13.1,"Currency":"sample string 14","VoucherDate":"2025-12-11T17:32:57.5712966+03:00","Tours":[{"VoucherID":"f513267b-d0f8-45bd-a545-c69453982476","TourID":"edca2011-90c7-4444-96ee-0328b72094ae","RegionID":"431c50d0-a5c6-48ef-90c8-a26d520ea01a","TourDate":"2025-12-11T17:32:57.5722966+03:00","PickupTime":"sample string 5","Information":"sample string 6","Amount":7.1,"Discount":8.1,"TotalAmount":9.1},{"VoucherID":"f513267b-d0f8-45bd-a545-c69453982476","TourID":"edca2011-90c7-4444-96ee-0328b72094ae","RegionID":"431c50d0-a5c6-48ef-90c8-a26d520ea01a","TourDate":"2025-12-11T17:32:57.5722966+03:00","PickupTime":"sample string 5","Information":"sample string 6","Amount":7.1,"Discount":8.1,"TotalAmount":9.1}],"WebSiteID":"a8ea9015-86a6-4376-85be-fb9ac3fae143"}
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml, text/html
Sample:
Sample not available.