POST api/forb2c/repair-booking

Request Information

URI Parameters

None.

Body Parameters

RepairBooking
NameDescriptionTypeAdditional information
ModelId

integer

Required

ROMId

integer

Required

RAMId

integer

Required

ColorId

integer

Required

CustomerId

string

Required

OrderId

string

None.

ServieCharge

decimal number

None.

CouponId

integer

None.

ShippingId

string

Required

ShippingName

string

Required

ShippingMobileNo

string

Required

ShippingEmailId

string

Required

ShippingAddress

string

Required

ShippingLandmark

string

Required

ShippingCity

string

Required

ShippingState

string

Required

ShippingPincode

string

Required

WorkType

string

Required

CouponName

string

None.

CouponDiscountType

string

None.

CouponAmount

decimal number

None.

CouponPercent

decimal number

None.

CouponCode

string

None.

RepairType

string

Required

SlotDate

string

Required

SlotTime

string

None.

Remark

string

None.

DeliveryCharge

decimal number

None.

TotalAmount

decimal number

Required

TotalPrice

decimal number

Required

TotalDiscount

decimal number

Required

TotalMRP

decimal number

Required

Mode

string

Required

RepairDetails

Collection of RepairbookingDetails

None.

Request Formats

application/json, text/json

Sample:
{
  "ModelId": 1,
  "ROMId": 2,
  "RAMId": 3,
  "ColorId": 4,
  "CustomerId": "sample string 5",
  "OrderId": "sample string 6",
  "ServieCharge": 7.0,
  "CouponId": 8,
  "ShippingId": "sample string 9",
  "ShippingName": "sample string 10",
  "ShippingMobileNo": "sample string 11",
  "ShippingEmailId": "sample string 12",
  "ShippingAddress": "sample string 13",
  "ShippingLandmark": "sample string 14",
  "ShippingCity": "sample string 15",
  "ShippingState": "sample string 16",
  "ShippingPincode": "sample string 17",
  "WorkType": "sample string 18",
  "CouponName": "sample string 19",
  "CouponDiscountType": "sample string 20",
  "CouponAmount": 21.0,
  "CouponPercent": 22.0,
  "CouponCode": "sample string 23",
  "RepairType": "sample string 24",
  "SlotDate": "sample string 25",
  "SlotTime": "sample string 26",
  "Remark": "sample string 27",
  "DeliveryCharge": 1.0,
  "TotalAmount": 1.0,
  "TotalPrice": 1.0,
  "TotalDiscount": 1.0,
  "TotalMRP": 1.0,
  "Mode": "sample string 28",
  "RepairDetails": [
    {
      "CustomerId": "sample string 1",
      "OrderId": "sample string 2",
      "ServiceId": 3,
      "ServiceName": "sample string 4",
      "ServiceAmount": 5.0,
      "ServiceDiscount": 6.0,
      "ServicePercent": 7
    },
    {
      "CustomerId": "sample string 1",
      "OrderId": "sample string 2",
      "ServiceId": 3,
      "ServiceName": "sample string 4",
      "ServiceAmount": 5.0,
      "ServiceDiscount": 6.0,
      "ServicePercent": 7
    }
  ]
}

application/xml, text/xml

Sample:
<RepairBooking xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/fonofy_api.Model">
  <ColorId>4</ColorId>
  <CouponAmount>21</CouponAmount>
  <CouponCode>sample string 23</CouponCode>
  <CouponDiscountType>sample string 20</CouponDiscountType>
  <CouponId>8</CouponId>
  <CouponName>sample string 19</CouponName>
  <CouponPercent>22</CouponPercent>
  <CustomerId>sample string 5</CustomerId>
  <DeliveryCharge>1</DeliveryCharge>
  <Mode>sample string 28</Mode>
  <ModelId>1</ModelId>
  <OrderId>sample string 6</OrderId>
  <RAMId>3</RAMId>
  <ROMId>2</ROMId>
  <Remark>sample string 27</Remark>
  <RepairDetails>
    <RepairbookingDetails>
      <CustomerId>sample string 1</CustomerId>
      <OrderId>sample string 2</OrderId>
      <ServiceAmount>5</ServiceAmount>
      <ServiceDiscount>6</ServiceDiscount>
      <ServiceId>3</ServiceId>
      <ServiceName>sample string 4</ServiceName>
      <ServicePercent>7</ServicePercent>
    </RepairbookingDetails>
    <RepairbookingDetails>
      <CustomerId>sample string 1</CustomerId>
      <OrderId>sample string 2</OrderId>
      <ServiceAmount>5</ServiceAmount>
      <ServiceDiscount>6</ServiceDiscount>
      <ServiceId>3</ServiceId>
      <ServiceName>sample string 4</ServiceName>
      <ServicePercent>7</ServicePercent>
    </RepairbookingDetails>
  </RepairDetails>
  <RepairType>sample string 24</RepairType>
  <ServieCharge>7</ServieCharge>
  <ShippingAddress>sample string 13</ShippingAddress>
  <ShippingCity>sample string 15</ShippingCity>
  <ShippingEmailId>sample string 12</ShippingEmailId>
  <ShippingId>sample string 9</ShippingId>
  <ShippingLandmark>sample string 14</ShippingLandmark>
  <ShippingMobileNo>sample string 11</ShippingMobileNo>
  <ShippingName>sample string 10</ShippingName>
  <ShippingPincode>sample string 17</ShippingPincode>
  <ShippingState>sample string 16</ShippingState>
  <SlotDate>sample string 25</SlotDate>
  <SlotTime>sample string 26</SlotTime>
  <TotalAmount>1</TotalAmount>
  <TotalDiscount>1</TotalDiscount>
  <TotalMRP>1</TotalMRP>
  <TotalPrice>1</TotalPrice>
  <WorkType>sample string 18</WorkType>
</RepairBooking>

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

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.