Features - Connectors Framework - Inbound REST API - Products
Load Product Inventory
Overview
Load the Product inventory of the product for the client
URL Format
https://{domain}.mobiwork.com/api/rest/{clientId}/{versionNumber}/product/Inventory.html?token=XXXXXXXX&userId={userId}
Arguments
clientId
required
MobiWork assigned unique ID of the company
versionNumber
required
Version number of MobiWork API SDK release. Current version is: 10.0.78
token
required
Part of URL as a request parameter and is required in every call to verify access to API calls
userId
optional
If provided, this User ID will be taken as a logged in user. If not provided we use an active global administrator ID
Return
Returns a list of Product Object(s) if valid arguments and search criteria are provided. If no search criteria is provided the list of a maximum 200 products will be returned. Returns an error if not a valid request
Request Body XSD
Response Body XSD
Curl Example
HTTP Method: POST
Request: curl -k -X POST -H "https://www.mobiwork.com/api/rest/12014/10.0.78/product/Inventory.html?token=COJL8X2FKSLMMRTYCH2B" --header 'content-type: application/xml' --data '<request><productId>PRODUCT_ID</productId>
<productName>PRODUCT_ID</productName></request>'
Response: <?xml encoding="UTF-8" ?>
<response version="10.0.78" statusCode="1">
<productList>
<totalAvailableCount>206</totalAvailableCount>
<count>10</count>
<product>
<mobiworkProductId>118661</mobiworkProductId>
<externalId>PPP1111</externalId>
<name>1" Galv. Elbow</name>
<description>1" Galv. Elbow</description>
<type>PRODUCT</type>
<price>17.8</price>
<cost>8.9</cost>
<quantity>1243</quantity>
<sku>04900028911</sku>
<modelNumber>1303</modelNumber>
<hasSerialNumbers>false</hasSerialNumbers>
<priceIncludesTax>false</priceIncludesTax>
<taxable>true</taxable>
<tax>0.0</tax>
<enabled>true</enabled>
<createdDate>2014/04/02</createdDate>
<categoryId>967</categoryId>
<category>Galv. Fittings</category>
<customFieldList>
<customField>
<apiName>ProductImg</apiName>
<fieldType>25</fieldType>
<value>/clientImagesapi/document/403802/view.html?client=9hjpvpLQip4%3D</value>
<name>Product Img</name>
</customField>
<customField>
<apiName>Field1</apiName>
<fieldType>1</fieldType>
<value>test</value>
<name>Field1</name>
</customField>
</customFieldList>
</product>
<product>
<mobiworkProductId>118659</mobiworkProductId>
<externalId>null</externalId>
<name>1/2" Galv. Elbow</name>
<description>1/2" Galv. Elbow</description>
<type>PRODUCT</type>
<price>8.18</price>
<cost>4.09</cost>
<quantity>598</quantity>
<sku>1Z2A611R0301576246</sku>
<modelNumber>1301</modelNumber>
<hasSerialNumbers>false</hasSerialNumbers>
<priceIncludesTax>false</priceIncludesTax>
<taxable>true</taxable>
<tax>0.0</tax>
<enabled>true</enabled>
<createdDate>2014/04/02</createdDate>
<categoryId>967</categoryId>
<category>Galv. Fittings</category>
<customFieldList>
<customField>
<apiName>ProductImg</apiName>
<fieldType>25</fieldType>
<value>/clientImagesapi/document/445197/view.html?client=9hjpvpLQip4%3D</value>
<name>Product Img</name>
</customField>
<customField>
<apiName>Field1</apiName>
<fieldType>1</fieldType>
<value></value>
<name>Field1</name>
</customField>
</customFieldList>
</product>