Features - Connectors Framework - Inbound REST API - Products
List Products
Overview
Retrieve Product List of the client
URL Format
https://{domain}.mobiwork.com/api/rest/{clientId}/{versionNumber}/product/list.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
Filter or Search Criteria
productId By productId
name By product name
productType By product type - acceptable types are (PRODUCT, PARTS_MATERIALS, SERVICES)
externalId By externalId of the product
sku By SKU of the product
modelNumber By model number of the product
hasSerialNumbers By hasSerialNumbers flag (true or false) of product
disabled By disabled flag true, the list will include disabled products
category By category of the product (accepts categoryId or categoryName)
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/list.html?token=COJL8X2FKSLMMRTYCH2B" --header 'content-type: application/xml' --data '<request><productType>PRODUCT</productType></request>'
OR to get limited list
curl -k -X POST -H "https://www.mobiwork.com/api/rest/12014/10.0.78/product/list.html?token=COJL8X2FKSLMMRTYCH2B" --header 'content-type: application/xml' --data '<request><startPosition>0</startPosition><maxResults>10</maxResults></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>