POST api/bookings/sales/import
Imports a collection of excursion sales into the system. The transaction scope is per sale.
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. |
|
ClientEmail | 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", "ClientEmail": "sample string 15", "ManualPriced": true, "PaymentAmountCash": 17.0, "PaymentAmountCreditCard": 18.0, "TotalIncome": 19.0, "Remarks": "sample string 20", "PickupTime": "sample string 21", "RoomNumber": "sample string 22", "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": 23, "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": 25 }, { "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", "ClientEmail": "sample string 15", "ManualPriced": true, "PaymentAmountCash": 17.0, "PaymentAmountCreditCard": 18.0, "TotalIncome": 19.0, "Remarks": "sample string 20", "PickupTime": "sample string 21", "RoomNumber": "sample string 22", "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": 23, "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": 25 } ]
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","ClientEmail":"sample string 15","ManualPriced":true,"PaymentAmountCash":17.0,"PaymentAmountCreditCard":18.0,"TotalIncome":19.0,"Remarks":"sample string 20","PickupTime":"sample string 21","RoomNumber":"sample string 22","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":23,"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":25},{"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","ClientEmail":"sample string 15","ManualPriced":true,"PaymentAmountCash":17.0,"PaymentAmountCreditCard":18.0,"TotalIncome":19.0,"Remarks":"sample string 20","PickupTime":"sample string 21","RoomNumber":"sample string 22","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":23,"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":25}]
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>23</BookingId> <Children>8</Children> <ClientEmail>sample string 15</ClientEmail> <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>25</OnBehalfSellerId> <PaymentAmountCash>17</PaymentAmountCash> <PaymentAmountCreditCard>18</PaymentAmountCreditCard> <PickupPointId>6</PickupPointId> <PickupTime>sample string 21</PickupTime> <Reference> <Number>sample string 2</Number> <Series>sample string 1</Series> </Reference> <Remarks>sample string 20</Remarks> <RoomNumber>sample string 22</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>19</TotalIncome> </SaleRequestDTO> <SaleRequestDTO> <Adults>7</Adults> <BookingId>23</BookingId> <Children>8</Children> <ClientEmail>sample string 15</ClientEmail> <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>25</OnBehalfSellerId> <PaymentAmountCash>17</PaymentAmountCash> <PaymentAmountCreditCard>18</PaymentAmountCreditCard> <PickupPointId>6</PickupPointId> <PickupTime>sample string 21</PickupTime> <Reference> <Number>sample string 2</Number> <Series>sample string 1</Series> </Reference> <Remarks>sample string 20</Remarks> <RoomNumber>sample string 22</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>19</TotalIncome> </SaleRequestDTO> </ArrayOfSaleRequestDTO>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
An object with the imported SaleIds if the import is successful, the TicketIds or TicketNumbers otherwise.
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. |
|
CurrencyCode | string |
None. |
|
Scheme | string |
None. |
|
PricesPerVatPrefix | Collection of Cyberlogic.eTourism.Domain.ViewModels.Excursions.PricesPerVatPrefixViewModel |
None. |
|
UnitsTotalAmountPerVatPrefix | Collection of Cyberlogic.eTourism.Domain.ViewModels.Excursions.UnitsTotalAmountPerVatPrefixViewModel |
None. |
|
AdditionalTickets | Collection of string |
None. |
|
Remarks | string |
None. |
|
ExcursionNotes | string |
None. |
|
SellerPhone | string |
None. |
|
SellerNotes | string |
None. |
|
TaxDetails | string |
None. |
|
TaxUrl | string |
None. |
|
CroatianTaxAuthoritiesUrl | string |
None. |
|
JirCode | string |
None. |
|
ZkiCode | 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", "CurrencyCode": "sample string 26", "Scheme": "sample string 27", "PricesPerVatPrefix": [ { "VatPrefix": "sample string 1", "VatAmount": 2.0, "NetAmount": 3.0, "VatPercentage": 4.0 }, { "VatPrefix": "sample string 1", "VatAmount": 2.0, "NetAmount": 3.0, "VatPercentage": 4.0 } ], "UnitsTotalAmountPerVatPrefix": [ { "UnitType": "sample string 1", "TotalAmount": 2.0, "VatPrefix": "sample string 3" }, { "UnitType": "sample string 1", "TotalAmount": 2.0, "VatPrefix": "sample string 3" } ], "AdditionalTickets": [ "sample string 1", "sample string 2" ], "Remarks": "sample string 28", "ExcursionNotes": "sample string 29", "SellerPhone": "sample string 30", "SellerNotes": "sample string 31", "TaxDetails": "sample string 32", "TaxUrl": "sample string 33", "CroatianTaxAuthoritiesUrl": "sample string 34", "JirCode": "sample string 35", "ZkiCode": "sample string 36" }
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","CurrencyCode":"sample string 26","Scheme":"sample string 27","PricesPerVatPrefix":[{"VatPrefix":"sample string 1","VatAmount":2.0,"NetAmount":3.0,"VatPercentage":4.0},{"VatPrefix":"sample string 1","VatAmount":2.0,"NetAmount":3.0,"VatPercentage":4.0}],"UnitsTotalAmountPerVatPrefix":[{"UnitType":"sample string 1","TotalAmount":2.0,"VatPrefix":"sample string 3"},{"UnitType":"sample string 1","TotalAmount":2.0,"VatPrefix":"sample string 3"}],"AdditionalTickets":["sample string 1","sample string 2"],"Remarks":"sample string 28","ExcursionNotes":"sample string 29","SellerPhone":"sample string 30","SellerNotes":"sample string 31","TaxDetails":"sample string 32","TaxUrl":"sample string 33","CroatianTaxAuthoritiesUrl":"sample string 34","JirCode":"sample string 35","ZkiCode":"sample string 36"}
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"> <AdditionalTickets xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d2p1:string>sample string 1</d2p1:string> <d2p1:string>sample string 2</d2p1:string> </AdditionalTickets> <CroatianTaxAuthoritiesUrl>sample string 34</CroatianTaxAuthoritiesUrl> <CurrencyCode>sample string 26</CurrencyCode> <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> <ExcursionNotes>sample string 29</ExcursionNotes> <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> <JirCode>sample string 35</JirCode> <PricesPerVatPrefix xmlns:d2p1="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.ViewModels.Excursions"> <d2p1:PricesPerVatPrefixViewModel> <d2p1:NetAmount>3</d2p1:NetAmount> <d2p1:VatAmount>2</d2p1:VatAmount> <d2p1:VatPercentage>4</d2p1:VatPercentage> <d2p1:VatPrefix>sample string 1</d2p1:VatPrefix> </d2p1:PricesPerVatPrefixViewModel> <d2p1:PricesPerVatPrefixViewModel> <d2p1:NetAmount>3</d2p1:NetAmount> <d2p1:VatAmount>2</d2p1:VatAmount> <d2p1:VatPercentage>4</d2p1:VatPercentage> <d2p1:VatPrefix>sample string 1</d2p1:VatPrefix> </d2p1:PricesPerVatPrefixViewModel> </PricesPerVatPrefix> <Remarks>sample string 28</Remarks> <SalesDate>sample string 7</SalesDate> <SalesId>6</SalesId> <Scheme>sample string 27</Scheme> <SellerNotes>sample string 31</SellerNotes> <SellerPhone>sample string 30</SellerPhone> <TaxDetails>sample string 32</TaxDetails> <TaxUrl>sample string 33</TaxUrl> <TicketId>3</TicketId> <TransferAmount>15</TransferAmount> <TransferVatAmount>18</TransferVatAmount> <TransferVatPercentage>22</TransferVatPercentage> <TransferVatPrefix>sample string 24</TransferVatPrefix> <UnitsTotalAmountPerVatPrefix xmlns:d2p1="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.ViewModels.Excursions"> <d2p1:UnitsTotalAmountPerVatPrefixViewModel> <d2p1:TotalAmount>2</d2p1:TotalAmount> <d2p1:UnitType>sample string 1</d2p1:UnitType> <d2p1:VatPrefix>sample string 3</d2p1:VatPrefix> </d2p1:UnitsTotalAmountPerVatPrefixViewModel> <d2p1:UnitsTotalAmountPerVatPrefixViewModel> <d2p1:TotalAmount>2</d2p1:TotalAmount> <d2p1:UnitType>sample string 1</d2p1:UnitType> <d2p1:VatPrefix>sample string 3</d2p1:VatPrefix> </d2p1:UnitsTotalAmountPerVatPrefixViewModel> </UnitsTotalAmountPerVatPrefix> <ZkiCode>sample string 36</ZkiCode> <TicketNumber>sample string 2</TicketNumber> <TicketSeries>sample string 1</TicketSeries> </ImportSaleResponseDTO>