POST api/excursions/calculatePrice
Request Information
URI Parameters
None.
Body Parameters
Cyberlogic.eTourism.Domain.Models.Excursions.Dto.PriceCalculationRequestDTOName | Description | Type | Additional information |
---|---|---|---|
TariffId | integer |
None. |
|
CustomerId | integer |
None. |
|
ExcursionId | integer |
None. |
|
PickupPointId | integer |
None. |
|
ExcursionDate | date |
None. |
|
Adults | integer |
None. |
|
Children | integer |
None. |
Request Formats
application/json, text/json
Sample:
{ "TariffId": 1, "CustomerId": 2, "ExcursionId": 3, "PickupPointId": 4, "ExcursionDate": "2024-11-19T15:16:45.5221013+02:00", "Adults": 6, "Children": 7 }
text/html
Sample:
{"TariffId":1,"CustomerId":2,"ExcursionId":3,"PickupPointId":4,"ExcursionDate":"2024-11-19T15:16:45.5221013+02:00","Adults":6,"Children":7}
application/xml, text/xml
Sample:
<PriceCalculationRequestDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.Models.Excursions.Dto"> <Adults>6</Adults> <Children>7</Children> <CustomerId>2</CustomerId> <ExcursionDate>2024-11-19T15:16:45.5221013+02:00</ExcursionDate> <ExcursionId>3</ExcursionId> <PickupPointId>4</PickupPointId> <TariffId>1</TariffId> </PriceCalculationRequestDTO>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Cyberlogic.eTourism.Domain.Models.Excursions.Dto.ExcursionTotalPriceDTOName | Description | Type | Additional information |
---|---|---|---|
Price | decimal number |
None. |
|
CurrencyCode | string |
None. |
Response Formats
application/json, text/json
Sample:
{ "Price": 1.0, "CurrencyCode": "sample string 2" }
text/html
Sample:
{"Price":1.0,"CurrencyCode":"sample string 2"}
application/xml, text/xml
Sample:
<ExcursionTotalPriceDTO xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Cyberlogic.eTourism.Domain.Models.Excursions.Dto"> <CurrencyCode>sample string 2</CurrencyCode> <Price>1</Price> </ExcursionTotalPriceDTO>