POST products/{productid}/productsuppliers

This call allows you to create or update a product supplier for a given product id.

Request Information

URI Parameters

NameDescriptionTypeAdditional information
productid The product ID that you want to create a product supplier for integer Required

Body Parameters

ProductSupplierUpdateModelBase
NameDescriptionTypeAdditional information
Supplier SupplierBaseModel None.
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.
Priority The supplier priority Order integer None.

Request Formats

application/json, text/json

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

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: There was an error generating the XML document.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: There was an error generating the XML document.

Response Information

Resource Description

This call allows you to create or update a product supplier for a given product id.

ProductSupplierUpdateModelBase
NameDescriptionTypeAdditional information
Supplier SupplierBaseModel None.
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.
Priority The supplier priority Order integer None.

Response Formats

application/json, text/json

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

application/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'application/xml'. Exception message: There was an error generating the XML document.

text/xml

Sample:

An exception has occurred while using the formatter 'XmlMediaTypeFormatter' to generate sample for media type 'text/xml'. Exception message: There was an error generating the XML document.