POST api/viator/transferBooking/create

Request Information

URI Parameters

None.

Body Parameters

Cyberlogic.eTourism.Mappings.Operations.Dto.Bookings.Booking.BookingCreationRequestDTO
NameDescriptionTypeAdditional information
Reference

string

None.

BookingDate

string

None.

ArrivalDate

string

None.

DepartureDate

string

None.

CustomerId

integer

None.

ClientName

string

None.

Adults

integer

None.

Children

integer

None.

Infants

integer

None.

Remarks

string

None.

UserId

integer

None.

Services

Collection of Cyberlogic.eTourism.Mappings.Operations.Dto.Bookings.Booking.Services.BookingServiceDTO

None.

Request Formats

application/json, text/json

Sample:
{
  "Reference": "sample string 1",
  "BookingDate": "sample string 2",
  "ArrivalDate": "sample string 3",
  "DepartureDate": "sample string 4",
  "CustomerId": 5,
  "ClientName": "sample string 6",
  "Adults": 7,
  "Children": 8,
  "Infants": 9,
  "Remarks": "sample string 10",
  "UserId": 11,
  "Services": [
    {
      "ServiceId": 1,
      "SupplierId": 2,
      "DateFrom": "sample string 3",
      "DateTo": "sample string 4",
      "TotalPrice": 5.0,
      "Adults": 6,
      "Children": 7,
      "Infants": 8,
      "RouteId": 9,
      "PickupPointId": 10,
      "NetCarTypeId": 11,
      "SaleCarTypeId": 12,
      "PickupTime": "sample string 13"
    },
    {
      "ServiceId": 1,
      "SupplierId": 2,
      "DateFrom": "sample string 3",
      "DateTo": "sample string 4",
      "TotalPrice": 5.0,
      "Adults": 6,
      "Children": 7,
      "Infants": 8,
      "RouteId": 9,
      "PickupPointId": 10,
      "NetCarTypeId": 11,
      "SaleCarTypeId": 12,
      "PickupTime": "sample string 13"
    }
  ]
}

text/html

Sample:
{"Reference":"sample string 1","BookingDate":"sample string 2","ArrivalDate":"sample string 3","DepartureDate":"sample string 4","CustomerId":5,"ClientName":"sample string 6","Adults":7,"Children":8,"Infants":9,"Remarks":"sample string 10","UserId":11,"Services":[{"ServiceId":1,"SupplierId":2,"DateFrom":"sample string 3","DateTo":"sample string 4","TotalPrice":5.0,"Adults":6,"Children":7,"Infants":8,"RouteId":9,"PickupPointId":10,"NetCarTypeId":11,"SaleCarTypeId":12,"PickupTime":"sample string 13"},{"ServiceId":1,"SupplierId":2,"DateFrom":"sample string 3","DateTo":"sample string 4","TotalPrice":5.0,"Adults":6,"Children":7,"Infants":8,"RouteId":9,"PickupPointId":10,"NetCarTypeId":11,"SaleCarTypeId":12,"PickupTime":"sample string 13"}]}

application/xml, text/xml

Sample:
<BookingCreationRequestDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Mappings.Operations.Dto.Bookings.Booking">
  <Adults>7</Adults>
  <ArrivalDate>sample string 3</ArrivalDate>
  <BookingDate>sample string 2</BookingDate>
  <Children>8</Children>
  <ClientName>sample string 6</ClientName>
  <CustomerId>5</CustomerId>
  <DepartureDate>sample string 4</DepartureDate>
  <Infants>9</Infants>
  <Reference>sample string 1</Reference>
  <Remarks>sample string 10</Remarks>
  <Services xmlns:d2p1="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Mappings.Operations.Dto.Bookings.Booking.Services">
    <d2p1:BookingServiceDTO>
      <d2p1:Adults>6</d2p1:Adults>
      <d2p1:Children>7</d2p1:Children>
      <d2p1:DateFrom>sample string 3</d2p1:DateFrom>
      <d2p1:DateTo>sample string 4</d2p1:DateTo>
      <d2p1:Infants>8</d2p1:Infants>
      <d2p1:NetCarTypeId>11</d2p1:NetCarTypeId>
      <d2p1:PickupPointId>10</d2p1:PickupPointId>
      <d2p1:PickupTime>sample string 13</d2p1:PickupTime>
      <d2p1:RouteId>9</d2p1:RouteId>
      <d2p1:SaleCarTypeId>12</d2p1:SaleCarTypeId>
      <d2p1:ServiceId>1</d2p1:ServiceId>
      <d2p1:SupplierId>2</d2p1:SupplierId>
      <d2p1:TotalPrice>5</d2p1:TotalPrice>
    </d2p1:BookingServiceDTO>
    <d2p1:BookingServiceDTO>
      <d2p1:Adults>6</d2p1:Adults>
      <d2p1:Children>7</d2p1:Children>
      <d2p1:DateFrom>sample string 3</d2p1:DateFrom>
      <d2p1:DateTo>sample string 4</d2p1:DateTo>
      <d2p1:Infants>8</d2p1:Infants>
      <d2p1:NetCarTypeId>11</d2p1:NetCarTypeId>
      <d2p1:PickupPointId>10</d2p1:PickupPointId>
      <d2p1:PickupTime>sample string 13</d2p1:PickupTime>
      <d2p1:RouteId>9</d2p1:RouteId>
      <d2p1:SaleCarTypeId>12</d2p1:SaleCarTypeId>
      <d2p1:ServiceId>1</d2p1:ServiceId>
      <d2p1:SupplierId>2</d2p1:SupplierId>
      <d2p1:TotalPrice>5</d2p1:TotalPrice>
    </d2p1:BookingServiceDTO>
  </Services>
  <UserId>11</UserId>
</BookingCreationRequestDTO>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

Cyberlogic.eTourism.Mappings.Operations.Dto.Bookings.Booking.BookingCreationResponseDTO
NameDescriptionTypeAdditional information
BookingId

integer

None.

Services

Collection of integer

None.

ErrorMessage

string

None.

ErrorStackTrace

string

None.

Response Formats

application/json, text/json

Sample:
{
  "BookingId": 1,
  "Services": [
    1,
    2
  ],
  "ErrorMessage": "sample string 2",
  "ErrorStackTrace": "sample string 3"
}

text/html

Sample:
{"BookingId":1,"Services":[1,2],"ErrorMessage":"sample string 2","ErrorStackTrace":"sample string 3"}

application/xml, text/xml

Sample:
<BookingCreationResponseDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Mappings.Operations.Dto.Bookings.Booking">
  <BookingId>1</BookingId>
  <ErrorMessage>sample string 2</ErrorMessage>
  <ErrorStackTrace>sample string 3</ErrorStackTrace>
  <Services xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:int>1</d2p1:int>
    <d2p1:int>2</d2p1:int>
  </Services>
</BookingCreationResponseDTO>