POST api/OTA/CreateReservation
Create a new unconfirmed reservation
Request Information
URI Parameters
None.
Body Parameters
OTAReservationName | Description | Type | Additional information |
---|---|---|---|
channel | string |
None. |
|
SiteReservations | Collection of OTASiteReservation |
None. |
|
Customer | OTACustomer |
None. |
|
Fields | Collection of OTAField |
None. |
|
Comments | string |
Max length: 1000 |
Request Formats
application/json, text/json
Sample:
{ "channel": "sample string 1", "SiteReservations": [ { "Arrival": "2025-03-17T23:24:58.0818544+00:00", "Departure": "2025-03-17T23:24:58.0818544+00:00", "SiteId": 3, "NumAdults": 1, "NumChildren": 1, "NumSeniors": 1, "NumInfants": 1, "NumPets": 1, "PetDescriptions": "sample string 4", "NumVehicles": 1, "NumTrailers": 1, "Rig": { "TypeId": 1, "Length": 1, "Year": 1, "Model": "sample string 2", "Color": "sample string 3", "LicenseState": "sample string 4", "LicenseNumber": "sample string 5" } }, { "Arrival": "2025-03-17T23:24:58.0818544+00:00", "Departure": "2025-03-17T23:24:58.0818544+00:00", "SiteId": 3, "NumAdults": 1, "NumChildren": 1, "NumSeniors": 1, "NumInfants": 1, "NumPets": 1, "PetDescriptions": "sample string 4", "NumVehicles": 1, "NumTrailers": 1, "Rig": { "TypeId": 1, "Length": 1, "Year": 1, "Model": "sample string 2", "Color": "sample string 3", "LicenseState": "sample string 4", "LicenseNumber": "sample string 5" } } ], "Customer": { "FirstName": "sample string 1", "LastName": "sample string 2", "HomePhone": "sample string 3", "MobilePhone": "sample string 4", "EmailAddress": "sample string 5", "DriversLicense": "sample string 6", "Fields": [ { "FieldTypeId": 1, "Value": "sample string 2" }, { "FieldTypeId": 1, "Value": "sample string 2" } ] }, "Fields": [ { "FieldTypeId": 1, "Value": "sample string 2" }, { "FieldTypeId": 1, "Value": "sample string 2" } ], "Comments": "sample string 2" }
application/xml, text/xml
Sample:
<OTAReservation xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CGA.Web.API.Models"> <Comments>sample string 2</Comments> <Customer> <DriversLicense>sample string 6</DriversLicense> <EmailAddress>sample string 5</EmailAddress> <Fields> <OTAField> <FieldTypeId>1</FieldTypeId> <Value>sample string 2</Value> </OTAField> <OTAField> <FieldTypeId>1</FieldTypeId> <Value>sample string 2</Value> </OTAField> </Fields> <FirstName>sample string 1</FirstName> <HomePhone>sample string 3</HomePhone> <LastName>sample string 2</LastName> <MobilePhone>sample string 4</MobilePhone> </Customer> <Fields> <OTAField> <FieldTypeId>1</FieldTypeId> <Value>sample string 2</Value> </OTAField> <OTAField> <FieldTypeId>1</FieldTypeId> <Value>sample string 2</Value> </OTAField> </Fields> <SiteReservations> <OTASiteReservation> <Arrival>2025-03-17T23:24:58.0818544+00:00</Arrival> <Departure>2025-03-17T23:24:58.0818544+00:00</Departure> <NumAdults>1</NumAdults> <NumChildren>1</NumChildren> <NumInfants>1</NumInfants> <NumPets>1</NumPets> <NumSeniors>1</NumSeniors> <NumTrailers>1</NumTrailers> <NumVehicles>1</NumVehicles> <PetDescriptions>sample string 4</PetDescriptions> <Rig> <Color>sample string 3</Color> <Length>1</Length> <LicenseNumber>sample string 5</LicenseNumber> <LicenseState>sample string 4</LicenseState> <Model>sample string 2</Model> <TypeId>1</TypeId> <Year>1</Year> </Rig> <SiteId>3</SiteId> </OTASiteReservation> <OTASiteReservation> <Arrival>2025-03-17T23:24:58.0818544+00:00</Arrival> <Departure>2025-03-17T23:24:58.0818544+00:00</Departure> <NumAdults>1</NumAdults> <NumChildren>1</NumChildren> <NumInfants>1</NumInfants> <NumPets>1</NumPets> <NumSeniors>1</NumSeniors> <NumTrailers>1</NumTrailers> <NumVehicles>1</NumVehicles> <PetDescriptions>sample string 4</PetDescriptions> <Rig> <Color>sample string 3</Color> <Length>1</Length> <LicenseNumber>sample string 5</LicenseNumber> <LicenseState>sample string 4</LicenseState> <Model>sample string 2</Model> <TypeId>1</TypeId> <Year>1</Year> </Rig> <SiteId>3</SiteId> </OTASiteReservation> </SiteReservations> <channel>sample string 1</channel> </OTAReservation>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
ReservationId
OTAReservationSummaryName | Description | Type | Additional information |
---|---|---|---|
ReservationId | integer |
None. |
|
Pricing | PricingVM |
None. |
Response Formats
application/json, text/json
Sample:
{ "ReservationId": 1, "Pricing": { "PriceTotal": 1.0, "GrandTotal": 2.0, "Tax": 3.0, "Rates": [ { "Date": "2025-03-17T23:24:58.0974814+00:00", "BaseRate": 2.0, "ExternalMessage": "sample string 3", "Frequency": 0, "RateAdjustments": [ { "Amount": 1.0, "Description": "sample string 2", "ExternalMessage": "sample string 3", "AdjustmentType": 0, "CalculatedAmount": 4.0, "CombineWithRate": true }, { "Amount": 1.0, "Description": "sample string 2", "ExternalMessage": "sample string 3", "AdjustmentType": 0, "CalculatedAmount": 4.0, "CombineWithRate": true } ], "Fees": [ { "Amount": 1.0, "Description": "sample string 2", "InternalMessage": "sample string 3", "ExternalMessage": "sample string 4", "Date": "2025-03-17T23:24:58.0974814+00:00", "Quantity": 1 }, { "Amount": 1.0, "Description": "sample string 2", "InternalMessage": "sample string 3", "ExternalMessage": "sample string 4", "Date": "2025-03-17T23:24:58.0974814+00:00", "Quantity": 1 } ], "RateTotal": 4.0 }, { "Date": "2025-03-17T23:24:58.0974814+00:00", "BaseRate": 2.0, "ExternalMessage": "sample string 3", "Frequency": 0, "RateAdjustments": [ { "Amount": 1.0, "Description": "sample string 2", "ExternalMessage": "sample string 3", "AdjustmentType": 0, "CalculatedAmount": 4.0, "CombineWithRate": true }, { "Amount": 1.0, "Description": "sample string 2", "ExternalMessage": "sample string 3", "AdjustmentType": 0, "CalculatedAmount": 4.0, "CombineWithRate": true } ], "Fees": [ { "Amount": 1.0, "Description": "sample string 2", "InternalMessage": "sample string 3", "ExternalMessage": "sample string 4", "Date": "2025-03-17T23:24:58.0974814+00:00", "Quantity": 1 }, { "Amount": 1.0, "Description": "sample string 2", "InternalMessage": "sample string 3", "ExternalMessage": "sample string 4", "Date": "2025-03-17T23:24:58.0974814+00:00", "Quantity": 1 } ], "RateTotal": 4.0 } ], "Fees": [ { "Amount": 1.0, "Description": "sample string 2", "InternalMessage": "sample string 3", "ExternalMessage": "sample string 4", "Date": "2025-03-17T23:24:58.0974814+00:00", "Quantity": 1 }, { "Amount": 1.0, "Description": "sample string 2", "InternalMessage": "sample string 3", "ExternalMessage": "sample string 4", "Date": "2025-03-17T23:24:58.0974814+00:00", "Quantity": 1 } ], "Credits": [ { "Amount": 1.0, "Description": "sample string 2", "InternalMessage": "sample string 3", "ExternalMessage": "sample string 4", "Date": "2025-03-17T23:24:58.0974814+00:00" }, { "Amount": 1.0, "Description": "sample string 2", "InternalMessage": "sample string 3", "ExternalMessage": "sample string 4", "Date": "2025-03-17T23:24:58.0974814+00:00" } ], "AddOns": [ { "AddOnTypeOptionId": 1, "AddOnTypeId": 1, "AllowOnline": true, "IsActive": true, "Name": "sample string 4", "Value": "sample string 5", "Amount": 6.0, "TaxAmount": 7.0, "Date": "2025-03-17T23:24:58.0974814+00:00", "Quantity": 9, "DisplayQuantity": 10, "DisplayAmountEach": 11.0 }, { "AddOnTypeOptionId": 1, "AddOnTypeId": 1, "AllowOnline": true, "IsActive": true, "Name": "sample string 4", "Value": "sample string 5", "Amount": 6.0, "TaxAmount": 7.0, "Date": "2025-03-17T23:24:58.0974814+00:00", "Quantity": 9, "DisplayQuantity": 10, "DisplayAmountEach": 11.0 } ], "Surcharges": [ { "Date": "2025-03-17T23:24:58.0974814+00:00", "Amount": 2.0, "InternalMessage": "sample string 3", "ExternalMessage": "sample string 4", "IsRefunded": true }, { "Date": "2025-03-17T23:24:58.0974814+00:00", "Amount": 2.0, "InternalMessage": "sample string 3", "ExternalMessage": "sample string 4", "IsRefunded": true } ] } }
application/xml, text/xml
Sample:
<OTAReservationSummary xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/CGA.Web.API.Models"> <Pricing> <AddOns> <AddOnVM> <AddOnTypeId>1</AddOnTypeId> <AddOnTypeOptionId>1</AddOnTypeOptionId> <AllowOnline>true</AllowOnline> <Amount>6</Amount> <Date>2025-03-17T23:24:58.0974814+00:00</Date> <DisplayAmountEach>11</DisplayAmountEach> <DisplayQuantity>10</DisplayQuantity> <IsActive>true</IsActive> <Name>sample string 4</Name> <Quantity>9</Quantity> <TaxAmount>7</TaxAmount> <Value>sample string 5</Value> </AddOnVM> <AddOnVM> <AddOnTypeId>1</AddOnTypeId> <AddOnTypeOptionId>1</AddOnTypeOptionId> <AllowOnline>true</AllowOnline> <Amount>6</Amount> <Date>2025-03-17T23:24:58.0974814+00:00</Date> <DisplayAmountEach>11</DisplayAmountEach> <DisplayQuantity>10</DisplayQuantity> <IsActive>true</IsActive> <Name>sample string 4</Name> <Quantity>9</Quantity> <TaxAmount>7</TaxAmount> <Value>sample string 5</Value> </AddOnVM> </AddOns> <Credits> <CreditVM> <Amount>1</Amount> <Date>2025-03-17T23:24:58.0974814+00:00</Date> <Description>sample string 2</Description> <ExternalMessage>sample string 4</ExternalMessage> <InternalMessage>sample string 3</InternalMessage> </CreditVM> <CreditVM> <Amount>1</Amount> <Date>2025-03-17T23:24:58.0974814+00:00</Date> <Description>sample string 2</Description> <ExternalMessage>sample string 4</ExternalMessage> <InternalMessage>sample string 3</InternalMessage> </CreditVM> </Credits> <Fees> <FeeVM> <Amount>1</Amount> <Date>2025-03-17T23:24:58.0974814+00:00</Date> <Description>sample string 2</Description> <ExternalMessage>sample string 4</ExternalMessage> <InternalMessage>sample string 3</InternalMessage> <Quantity>1</Quantity> </FeeVM> <FeeVM> <Amount>1</Amount> <Date>2025-03-17T23:24:58.0974814+00:00</Date> <Description>sample string 2</Description> <ExternalMessage>sample string 4</ExternalMessage> <InternalMessage>sample string 3</InternalMessage> <Quantity>1</Quantity> </FeeVM> </Fees> <GrandTotal>2</GrandTotal> <PriceTotal>1</PriceTotal> <Rates> <RateVM> <BaseRate>2</BaseRate> <Date>2025-03-17T23:24:58.0974814+00:00</Date> <ExternalMessage>sample string 3</ExternalMessage> <Fees> <FeeVM> <Amount>1</Amount> <Date>2025-03-17T23:24:58.0974814+00:00</Date> <Description>sample string 2</Description> <ExternalMessage>sample string 4</ExternalMessage> <InternalMessage>sample string 3</InternalMessage> <Quantity>1</Quantity> </FeeVM> <FeeVM> <Amount>1</Amount> <Date>2025-03-17T23:24:58.0974814+00:00</Date> <Description>sample string 2</Description> <ExternalMessage>sample string 4</ExternalMessage> <InternalMessage>sample string 3</InternalMessage> <Quantity>1</Quantity> </FeeVM> </Fees> <Frequency>Hourly</Frequency> <RateAdjustments> <RateAdjustmentVM> <AdjustmentType>Dollar</AdjustmentType> <Amount>1</Amount> <CalculatedAmount>4</CalculatedAmount> <CombineWithRate>true</CombineWithRate> <Description>sample string 2</Description> <ExternalMessage>sample string 3</ExternalMessage> </RateAdjustmentVM> <RateAdjustmentVM> <AdjustmentType>Dollar</AdjustmentType> <Amount>1</Amount> <CalculatedAmount>4</CalculatedAmount> <CombineWithRate>true</CombineWithRate> <Description>sample string 2</Description> <ExternalMessage>sample string 3</ExternalMessage> </RateAdjustmentVM> </RateAdjustments> <RateTotal>4</RateTotal> </RateVM> <RateVM> <BaseRate>2</BaseRate> <Date>2025-03-17T23:24:58.0974814+00:00</Date> <ExternalMessage>sample string 3</ExternalMessage> <Fees> <FeeVM> <Amount>1</Amount> <Date>2025-03-17T23:24:58.0974814+00:00</Date> <Description>sample string 2</Description> <ExternalMessage>sample string 4</ExternalMessage> <InternalMessage>sample string 3</InternalMessage> <Quantity>1</Quantity> </FeeVM> <FeeVM> <Amount>1</Amount> <Date>2025-03-17T23:24:58.0974814+00:00</Date> <Description>sample string 2</Description> <ExternalMessage>sample string 4</ExternalMessage> <InternalMessage>sample string 3</InternalMessage> <Quantity>1</Quantity> </FeeVM> </Fees> <Frequency>Hourly</Frequency> <RateAdjustments> <RateAdjustmentVM> <AdjustmentType>Dollar</AdjustmentType> <Amount>1</Amount> <CalculatedAmount>4</CalculatedAmount> <CombineWithRate>true</CombineWithRate> <Description>sample string 2</Description> <ExternalMessage>sample string 3</ExternalMessage> </RateAdjustmentVM> <RateAdjustmentVM> <AdjustmentType>Dollar</AdjustmentType> <Amount>1</Amount> <CalculatedAmount>4</CalculatedAmount> <CombineWithRate>true</CombineWithRate> <Description>sample string 2</Description> <ExternalMessage>sample string 3</ExternalMessage> </RateAdjustmentVM> </RateAdjustments> <RateTotal>4</RateTotal> </RateVM> </Rates> <Surcharges> <PaymentSurchargeVM> <Amount>2</Amount> <Date>2025-03-17T23:24:58.0974814+00:00</Date> <ExternalMessage>sample string 4</ExternalMessage> <InternalMessage>sample string 3</InternalMessage> <IsRefunded>true</IsRefunded> </PaymentSurchargeVM> <PaymentSurchargeVM> <Amount>2</Amount> <Date>2025-03-17T23:24:58.0974814+00:00</Date> <ExternalMessage>sample string 4</ExternalMessage> <InternalMessage>sample string 3</InternalMessage> <IsRefunded>true</IsRefunded> </PaymentSurchargeVM> </Surcharges> <Tax>3</Tax> </Pricing> <ReservationId>1</ReservationId> </OTAReservationSummary>