ShineServer_English version


Add device associated account interface

<p><strong>A brief description:</strong> </p> <ul> <li>The terminal account relationship associated with the device SN is used when the collector SN is not known, but the device SN is known, but there is a certain delay. The association relationship is not necessarily real-time, only when the device is online. It will be associated in real time. If the device is not online, it will be associated after the device is online.</li> </ul> <p><strong>Request URL:</strong></p> <ul> <li><code>http(s)://openapi-us.growatt.com/v1/device/sn/add</code></li> </ul> <p><strong>Request method:</strong></p> <ul> <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;">Required</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;">yes</td> <td style="text-align: left;">int</td> <td>plant_id</td> </tr> <tr> <td style="text-align: left;">sn</td> <td style="text-align: left;">Yes</td> <td style="text-align: left;">string</td> <td>Device SN</td> </tr> <tr> <td style="text-align: left;">c_user_id</td> <td style="text-align: left;">Yes</td> <td style="text-align: left;">int</td> <td>User ID</td> </tr> </tbody> </table> <p><strong>Back to example</strong></p> <pre><code>{ &amp;quot;error_code&amp;quot;: 0, &amp;quot;error_msg&amp;quot;: &amp;quot;&amp;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;">error_code</td> <td style="text-align: left;">string</td> <td>0: Normal return; 10001: System error; 10002: The power station ID is empty or the device serial number is wrong; 10003: The device already exists; 10004: The power station does not exist; 10005: The user does not exist; 10006: The user ID is Empty; 10007: Collector serial number does not exist; 10010: Failed to add device</td> </tr> <tr> <td style="text-align: left;">error_msg</td> <td style="text-align: left;">string</td> <td>Error message</td> </tr> </tbody> </table> <p><strong>Remark</strong></p>

页面列表

ITEM_HTML