POST api/booking/quickbook

Request Information

URI Parameters

None.

Body Parameters

QuickBookingDetails
NameDescriptionTypeAdditional information
Booking

BookingDetailInfo

None.

Location

LocationInfo

None.

SenderKey

string

None.

DistanceBound

integer

None.

ShopTypeId

integer

None.

Request Formats

application/json, text/json

Sample:
{
  "Booking": {
    "Booking": {
      "BookingID": 1,
      "UserID": 1,
      "UserName": "sample string 1",
      "ShopID": 1,
      "CityID": 1,
      "UserToken": "sample string 2",
      "MobileNumber": "sample string 3",
      "PreferredDateTime": "2024-11-22T06:40:17.0975849+00:00",
      "DateTimeOfBooking": "2024-11-22T06:40:17.0975849+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-22T06:40:17.0975849+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-22T06:40:17.0975849+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
  },
  "Location": {
    "MyLat": 1.0,
    "MyLong": 1.0,
    "MaxLat": 1.0,
    "MaxLong": 1.0,
    "MinLat": 1.0,
    "MinLong": 1.0
  },
  "SenderKey": "sample string 1",
  "DistanceBound": 2,
  "ShopTypeId": 3
}

application/xml, text/xml

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

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

Response Information

Resource Description

IHttpActionResult

None.

Response Formats

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

Sample:

Sample not available.