Get the plant information of a device
<p><strong>A brief description:</strong> </p>
<ul>
<li>Obtain an interface for the plant information of a device</li>
</ul>
<p><strong>Request URL: </strong></p>
<ul>
<li><code>http(s)://test.growatt.com/v1/plant/sn_plant</code>
<strong>Request method: </strong></li>
<li>post</li>
</ul>
<p><strong>Parameters: </strong></p>
<table>
<thead>
<tr>
<th style="text-align: left;">Parameter Name</th>
<th style="text-align: left;">Whether Required</th>
<th style="text-align: left;">Type</th>
<th>Description</th>
</tr>
</thead>
<tbody>
<tr>
<td style="text-align: left;">device_sn</td>
<td style="text-align: left;">Yes</td>
<td style="text-align: left;">string</td>
<td>Device serial number (non-collector serial number)</td>
</tr>
</tbody>
</table>
<p> <strong>Back to example</strong></p>
<pre><code>{
&quot;data&quot;: {
&quot;plant&quot;: {
&quot;status&quot;: 4,
&quot;locale&quot;: &quot;&quot;,
&quot;total_energy&quot;: 15.699999809265137,
&quot;operator&quot;: &quot;API interface test vendor&quot;,
&quot;country&quot;: &quot;China&quot;,
&quot;city&quot;: &quot;Shenzhen&quot;,
&quot;current_power&quot;: &quot;&quot;,
&quot;create_date&quot;: &quot;2018-12-12&quot;,
&quot;image_url&quot;: &quot;2.png&quot;,
&quot;plant_id&quot;: 24765,
&quot;name&quot;: &quot;API interface test power station&quot;,
&quot;longitude&quot;: &quot;113.9&quot;,
&quot;user_id&quot;: 33,
&quot;installer&quot;: &quot;API interface test vendor&quot;,
&quot;latitude&quot;: &quot;22.6&quot;,
&quot;peak_power&quot;: 20,
&quot;latitude_d&quot;: null,
&quot;latitude_f&quot;: null
}
},
&quot;error_code&quot;: 0,
&quot;error_msg&quot;: &quot;&quot;
}</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;">plant_id</td>
<td style="text-align: left;">int</td>
<td>Power Station ID</td>
</tr>
<tr>
<td style="text-align: left;">name</td>
<td style="text-align: left;">string</td>
<td>Power Station Name</td>
</tr>
<tr>
<td style="text-align: left;">user_id</td>
<td style="text-align: left;">int</td>
<td>User ID to which the plant belongs</td>
</tr>
<tr>
<td style="text-align: left;">country</td>
<td style="text-align: left;">string</td>
<td>country name</td>
</tr>
<tr>
<td style="text-align: left;">longitude</td>
<td style="text-align: left;">string</td>
<td>Longitude</td>
</tr>
<tr>
<td style="text-align: left;">latitude</td>
<td style="text-align: left;">string</td>
<td>Latitude</td>
</tr>
<tr>
<td style="text-align: left;">peak_power</td>
<td style="text-align: left;">string</td>
<td>peak power (kWp)</td>
</tr>
<tr>
<td style="text-align: left;">create_date</td>
<td style="text-align: left;">string</td>
<td>Building Date</td>
</tr>
<tr>
<td style="text-align: left;">installer</td>
<td style="text-align: left;">string</td>
<td>installer name</td>
</tr>
<tr>
<td style="text-align: left;">total_energy</td>
<td style="text-align: left;">string</td>
<td>Cumulative power generation (kWh)</td>
</tr>
<tr>
<td style="text-align: left;">count</td>
<td style="text-align: left;">int</td>
<td>Total power stations</td>
</tr>
<tr>
<td style="text-align: left;">latitude_d</td>
<td style="text-align: left;">string</td>
<td>Agent Name</td>
</tr>
<tr>
<td style="text-align: left;">latitude_f</td>
<td style="text-align: left;">string</td>
<td>Agent Area</td>
</tr>
<tr>
<td style="text-align: left;">error_code</td>
<td style="text-align: left;">int</td>
<td>0: Normal return, 10001: System error, 10002: Account does not exist, 10003: Device serial number is empty, 10004: Device type is empty, 10005: Device does not exist</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>
<ul>
<li>Get the frequency once every 5 minutes</li>
</ul>