PUT api/Voucher/Update

Request Information

URI Parameters

None.

Body Parameters

VoucherUpdateDto
NameDescriptionTypeAdditional information
VoucherCode

string

None.

NameSurname

string

None.

Passport

string

None.

Phone

string

None.

Email

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 VoucherTourUpdateDto

None.

WebSiteID

globally unique identifier

None.

ID

globally unique identifier

Required

Request Formats

application/json, text/json

Sample:
{
  "voucherCode": "sample string 1",
  "nameSurname": "sample string 2",
  "passport": "sample string 3",
  "phone": "sample string 4",
  "email": "sample string 5",
  "country": "sample string 6",
  "hotel": "sample string 7",
  "roomNumber": "sample string 8",
  "description": "sample string 9",
  "amount": 10.1,
  "discount": 11.1,
  "totalAmount": 12.1,
  "currency": "sample string 13",
  "voucherDate": "2025-12-11T17:35:03.4837128+03:00",
  "tours": [
    {
      "voucherID": "9526fc94-b9bd-48ee-bc4e-0be863cd79a9",
      "tourID": "f5f664f5-dfe8-4e1a-ba22-d7489e9cca64",
      "regionID": "e6a18ca7-7ab4-4e00-a6a5-e836a55170a1",
      "tourDate": "2025-12-11T17:35:03.4847138+03:00",
      "pickupTime": "sample string 5",
      "information": "sample string 6",
      "amount": 7.1,
      "discount": 8.1,
      "totalAmount": 9.1,
      "id": "03b628b1-4911-4099-a86f-273ef5247981"
    },
    {
      "voucherID": "9526fc94-b9bd-48ee-bc4e-0be863cd79a9",
      "tourID": "f5f664f5-dfe8-4e1a-ba22-d7489e9cca64",
      "regionID": "e6a18ca7-7ab4-4e00-a6a5-e836a55170a1",
      "tourDate": "2025-12-11T17:35:03.4847138+03:00",
      "pickupTime": "sample string 5",
      "information": "sample string 6",
      "amount": 7.1,
      "discount": 8.1,
      "totalAmount": 9.1,
      "id": "03b628b1-4911-4099-a86f-273ef5247981"
    }
  ],
  "webSiteID": "989d6769-660c-47f1-9964-3dac58cd3029",
  "id": "3f9daa69-7635-47e2-8d02-3973c8d88a8f"
}

application/xml, text/xml

Sample:
<VoucherUpdateDto xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/RS.Core.Service.DTOs">
  <ID>3f9daa69-7635-47e2-8d02-3973c8d88a8f</ID>
  <Amount>10.1</Amount>
  <Country>sample string 6</Country>
  <Currency>sample string 13</Currency>
  <Description>sample string 9</Description>
  <Discount>11.1</Discount>
  <Email>sample string 5</Email>
  <Hotel>sample string 7</Hotel>
  <NameSurname>sample string 2</NameSurname>
  <Passport>sample string 3</Passport>
  <Phone>sample string 4</Phone>
  <RoomNumber>sample string 8</RoomNumber>
  <TotalAmount>12.1</TotalAmount>
  <Tours>
    <VoucherTourUpdateDto>
      <ID>03b628b1-4911-4099-a86f-273ef5247981</ID>
      <Amount>7.1</Amount>
      <Discount>8.1</Discount>
      <Information>sample string 6</Information>
      <PickupTime>sample string 5</PickupTime>
      <RegionID>e6a18ca7-7ab4-4e00-a6a5-e836a55170a1</RegionID>
      <TotalAmount>9.1</TotalAmount>
      <TourDate>2025-12-11T17:35:03.4847138+03:00</TourDate>
      <TourID>f5f664f5-dfe8-4e1a-ba22-d7489e9cca64</TourID>
      <VoucherID>9526fc94-b9bd-48ee-bc4e-0be863cd79a9</VoucherID>
    </VoucherTourUpdateDto>
    <VoucherTourUpdateDto>
      <ID>03b628b1-4911-4099-a86f-273ef5247981</ID>
      <Amount>7.1</Amount>
      <Discount>8.1</Discount>
      <Information>sample string 6</Information>
      <PickupTime>sample string 5</PickupTime>
      <RegionID>e6a18ca7-7ab4-4e00-a6a5-e836a55170a1</RegionID>
      <TotalAmount>9.1</TotalAmount>
      <TourDate>2025-12-11T17:35:03.4847138+03:00</TourDate>
      <TourID>f5f664f5-dfe8-4e1a-ba22-d7489e9cca64</TourID>
      <VoucherID>9526fc94-b9bd-48ee-bc4e-0be863cd79a9</VoucherID>
    </VoucherTourUpdateDto>
  </Tours>
  <VoucherCode>sample string 1</VoucherCode>
  <VoucherDate>2025-12-11T17:35:03.4837128+03:00</VoucherDate>
  <WebSiteID>989d6769-660c-47f1-9964-3dac58cd3029</WebSiteID>
</VoucherUpdateDto>

application/x-www-form-urlencoded

Sample:

Sample not available.

text/html

Sample:
{"VoucherCode":"sample string 1","NameSurname":"sample string 2","Passport":"sample string 3","Phone":"sample string 4","Email":"sample string 5","Country":"sample string 6","Hotel":"sample string 7","RoomNumber":"sample string 8","Description":"sample string 9","Amount":10.1,"Discount":11.1,"TotalAmount":12.1,"Currency":"sample string 13","VoucherDate":"2025-12-11T17:35:03.4837128+03:00","Tours":[{"VoucherID":"9526fc94-b9bd-48ee-bc4e-0be863cd79a9","TourID":"f5f664f5-dfe8-4e1a-ba22-d7489e9cca64","RegionID":"e6a18ca7-7ab4-4e00-a6a5-e836a55170a1","TourDate":"2025-12-11T17:35:03.4847138+03:00","PickupTime":"sample string 5","Information":"sample string 6","Amount":7.1,"Discount":8.1,"TotalAmount":9.1,"ID":"03b628b1-4911-4099-a86f-273ef5247981"},{"VoucherID":"9526fc94-b9bd-48ee-bc4e-0be863cd79a9","TourID":"f5f664f5-dfe8-4e1a-ba22-d7489e9cca64","RegionID":"e6a18ca7-7ab4-4e00-a6a5-e836a55170a1","TourDate":"2025-12-11T17:35:03.4847138+03:00","PickupTime":"sample string 5","Information":"sample string 6","Amount":7.1,"Discount":8.1,"TotalAmount":9.1,"ID":"03b628b1-4911-4099-a86f-273ef5247981"}],"WebSiteID":"989d6769-660c-47f1-9964-3dac58cd3029","ID":"3f9daa69-7635-47e2-8d02-3973c8d88a8f"}

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml, text/html

Sample:

Sample not available.