POST bookings/create
Authorized only.
Request Information
URI Parameters
None.
Body Parameters
BookingV4Name | Description | Type | Additional information |
---|---|---|---|
CompanyId | integer |
None. |
|
ReservationUid | string |
None. |
|
Items | Collection of BookingItem |
None. |
|
GuestCustomerInfo | CustomerOtherContactInfo |
None. |
|
PaymentInfo | ShoppingCartPayment |
None. |
Request Formats
application/json, text/json
Sample:
{ "CompanyId": 1, "ReservationUid": "sample string 2", "Items": [ { "Answers": [ { "QuestionId": 1, "AnswerId": 1, "AnswerValue": "sample string 2" }, { "QuestionId": 1, "AnswerId": 1, "AnswerValue": "sample string 2" } ], "Notes": "sample string 3", "CustomerId": 4, "ServiceId": 5, "ProviderId": 6, "AddonIds": [ 1, 2 ] }, { "Answers": [ { "QuestionId": 1, "AnswerId": 1, "AnswerValue": "sample string 2" }, { "QuestionId": 1, "AnswerId": 1, "AnswerValue": "sample string 2" } ], "Notes": "sample string 3", "CustomerId": 4, "ServiceId": 5, "ProviderId": 6, "AddonIds": [ 1, 2 ] } ], "GuestCustomerInfo": { "Customer": { "CustomerId": 1, "FirstName": "sample string 2", "LastName": "sample string 3", "Email": "sample string 4", "Gender": "sample string 5", "DateOfBirth": "2025-04-03T03:22:44.8818785-04:00", "Phone": "sample string 6", "Address": "sample string 7", "Address2": "sample string 8", "Zip": "sample string 9", "City": "sample string 10", "CountryId": 1, "StateProvinceId": 1, "ContactPreference": 1, "CustomerCode": "sample string 11", "CustomFieldValues": [ { "id": {}, "name": "sample string 2" }, { "id": {}, "name": "sample string 2" } ] }, "OtherContact": { "SubContactId": 1, "FirstName": "sample string 1", "LastName": "sample string 2", "Email": "sample string 3", "ImageUrl": "sample string 4", "ImageBase64Data": "sample string 5", "DateOfBirth": "2025-04-03T03:22:44.8818785-04:00", "Gender": "sample string 6", "Address": "sample string 7", "Address2": "sample string 8", "CellPhone": "sample string 9", "WorkPhone": "sample string 10", "City": "sample string 11", "ZipCode": "sample string 12", "StateProvinceId": 1, "CountryId": 1, "ContactPreferenceId": 1, "CustomFieldValues": [ { "id": {}, "name": "sample string 2" }, { "id": {}, "name": "sample string 2" } ], "IsSubContact": true } }, "PaymentInfo": { "PaymentMethod": "sample string 1", "Data": "sample string 2" } }
application/xml, text/xml
Sample:
<BookingV4 xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/IConnect.Domain.ViewModels.Booking"> <CompanyId>1</CompanyId> <GuestCustomerInfo xmlns:d2p1="http://schemas.datacontract.org/2004/07/IConnect.Domain.Ecommerce.Booking"> <d2p1:Customer xmlns:d3p1="http://schemas.datacontract.org/2004/07/IConnect.Domain.Ecommerce"> <d3p1:Address>sample string 7</d3p1:Address> <d3p1:Address2>sample string 8</d3p1:Address2> <d3p1:City>sample string 10</d3p1:City> <d3p1:ContactPreference>Email</d3p1:ContactPreference> <d3p1:CountryId>1</d3p1:CountryId> <d3p1:CustomFieldValues xmlns:d4p1="http://schemas.datacontract.org/2004/07/IConnect.Core"> <d4p1:JsonSimpleViewModel> <d4p1:Id /> <d4p1:Name>sample string 2</d4p1:Name> </d4p1:JsonSimpleViewModel> <d4p1:JsonSimpleViewModel> <d4p1:Id /> <d4p1:Name>sample string 2</d4p1:Name> </d4p1:JsonSimpleViewModel> </d3p1:CustomFieldValues> <d3p1:CustomerCode>sample string 11</d3p1:CustomerCode> <d3p1:CustomerId>1</d3p1:CustomerId> <d3p1:DateOfBirth>2025-04-03T03:22:44.8818785-04:00</d3p1:DateOfBirth> <d3p1:Email>sample string 4</d3p1:Email> <d3p1:FirstName>sample string 2</d3p1:FirstName> <d3p1:FormCustomizationRestrictions xmlns:d4p1="http://schemas.datacontract.org/2004/07/IConnect.Core.FormCustomization"> <d4p1:IgnoreMandatoryValidationForFieldIds xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:int>1</d5p1:int> <d5p1:int>2</d5p1:int> </d4p1:IgnoreMandatoryValidationForFieldIds> <d4p1:OnlyMandatoryValidateTheseFieldIds xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:int>1</d5p1:int> <d5p1:int>2</d5p1:int> </d4p1:OnlyMandatoryValidateTheseFieldIds> </d3p1:FormCustomizationRestrictions> <d3p1:Gender>sample string 5</d3p1:Gender> <d3p1:LastName>sample string 3</d3p1:LastName> <d3p1:Phone>sample string 6</d3p1:Phone> <d3p1:StateProvinceId>1</d3p1:StateProvinceId> <d3p1:Zip>sample string 9</d3p1:Zip> </d2p1:Customer> <d2p1:OtherContact xmlns:d3p1="http://schemas.datacontract.org/2004/07/IConnect.Domain.Ecommerce"> <d3p1:Address>sample string 7</d3p1:Address> <d3p1:Address2>sample string 8</d3p1:Address2> <d3p1:CellPhone>sample string 9</d3p1:CellPhone> <d3p1:City>sample string 11</d3p1:City> <d3p1:ContactPreferenceId>1</d3p1:ContactPreferenceId> <d3p1:CountryId>1</d3p1:CountryId> <d3p1:CustomFieldValues xmlns:d4p1="http://schemas.datacontract.org/2004/07/IConnect.Core"> <d4p1:JsonSimpleViewModel> <d4p1:Id /> <d4p1:Name>sample string 2</d4p1:Name> </d4p1:JsonSimpleViewModel> <d4p1:JsonSimpleViewModel> <d4p1:Id /> <d4p1:Name>sample string 2</d4p1:Name> </d4p1:JsonSimpleViewModel> </d3p1:CustomFieldValues> <d3p1:DateOfBirth>2025-04-03T03:22:44.8818785-04:00</d3p1:DateOfBirth> <d3p1:Email>sample string 3</d3p1:Email> <d3p1:FirstName>sample string 1</d3p1:FirstName> <d3p1:FormCustomizationRestrictions xmlns:d4p1="http://schemas.datacontract.org/2004/07/IConnect.Core.FormCustomization"> <d4p1:IgnoreMandatoryValidationForFieldIds xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:int>1</d5p1:int> <d5p1:int>2</d5p1:int> </d4p1:IgnoreMandatoryValidationForFieldIds> <d4p1:OnlyMandatoryValidateTheseFieldIds xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:int>1</d5p1:int> <d5p1:int>2</d5p1:int> </d4p1:OnlyMandatoryValidateTheseFieldIds> </d3p1:FormCustomizationRestrictions> <d3p1:Gender>sample string 6</d3p1:Gender> <d3p1:ImageBase64Data>sample string 5</d3p1:ImageBase64Data> <d3p1:ImageUrl>sample string 4</d3p1:ImageUrl> <d3p1:IsSubContact>true</d3p1:IsSubContact> <d3p1:LastName>sample string 2</d3p1:LastName> <d3p1:LeadSourceId>1</d3p1:LeadSourceId> <d3p1:ServiceProviderId>1</d3p1:ServiceProviderId> <d3p1:StateProvinceId>1</d3p1:StateProvinceId> <d3p1:SubContactId>1</d3p1:SubContactId> <d3p1:WorkPhone>sample string 10</d3p1:WorkPhone> <d3p1:ZipCode>sample string 12</d3p1:ZipCode> </d2p1:OtherContact> </GuestCustomerInfo> <Items> <BookingItem> <AddonIds xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:int>1</d4p1:int> <d4p1:int>2</d4p1:int> </AddonIds> <AvailableProviderIds xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:int>1</d4p1:int> <d4p1:int>2</d4p1:int> </AvailableProviderIds> <CustomerId>4</CustomerId> <EmployeePreference>true</EmployeePreference> <EmployeeServiceId>7</EmployeeServiceId> <ProviderId>6</ProviderId> <ServiceId>5</ServiceId> <Answers> <Answer> <AnswerId>1</AnswerId> <AnswerValue>sample string 2</AnswerValue> <QuestionId>1</QuestionId> </Answer> <Answer> <AnswerId>1</AnswerId> <AnswerValue>sample string 2</AnswerValue> <QuestionId>1</QuestionId> </Answer> </Answers> <Notes>sample string 3</Notes> <ServiceTime>2</ServiceTime> <Start>2025-04-03T03:22:44.8818785-04:00</Start> </BookingItem> <BookingItem> <AddonIds xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:int>1</d4p1:int> <d4p1:int>2</d4p1:int> </AddonIds> <AvailableProviderIds xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d4p1:int>1</d4p1:int> <d4p1:int>2</d4p1:int> </AvailableProviderIds> <CustomerId>4</CustomerId> <EmployeePreference>true</EmployeePreference> <EmployeeServiceId>7</EmployeeServiceId> <ProviderId>6</ProviderId> <ServiceId>5</ServiceId> <Answers> <Answer> <AnswerId>1</AnswerId> <AnswerValue>sample string 2</AnswerValue> <QuestionId>1</QuestionId> </Answer> <Answer> <AnswerId>1</AnswerId> <AnswerValue>sample string 2</AnswerValue> <QuestionId>1</QuestionId> </Answer> </Answers> <Notes>sample string 3</Notes> <ServiceTime>2</ServiceTime> <Start>2025-04-03T03:22:44.8818785-04:00</Start> </BookingItem> </Items> <PaymentInfo xmlns:d2p1="http://schemas.datacontract.org/2004/07/IConnect.Domain.Ecommerce"> <d2p1:Data>sample string 2</d2p1:Data> <d2p1:PaymentMethodRaw>sample string 1</d2p1:PaymentMethodRaw> </PaymentInfo> <ReservationUid>sample string 2</ReservationUid> </BookingV4>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessageName | Description | Type | Additional information |
---|---|---|---|
Version | Version |
None. |
|
Content | HttpContent |
None. |
|
StatusCode | HttpStatusCode |
None. |
|
ReasonPhrase | string |
None. |
|
Headers | Collection of Object |
None. |
|
RequestMessage | HttpRequestMessage |
None. |
|
IsSuccessStatusCode | boolean |
None. |