PUT products/{productid}/productsuppliers/{supplierid}

This call allows you to update a product supplier for a given Product ID and supplier ID

Request Information

URI Parameters

NameDescriptionTypeAdditional information
productid The product ID that you want to update a product supplier for integer Required
supplierid The Supplier ID that you want to update a product supplier for integer Required

Body Parameters

The Product Supplier information to update.

ProductSupplierModel
NameDescriptionTypeAdditional information
SupplierSKU The sku that the supplier uses to identifiy the product. string None.
SupplierCosts The cost of the product from the supplier decimal number None.
SupplierStockLevel The suppliers current stock level. integer None.
SupplierLeadTime The suppliers leadtime for the product integer None.
SupplierCartonQuantities The carton quanty the supplier sends of the product integer None.
Supplier The supplier details. SupplierBaseModel None.

Request Formats

application/json, text/json

Sample:
{
  "SupplierSKU": "sup1",
  "SupplierCosts": 4.5,
  "SupplierStockLevel": 12,
  "SupplierLeadTime": 2,
  "SupplierCartonQuantities": 1,
  "Supplier": {
    "SupplierID": 1,
    "Name": "Supplier 1"
  }
}

application/xml, text/xml

Sample:
<ProductSupplierModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <SupplierSKU>sup1</SupplierSKU>
  <SupplierCosts>4.50</SupplierCosts>
  <SupplierStockLevel>12</SupplierStockLevel>
  <SupplierLeadTime>2</SupplierLeadTime>
  <SupplierCartonQuantities>1</SupplierCartonQuantities>
  <Supplier>
    <SupplierID>1</SupplierID>
    <Name>Supplier 1</Name>
  </Supplier>
</ProductSupplierModel>

Response Information

Resource Description

This call allows you to update a product supplier for a given Product ID and supplier ID

ProductSupplierModel
NameDescriptionTypeAdditional information
SupplierSKU The sku that the supplier uses to identifiy the product. string None.
SupplierCosts The cost of the product from the supplier decimal number None.
SupplierStockLevel The suppliers current stock level. integer None.
SupplierLeadTime The suppliers leadtime for the product integer None.
SupplierCartonQuantities The carton quanty the supplier sends of the product integer None.
Supplier The supplier details. SupplierBaseModel None.

Response Formats

application/json, text/json

Sample:
{
  "SupplierSKU": "sup1",
  "SupplierCosts": 4.5,
  "SupplierStockLevel": 12,
  "SupplierLeadTime": 2,
  "SupplierCartonQuantities": 1,
  "Supplier": {
    "SupplierID": 1,
    "Name": "Supplier 1"
  }
}

application/xml, text/xml

Sample:
<ProductSupplierModel xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
  <SupplierSKU>sup1</SupplierSKU>
  <SupplierCosts>4.50</SupplierCosts>
  <SupplierStockLevel>12</SupplierStockLevel>
  <SupplierLeadTime>2</SupplierLeadTime>
  <SupplierCartonQuantities>1</SupplierCartonQuantities>
  <Supplier>
    <SupplierID>1</SupplierID>
    <Name>Supplier 1</Name>
  </Supplier>
</ProductSupplierModel>