PATCH products/productsuppliers/inventory-cost

This call allows to update Supplier entries for products restricted to inventory and price.

Request Information

URI Parameters

None.

Body Parameters

The collection of supplier updates you want to perform

Collection of ProductSupplierInventoryCostUpdateModel
NameDescriptionTypeAdditional information
ProductIDType The ID that you are using to perform this update SupplierProductIDTypeModel Required
Supplier SupplierBaseModel Required
SupplierStockLevel The suppliers current stock level. integer None.
SupplierCosts The cost of the product from the supplier decimal number None.

Request Formats

application/json, text/json

Sample:
[
  {
    "ProductIDType": {
      "IDType": "ID",
      "Value": "12345"
    },
    "Supplier": {
      "SupplierID": 1,
      "Name": "Supplier 1"
    },
    "SupplierStockLevel": 10,
    "SupplierCosts": 10.0
  },
  {
    "ProductIDType": {
      "IDType": "SKU",
      "Value": "SKU2"
    },
    "Supplier": {
      "SupplierID": 2,
      "Name": "Supplier 2"
    },
    "SupplierStockLevel": 10,
    "SupplierCosts": 10.0
  }
]

Response Information

Resource Description

This call allows to update Supplier entries for products restricted to inventory and price.

ProductSupplierInventoryCostUpdateModelCollectionResponse
NameDescriptionTypeAdditional information
SkippedDueToSameValue If the same value are already set on productSupplier then no needed to update Still success integer None.
TotalItemsProcessed integer None.
Successful integer None.
Failed integer None.
Responses Collection of ProductSupplierInventoryCostUpdateModelResponse None.

Response Formats

application/json, text/json

Sample:
{
  "SkippedDueToSameValue": 0,
  "TotalItemsProcessed": 3,
  "Successful": 1,
  "Failed": 2,
  "Responses": [
    {
      "SupplierUpdate": {
        "ProductIDType": {
          "IDType": "ID",
          "Value": "12345"
        },
        "Supplier": {
          "Currency": {
            "CurrencyID": 44,
            "CurrencyCode": "GBP",
            "CurrencyName": "British Pounds",
            "Symbol": "£"
          },
          "SupplierID": 1
        },
        "SupplierStockLevel": 10,
        "SupplierCosts": 10.0
      },
      "SkippedDueToSameValue": false,
      "Success": false,
      "Error": "Could not find product or you do not have permission to access it."
    },
    {
      "SupplierUpdate": {
        "ProductIDType": {
          "IDType": "SKU",
          "Value": "SKU2"
        },
        "Supplier": {
          "Currency": {
            "CurrencyID": 50,
            "CurrencyCode": "EUR",
            "CurrencyName": "Euro",
            "Symbol": "€"
          },
          "SupplierID": 2
        },
        "SupplierStockLevel": 10,
        "SupplierCosts": 10.0
      },
      "SkippedDueToSameValue": false,
      "Success": false,
      "Error": "Supplier does not exist."
    },
    {
      "SupplierUpdate": {
        "ProductIDType": {
          "IDType": "SupplierSKU",
          "Value": "SupplierSKU3"
        },
        "Supplier": {
          "Currency": {
            "CurrencyID": 100,
            "CurrencyCode": "AUD",
            "CurrencyName": "Australian Dollars",
            "Symbol": "A$"
          },
          "SupplierID": 1
        },
        "SupplierStockLevel": 10,
        "SupplierCosts": 10.0
      },
      "SkippedDueToSameValue": false,
      "Success": true
    }
  ]
}