Product by Category
Search for a product by Category ID.
zapiGetMerchandiseByCategoryId
GET
https://{yourdomainname}.zaui.net/zapi/
Request Body
Name
Type
Description
zapiToken*
integer
Token that must be used for a reseller to communicate with the supplier system.
categoryId*
integer
ID of the category.
methodName
string
The method being called.
zapiUserId*
integer
Generated by the supplier system when a new contact is created.
zapiAccountId*
integer
Generated by the supplier system.
<?xml version="1.0" encoding="utf-8"?>
<response>
<zapiVersion>2.1</zapiVersion>
<error>0</error>
<message>OK</message>
<methodResponse>
<methodName>zapiGetMerchandiseByCategoryId</methodName>
<methodErrorCode>0</methodErrorCode>
<methodErrorMessage/>
<categoryId>2</categoryId>
<products>
<product>
<pricePreTax>$5.00</pricePreTax>
<productId>6</productId>
<productName>
<![CDATA[Ski Poles]]>
</productName>
<productDescription>
<![CDATA[]]>
</productDescription>
<inventory>-2</inventory>
</product>
</products>
</methodResponse>
</response>
<request>
<zapiToken></zapiToken>
<zapiAccountId></zapiAccountId>
<zapiUserId></zapiUserId>
<zapiMethod>
<methodName>zapiGetMerchandiseByCategoryId</methodName>
<categoryId></categoryId>
</zapiMethod>
</request>
Element
M/O/C
Format
Length
Details
Request
M
a-z, A-Z
7
Top level element
ZapiToken
M
a-z, A-Z, 0-9
40
The generated ZAPI token
ZapiUserId
M
2
Supplied user ID
ZapiMethod
M
0-9
All requests must have a method
MethodName
M
a-z, A-Z, 0-9
Variable
See documentation for options
CategoryID
M
0-9
Last updated
Was this helpful?