TOP

Update Inventory()

Part Of: Inventory Webservice 3.0

WSDL:

https://webservices.vin65.com/V300/InventoryService.cfc?wsdl

Australian URL:

https://webservices.aus.vin65.com/V300/InventoryService.cfc?wsdl

Description:

Use the UpdateInventory() function to update the inventory of a SKU in Vin65.

Parameters:

Attribute Data Type Default Description
WebsiteID UUID*   Only required for Enterprise Webservices
UUID of the Vin65 Website
SKU String 50*    
CurrentInventory Integer*    
InventoryPool String 50*   Uses default pool if neither and InventoryPool or InventoryPoolID is specificed.
InventoryPoolID UUID*   Uses default pool if neither and InventoryPool or InventoryPoolID is specificed. 

Sample Request:

<soap:Envelope xmlns:soap="https://schemas.xmlsoap.org/soap/envelope/" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="https://www.w3.org/2001/XMLSchema">
<soap:Body>
  <UpdateInventory>
    <Request>
      <Security>
        <Username>//Your Username//</Username>
        <Password>//Your Passw ord//</Password>
      </Security>
      <Inventory>
        <SKU>Chardonnay</SKU>
        <CurrentInventory>1000</CurrentInventory>
      </Inventory>
      <Mode>Strict</Mode>
    </Request>
</UpdateInventory>
</soap:Body>
</soap:Envelope>  

Sample Response:

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="https://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="https://www.w 3.org/2001/XMLSchema" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
  <UpdateInventoryResponse>
    <UpdateInventoryReturn>
      <Errors></Errors>
      <IsSuccessful>true</IsSuccessful>
      <RecordCount>1</RecordCount>
    </UpdateInventoryReturn>
  </UpdateInventoryResponse>
</soapenv:Body>
</soapenv:Envelope> 

Page Top