POST api/bookings/sales/new
Request Information
URI Parameters
None.
Body Parameters
Cyberlogic.eTourism.Mappings.Web.Dto.Bookings.MakeSaleRequestDTOName | Description | Type | Additional information |
---|---|---|---|
Sales | Collection of Cyberlogic.eTourism.Mappings.Web.Dto.Bookings.SaleRequestDTO |
None. |
|
ClientEmail | string |
None. |
|
CouponCode | string |
None. |
|
SendEmailToSupplier | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{ "Sales": [ { "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 } ], "ClientEmail": "sample string 1", "CouponCode": "sample string 2", "SendEmailToSupplier": true }
text/html
Sample:
{"Sales":[{"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}],"ClientEmail":"sample string 1","CouponCode":"sample string 2","SendEmailToSupplier":true}
application/xml, text/xml
Sample:
<MakeSaleRequestDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Mappings.Web.Dto.Bookings"> <ClientEmail>sample string 1</ClientEmail> <CouponCode>sample string 2</CouponCode> <Sales> <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:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:int>1</d4p1:int> <d4p1:int>2</d4p1: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:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:int>1</d4p1:int> <d4p1:int>2</d4p1:int> </Supplements> <TariffId>11</TariffId> <TicketId>12</TicketId> <TotalIncome>18</TotalIncome> </SaleRequestDTO> </Sales> <SendEmailToSupplier>true</SendEmailToSupplier> </MakeSaleRequestDTO>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Cyberlogic.eTourism.Mappings.Web.Dto.Bookings.MakeSaleResponseDTOName | Description | Type | Additional information |
---|---|---|---|
Sales | Collection of Cyberlogic.eTourism.Mappings.Web.Dto.Bookings.SaleResponseDTO |
None. |
|
ErrorMessage | string |
None. |
|
ErrorStackTrace | string |
None. |
|
TransactionId | integer |
None. |
Response Formats
application/json, text/json
Sample:
{ "Sales": [ { "TicketId": 1, "ErrorMessage": "sample string 2", "ErrorStackTrace": "sample string 3", "SalesId": 4, "SalesDate": "sample string 5", "IsValid": true, "ExcursionTransactionId": 7, "DocumentId": 8, "DocumentSeries": "sample string 9", "DocumentType": "sample string 10", "DocumentNumber": 11, "ExcursionAmount": 12.0, "TransferAmount": 13.0, "ExtraAmount": 14.0, "ExcursionVatAmount": 15.0, "TransferVatAmount": 16.0, "ExtraVatAmount": 17.0, "ExtraVatPercentage": 18.0, "ExcursionVatPercentage": 19.0, "TransferVatPercentage": 20.0, "ExcursionVatPrefix": "sample string 21", "TransferVatPrefix": "sample string 22", "ExtraVatPrefix": "sample string 23" }, { "TicketId": 1, "ErrorMessage": "sample string 2", "ErrorStackTrace": "sample string 3", "SalesId": 4, "SalesDate": "sample string 5", "IsValid": true, "ExcursionTransactionId": 7, "DocumentId": 8, "DocumentSeries": "sample string 9", "DocumentType": "sample string 10", "DocumentNumber": 11, "ExcursionAmount": 12.0, "TransferAmount": 13.0, "ExtraAmount": 14.0, "ExcursionVatAmount": 15.0, "TransferVatAmount": 16.0, "ExtraVatAmount": 17.0, "ExtraVatPercentage": 18.0, "ExcursionVatPercentage": 19.0, "TransferVatPercentage": 20.0, "ExcursionVatPrefix": "sample string 21", "TransferVatPrefix": "sample string 22", "ExtraVatPrefix": "sample string 23" } ], "ErrorMessage": "sample string 1", "ErrorStackTrace": "sample string 2", "TransactionId": 3 }
text/html
Sample:
{"Sales":[{"TicketId":1,"ErrorMessage":"sample string 2","ErrorStackTrace":"sample string 3","SalesId":4,"SalesDate":"sample string 5","IsValid":true,"ExcursionTransactionId":7,"DocumentId":8,"DocumentSeries":"sample string 9","DocumentType":"sample string 10","DocumentNumber":11,"ExcursionAmount":12.0,"TransferAmount":13.0,"ExtraAmount":14.0,"ExcursionVatAmount":15.0,"TransferVatAmount":16.0,"ExtraVatAmount":17.0,"ExtraVatPercentage":18.0,"ExcursionVatPercentage":19.0,"TransferVatPercentage":20.0,"ExcursionVatPrefix":"sample string 21","TransferVatPrefix":"sample string 22","ExtraVatPrefix":"sample string 23"},{"TicketId":1,"ErrorMessage":"sample string 2","ErrorStackTrace":"sample string 3","SalesId":4,"SalesDate":"sample string 5","IsValid":true,"ExcursionTransactionId":7,"DocumentId":8,"DocumentSeries":"sample string 9","DocumentType":"sample string 10","DocumentNumber":11,"ExcursionAmount":12.0,"TransferAmount":13.0,"ExtraAmount":14.0,"ExcursionVatAmount":15.0,"TransferVatAmount":16.0,"ExtraVatAmount":17.0,"ExtraVatPercentage":18.0,"ExcursionVatPercentage":19.0,"TransferVatPercentage":20.0,"ExcursionVatPrefix":"sample string 21","TransferVatPrefix":"sample string 22","ExtraVatPrefix":"sample string 23"}],"ErrorMessage":"sample string 1","ErrorStackTrace":"sample string 2","TransactionId":3}
application/xml, text/xml
Sample:
<MakeSaleResponseDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Mappings.Web.Dto.Bookings"> <ErrorMessage>sample string 1</ErrorMessage> <ErrorStackTrace>sample string 2</ErrorStackTrace> <Sales> <SaleResponseDTO> <DocumentId>8</DocumentId> <DocumentNumber>11</DocumentNumber> <DocumentSeries>sample string 9</DocumentSeries> <DocumentType>sample string 10</DocumentType> <ErrorMessage>sample string 2</ErrorMessage> <ErrorStackTrace>sample string 3</ErrorStackTrace> <ExcursionAmount>12</ExcursionAmount> <ExcursionTransactionId>7</ExcursionTransactionId> <ExcursionVatAmount>15</ExcursionVatAmount> <ExcursionVatPercentage>19</ExcursionVatPercentage> <ExcursionVatPrefix>sample string 21</ExcursionVatPrefix> <ExtraAmount>14</ExtraAmount> <ExtraVatAmount>17</ExtraVatAmount> <ExtraVatPercentage>18</ExtraVatPercentage> <ExtraVatPrefix>sample string 23</ExtraVatPrefix> <IsValid>true</IsValid> <SalesDate>sample string 5</SalesDate> <SalesId>4</SalesId> <TicketId>1</TicketId> <TransferAmount>13</TransferAmount> <TransferVatAmount>16</TransferVatAmount> <TransferVatPercentage>20</TransferVatPercentage> <TransferVatPrefix>sample string 22</TransferVatPrefix> </SaleResponseDTO> <SaleResponseDTO> <DocumentId>8</DocumentId> <DocumentNumber>11</DocumentNumber> <DocumentSeries>sample string 9</DocumentSeries> <DocumentType>sample string 10</DocumentType> <ErrorMessage>sample string 2</ErrorMessage> <ErrorStackTrace>sample string 3</ErrorStackTrace> <ExcursionAmount>12</ExcursionAmount> <ExcursionTransactionId>7</ExcursionTransactionId> <ExcursionVatAmount>15</ExcursionVatAmount> <ExcursionVatPercentage>19</ExcursionVatPercentage> <ExcursionVatPrefix>sample string 21</ExcursionVatPrefix> <ExtraAmount>14</ExtraAmount> <ExtraVatAmount>17</ExtraVatAmount> <ExtraVatPercentage>18</ExtraVatPercentage> <ExtraVatPrefix>sample string 23</ExtraVatPrefix> <IsValid>true</IsValid> <SalesDate>sample string 5</SalesDate> <SalesId>4</SalesId> <TicketId>1</TicketId> <TransferAmount>13</TransferAmount> <TransferVatAmount>16</TransferVatAmount> <TransferVatPercentage>20</TransferVatPercentage> <TransferVatPrefix>sample string 22</TransferVatPrefix> </SaleResponseDTO> </Sales> <TransactionId>3</TransactionId> </MakeSaleResponseDTO>