# Single Product Detail

## zapiGetProductDetailsByProductId

<mark style="color:blue;">`GET`</mark> `https://{yourdomainname}.zaui.net/zapi/`

#### Request Body

| Name                                            | Type    | Description                                                                     |
| ----------------------------------------------- | ------- | ------------------------------------------------------------------------------- |
| zapiToken<mark style="color:red;">\*</mark>     | integer | Token that must be used for a reseller to communicate with the supplier system. |
| productId<mark style="color:red;">\*</mark>     | integer | ID of the product.                                                              |
| methodName<mark style="color:red;">\*</mark>    | string  | The method being called.                                                        |
| zapiUserId<mark style="color:red;">\*</mark>    | integer | Generated by the supplier system when a new contact is created.                 |
| zapiAccountId<mark style="color:red;">\*</mark> | integer | Generated by the supplier system.                                               |

{% tabs %}
{% tab title="200: OK " %}

```xml
<?xml version="1.0" encoding="utf-8"?>
<response>
    <zapiVersion>2.1</zapiVersion>
    <error>0</error>
    <message>OK</message>
    <methodResponse>
        <methodName>zapiGetProductDetailsByProductId</methodName>
        <methodErrorCode>0</methodErrorCode>
        <methodErrorMessage/>
        <product>
            <categoryName>
                <![CDATA[Ski Poles]]>
            </categoryName>
            <categoryId>2</categoryId>
            <productName>
                <![CDATA[Ski Poles]]>
            </productName>
            <productId>6</productId>
            <productType>
                <![CDATA[Flat]]>
            </productType>
            <description>
                <![CDATA[]]>
            </description>
            <imageUrl>https://suppliertestsystem.zaui.net/themes/default/img/image_not_available.png</imageUrl>
            <listPrice>$5.25</listPrice>
            <inventory>10000</inventory>
        </product>
    </methodResponse>
</response>
```

{% endtab %}
{% endtabs %}

{% tabs %}
{% tab title="Request" %}

```xml
<request>
	<zapiToken></zapiToken>
	<zapiAccountId></zapiAccountId>
	<zapiUserId></zapiUserId>
	<zapiMethod>
		<methodName>zapiGetProductDetailsByProductId</methodName>
		<productId></productId>
	</zapiMethod>
</request> 
```

{% endtab %}

{% tab title="Response" %}

```xml
<?xml version="1.0" encoding="utf-8"?>
<response>
	<zapiVersion>2.0</zapiVersion>
	<error>0</error>
	<message>OK</message>
	<methodResponse>
		<methodName>zapiGetProductDetailsByProductId</methodName>
		<methodErrorCode>0</methodErrorCode>
		<methodErrorMessage></methodErrorMessage>
		<product>
			<categoryName></categoryName>
			<categoryId></categoryId>
			<productName></productName>
			<productId></productId>
			<description></description>
			<imageUrl></imageUrl>
			<inventory></inventory>
			<listPrice></listPrice>
		</product>
	</methodResponse>
</response>
```

{% endtab %}
{% endtabs %}
