POST api/SparePartTracking/GetSparePartOrderPricing
Request Information
URI Parameters
None.
Body Parameters
GetSparePartOrderPricingRequest| Name | Description | Type | Additional information |
|---|---|---|---|
| UserId | integer |
None. |
|
| ReplacementType | SparePartReplacementType |
None. |
|
| Items | Collection of SparePartOrderItem |
None. |
|
| GenerateReturnLabel | boolean |
None. |
|
| GenerateSendLabel | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"UserId": 1,
"ReplacementType": 0,
"Items": [
{
"SparePartId": 1,
"Qty": 2.0,
"ReplacementType": 0
},
{
"SparePartId": 1,
"Qty": 2.0,
"ReplacementType": 0
}
],
"GenerateReturnLabel": true,
"GenerateSendLabel": true
}
text/html
Sample:
{"UserId":1,"ReplacementType":0,"Items":[{"SparePartId":1,"Qty":2.0,"ReplacementType":0},{"SparePartId":1,"Qty":2.0,"ReplacementType":0}],"GenerateReturnLabel":true,"GenerateSendLabel":true}
application/xml, text/xml
Sample:
<GetSparePartOrderPricingRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/Msa.Online.OrderbobApi.Models.SpareParts">
<GenerateReturnLabel>true</GenerateReturnLabel>
<GenerateSendLabel>true</GenerateSendLabel>
<Items>
<SparePartOrderItem>
<Qty>2</Qty>
<ReplacementType>NewPart</ReplacementType>
<SparePartId>1</SparePartId>
</SparePartOrderItem>
<SparePartOrderItem>
<Qty>2</Qty>
<ReplacementType>NewPart</ReplacementType>
<SparePartId>1</SparePartId>
</SparePartOrderItem>
</Items>
<ReplacementType>NewPart</ReplacementType>
<UserId>1</UserId>
</GetSparePartOrderPricingRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
HttpResponseMessage| Name | Description | Type | Additional information |
|---|---|---|---|
| Version | Version |
None. |
|
| Content | HttpContent |
None. |
|
| StatusCode | HttpStatusCode |
None. |
|
| ReasonPhrase | string |
None. |
|
| Headers | Collection of Object |
None. |
|
| RequestMessage | HttpRequestMessage |
None. |
|
| IsSuccessStatusCode | boolean |
None. |