POST api/ProductLine/CustomizeBook

Request Information

URI Parameters

None.

Body Parameters

BookDetailsModel
NameDescriptionTypeAdditional information
ParentEntityKey

string

None.

ProductLineId

integer

None.

PriceTypeId

integer

None.

Branches

Collection of BranchModel

None.

DeletedBranchKeys

Collection of string

None.

IsPrivateClinic

boolean

None.

Request Formats

application/json, text/json

Sample:
{
  "ParentEntityKey": "sample string 1",
  "ProductLineId": 2,
  "PriceTypeId": 3,
  "Branches": [
    {
      "BranchKey": "sample string 2",
      "NameEnglish": "sample string 3",
      "TaxIdNumber": "sample string 4",
      "CRNumber": "sample string 5",
      "AreaId": 1,
      "SpecialityGroups": [
        {
          "SpecialityGroupId": 1,
          "NumberOfRooms": 1,
          "FeesModel": {
            "Value": 1.0,
            "IsPercentage": true,
            "PaymentAttributeTypeId": 1,
            "PaymentAttributeType": "sample string 2",
            "AllowedPaymentPlans": [
              "sample string 1",
              "sample string 2"
            ]
          },
          "RoomKey": "sample string 2"
        },
        {
          "SpecialityGroupId": 1,
          "NumberOfRooms": 1,
          "FeesModel": {
            "Value": 1.0,
            "IsPercentage": true,
            "PaymentAttributeTypeId": 1,
            "PaymentAttributeType": "sample string 2",
            "AllowedPaymentPlans": [
              "sample string 1",
              "sample string 2"
            ]
          },
          "RoomKey": "sample string 2"
        }
      ],
      "BookingTypeId": 1
    },
    {
      "BranchKey": "sample string 2",
      "NameEnglish": "sample string 3",
      "TaxIdNumber": "sample string 4",
      "CRNumber": "sample string 5",
      "AreaId": 1,
      "SpecialityGroups": [
        {
          "SpecialityGroupId": 1,
          "NumberOfRooms": 1,
          "FeesModel": {
            "Value": 1.0,
            "IsPercentage": true,
            "PaymentAttributeTypeId": 1,
            "PaymentAttributeType": "sample string 2",
            "AllowedPaymentPlans": [
              "sample string 1",
              "sample string 2"
            ]
          },
          "RoomKey": "sample string 2"
        },
        {
          "SpecialityGroupId": 1,
          "NumberOfRooms": 1,
          "FeesModel": {
            "Value": 1.0,
            "IsPercentage": true,
            "PaymentAttributeTypeId": 1,
            "PaymentAttributeType": "sample string 2",
            "AllowedPaymentPlans": [
              "sample string 1",
              "sample string 2"
            ]
          },
          "RoomKey": "sample string 2"
        }
      ],
      "BookingTypeId": 1
    }
  ],
  "DeletedBranchKeys": [
    "sample string 1",
    "sample string 2"
  ],
  "IsPrivateClinic": true
}

application/xml, text/xml

Sample:
<BookDetailsModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/AccountManagement.Models">
  <Branches>
    <BranchModel>
      <AddressId>1</AddressId>
      <AreaId>1</AreaId>
      <BookingTypeId>1</BookingTypeId>
      <BranchId>1</BranchId>
      <BranchKey>sample string 2</BranchKey>
      <CRNumber>sample string 5</CRNumber>
      <IsNew>true</IsNew>
      <NameEnglish>sample string 3</NameEnglish>
      <SpecialityGroups>
        <SpecialityGroupModel>
          <FeesModel>
            <AllowedPaymentPlans xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
              <d7p1:string>sample string 1</d7p1:string>
              <d7p1:string>sample string 2</d7p1:string>
            </AllowedPaymentPlans>
            <IsPercentage>true</IsPercentage>
            <PaymentAttributeType>sample string 2</PaymentAttributeType>
            <PaymentAttributeTypeId>1</PaymentAttributeTypeId>
            <Value>1</Value>
          </FeesModel>
          <Name>sample string 3</Name>
          <NumberOfRooms>1</NumberOfRooms>
          <RoomKey>sample string 2</RoomKey>
          <SpecialityGroupId>1</SpecialityGroupId>
        </SpecialityGroupModel>
        <SpecialityGroupModel>
          <FeesModel>
            <AllowedPaymentPlans xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
              <d7p1:string>sample string 1</d7p1:string>
              <d7p1:string>sample string 2</d7p1:string>
            </AllowedPaymentPlans>
            <IsPercentage>true</IsPercentage>
            <PaymentAttributeType>sample string 2</PaymentAttributeType>
            <PaymentAttributeTypeId>1</PaymentAttributeTypeId>
            <Value>1</Value>
          </FeesModel>
          <Name>sample string 3</Name>
          <NumberOfRooms>1</NumberOfRooms>
          <RoomKey>sample string 2</RoomKey>
          <SpecialityGroupId>1</SpecialityGroupId>
        </SpecialityGroupModel>
      </SpecialityGroups>
      <TaxIdNumber>sample string 4</TaxIdNumber>
    </BranchModel>
    <BranchModel>
      <AddressId>1</AddressId>
      <AreaId>1</AreaId>
      <BookingTypeId>1</BookingTypeId>
      <BranchId>1</BranchId>
      <BranchKey>sample string 2</BranchKey>
      <CRNumber>sample string 5</CRNumber>
      <IsNew>true</IsNew>
      <NameEnglish>sample string 3</NameEnglish>
      <SpecialityGroups>
        <SpecialityGroupModel>
          <FeesModel>
            <AllowedPaymentPlans xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
              <d7p1:string>sample string 1</d7p1:string>
              <d7p1:string>sample string 2</d7p1:string>
            </AllowedPaymentPlans>
            <IsPercentage>true</IsPercentage>
            <PaymentAttributeType>sample string 2</PaymentAttributeType>
            <PaymentAttributeTypeId>1</PaymentAttributeTypeId>
            <Value>1</Value>
          </FeesModel>
          <Name>sample string 3</Name>
          <NumberOfRooms>1</NumberOfRooms>
          <RoomKey>sample string 2</RoomKey>
          <SpecialityGroupId>1</SpecialityGroupId>
        </SpecialityGroupModel>
        <SpecialityGroupModel>
          <FeesModel>
            <AllowedPaymentPlans xmlns:d7p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
              <d7p1:string>sample string 1</d7p1:string>
              <d7p1:string>sample string 2</d7p1:string>
            </AllowedPaymentPlans>
            <IsPercentage>true</IsPercentage>
            <PaymentAttributeType>sample string 2</PaymentAttributeType>
            <PaymentAttributeTypeId>1</PaymentAttributeTypeId>
            <Value>1</Value>
          </FeesModel>
          <Name>sample string 3</Name>
          <NumberOfRooms>1</NumberOfRooms>
          <RoomKey>sample string 2</RoomKey>
          <SpecialityGroupId>1</SpecialityGroupId>
        </SpecialityGroupModel>
      </SpecialityGroups>
      <TaxIdNumber>sample string 4</TaxIdNumber>
    </BranchModel>
  </Branches>
  <DeletedBranchKeys xmlns:d2p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
    <d2p1:string>sample string 1</d2p1:string>
    <d2p1:string>sample string 2</d2p1:string>
  </DeletedBranchKeys>
  <IsPrivateClinic>true</IsPrivateClinic>
  <ParentEntityKey>sample string 1</ParentEntityKey>
  <PriceTypeId>3</PriceTypeId>
  <ProductLineId>2</ProductLineId>
</BookDetailsModel>

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.