3.6 Check whether the collector SN and check code
<p><strong>A brief description:</strong></p>
<p>-Interface to detect whether the collector SN and check code are qualified
-<code>Only applicable to devices with device type 3 returned in the 3.3 interface.</code></p>
<p><strong>Request URL:</strong>
-<code>http(s)://test.growatt.com/v1/device/datalogger/validate</code></p>
<p><strong>How to request:</strong>
-post</p>
<p><strong>parameter:</strong></p>
<table>
<thead>
<tr>
<th style="text-align: left;">Parameter name</th>
<th style="text-align: left;">Is it required</th>
<th style="text-align: left;">Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">datalogSn</td>
<td style="text-align: left;">yes</td>
<td style="text-align: left;">int</td>
<td>collector SN</td>
</tr>
<tr>
<td style="text-align: left;">valiCode</td>
<td style="text-align: left;">yes</td>
<td style="text-align: left;">int</td>
<td>Verification Code</td>
</tr>
</tbody>
</table>
<p><strong>Return example</strong></p>
<pre><code> {
"data": "",
"error_code": 0,
"error_msg": ""
}</code></pre>
<p><strong>Return parameter description</strong></p>
<table>
<thead>
<tr>
<th style="text-align: left;">Parameter name</th>
<th style="text-align: left;">Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">dataloggerSn</td>
<td style="text-align: left;">int</td>
<td>collector SN</td>
</tr>
<tr>
<td style="text-align: left;">valiCode</td>
<td style="text-align: left;">string</td>
<td>Verification code</td>
</tr>
<tr>
<td style="text-align: left;">plant_id</td>
<td style="text-align: left;">string</td>
<td>When the collector exists, the plant ID to which the collector belongs. If the collector does not exist, there will be no return parameter</td>
</tr>
<tr>
<td style="text-align: left;">user_id</td>
<td style="text-align: left;">string</td>
<td>When the collector exists, the user ID to which the collector belongs. If the collector does not exist, there will be no return parameter</td>
</tr>
<tr>
<td style="text-align: left;">datalogger_sn</td>
<td style="text-align: left;">int</td>
<td>When the collector exists, the SN of the collector, if the collector does not exist, there is no such return parameter</td>
</tr>
<tr>
<td style="text-align: left;">error_code</td>
<td style="text-align: left;">string</td>
<td>Error code (0: normal return, 10001: the collector serial number is empty or the length is incorrect, 10002: the collector serial number does not match the check code, 10003: the collector already exists and has been added</td>
</tr>
<tr>
<td style="text-align: left;">error_msg</td>
<td style="text-align: left;">string</td>
<td>Error message prompt</td>
</tr>
</tbody>
</table>
<p><strong>Remarks</strong></p>