PUT api/booking/updatebooking?notifyUser={notifyUser}

Request Information

URI Parameters

NameDescriptionTypeAdditional information
notifyUser

boolean

Required

Body Parameters

BookingDetailInfo
NameDescriptionTypeAdditional information
Booking

BookingBaseInfo

None.

BookingFacilities

Collection of BookingFacilityInfo

None.

ReferralCode

string

None.

BookingInspectionRating

Collection of BookingInspectionRatingPost

None.

BookingSpareParts

Collection of BookingSparePartBasicInfo

None.

ServicePackageType

ServicePackageType

None.

DebitPointsManually

boolean

None.

AmountToDebit

decimal number

None.

Request Formats

application/json, text/json

Sample:
{
  "Booking": {
    "BookingID": 1,
    "UserID": 1,
    "UserName": "sample string 1",
    "ShopID": 1,
    "CityID": 1,
    "UserToken": "sample string 2",
    "MobileNumber": "sample string 3",
    "PreferredDateTime": "2024-11-21T07:34:47.8180031+00:00",
    "DateTimeOfBooking": "2024-11-21T07:34:47.8189963+00:00",
    "FeatureID": 64,
    "BrandID": 1,
    "VehicleID": 1,
    "RegistrationNumber": "sample string 4",
    "ModelYear": "sample string 5",
    "PreferredAddress": "sample string 6",
    "Bill": 1.0,
    "StatusID": 64,
    "FromTimeSlot": "00:00:00.1234567",
    "ToTimeSlot": "00:00:00.1234567",
    "Latitude": 1.0,
    "Longitude": 1.0,
    "PaymentId": 1,
    "DateTimeOfStatusChange": "2024-11-21T07:34:47.8199952+00:00",
    "BasePrice": 1.0,
    "SpotMechShare": 1.0,
    "BookingPlatform": "sample string 7",
    "Description": "sample string 8",
    "Distance": 1.0,
    "TransactionStatusCode": "sample string 9",
    "StatusStageId": 1,
    "DateTimeOfDelivery": "2024-11-21T07:34:47.8199952+00:00",
    "OdometerStartReading": "sample string 10",
    "OdometerEndReading": "sample string 11",
    "VehicleIdentificationNo": "sample string 12",
    "ChassisNo": "sample string 13",
    "EngineNo": "sample string 14",
    "NextServiceKmReading": "sample string 15",
    "JobSheetPdfUrl": "sample string 16",
    "BillPdfUrl": "sample string 17"
  },
  "BookingFacilities": [
    {
      "BookingID": 1,
      "ServiceID": 1,
      "FacilityIDs": [
        1,
        1
      ],
      "RepairPackageId": 1
    },
    {
      "BookingID": 1,
      "ServiceID": 1,
      "FacilityIDs": [
        1,
        1
      ],
      "RepairPackageId": 1
    }
  ],
  "ReferralCode": "sample string 1",
  "BookingInspectionRating": [
    {
      "BookingInspectionId": 1,
      "BookingId": 1,
      "InspectionPointId": 1,
      "RatingId": 1,
      "Price": 1.0,
      "Quantity": 64,
      "LabourPrice": 1.0,
      "PartModelId": 1,
      "OperationType": 1,
      "IsPartOfPackage": true
    },
    {
      "BookingInspectionId": 1,
      "BookingId": 1,
      "InspectionPointId": 1,
      "RatingId": 1,
      "Price": 1.0,
      "Quantity": 64,
      "LabourPrice": 1.0,
      "PartModelId": 1,
      "OperationType": 1,
      "IsPartOfPackage": true
    }
  ],
  "BookingSpareParts": [
    {
      "SparePartInfo": {
        "PartId": 1,
        "PartQuotedPrice": 1.0,
        "LaborQuotedPrice": 1.0
      },
      "Quantity": 1,
      "IsIncludedInPackage": true
    },
    {
      "SparePartInfo": {
        "PartId": 1,
        "PartQuotedPrice": 1.0,
        "LaborQuotedPrice": 1.0
      },
      "Quantity": 1,
      "IsIncludedInPackage": true
    }
  ],
  "ServicePackageType": 1,
  "DebitPointsManually": true,
  "AmountToDebit": 1.0
}

application/xml, text/xml

Sample:
<BookingDetailInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PostLibrary.Booking">
  <AmountToDebit>1</AmountToDebit>
  <Booking>
    <BasePrice>1</BasePrice>
    <Bill>1</Bill>
    <BillPdfUrl>sample string 17</BillPdfUrl>
    <BookingID>1</BookingID>
    <BookingPlatform>sample string 7</BookingPlatform>
    <BrandID>1</BrandID>
    <ChassisNo>sample string 13</ChassisNo>
    <CityID>1</CityID>
    <DateTimeOfBooking>2024-11-21T07:34:47.8189963+00:00</DateTimeOfBooking>
    <DateTimeOfDelivery>2024-11-21T07:34:47.8199952+00:00</DateTimeOfDelivery>
    <DateTimeOfStatusChange>2024-11-21T07:34:47.8199952+00:00</DateTimeOfStatusChange>
    <Description>sample string 8</Description>
    <Distance>1</Distance>
    <EngineNo>sample string 14</EngineNo>
    <FeatureID>64</FeatureID>
    <FromTimeSlot>PT0.1234567S</FromTimeSlot>
    <JobSheetPdfUrl>sample string 16</JobSheetPdfUrl>
    <Latitude>1</Latitude>
    <Longitude>1</Longitude>
    <MobileNumber>sample string 3</MobileNumber>
    <ModelYear>sample string 5</ModelYear>
    <NextServiceKmReading>sample string 15</NextServiceKmReading>
    <OdometerEndReading>sample string 11</OdometerEndReading>
    <OdometerStartReading>sample string 10</OdometerStartReading>
    <PaymentId>1</PaymentId>
    <PreferredAddress>sample string 6</PreferredAddress>
    <PreferredDateTime>2024-11-21T07:34:47.8180031+00:00</PreferredDateTime>
    <RegistrationNumber>sample string 4</RegistrationNumber>
    <ShopID>1</ShopID>
    <SpotMechShare>1</SpotMechShare>
    <StatusID>64</StatusID>
    <StatusStageId>1</StatusStageId>
    <ToTimeSlot>PT0.1234567S</ToTimeSlot>
    <TransactionStatusCode>sample string 9</TransactionStatusCode>
    <UserID>1</UserID>
    <UserName>sample string 1</UserName>
    <UserToken>sample string 2</UserToken>
    <VehicleID>1</VehicleID>
    <VehicleIdentificationNo>sample string 12</VehicleIdentificationNo>
  </Booking>
  <BookingFacilities>
    <BookingFacilityInfo>
      <BookingID>1</BookingID>
      <FacilityIDs xmlns:d4p1="http://schemas.datacontract.org/2004/07/System">
        <d4p1:int>1</d4p1:int>
        <d4p1:int>1</d4p1:int>
      </FacilityIDs>
      <RepairPackageId>1</RepairPackageId>
      <ServiceID>1</ServiceID>
    </BookingFacilityInfo>
    <BookingFacilityInfo>
      <BookingID>1</BookingID>
      <FacilityIDs xmlns:d4p1="http://schemas.datacontract.org/2004/07/System">
        <d4p1:int>1</d4p1:int>
        <d4p1:int>1</d4p1:int>
      </FacilityIDs>
      <RepairPackageId>1</RepairPackageId>
      <ServiceID>1</ServiceID>
    </BookingFacilityInfo>
  </BookingFacilities>
  <BookingInspectionRating>
    <BookingInspectionRatingPost>
      <BookingId>1</BookingId>
      <BookingInspectionId>1</BookingInspectionId>
      <InspectionPointId>1</InspectionPointId>
      <IsPartOfPackage>true</IsPartOfPackage>
      <LabourPrice>1</LabourPrice>
      <OperationType>Add</OperationType>
      <PartModelId>1</PartModelId>
      <Price>1</Price>
      <Quantity>64</Quantity>
      <RatingId>1</RatingId>
    </BookingInspectionRatingPost>
    <BookingInspectionRatingPost>
      <BookingId>1</BookingId>
      <BookingInspectionId>1</BookingInspectionId>
      <InspectionPointId>1</InspectionPointId>
      <IsPartOfPackage>true</IsPartOfPackage>
      <LabourPrice>1</LabourPrice>
      <OperationType>Add</OperationType>
      <PartModelId>1</PartModelId>
      <Price>1</Price>
      <Quantity>64</Quantity>
      <RatingId>1</RatingId>
    </BookingInspectionRatingPost>
  </BookingInspectionRating>
  <BookingSpareParts>
    <BookingSparePartBasicInfo>
      <IsIncludedInPackage>true</IsIncludedInPackage>
      <Quantity>1</Quantity>
      <SparePartInfo>
        <LaborQuotedPrice>1</LaborQuotedPrice>
        <PartId>1</PartId>
        <PartQuotedPrice>1</PartQuotedPrice>
      </SparePartInfo>
    </BookingSparePartBasicInfo>
    <BookingSparePartBasicInfo>
      <IsIncludedInPackage>true</IsIncludedInPackage>
      <Quantity>1</Quantity>
      <SparePartInfo>
        <LaborQuotedPrice>1</LaborQuotedPrice>
        <PartId>1</PartId>
        <PartQuotedPrice>1</PartQuotedPrice>
      </SparePartInfo>
    </BookingSparePartBasicInfo>
  </BookingSpareParts>
  <DebitPointsManually>true</DebitPointsManually>
  <ReferralCode>sample string 1</ReferralCode>
  <ServicePackageType>Vehicle</ServicePackageType>
</BookingDetailInfo>

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 'BookingDetailInfo'.

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

application/json, text/json, application/xml, text/xml

Sample:

Sample not available.