Inventory Service 3.0
  • 08 Apr 2024
  • 1 Minute to read
  • Dark
    Light
  • PDF

Inventory Service 3.0

  • Dark
    Light
  • PDF

Article summary

WSDL:

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

Australian URL:

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

Methods:

SearchInventory()
Use this method to search across inventory.

UpdateInventory()
Use this method to update existing inventory.

Page Top

SearchInventory()

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 SearchInventory() function to search inventory inside Vin65. Required fields are indicated by a '*'

Parameters:

AttributeData TypeDefaultDescription
WebsiteIDsUUID List Available for Enterprise Webservices
Comma seperated list of WebsiteIDs in Enterprise
Leave blank for all Websites
SKUString 50  
InventoryPoolString 50  
InventoryPoolIDUUID  
FilterString 50 Allowed values: AllSKUs, OnlySKUsWithInventoryOn
MaxRowsInteger100 
PageInteger 

Sample Request:

<soapenv:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/" xmlns:v300="http://V300">
   <soapenv:Header/>
   <soapenv:Body> 
    <v300:UpdateInventory soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/">
    <Request xsi:type="upd:Request" xmlns:upd="http://updateInventory.inventory.V300">
      <Security>
        <Username>//Your Username//</Username>
        <Password>//Your Password//</Password>
      </Security>
      <WebsiteIDs></WebsiteIDs>
      <SKU></SKU>
      <InventoryPool></InventoryPool>
      <InventoryPoolID></InventoryPoolID>
      <Filter>OnlySKUsWithInventoryOn</Filter>
      <MaxRows>100</MaxRows>
      <Page>1</Page>
    </Request>
    </v300:UpdateInventory>
   </soapenv:Body>
</soapenv:Envelope>  

Sample Response:

<?xml version="1.0" encoding="UTF-8"?>
<soapenv:Envelope xmlns:soapenv="https://schemas.xmlsoap.org/soap/envelope/" xmlns:xsd="https://www.w3.org/2001/XMLSchema" xmlns:xsi="https://www.w3.org/2001/XMLSchema-instance">
<soapenv:Body>
  <SearchInventoryResponse>
    <SearchInventoryReturn>
      <Errors></Errors>
      <IsSuccessful>true</IsSuccessful>
      <Inventory>
        <Inventory> 
          <CurrentInventory>12</CurrentInventory>
          <InventoryPool>Default</InventoryPool>
          <InventoryPoolID>b5635061-bf13-7c4c-3860-ab89d5d598cc</InventoryPoolID>
          <SKU>09MER</SKU>
          <WebsiteID>66272648-1e0b-4e34-f09b-81477a31b25f</WebsiteID>
        </Inventory>
        <Inventory>
          <CurrentInventory>5000</CurrentInventory>
          <InventoryPool>Default</InventoryPool>
          <InventoryPoolID>b5635061-bf13-7c4c-3860-ab89d5d598cc</InventoryPoolID>
          <SKU>123testsku</SKU>
          <WebsiteID>66272648-1e0b-4e34-f09b-81477a31b25f</WebsiteID>
        </Inventory>
        <Inventory>
          <CurrentInventory>4999</CurrentInventory>
          <InventoryPool>Default Warehouse Location</InventoryPool>
          <InventoryPoolID>b5635061-bf13-7c4c-3860-ab89d5d598cc</InventoryPoolID>
          <SKU>12738743</SKU>
          <WebsiteID>66272648-1e0b-4e34-f09b-81477a31b25f</WebsiteID>
        </Inventory>
        <Inventory>
          <CurrentInventory>0</CurrentInventory>
          <InventoryPool>Default Warehouse Location</InventoryPool>
          <InventoryPoolID>b5635061-bf13-7c4c-3860-ab89d5d598cc</InventoryPoolID>
          <SKU>2008 Pinot Grigio</SKU>
          <WebsiteID>66272648-1e0b-4e34-f09b-81477a31b25f</WebsiteID>
        </Inventory>
      </Inventory>
      <RecordCount>4</RecordCount>
    </SearchInventoryReturn>
  </SearchInventoryResponse>
</soapenv:Body>
</soapenv:Envelope>   

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:

AttributeData TypeDefaultDescription
WebsiteIDUUID* Only required for Enterprise Webservices
UUID of the Vin65 Website
SKUString 50*  
CurrentInventoryInteger*  
InventoryPoolString 50* Uses default pool if neither and InventoryPool or InventoryPoolID is specificed.
InventoryPoolIDUUID* Uses default pool if neither and InventoryPool or InventoryPoolID is specificed. 
Mode*StringStrict 

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> 

Was this article helpful?