POST api/booking/AddReplacements
Request Information
URI Parameters
None.
Body Parameters
ReplacementAndFeatureInfoName | Description | Type | Additional information |
---|---|---|---|
BookingId | integer |
None. |
|
Replacements | Collection of ReplacementInfo |
None. |
|
Feature | ShopFeatureInfo |
None. |
Request Formats
application/json, text/json
Sample:
{ "BookingId": 1, "Replacements": [ { "BookingID": 1, "ReplacementId": 1, "PartName": "sample string 1", "PartModelId": 1, "RatingId": 1, "Price": 1.0, "Count": 1, "IsGstEligible": true, "LaborPrice": 1.0, "OperationType": 1 }, { "BookingID": 1, "ReplacementId": 1, "PartName": "sample string 1", "PartModelId": 1, "RatingId": 1, "Price": 1.0, "Count": 1, "IsGstEligible": true, "LaborPrice": 1.0, "OperationType": 1 } ], "Feature": { "ShopId": 1, "FeatureId": 64, "Name": "sample string 1", "Price": 1.0 } }
application/xml, text/xml
Sample:
<ReplacementAndFeatureInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PostLibrary.Booking"> <BookingId>1</BookingId> <Feature> <FeatureId>64</FeatureId> <Name>sample string 1</Name> <Price>1</Price> <ShopId>1</ShopId> </Feature> <Replacements> <ReplacementInfo> <BookingID>1</BookingID> <Count>1</Count> <IsGstEligible>true</IsGstEligible> <LaborPrice>1</LaborPrice> <OperationType>Add</OperationType> <PartModelId>1</PartModelId> <PartName>sample string 1</PartName> <Price>1</Price> <RatingId>1</RatingId> <ReplacementId>1</ReplacementId> </ReplacementInfo> <ReplacementInfo> <BookingID>1</BookingID> <Count>1</Count> <IsGstEligible>true</IsGstEligible> <LaborPrice>1</LaborPrice> <OperationType>Add</OperationType> <PartModelId>1</PartModelId> <PartName>sample string 1</PartName> <Price>1</Price> <RatingId>1</RatingId> <ReplacementId>1</ReplacementId> </ReplacementInfo> </Replacements> </ReplacementAndFeatureInfo>
application/x-www-form-urlencoded
Sample:
Response Information
Resource Description
IHttpActionResultNone.
Response Formats
application/json, text/json, application/xml, text/xml
Sample:
Sample not available.