Inserts a supplierStockList or
updates a current supplierStockList. | Uses your API Key and applies a mvRecordAction value on an
mvSupplierStockList object. We can insert the mvSupplierStockList object we specified using "Insert" as our
mvRecordAction. We can update a current supplierStockList using "Update". We can insert to it if it doesn't
already exist, update it if it does using "InsertOrUpdate" and we can insert new fields or update
non-empty fields of the supplierStockList using "InsertOrUpdateNonEmptyFields". Optionally, you can use
mvInsertUpdateDeleteSourceApplication when an external application ( eg Magento ) is the one
that triggers the SupplierStockUpdate call.
A. Update the one of your mvSupplierStockList objects to have the ProductStockChoise as "StockRange".
Value: {
"mvSupplierStockUpdate": {
"ProductID": "27388",
"ProductMainSupplierSKU": "ssku",
"ProductMainSupplierID": "5357",
"ProductLeadTimeChoice": "DayRange",
"ProductLeadTimeExactDate": "/Date(-62135596800000-0000)/",
"ProductLeadTimeRangeInDays": "0",
"ProductStockChoice": "StockRange",
"ProductAvailabilityExactStock": "32",
"ProductAvailabilityStockRange": "54",
"ProductSupplierPrice": "10"
},
"mvInsertUpdateDeleteSourceApplication": "Magento",
"mvRecordAction": "Update"
}
Response: {
"mvSupplierStock": true,
"ResponseStatus": {
"ErrorCode": "0"
}
}
|