Skip to content

updateProductInventory

Miking edited this page Jul 17, 2013 · 3 revisions

Running

ThreeDeeCart::Customer.update_inventory(options)

Available Options

Bold parameters are required:

storeURL - 3dCart Store URL from which the information will be requested. i.e.: www.3dcart.com

productId - String Search for specific product id.

quantity - Number Stock quantity for the specified product.

replaceStock - Boolean Indicates if the stock should be replaced or incremented by the new quantity.

Example

ThreeDeeCart::Customer.update_inventory({storeURL: "http://www.3dcart.com", productId: "a12345", quantity: 10, replaceStock: false})
Clone this wiki locally