POST bookings/create

Authorized only.

Request Information

URI Parameters

None.

Body Parameters

BookingV4
NameDescriptionTypeAdditional information
CompanyId

integer

None.

ReservationUid

string

None.

Items

Collection of BookingItem

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
      ]
    }
  ],
  "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>
  <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>2024-11-21T02:40:56.060651-05: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>2024-11-21T02:40:56.060651-05: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

HttpResponseMessage
NameDescriptionTypeAdditional information
Version

Version

None.

Content

HttpContent

None.

StatusCode

HttpStatusCode

None.

ReasonPhrase

string

None.

Headers

Collection of Object

None.

RequestMessage

HttpRequestMessage

None.

IsSuccessStatusCode

boolean

None.