POST api/ApiIntegration/SBSetMaterialPrice
Request Information
URI Parameters
None.
Body Parameters
ApiSetMaterialPrice| Name | Description | Type | Additional information |
|---|---|---|---|
| PrivateApiKey | string |
None. |
|
| Material | string |
None. |
|
| MaterialPrices | Collection of ApiMaterialPriceInfo |
None. |
Request Formats
application/json, text/json
Sample:
{
"privateApiKey": "sample string 1",
"material": "sample string 2",
"materialPrices": [
{
"size": "sample string 1",
"buy": "sample string 2",
"sell": "sample string 3",
"waste": "sample string 4",
"sku": "sample string 5"
},
{
"size": "sample string 1",
"buy": "sample string 2",
"sell": "sample string 3",
"waste": "sample string 4",
"sku": "sample string 5"
}
]
}
application/xml, text/xml
Sample:
<ApiSetMaterialPrice xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StairBiz.Contracts.ViewModels">
<Material>sample string 2</Material>
<MaterialPrices>
<ApiMaterialPriceInfo>
<Buy>sample string 2</Buy>
<SKU>sample string 5</SKU>
<Sell>sample string 3</Sell>
<Size>sample string 1</Size>
<Waste>sample string 4</Waste>
</ApiMaterialPriceInfo>
<ApiMaterialPriceInfo>
<Buy>sample string 2</Buy>
<SKU>sample string 5</SKU>
<Sell>sample string 3</Sell>
<Size>sample string 1</Size>
<Waste>sample string 4</Waste>
</ApiMaterialPriceInfo>
</MaterialPrices>
<PrivateApiKey>sample string 1</PrivateApiKey>
</ApiSetMaterialPrice>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
ApiResponse| Name | Description | Type | Additional information |
|---|---|---|---|
| ResponseCode | integer |
None. |
|
| ReturnKey | globally unique identifier |
None. |
|
| ResponseNote | string |
None. |
|
| ErrorString | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"responseCode": 1,
"returnKey": "83dac7c7-8166-486c-a136-a2487171f714",
"responseNote": "sample string 2",
"errorString": "sample string 3"
}
application/xml, text/xml
Sample:
<ApiResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/StairBiz.Contracts.ViewModels"> <ErrorString>sample string 3</ErrorString> <ResponseCode>1</ResponseCode> <ResponseNote>sample string 2</ResponseNote> <ReturnKey>83dac7c7-8166-486c-a136-a2487171f714</ReturnKey> </ApiResponse>