POST api/ApiIntegration/SBSetMaterialPrice

Request Information

URI Parameters

None.

Body Parameters

ApiSetMaterialPrice
NameDescriptionTypeAdditional 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
NameDescriptionTypeAdditional information
ResponseCode

integer

None.

ReturnKey

globally unique identifier

None.

ResponseNote

string

None.

Response Formats

application/json, text/json

Sample:
{
  "responseCode": 1,
  "returnKey": "0b0b5ff0-b997-45c8-bcb1-f1c1f481ed32",
  "responseNote": "sample string 2"
}

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">
  <ResponseCode>1</ResponseCode>
  <ResponseNote>sample string 2</ResponseNote>
  <ReturnKey>0b0b5ff0-b997-45c8-bcb1-f1c1f481ed32</ReturnKey>
</ApiResponse>