POST api/CreateBooking

Request Information

URI Parameters

None.

Body Parameters

CreateBookingVm
NameDescriptionTypeAdditional information
Date

string

None.

InventoryId

integer

None.

Type

string

None.

BookingType

string

None.

Amount

decimal number

None.

Deposit

decimal number

None.

TenureStart

string

None.

TenureEnd

string

None.

Remark

string

None.

LeadId

integer

None.

BrokeragePercentage

decimal number

None.

BrokerAmount

decimal number

None.

ExecutiveIncentivePercentage

decimal number

None.

ExecutiveIncentiveAmount

decimal number

None.

ContractPeriod

string

None.

AvailableFrom

string

None.

CustomerId

integer

None.

ProjectId

integer

None.

UnitId

integer

None.

UserId

integer

None.

FormNumber

string

None.

BookingUsers

Collection of GetBookingUserVm

None.

Request Formats

application/json, text/json

Sample:
{
  "Date": "sample string 1",
  "InventoryId": 1,
  "Type": "sample string 2",
  "BookingType": "sample string 3",
  "Amount": 4.1,
  "Deposit": 5.1,
  "TenureStart": "sample string 6",
  "TenureEnd": "sample string 7",
  "Remark": "sample string 8",
  "LeadId": 1,
  "BrokeragePercentage": 9.1,
  "BrokerAmount": 10.1,
  "ExecutiveIncentivePercentage": 11.1,
  "ExecutiveIncentiveAmount": 12.1,
  "ContractPeriod": "sample string 13",
  "AvailableFrom": "sample string 14",
  "CustomerId": 1,
  "ProjectId": 1,
  "UnitId": 1,
  "UserId": 1,
  "FormNumber": "sample string 15",
  "BookingUsers": [
    {
      "Id": 1,
      "BookingId": 1,
      "UserId": 1,
      "UserName": "sample string 2",
      "IncentivePercentage": 3.1,
      "IncentiveAmount": 4.1
    },
    {
      "Id": 1,
      "BookingId": 1,
      "UserId": 1,
      "UserName": "sample string 2",
      "IncentivePercentage": 3.1,
      "IncentiveAmount": 4.1
    }
  ]
}

application/xml, text/xml

Sample:
<CreateBookingVm xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BrokerServer.Services.Inventory">
  <Amount>4.1</Amount>
  <AvailableFrom>sample string 14</AvailableFrom>
  <BookingType>sample string 3</BookingType>
  <BookingUsers>
    <GetBookingUserVm>
      <BookingId>1</BookingId>
      <Id>1</Id>
      <IncentiveAmount>4.1</IncentiveAmount>
      <IncentivePercentage>3.1</IncentivePercentage>
      <UserId>1</UserId>
      <UserName>sample string 2</UserName>
    </GetBookingUserVm>
    <GetBookingUserVm>
      <BookingId>1</BookingId>
      <Id>1</Id>
      <IncentiveAmount>4.1</IncentiveAmount>
      <IncentivePercentage>3.1</IncentivePercentage>
      <UserId>1</UserId>
      <UserName>sample string 2</UserName>
    </GetBookingUserVm>
  </BookingUsers>
  <BrokerAmount>10.1</BrokerAmount>
  <BrokeragePercentage>9.1</BrokeragePercentage>
  <ContractPeriod>sample string 13</ContractPeriod>
  <CustomerId>1</CustomerId>
  <Date>sample string 1</Date>
  <Deposit>5.1</Deposit>
  <ExecutiveIncentiveAmount>12.1</ExecutiveIncentiveAmount>
  <ExecutiveIncentivePercentage>11.1</ExecutiveIncentivePercentage>
  <FormNumber>sample string 15</FormNumber>
  <InventoryId>1</InventoryId>
  <LeadId>1</LeadId>
  <ProjectId>1</ProjectId>
  <Remark>sample string 8</Remark>
  <TenureEnd>sample string 7</TenureEnd>
  <TenureStart>sample string 6</TenureStart>
  <Type>sample string 2</Type>
  <UnitId>1</UnitId>
  <UserId>1</UserId>
</CreateBookingVm>

application/x-www-form-urlencoded

Sample:

Failed to generate the sample for media type 'application/x-www-form-urlencoded'. Cannot use formatter 'JQueryMvcFormUrlEncodedFormatter' to write type 'CreateBookingVm'.

Response Information

Resource Description

Response
NameDescriptionTypeAdditional information
Success

boolean

None.

Message

string

None.

Description

string

None.

Data

Object

None.

Count

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "Success": true,
  "Message": "sample string 2",
  "Description": "sample string 3",
  "Data": {},
  "Count": 5
}

application/xml, text/xml

Sample:
<Response xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/BrokerServer.Models">
  <Count>5</Count>
  <Data />
  <Description>sample string 3</Description>
  <Message>sample string 2</Message>
  <Success>true</Success>
</Response>