POST api/bookings/sales/import
Request Information
URI Parameters
None.
Body Parameters
Collection of Cyberlogic.eTourism.Mappings.Web.Dto.Bookings.SaleRequestDTOName | Description | Type | Additional information |
---|---|---|---|
SellerId | integer |
None. |
|
ExcursionId | integer |
None. |
|
LanguageId | integer |
None. |
|
CustomerId | integer |
None. |
|
HotelId | integer |
None. |
|
PickupPointId | integer |
None. |
|
Adults | integer |
None. |
|
Children | integer |
None. |
|
Infants | integer |
None. |
|
Free | integer |
None. |
|
TariffId | integer |
None. |
|
TicketId | integer |
None. |
|
ExcursionDate | string |
None. |
|
LeadClient | string |
None. |
|
ManualPriced | boolean |
None. |
|
PaymentAmountCash | decimal number |
None. |
|
PaymentAmountCreditCard | decimal number |
None. |
|
TotalIncome | decimal number |
None. |
|
Remarks | string |
None. |
|
PickupTime | string |
None. |
|
RoomNumber | string |
None. |
|
Reference | Cyberlogic.eTourism.Mappings.Web.Dto.Bookings.TicketReferenceDTO |
None. |
|
Clients | Collection of Cyberlogic.eTourism.Mappings.Web.Dto.Bookings.ClientDTO |
None. |
|
BookingId | integer |
None. |
|
Supplements | Collection of integer |
None. |
|
Multiday | Cyberlogic.eTourism.Mappings.Web.Dto.Bookings.Multiday |
None. |
|
IsOnBehalf | boolean |
None. |
|
OnBehalfSellerId | integer |
None. |
Request Formats
application/json, text/json
Sample:
[ { "SellerId": 1, "ExcursionId": 2, "LanguageId": 3, "CustomerId": 4, "HotelId": 5, "PickupPointId": 6, "Adults": 7, "Children": 8, "Infants": 9, "Free": 10, "TariffId": 11, "TicketId": 12, "ExcursionDate": "sample string 13", "LeadClient": "sample string 14", "ManualPriced": true, "PaymentAmountCash": 16.0, "PaymentAmountCreditCard": 17.0, "TotalIncome": 18.0, "Remarks": "sample string 19", "PickupTime": "sample string 20", "RoomNumber": "sample string 21", "Reference": { "Series": "sample string 1", "Number": "sample string 2" }, "Clients": [ { "Id": 1, "Title": "sample string 2", "FirstName": "sample string 3", "LastName": "sample string 4", "Email": "sample string 5", "Address": "sample string 6", "Telephone": "sample string 7" }, { "Id": 1, "Title": "sample string 2", "FirstName": "sample string 3", "LastName": "sample string 4", "Email": "sample string 5", "Address": "sample string 6", "Telephone": "sample string 7" } ], "BookingId": 22, "Supplements": [ 1, 2 ], "Multiday": { "CategoryId": 1, "Supplements": [ { "Id": 1, "Adults": 2, "Children": 3, "Units": 4 }, { "Id": 1, "Adults": 2, "Children": 3, "Units": 4 } ] }, "IsOnBehalf": true, "OnBehalfSellerId": 24 }, { "SellerId": 1, "ExcursionId": 2, "LanguageId": 3, "CustomerId": 4, "HotelId": 5, "PickupPointId": 6, "Adults": 7, "Children": 8, "Infants": 9, "Free": 10, "TariffId": 11, "TicketId": 12, "ExcursionDate": "sample string 13", "LeadClient": "sample string 14", "ManualPriced": true, "PaymentAmountCash": 16.0, "PaymentAmountCreditCard": 17.0, "TotalIncome": 18.0, "Remarks": "sample string 19", "PickupTime": "sample string 20", "RoomNumber": "sample string 21", "Reference": { "Series": "sample string 1", "Number": "sample string 2" }, "Clients": [ { "Id": 1, "Title": "sample string 2", "FirstName": "sample string 3", "LastName": "sample string 4", "Email": "sample string 5", "Address": "sample string 6", "Telephone": "sample string 7" }, { "Id": 1, "Title": "sample string 2", "FirstName": "sample string 3", "LastName": "sample string 4", "Email": "sample string 5", "Address": "sample string 6", "Telephone": "sample string 7" } ], "BookingId": 22, "Supplements": [ 1, 2 ], "Multiday": { "CategoryId": 1, "Supplements": [ { "Id": 1, "Adults": 2, "Children": 3, "Units": 4 }, { "Id": 1, "Adults": 2, "Children": 3, "Units": 4 } ] }, "IsOnBehalf": true, "OnBehalfSellerId": 24 } ]
text/html
Sample:
[{"SellerId":1,"ExcursionId":2,"LanguageId":3,"CustomerId":4,"HotelId":5,"PickupPointId":6,"Adults":7,"Children":8,"Infants":9,"Free":10,"TariffId":11,"TicketId":12,"ExcursionDate":"sample string 13","LeadClient":"sample string 14","ManualPriced":true,"PaymentAmountCash":16.0,"PaymentAmountCreditCard":17.0,"TotalIncome":18.0,"Remarks":"sample string 19","PickupTime":"sample string 20","RoomNumber":"sample string 21","Reference":{"Series":"sample string 1","Number":"sample string 2"},"Clients":[{"Id":1,"Title":"sample string 2","FirstName":"sample string 3","LastName":"sample string 4","Email":"sample string 5","Address":"sample string 6","Telephone":"sample string 7"},{"Id":1,"Title":"sample string 2","FirstName":"sample string 3","LastName":"sample string 4","Email":"sample string 5","Address":"sample string 6","Telephone":"sample string 7"}],"BookingId":22,"Supplements":[1,2],"Multiday":{"CategoryId":1,"Supplements":[{"Id":1,"Adults":2,"Children":3,"Units":4},{"Id":1,"Adults":2,"Children":3,"Units":4}]},"IsOnBehalf":true,"OnBehalfSellerId":24},{"SellerId":1,"ExcursionId":2,"LanguageId":3,"CustomerId":4,"HotelId":5,"PickupPointId":6,"Adults":7,"Children":8,"Infants":9,"Free":10,"TariffId":11,"TicketId":12,"ExcursionDate":"sample string 13","LeadClient":"sample string 14","ManualPriced":true,"PaymentAmountCash":16.0,"PaymentAmountCreditCard":17.0,"TotalIncome":18.0,"Remarks":"sample string 19","PickupTime":"sample string 20","RoomNumber":"sample string 21","Reference":{"Series":"sample string 1","Number":"sample string 2"},"Clients":[{"Id":1,"Title":"sample string 2","FirstName":"sample string 3","LastName":"sample string 4","Email":"sample string 5","Address":"sample string 6","Telephone":"sample string 7"},{"Id":1,"Title":"sample string 2","FirstName":"sample string 3","LastName":"sample string 4","Email":"sample string 5","Address":"sample string 6","Telephone":"sample string 7"}],"BookingId":22,"Supplements":[1,2],"Multiday":{"CategoryId":1,"Supplements":[{"Id":1,"Adults":2,"Children":3,"Units":4},{"Id":1,"Adults":2,"Children":3,"Units":4}]},"IsOnBehalf":true,"OnBehalfSellerId":24}]
application/xml, text/xml
Sample:
<ArrayOfSaleRequestDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Mappings.Web.Dto.Bookings"> <SaleRequestDTO> <Adults>7</Adults> <BookingId>22</BookingId> <Children>8</Children> <Clients> <ClientDTO> <Address>sample string 6</Address> <Email>sample string 5</Email> <FirstName>sample string 3</FirstName> <Id>1</Id> <LastName>sample string 4</LastName> <Telephone>sample string 7</Telephone> <Title>sample string 2</Title> </ClientDTO> <ClientDTO> <Address>sample string 6</Address> <Email>sample string 5</Email> <FirstName>sample string 3</FirstName> <Id>1</Id> <LastName>sample string 4</LastName> <Telephone>sample string 7</Telephone> <Title>sample string 2</Title> </ClientDTO> </Clients> <CustomerId>4</CustomerId> <ExcursionDate>sample string 13</ExcursionDate> <ExcursionId>2</ExcursionId> <Free>10</Free> <HotelId>5</HotelId> <Infants>9</Infants> <IsOnBehalf>true</IsOnBehalf> <LanguageId>3</LanguageId> <LeadClient>sample string 14</LeadClient> <ManualPriced>true</ManualPriced> <Multiday> <CategoryId>1</CategoryId> <Supplements> <MultidaySupplementDTO> <Adults>2</Adults> <Children>3</Children> <Id>1</Id> <Units>4</Units> </MultidaySupplementDTO> <MultidaySupplementDTO> <Adults>2</Adults> <Children>3</Children> <Id>1</Id> <Units>4</Units> </MultidaySupplementDTO> </Supplements> </Multiday> <OnBehalfSellerId>24</OnBehalfSellerId> <PaymentAmountCash>16</PaymentAmountCash> <PaymentAmountCreditCard>17</PaymentAmountCreditCard> <PickupPointId>6</PickupPointId> <PickupTime>sample string 20</PickupTime> <Reference> <Number>sample string 2</Number> <Series>sample string 1</Series> </Reference> <Remarks>sample string 19</Remarks> <RoomNumber>sample string 21</RoomNumber> <SellerId>1</SellerId> <Supplements xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:int>1</d3p1:int> <d3p1:int>2</d3p1:int> </Supplements> <TariffId>11</TariffId> <TicketId>12</TicketId> <TotalIncome>18</TotalIncome> </SaleRequestDTO> <SaleRequestDTO> <Adults>7</Adults> <BookingId>22</BookingId> <Children>8</Children> <Clients> <ClientDTO> <Address>sample string 6</Address> <Email>sample string 5</Email> <FirstName>sample string 3</FirstName> <Id>1</Id> <LastName>sample string 4</LastName> <Telephone>sample string 7</Telephone> <Title>sample string 2</Title> </ClientDTO> <ClientDTO> <Address>sample string 6</Address> <Email>sample string 5</Email> <FirstName>sample string 3</FirstName> <Id>1</Id> <LastName>sample string 4</LastName> <Telephone>sample string 7</Telephone> <Title>sample string 2</Title> </ClientDTO> </Clients> <CustomerId>4</CustomerId> <ExcursionDate>sample string 13</ExcursionDate> <ExcursionId>2</ExcursionId> <Free>10</Free> <HotelId>5</HotelId> <Infants>9</Infants> <IsOnBehalf>true</IsOnBehalf> <LanguageId>3</LanguageId> <LeadClient>sample string 14</LeadClient> <ManualPriced>true</ManualPriced> <Multiday> <CategoryId>1</CategoryId> <Supplements> <MultidaySupplementDTO> <Adults>2</Adults> <Children>3</Children> <Id>1</Id> <Units>4</Units> </MultidaySupplementDTO> <MultidaySupplementDTO> <Adults>2</Adults> <Children>3</Children> <Id>1</Id> <Units>4</Units> </MultidaySupplementDTO> </Supplements> </Multiday> <OnBehalfSellerId>24</OnBehalfSellerId> <PaymentAmountCash>16</PaymentAmountCash> <PaymentAmountCreditCard>17</PaymentAmountCreditCard> <PickupPointId>6</PickupPointId> <PickupTime>sample string 20</PickupTime> <Reference> <Number>sample string 2</Number> <Series>sample string 1</Series> </Reference> <Remarks>sample string 19</Remarks> <RoomNumber>sample string 21</RoomNumber> <SellerId>1</SellerId> <Supplements xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:int>1</d3p1:int> <d3p1:int>2</d3p1:int> </Supplements> <TariffId>11</TariffId> <TicketId>12</TicketId> <TotalIncome>18</TotalIncome> </SaleRequestDTO> </ArrayOfSaleRequestDTO>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Cyberlogic.eTourism.Mappings.Web.Dto.Bookings.ImportSaleResponseDTOName | Description | Type | Additional information |
---|---|---|---|
TicketSeries | string |
None. |
|
TicketNumber | string |
None. |
|
TicketId | integer |
None. |
|
ErrorMessage | string |
None. |
|
ErrorStackTrace | string |
None. |
|
SalesId | integer |
None. |
|
SalesDate | string |
None. |
|
IsValid | boolean |
None. |
|
ExcursionTransactionId | integer |
None. |
|
DocumentId | integer |
None. |
|
DocumentSeries | string |
None. |
|
DocumentType | string |
None. |
|
DocumentNumber | integer |
None. |
|
ExcursionAmount | decimal number |
None. |
|
TransferAmount | decimal number |
None. |
|
ExtraAmount | decimal number |
None. |
|
ExcursionVatAmount | decimal number |
None. |
|
TransferVatAmount | decimal number |
None. |
|
ExtraVatAmount | decimal number |
None. |
|
ExtraVatPercentage | decimal number |
None. |
|
ExcursionVatPercentage | decimal number |
None. |
|
TransferVatPercentage | decimal number |
None. |
|
ExcursionVatPrefix | string |
None. |
|
TransferVatPrefix | string |
None. |
|
ExtraVatPrefix | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "TicketSeries": "sample string 1", "TicketNumber": "sample string 2", "TicketId": 3, "ErrorMessage": "sample string 4", "ErrorStackTrace": "sample string 5", "SalesId": 6, "SalesDate": "sample string 7", "IsValid": true, "ExcursionTransactionId": 9, "DocumentId": 10, "DocumentSeries": "sample string 11", "DocumentType": "sample string 12", "DocumentNumber": 13, "ExcursionAmount": 14.0, "TransferAmount": 15.0, "ExtraAmount": 16.0, "ExcursionVatAmount": 17.0, "TransferVatAmount": 18.0, "ExtraVatAmount": 19.0, "ExtraVatPercentage": 20.0, "ExcursionVatPercentage": 21.0, "TransferVatPercentage": 22.0, "ExcursionVatPrefix": "sample string 23", "TransferVatPrefix": "sample string 24", "ExtraVatPrefix": "sample string 25" }
text/html
Sample:
{"TicketSeries":"sample string 1","TicketNumber":"sample string 2","TicketId":3,"ErrorMessage":"sample string 4","ErrorStackTrace":"sample string 5","SalesId":6,"SalesDate":"sample string 7","IsValid":true,"ExcursionTransactionId":9,"DocumentId":10,"DocumentSeries":"sample string 11","DocumentType":"sample string 12","DocumentNumber":13,"ExcursionAmount":14.0,"TransferAmount":15.0,"ExtraAmount":16.0,"ExcursionVatAmount":17.0,"TransferVatAmount":18.0,"ExtraVatAmount":19.0,"ExtraVatPercentage":20.0,"ExcursionVatPercentage":21.0,"TransferVatPercentage":22.0,"ExcursionVatPrefix":"sample string 23","TransferVatPrefix":"sample string 24","ExtraVatPrefix":"sample string 25"}
application/xml, text/xml
Sample:
<ImportSaleResponseDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Mappings.Web.Dto.Bookings"> <DocumentId>10</DocumentId> <DocumentNumber>13</DocumentNumber> <DocumentSeries>sample string 11</DocumentSeries> <DocumentType>sample string 12</DocumentType> <ErrorMessage>sample string 4</ErrorMessage> <ErrorStackTrace>sample string 5</ErrorStackTrace> <ExcursionAmount>14</ExcursionAmount> <ExcursionTransactionId>9</ExcursionTransactionId> <ExcursionVatAmount>17</ExcursionVatAmount> <ExcursionVatPercentage>21</ExcursionVatPercentage> <ExcursionVatPrefix>sample string 23</ExcursionVatPrefix> <ExtraAmount>16</ExtraAmount> <ExtraVatAmount>19</ExtraVatAmount> <ExtraVatPercentage>20</ExtraVatPercentage> <ExtraVatPrefix>sample string 25</ExtraVatPrefix> <IsValid>true</IsValid> <SalesDate>sample string 7</SalesDate> <SalesId>6</SalesId> <TicketId>3</TicketId> <TransferAmount>15</TransferAmount> <TransferVatAmount>18</TransferVatAmount> <TransferVatPercentage>22</TransferVatPercentage> <TransferVatPrefix>sample string 24</TransferVatPrefix> <TicketNumber>sample string 2</TicketNumber> <TicketSeries>sample string 1</TicketSeries> </ImportSaleResponseDTO>