POST api/package/addServicePackage
Request Information
URI Parameters
None.
Body Parameters
ServicePackageDetailsPost| Name | Description | Type | Additional information |
|---|---|---|---|
| RepairCriteriaId | ServicePackageType |
None. |
|
| OperationType | UpdateServicePackageOperationType |
None. |
|
| ServiceId | integer |
None. |
|
| ServiceName | string |
None. |
|
| VehicleId | integer |
None. |
|
| FacilityList | Collection of FacilityInfoPost |
None. |
|
| SalePrice | decimal number |
None. |
|
| PackagePrice | decimal number |
None. |
|
| BasePriceWithoutParts | decimal number |
None. |
|
| VehicleTypeId | byte |
None. |
|
| IncludesSparePart | boolean |
None. |
|
| ServicePackageSparePartsInfo | Collection of ServicePackagePartInfo |
None. |
|
| Active | boolean |
None. |
|
| CityId | integer |
None. |
Request Formats
application/json, text/json
Sample:
{
"RepairCriteriaId": 1,
"OperationType": 1,
"ServiceId": 1,
"ServiceName": "sample string 1",
"VehicleId": 1,
"FacilityList": [
{
"FacilityId": 1,
"Description": "sample string 1"
},
{
"FacilityId": 1,
"Description": "sample string 1"
}
],
"SalePrice": 1.0,
"PackagePrice": 1.0,
"BasePriceWithoutParts": 1.0,
"VehicleTypeId": 64,
"IncludesSparePart": true,
"ServicePackageSparePartsInfo": [
{
"PartId": 1,
"ServiceId": 1,
"IsIncludedInPackage": true,
"SalePrice": 1.0,
"OriginalPrice": 1.0,
"LaborPrice": 1.0
},
{
"PartId": 1,
"ServiceId": 1,
"IsIncludedInPackage": true,
"SalePrice": 1.0,
"OriginalPrice": 1.0,
"LaborPrice": 1.0
}
],
"Active": true,
"CityId": 2
}
application/xml, text/xml
Sample:
<ServicePackageDetailsPost xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PostLibrary.ServicePackage">
<Active>true</Active>
<BasePriceWithoutParts>1</BasePriceWithoutParts>
<CityId>2</CityId>
<FacilityList>
<FacilityInfoPost>
<Description>sample string 1</Description>
<FacilityId>1</FacilityId>
</FacilityInfoPost>
<FacilityInfoPost>
<Description>sample string 1</Description>
<FacilityId>1</FacilityId>
</FacilityInfoPost>
</FacilityList>
<IncludesSparePart>true</IncludesSparePart>
<OperationType>Add</OperationType>
<PackagePrice>1</PackagePrice>
<RepairCriteriaId>Vehicle</RepairCriteriaId>
<SalePrice>1</SalePrice>
<ServiceId>1</ServiceId>
<ServiceName>sample string 1</ServiceName>
<ServicePackageSparePartsInfo>
<ServicePackagePartInfo>
<IsIncludedInPackage>true</IsIncludedInPackage>
<LaborPrice>1</LaborPrice>
<OriginalPrice>1</OriginalPrice>
<PartId>1</PartId>
<SalePrice>1</SalePrice>
<ServiceId>1</ServiceId>
</ServicePackagePartInfo>
<ServicePackagePartInfo>
<IsIncludedInPackage>true</IsIncludedInPackage>
<LaborPrice>1</LaborPrice>
<OriginalPrice>1</OriginalPrice>
<PartId>1</PartId>
<SalePrice>1</SalePrice>
<ServiceId>1</ServiceId>
</ServicePackagePartInfo>
</ServicePackageSparePartsInfo>
<VehicleId>1</VehicleId>
<VehicleTypeId>64</VehicleTypeId>
</ServicePackageDetailsPost>
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.