SolarmanOpenAPI-global (v1 1 6) - EN
SolarmanOpenAPI-global (v1 1 6) - EN
0 2 01 9 - 1 1 - 2 9 First Draft
4 .8 Create a plant
4 . 1 0 Delete a plant
4 . 1 2 Set offset
4 . 1 4 Delete a device
1.2 ................................................................................................................
1.3 .................................................................................................................
1.4 ................................................................................................................
1.5 ......................................................................................................................
1 .5 .1 Process data from SOLARMAN Smart via OpenAPI .......................................... 7
1 .5 .2 Process data from SOLARMAN Business via OpenAPI .................................... 13
2 ......................................................................................................
2.1 ...................................................................................................................
2.2 ...........................................................................................................
2.3 .......................................................................................................................
2.4 .....................................................................................................
2.5 ..................................................................................................
2.6 .................................................................................................
2.7 ...................................................................................................
2.8 .........................................................................................................
2.9 .......................................................................................................
3 .........................................................................................................
3.1 ......................................................................................................
3.2 ...........................................................................................................
3.3 ................................................................................................
3.4 ...................................................................................................
3.5 .....................................................................................................................
3.6 ..................................................................
3.7 ..................................................................................
3.8 ...............................................................................
3.9 ....................................................................................................
4 ............................................................................................................
4.1 .............................................................................................................
4.2 ........................................................................................................
4.3 ...................................................................................................
4.4 ...........................................................................................................
4.5 .................................................................................................
4.6 .............................................................................................
4.7 ............................................................................................................
4.8 .............................................................................................................
4.9 ............................................................................................................
4.10 ...........................................................................................................
4.11 ...........................................................
4.12 ....................................................................................................................
4.13 ................................................................................
4.14 ........................................................................................................
5 .................................................................................................
5.1 ..................................................................................
6 ...........................................................................................
7 ...................................................................................................
8 ............................................................................................
9 ...............................................................................................
10 .................................................................................................
11 ....................................................................
1
1. SolarMAN OpenAPI platform provides standard RESTful data calling service for
authenticated users.
2. The platform interface is based on http/ https protocol, which uses OAuth2 . 0 authentication
mechanism.
6. Structure of return data: main body, code: error code, msg: error content.
1 .1
APP_ ID Unique ID
1.2
The maximum number of requests per 1 0 seconds for a single OpenApi account to call the
interface:
The maximum number of requests per minute for a single OpenApi account to call the interface:
1. 4
(1) Account has been created on SOLARMAN Smart Web/App or via OpenAPI , logger has been
(2) Authorized plant has been received via SOLARMAN Smart Web/App , and data can be checked
normally .
This calling guide only demonstrates some marked scenes in the flowchart . If you wish to know
other calling methods of other interfaces , please check the detailed documents .
Developer information and account on SOLARMAN Smart are required to get the Token to call
OpenAPI .
Token will be the unique voucher and necessary condition to call OpenAPI .
(1 ) Interface Code:
(2) Notice:
Password field will use SHA256 for encryption and transmit parameter later .
Multiple token calling will not cause original token invalid . Term of validity of
token is two month . And token will expire if the password is reset or the role
is modified .
You can obtain plant list and Plant ID via this interface .
(1 ) Interface Code:
(2) Notice:
Header field authorization must be transmitted . Please put bearer as a prefix when
transmitting token_type .
Default : Inquiry the first page when paging parameter will not be transmitted .
Based on knowing Plant ID , you can check plant real-time data via this interface , e .g . plant
(2) Notice:
Based on knowing Plant ID , you can check device list via this interface to know device SN and
Device ID .
(1 ) Interface Code:
(2) Notice:
Default : Inquiry all device data if deviceType field will not be transmitted , assigned
Based on knowing SN and Device ID , you can check device real-time data via this interface ,
e .g . inverter AC total output power , module production power , battery charging power .
(1 ) Interface Code:
(2) Notice:
This calling guide only demonstrates some marked scenes in the flowchart . If you wish to know
other calling methods of other interfaces , please check the detailed documents .
Developer information and account on SOLARMAN Smart are required to get the Token to call
OpenAPI .
Token will be the unique voucher and necessary condition to call OpenAPI .
(1 ) Interface Code:
(2) Notice:
Password field will use SHA256 for encryption and transmit parameter later .
Multiple token calling will not cause original token invalid . Term of validity of
token is two month . And token will expire if the password is reset or the role
is modified .
(1 ) Interface Code:
(2) Notice:
for type .
Please check API document for currency .
(1 ) Account has been created on SOLARMAN Smart Web/App or via OpenAPI .
(2) Authorized plant has been received via SOLARMAN Smart Web/App , and device can be
added normally .
This calling guide only demonstrates some marked scenes in the flowchart . If you wish to know
other calling methods of other interfaces , please check the detailed documents .
Developer information and account on SOLARMAN Smart are required to get the Token to call
OpenAPI .
Token will be the unique voucher and necessary condition to call OpenAPI .
(1 ) Interface Code:
(2) Notice:
APPID parameter is query parameter , which is put on URL .
Password field will use SHA256 for encryption and transmit parameter later .
Multiple token calling will not cause original token invalid . Term of validity of
token is two month . And token will expire if the password is reset or the role
is modified .
You can obtain plant list and Plant ID via this interface .
(1 ) Interface Code:
(2) Notice:
Header field authorization must be transmitted . Please put bearer as a prefix when
transmitting token_type .
Default : Inquiry the first page when paging parameter will not be transmitted .
Based on Plant ID , you can add a device under target plant via this interface .
(1 ) Interface Code:
(2) Notice:
isAuto field must be transmitted . When isAuto =true and the data is transmitting ,
the relationship between sub-device of this gateway device and plant will be
manually .
If calling sub-device is required , please contact the sales .
1.5.2 Process data from SOLARMAN Business via OpenAPI
(1 ) Account has been created on SOLARMAN Business Web/App or via OpenAPI , logger has
(2) Authorized plant has been received via SOLARMAN Business Web/App , and data can be
checked normally .
This calling guide only demonstrates some marked scenes in the flowchart . If you wish to know
other calling methods of other interfaces , please check the detailed documents .
Developer information and account on SOLARMAN Business are required to get the Token to call
OpenAPI .
Token will be the unique voucher and necessary condition to call OpenAPI .
(1 ) Interface Code:
(2) Notice:
Password field will use SHA256 for encryption and transmit parameter later .
Multiple token calling will not cause original token invalid . Term of validity of
token is two month . And token will expire if the password is reset or the role
is modified .
Basedon obtainingToken , you can obtain the business relation here , please note business OrgID .
(1 ) Interface Code:
(2) Notice:
One account can belong to multiple companies . Please select orgId according to
actual situation .
For obtaining Token for second time , you need to get OrgID first and submit to interface , then
you will get the business Token . When you use this Token to call other interface in OpenAPI ,
(2) Notice:
When obtaining business Token , orgId field must be transmitted . Or user Token
will be obtained .
You can obtain plant list and Plant ID via this interface .
(1 ) Interface Code:
(2) Notice:
Header field authorization must be transmitted . Please put bearer as a prefix when
transmitting token_type .
Default : Inquiry the first page when paging parameter will not be transmitted .
Based on knowing Plant ID , you can check plant real-time data via this interface , e .g . plant
(2) Notice:
Based on knowing Plant ID , you can check device list via this interface to know device SN and
Device ID .
(1 ) Interface Code:
(2) Notice:
Default : Inquiry all device data if deviceType field will not be transmitted , assigned
Based on knowing SN and Device ID , you can check device real-time data via this interface ,
e .g . inverter AC total output power , module production power , battery charging power .
(1 ) Interface Code:
(2) Notice:
This calling guide only demonstrates some marked scenes in the flowchart . If you wish to know
other calling methods of other interfaces , please check the detailed documents .
Developer information and account on SOLARMAN Business are required to get the Token to call
OpenAPI .
Token will be the unique voucher and necessary condition to call OpenAPI .
(1 ) Interface Code:
(2) Notice:
Password field will use SHA256 for encryption and transmit parameter later .
Multiple token calling will not cause original token invalid . Term of validity of
token is two month . And token will expire if the password is reset or the role
is modified .
Basedon obtainingToken , you can obtain the business relation here , please note business OrgID .
(1 ) Interface Code:
(2) Notice:
One account can belong to multiple companies . Please select orgId according to
actual situation .
For obtaining Token for second time , you need to get OrgID first and submit to interface , then
you will get the business Token . When you use this Token to call other interface in OpenAPI ,
(2) Notice:
When obtaining business Token , orgId field must be transmitted . Or user Token
will be obtained .
Based on knowing Plant ID , you can check device list via this interface to know device SN and
Device ID .
(1 ) Interface Code:
(2) Notice:
Header field authorization must be transmitted . Please put bearer as a prefix when
transmitting token_type .
Default : Inquiry the first page when paging parameter will not be transmitted .
Based on knowing SN and Device ID , you can check device real-time data via this interface ,
e .g . inverter AC total output power , module production power , battery charging power .
(1 ) Interface Code:
(2) Notice:
This calling guide only demonstrates some marked scenes in the flowchart . If you wish to know
other calling methods of other interfaces , please check the detailed documents .
Developer information and account on SOLARMAN Smart are required to get the Token to call
OpenAPI .
Token will be the unique voucher and necessary condition to call OpenAPI .
(1 ) Interface Code:
(2) Notice:
Password field will use SHA256 for encryption and transmit parameter later .
Multiple token calling will not cause original token invalid . Term of validity of
token is two month . And token will expire if the password is reset or the role
is modified .
Basedon obtainingToken , you can obtain the business relation here , please note business OrgID .
(1 ) Interface Code:
(2) Notice:
One account can belong to multiple companies . Please select orgId according to
actual situation .
For obtaining Token for second time , you need to get OrgID first and submit to interface , then
you will get the business Token . When you use this Token to call other interface in OpenAPI ,
(2) Notice:
When obtaining business Token , orgId field must be transmitted . Or user Token
will be obtained .
(1 ) Interface Code:
(2) Notice:
for type .
(2) Authorized plant has been received via SOLARMAN Business Web/App , and device can
be added normally .
This calling guide only demonstrates some marked scenes in the flowchart . If you wish to know
other calling methods of other interfaces , please check the detailed documents .
Developer information and account on SOLARMAN Smart are required to get the Token to call
OpenAPI .
Token will be the unique voucher and necessary condition to call OpenAPI .
(1 ) Interface Code:
(2) Notice:
Password field will use SHA256 for encryption and transmit parameter later .
Multiple token calling will not cause original token invalid . Term of validity of
token is two month . And token will expire if the password is reset or the role
is modified .
Basedon obtainingToken , you can obtain the business relation here , please note business OrgID .
(1 ) Interface Code:
(2) Notice:
One account can belong to multiple companies . Please select orgId according to
actual situation .
For obtaining Token for second time , you need to get OrgID first and submit to interface , then
you will get the business Token . When you use this Token to call other interface in OpenAPI ,
(2) Notice:
When obtaining business Token , orgId field must be transmitted . Or user Token
will be obtained .
You can obtain plant list and Plant ID via this interface .
(1 ) Interface Code:
(2) Notice:
Header field authorization must be transmitted . Please put bearer as a prefix when
transmitting token_type .
Default : Inquiry the first page when paging parameter will not be transmitted .
Based on Plant ID , you can add a device under target plant via this interface .
(1 ) Interface Code:
(2) Notice:
isAuto field must be transmitted . When isAuto =true and the data is transmitting ,
the relationship between sub-device of this gateway device and plant will be
manually .
If calling sub-device is required , please contact the sales .
2.1
Obtain token
https://globalapi.solarmanpv.com/account/v1.0/ token
post
application/ json
*/*
APPID ( Example) :
appId string query Y
201911067156002
appSecret ( Example) :
appSecret string body Y
1 q3 e2 ee5 w5 w2 0 ww
Password ( Example) :
encrypted)
Request ID (Example) :
65 9 eec
Example
/ account/v1.0/token?appId=201911067232002&language=en
" appSecret": "3 a87 91 f012 acc132 26 ca60 e63 ac6 c1 aff3",
"username": "cvwwb",
Request
"orgId": 860,
Parameters
" password":
"472 bbe83616 e93d3c09 a79103 ae47 d8f71 e3d35 a966d6e8b22 f74
3 218d04171d"
"code": null,
"msg": null,
"requestId": "9d8cfe698b344d2780478006462899de",
"refresh_token":
" eyJhbGciOiJSUzI1 NiIsInR5 cCI6 IkpXVCJ9 . eyJ1 c2 VyX2 5 hbWUiOiI4 Nj
skqHhUQ",
"expires_in": "5183999",
"scope": null,
"uid": 6681
2.2
Business Relation
https://globalapi.solarmanpv.com/account/v1.0/ info
post
application/ json
*/*
accessToken ( Example) :
pXVCJ9
Request ID (Example) :
65 9 eec
Example
Request
/account/v1.0/ info?language=en
Parameters
"code": null,
"msg": null,
"orgInfoList": [
{
"companyId": 12,
{
"companyId": 129,
"companyName": "OpenAPI",
"roleName": "超级管理员"
}
]
}
2 .3
Permission
Login to SolarMAN Business and obtain the permission under the account.
https://globalapi.solarmanpv.com/account/v1.0 /role
post
application/ json
*/*
accessToken ( Example) :
pXVCJ9
Request ID ( Example) :
65 9 eec
Example
Request
/account/v1.0/ role?language=en
Parameters
"code": null,
"msg": null,
"viewStationList": 1,
"viewStationInfo": 1,
"viewStationData": 1,
"viewStationAlertList": 1,
"viewDeviceList": 1,
" viewDeviceData": 1,
" viewDeviceAlertList": 1,
" viewDeviceAlertData": 1
}
2.4
Account Registration
post
application/ json
*/*
APPID ( Example)
appId string query Y
201911067156002
Request Id ( Example)
6 5 9 eec
Example
" photoUrl" : " https: / / pic4 . zhimg. com/ 6 e6 6 7 8 1 f9 0 ed1 6 cb3 4 6 5 6 e0 ea9 8 2 f
7 6 b_ xll. jpg"
" userId": 62 0
2.5
post
application/ json
*/ *
accessToken ( Example)
pXVCJ9
p honeNumberPrefi
string body N Phone Number Prefix
x
6 5 9 eec
Example
Request
/account/v1.0 / user-info
Parameters
"code": null,
"msg": null,
"userId": 14,
"phoneNumberPrefix": "86",
"username": "zcg",
Return Value
"regTime": null,
"lastLoginTime": 1583803446.000000000,
"nickname": "张成功",
69793f5a131583200093224b",
"originalPhotoUrl": "”http://img1.igen-tech.com/temp/880861e2f161473
3 932 eefaa13f3d1531583200091488.gif",
"oldUserId": null
2.6
application/ json
*/ *
accessToken ( Example)
authorization string header Y
eyJhbGciOiJSUzI1 NiIsInR5 cCI6 IkpXVCJ9
Request ID
5 9 eec
Example
{
Request
" newNickname" : " ggg"
Parameters
}
}
2.7
post
application/ json
*/ *
accessToken ( Example)
CJ9
p honeNumberPrefi
string body N Phone Number Prefix ( Example) 8 6
x
Request ID ( Example)
ec
Example
{
2.8
Reset Password
Reset Password
post
application/ json
*/ *
APPID ( Example)
appId string query Y
201 91 10 67 15 60 0 2
Request ID ( Example)
6 5 9 eec
Example
2 0 2 0 c9 2 3 adc6 c9 2 "
2.9
Modify Password
Modify Password
post
application/ json
*/ *
accessToken ( Example)
pXVCJ9
Request ID ( Example)
6 5 9 eec
Example
" newPassword" :
" oldPassword" :
"code": null,
"msg": null,
Return Value
" success" : true,
3.1
post
application/ json
*/*
accessToken ( Example) :
XVCJ9
Influence ( 0: No Influence, 1:
Production&Safety) ( Example):
10
10
Request ID ( Example) :
9 eec
Example
" deviceId": 20 0 2 0 3 1 7 9 ,
Request
" deviceSn": " dev1 8 0 0 0 7 8 1 0 1 " ,
Parameters
" alertId": 4
" alertId": 4,
"level": 2,
" influence" : 2 ,
" alertTime": 15 8 0 6 2 1 3 5 8,
3.2
Alert List-Device
Alert List-Device
https://globalapi.solarmanpv.com/ device/ v1. 0 / alertList
post
application/ json
*/*
accessToken ( Example) :
XVCJ9
Production&Safety) ( Example):
Request ID ( Example) :
9 eec
Example
"deviceId": 200203179,
Parameters "page": 1,
"size": 10,
"startTimestamp": 1580540643,
"code": null,
"requestId": "99bcad02b13241349dd89936793414a2",
"deviceSn": "dev1800078101",
"deviceId": 200203179,
"total": 5,
"alertList": [
"alertId": 2,
"addr": "ERR1",
"code": "1",
"level": 0,
"influence": 0,
"alertTime": 1580621658
}
]
3.3
Real-time Data-Device
Real-time Data-Device
post
application/ json
*/*
accessToken ( Example) :
authorization string header Y
eyJhbGciOiJSUzI1 NiIsInR5 cCI6
IkpXVCJ9
Device SN ( Example) :
deviceSn string body Y
125 83 SS
Device SN ( Example) :
deviceSn string body N
125 83 SS
Request ID ( Example) :
b6 5 9 eec
Example
}
{
" timeType" : 4 ,
" deviceId" : 20 0 2 0 3 1 7 9
}{
" deviceId": 20 0 2 0 3 1 7 9 ,
" deviceState" : 3 ,
" dataList" : [
Return Value
{
"unit": null,
},
"value": "4980.60",
"unit": "V",
},
"key": "DV2" ,
"value": "5803.20",
"unit": "V",
" name" : " DC Voltage PV2 "
},
"key": "DC1",
"value": "5056.50",
"unit": "A",
},
"key": "DC2",
"value": "3089.50",
"unit": "A",
},
"key": "DP1" ,
},
"key": "DP2" ,
},
},
{
"key": "AV1",
"value": "5803.10",
"unit": "V",
},
"key": "AV2",
"value": "6298.00",
"unit": "V",
},
"key": "AV3",
"value": "3996.80",
"unit": "V",
},
"value": "4072.60",
"unit": "A",
},
"value": "3526.90",
"unit": "A",
},
"unit": "A",
},
},
"value": "493.07" ,
},
"value": "5.97",
"unit": null,
},
},
},
{
"key": "INV_T0",
"value": "6519.00",
},
{
"key": "t_w_hou1",
"value": "1575738915",
"unit": "h",
"name": "Total Running Hour"
},
{
"key": "INV_ST1",
"value": "56462",
"unit": null,
{
"key": "PG_V_ERR0" ,
"value": "6026.00",
"unit": null,
"name": "Grid Voltage Error Value"
},
{
" key": " PG_ F_ ERR0" ,
"value": "436.80",
"unit": null,
},
{
"value": "2777.80",
"unit": null,
},
"key": "N_I_ERR1" ,
"value": "521.35" ,
"unit": null,
},
"value": "2206.50",
"unit": null,
},
"value": "4121.10",
"unit": null,
},
"value": "559.12" ,
"unit": null,
}
3.4
Historical Data-Device
Historical Data-Device
post
application/ json
*/*
accessToken ( Example) :
XVCJ9
2019-11-18
2019-11-18
( Example): 1
Request ID ( Example) :
requestId string body N
1 d6 f6eca9 bee4 b64 83 d4 af06 4 b65
9 eec
Example
" timeType" : 4 ,
" deviceId": 20 0 2 0 3 1 7 9
" deviceId": 20 0 2 0 3 1 7 9 ,
" timeType" : 4 ,
" paramDataList" : [
" dataList" : [
},
"key": "generation",
"value": "16935.00",
"unit": "kWh",
"name": "Production"
3.5
Device List
Device List
https://globalapi.solarmanpv.com/device/v1.0/ list
post
application/ json
*/*
accessToken ( Example) :
CJ9
Request ID ( Example) :
eec
Example
Request
"page":1,
Parameters "size":2
"code": null,
"msg": null,
"total": 27,
" deviceList": [
{
" deviceSn": "1800072201",
"deviceId": 200197997,
" deviceState": 3 ,
},
"deviceId": 200206455,
" deviceState": 3 ,
3.6
post
application/ json
*/*
accessToken ( Example) :
authorization string header Y
eyJhbGciOiJSUzI1 NiIsInR5 cCI6 Ikp
XVCJ9
Normal, 3: In Arrears, 4:
status integer body N
Recharged, 5 :Write Off, 6 :About
Request ID ( Example) :
5 9 eec
Example
"code": null,
"msg": null,
"status": 2,
"limitTime": “2020-12-11 ”
}
3.7
Note :
1 . This interface is a general description of the interface for issuing device control
commands . If your device has implemented device control functions on the platform ,
you need to obtain a further command configuration table before operating this interface .
2 . The maximum number of requests per minute for a single OpenApi account to call
the interface : 50
post
application/ json
*/*
accessToken ( Example) :
XVCJ9
see below
POST
callback
Example
Request {
"content":"{\"inputParam\":[{\"value\":\"190\",\"ext\":\"\",\"oValue\":\"190\"}]}"
Return Value " requestId" : " 3 1 1 d34 9 0 4 f18 4 1 9 9 9 f2 f58 b9 b43 f87 1 9 " ,
“collectionTime”:”1615900034”,
“ connectStatus” :1 ,
“orderId”:”19928812”
Example
" createTime": 1 6 1 5 3 4 2 9 0 4 0 0 0 ,
Request
" deviceId": 2 0 5 5 4 6 7 8 3 ,
Parameters
" deviceSn": " 1 2 0 D70 2 0 6 0 4 0 0 5 7 " ,
" orderId": 1 0 1 1 8 3 0 ,
" updateTime" : 1 6 1 5 3 4 3 2 5 4 0 0 0
3.8
post
application/ json
*/ *
language string query N Language ( Example) :zh
accessToken ( Example) :
XVCJ9
communicatio
Object body N communication relationship
n
sample value: 1
Request ID ( Example)
5 9 eec
Example
{
"deviceId": 288888888,
Request
"deviceSn": "dev180000"
Parameters
}
"code": null,
"msg": null,
"success": true,
"requestId": "2a3544de2f624a18869c0c8f12a1078e",
" communication" : {
"deviceSn": "180000",
"deviceId": 299999999,
"parentSn": "180000",
" deviceState": 1,
"updateTime": 1608181709,
"deviceSn": "dev180000",
"deviceId": 288888888,
"parentSn": "180000",
" deviceState": 1,
"updateTime": 1608181709,
}
3.9
Note :
1 . After your device has implemented the customized command function on the
SOLARMAN Business platform or the SOLARMAN Smart platform , you can perform
Api layer operations through this interface .
2 . The maximum number of requests per minute for a single OpenApi account to call
the interface : 50
Customized Command
post
application/ json
*/*
accessToken ( Example) :
XVCJ9
transparent transmission
( Example):
see below
POST
callback
Parameters "content":"0103001B0001F40D"
Return Value " requestId" : " 3 1 1 d34 9 0 4 f18 4 1 9 9 9 f2 f58 b9 b43 f87 1 9 " ,
“collectionTime”:”1615900034”,
“ connectStatus” :1 ,
“orderId”:”19928812”
Example
" createTime": 1 6 1 5 3 4 2 9 0 4 0 0 0 ,
" orderId": 1 0 1 1 8 3 0 ,
" updateTime" : 1 6 1 5 3 4 3 2 5 4 0 0 0
}
4
4. 1
https://globalapi.solarmanpv.com/station/v1.0 / base
post
application/ json
*/*
accessToken ( Example) :
pXVCJ9
installationAzimuth
number body N Azimuth
Angle
Request ID ( Example) :
65 9 eec
Example
/station/v1.0/ base?language=en
Request {
"code": null,
"msg": null,
"id": 895,
"region": {
"level1": 156922,
"level2": 158778,
"level3": 158861,
"level4": null,
"level5": null,
"timezone": "PRC"
},
"installedCapacity": 6754.0,
"installationAzimuthAngle": 183.0,
"installationTiltAngle": 32.0,
"startOperatingTime": 1577030400.000000000,
"currency": "CNY",
"ownerName": "张成功",
"ownerCompany": "无锡英臻科技",
"contactPhone": "13011110001",
"stationImage": null,
"stationImages": [
"id": 85,
"name": "OPENAPI001" ,
0aea55fc41577074336462. jpg"
],
"createdDate": 1577069449.000000000
4 .2
https://globalapi.solarmanpv.com/station/v1.0 / device
post
application/ json
*/*
language string query N Language ( Example) :zh
accessToken ( Example) :
XVCJ9
type
Request ID ( Example) :
5 9 eec
Example
/ station/ v1 . 0 / device? language= en
" stationId" : 8 9 5
"total": 2,
" deviceListItems" : [
{
Return Value
" deviceSn" : " 1 8 0 0 0 7 8 0 0 9 - Igen" ,
" deviceId": 20 0 2 0 3 1 6 5 ,
" connectStatus" : 0 ,
" collectionTime" : 1 5 8 0 6 2 1 6 9 2
4.3
Obtain Historical Data ,support query via frame ,day , month , year .
application/ json
*/*
accessToken ( Example) :
XVCJ9
pr number body N PR
theoreticalGener
number body N Theoretical Production
ation
useDischargeRati
number body N Consumption Discharge Ratio
o
Request ID ( Example) :
requestId string body N
1d6 f6eca9 bee4 b64 8 3 d4 af06 4 b6
5 9 eec
Example
" stationId": 89 5 ,
" timeType" : 2 ,
Request Parameters
" startTime": " 2 0 1 9 - 1 2 - 1 0 " ,
"total": 8 ,
" stationDataItems" : [
" generationValue" : 1 7 8 8 . 0 ,
" generationRatio": 89 . 9 3 2 8 8 5 9 0 6 0 4 0 2 7 ,
" chargeRatio": 10 . 0 6 7 1 1 4 0 9 3 9 5 9 7 3 ,
" useValue": 16 0 8 . 0 ,
" useDischargeRatio" : 0 . 0 ,
" gridValue": 0. 0 ,
" buyValue": 16 0 8 . 0 ,
" chargeValue" : 1 6 0 8 . 0 ,
" dischargeValue" : 0 . 0 ,
" fullPowerHours": 0 . 2 6 4 7 3 2 0 1 0 6 6 0 3 4 9 4 ,
" irradiate": 0. 72 ,
" theoreticalGeneration" : 0 . 0 ,
" month": 12 ,
"day": 23
4. 4
post
application/ json
*/ *
language string query N language
accessToken ( Example) :
XVCJ9
Request ID ( Example) :
5 9 eec
Example
/station/v1.0/list?language=en
"code": null,
"msg": null,
"total": 6,
"stationList": [
Return Value {
"id": 895,
"name": "001_OPENAPI_报警",
"locationLat": 32.025278437978635,
"locationLng": 120.4771381250024,
"locationAddress": "苏州张家港市",
"regionNationId": 44,
"regionLevel1": 156922,
" regionLevel2 " : 1 5 8 7 7 8 ,
" installedCapacity" : 6 7 5 4 . 0 ,
" startOperatingTime" : 1 5 7 7 0 3 0 4 0 0 . 0 0 0 0 0 0 0 0 0 ,
" createdDate": 15 7 7 0 6 9 4 4 9 . 0 0 0 0 0 0 0 0 0 ,
" batterySoc" : 5 6 . 0 ,
" generationPower" : 6 7 8 . 0 ,
" lastUpdateTime" : 1 5 8 0 6 2 1 6 9 2 . 0 0 0 0 0 0 0 0 0
4.5
post
application/ json
*/ *
language string query N Language ( Example) :zh
accessToken ( Example) :
XVCJ9
Request ID ( Example) :
5 9 eec
Example
{
Return Value
"code": null,
"msg": null,
"generationPower": 678.0,
"usePower": 678.0,
"gridPower": null,
"purchasePower": -678.0 ,
"wirePower": -678.0,
"chargePower": -678.0,
"dischargePower": null,
"batteryPower": -678.0,
"batterySoc": 56.0,
"irradiateIntensity": 236.18,
"lastUpdateTime": 1580621692.000000000
4.6
Login to User Platform, then obtain plant operation privilege . If permission denied ,
https://globalapi.solarmanpv.com/station/v1.0/role
post
application/ json
*/*
accessToken ( Example) :
authorization string header Y
eyJhbGciOiJSUzI1 NiIsInR5 cCI6 Ikp
XVCJ9
Request ID ( Example) :
5 9 eec
Example
}
{
"code": null,
"msg": null,
"viewStationAlert": 1,
"viewStationInfo": 1,
"editStation": 1,
"deleteStation": 0,
"setStation": 1,
"addStationDevice": 1,
"deleteStationDevice": 1
4 .7
https://globalapi.solarmanpv.com/station/v1.0/alert
post
application/ json
*/*
accessToken ( Example) :
authorization string header Y
eyJhbGciOiJSUzI1 NiIsInR5 cCI6 Ikp
XVCJ9
Production& Safety.
Failure
Request ID ( Example) :
5 9 eec
Example
"stationId": 895,
"startTime":"2020-02-01",
"page":1,
"size":2
"code": null,
"msg": null,
"total": 5,
"stationAlertItems": [
"deviceSn": "dev1800078101",
"ruleId": 2,
"showName": "Error: 99+x",
"addr": "ERR1",
"code": "1",
"level": 0,
"influence": 0,
"alertTime": 1580621658
}
]
4.8
Create a plant
Create a plant
https://globalapi.solarmanpv.com/station/v1.0 / create
post
application/ json
*/*
accessToken ( Example)
pXVCJ9
installationAzimuth
number body N Azimuth Angle
Angle
Request ID ( Example)
6 5 9 eec
Example
Request {
Parameters " constructionCost": 55000,
"region": {
"nationId": 44,
"level1": 156922,
"level2": 158774,
"level3": 158828,
"level4": null,
"level5": null,
"timezone": "PRC"
},
"ownerName": "八零超管",
"ownerCompany": "八零超管有限公司",
"installationTiltAngle": 60,
"type": "GROUND",
" mergeElectricPrice" : 5. 5 ,
"currency": "CNY",
"installationAzimuthAngle": 50,
"name": 1,
"startOperatingTime": 1580486400,
"stationImage": "有",
"locationAddress": "天安智慧城"
"code": null,
4. 9
Modify a Plant
Modify a Plant
https://globalapi.solarmanpv.com/station/v1.0/update
post
application/ json
*/*
accessToken ( Example)
pXVCJ9
installationAzimuth
number body N Azimuth Angle
Angle
Request ID ( Example) :
6 5 9 eec
Example
{
Request
" constructionCost": 55000,
Parameters
"region": {
"nationId": 44,
"level1": 156922,
"level2": 158774,
"level3": 158828,
"level4": null,
"level5": null,
"timezone": "PRC"
},
"ownerName": "八零超管",
"ownerCompany": "八零超管有限公司",
"installationTiltAngle": 60,
"type": "GROUND",
" mergeElectricPrice" : 5. 5 ,
"currency": "CNY",
"installationAzimuthAngle": 50,
"name": 1,
"stationImage": "有",
"stationId": 2052
"code": null,
"msg": null,
Return Value
" success" : true,
}
4.10
Delete a Plant
Delete a Plant
https://globalapi.solarmanpv.com/station/v1.0/ delete
delete
application/ json
*/*
accessToken ( Example)
XVCJ9
Request ID ( Example) :
5 9 eec
Example
Request
{"stationId":2052}
Parameters
{
"code": null,
"msg": null,
Return Value
" success" : true,
4.11
https://globalapi.solarmanpv.com/station/v1.0/metering
post
application/ json
*/*
accessToken ( Example)
pXVCJ9
Calculation of accumulated
production
Request ID ( Example) :
6 5 9 eec
Example
Request
{ "stationId" : 2053,"totalProductionType":1}
Parameters
"code": null,
"msg": null,
Return Value
" success" : true,
4.12
Set Offset
Set Offset
https://globalapi.solarmanpv.com/station/v1.0 /offset
post
application/ json
*/*
Offset type
( Example) 1
Offset Value
( Example) 3.0
Request ID ( Example) :
requestId string body N
1 d6 f6 eca9 bee4 b64 8 3 d4 af06 4 b65 9 eec
Example
"stationId" : 2053,
Request "date":"2019-01-16",
Parameters "offsetType":1 ,
"offsetValue":110
{
Return Value
"code": null,
"msg": null,
4 .1 3
post
application/ json
*/*
accessToken ( Example)
XVCJ9
Request ID (Example) :
9 eec
Example
"stationId" : 2053,
Request
"deviceSn":"2323dddg",
Parameters
"isAuto":false
}
"code": null,
"msg": null,
4.14
Delete a Device
Delete a Device
post
application/ json
*/*
language string query N Language Type ( Example) zh
accessToken ( Example)
authorization string header Y
eyJhbGciOiJSUzI1 NiIsInR5 cCI6 IkpXVCJ9
Request ID ( Example) :
requestId string body N
1 d6 f6 eca9 bee4 b64 8 3 d4 af06 4 b65 9 eec
Example
Parameters "deviceSn":"2323dddg"
"code": null,
"msg": null,
Return Value
" success" : true,
}
5
5.1
post
application/ json
*/*
( Example) : ACCOUNT
Example
"phoneNumber":"176250134584",
Request Parameters
" phoneNumberPrefix":"86",
"purpose":"BIND"
}
"code": null,
"msg": null,
"captcha": "566380",
"validity": 1800
Code Description
1000000 success
INVERTER Inverter
METER Meter
DTU DTU
FAN Fan
COLLECTOR Logger
PV_ MODULE PV
BATTERY Battery
REPEATER REPEATER
Europe/Helsinki Helsinki,Kyiv,Riga,Sofia,Tallinn,Vilnius
Africa/Cairo (UTC+02:00) Cairo
Europe/Moscow Moscow,St.Petersburg,Volgograd(RTZ 2)
Africa/Nairobi (UTC+03:00) Nairobi
Asia/Tehran (UTC+03:30) Tehran
Asia/Muscat (UTC+04:00) Abu Dhabi,Muscat
Asia/Yerevan (UTC+04:00) Yerevan
(UTC+05:30) Chennai,Kolkata,Mumbai,New
Asia/Calcutta Delhi
Asia/Kathmandu (UTC+05:45) Kathmandu
Asia/ Dacca (UTC+06:00) Dhaka
Asia/Novosibirsk (UTC+06:00) Novosibirsk(RTZ 5)
Asia/Rangoon (UTC+06:30) Yangon (Rangoon)
PRC Kong,Urumqi
(UTC+12:00) Anadyr,Petropavlovsk-Kamchatsky
Asia/Anadyr - Old(RTZ 11)
Refer to IOS 4 2 1 7 .
Currency CODE Description
11
CN 86 China Y
NL 31 Netherlands Y
US 1 USA Y
BR 55 Brazil Y
AU 61 Australia
DE 49 Germany
ES 34 Spain
FR 33 France
GB 44 UK
ID 62 Indonesia
IN 91 India
IT 39 Italy
JP 81 Japan
KR 82 South Korea
MY 60 Malaysia
PH 63 The Philippines
PL 48 Poland
PT 351 Portugal
SG 65 Singapore
TH 66 Thailand
TW 886 Taiwan( Province of China)
MO 853 Macau
AW 297 Aruba
AF 93 Afghanistan
AO 244 Angola
AI 1264 Anguilla
AD 376 Andorra
AR 54 Argentina
AM 374 Armenia
AQ 672 Antarctica
AT 43 Austria
AZ 994 Azerbaijan
BI 257 Burundi
BE 32 Belgium
BJ 229 Benin
BD 880 Bangladesh
BG 359 Bulgaria
BH 973 Bahrain
BS 1242 Bahamas
BY 375 Belarus
BZ 501 Belize
BM 1441 Bermuda
BO 591 Bolivia
BB 1246 Barbados
BN 673 Brunei
BT 975 Bhutan
BV 47 Bouvet Island
BW 267 Botswana
CA 1 Canada
CH 41 Switzerland
CL 56 Chile
CM 237 Cameroon
Democratic Republic of the
CD 243 Congo
CO 57 Colombia
CU 53 Cuba
CW 599 Curaç ao
CX 61 Christmas Island
CY 357 Cyprus
DJ 253 Djibouti
DM 1767 Dominica
DK 45 Denmark
DZ 213 Algeria
EC 593 Ecuador
EG 20 Egypt
ER 291 Eritrea
EE 372 Estonia
ET 251 Ethiopia
FI 358 Finland
FJ 679 Fiji
FM 691 Micronesia
GA 241 Gabon
GE 995 Georgia
GG 44 Guernsey
GH 233 Ghana
GI 350 Gibraltar
GN 224 Guinea
GP 590 Guadeloupe
GM 220 Gambia
GR 30 Greece
GD 1473 Grenada
GL 299 Greenland
GT 502 Guatemala
GU 1671 Guam
GY 592 Guyana
HN 504 Honduras
HR 385 Croatia
HT 509 Haiti
HU 36 Hungary
IM 44 Isle of Man
British Indian Ocean
IO 246 Territory
IE 353 Ireland
IR 98 Iran
IQ 964 Iraq
IS 354 Iceland
IL 972 Israel
JM 1658 Jamaica
JM 1876 Jamaica
JE 44 Jersey
JO 962 Jordan
KZ 7 Kazakhstan
KE 254 Kenya
KG 996 Kyrgyzstan
KH 855 Cambodia
KI 686 Kiribati
KW 965 Kuwait
LA 856 Laos
LB 961 Lebanon
LR 231 Liberia
LY 218 Libya
LI 423 Liechtenstein
LK 94 Sri Lanka
LS 266 Lesotho
LT 370 Lithuania
LU 352 Luxembourg
LV 371 Latvia
MA 212 Morocco
MC 377 Monaco
MD 373 Moldova
MG 261 Madagascar
MV 960 Maldives
MX 52 Mexico
MK 389 Macedonia
ML 223 Mali
MT 356 Malta
MM 95 Myanmar ( Burma)
ME 382 Montenegro
MN 976 Mongolia
MZ 258 Mozambique
MR 222 Mauritania
MS 1664 Montserrat
MQ 596 Martinique
MU 230 Mauritius
MW 265 Malawi
YT 262 Mayotte
NA 264 Namibia
NE 227 Niger
NG 234 Nigeria
NI 505 Nicaragua
NU 683 Niue
NO 47 Norway
NP 977 Nepal
NR 674 Nauru
NZ 64 New Zealand
OM 968 Oman
PK 92 Pakistan
PA 507 Panama
PN 64 Pitcairn Islands
PE 51 Peru
PW 680 Palau
PY 595 Paraguay
PS 970 Palestina
QA 974 Qatar
RE 262 Reunion
RO 40 Romania
RU 7 Russian Federation
RW 250 Rwanda
SD 249 Sudan
SN 221 Senegal
SV 503 El Salvador
SM 378 San Marino
SO 252 Somalia
RS 381 Serbia
SR 597 Suriname
SK 421 Slovakia
SI 386 Slovenia
SE 46 Sweden
SZ 268 Swaziland
SC 248 Seychelles
SY 963 Syria
TD 235 Chad
TG 228 Togo
TJ 992 Tajikistan
TK 690 Tokelau
TM 993 Turkmenistan
TO 676 Tonga
TN 216 Tunisia
TR 90 Turkey
TV 688 Tuvalu
TZ 255 Tanzania
UG 256 Uganda
UA 380 Ukraine
United States Minor
UM 1 Outlying Islands
UY 598 Uruguay
UZ 998 Uzbekistan
VC 1784 Grenadines
VE 58 Venezuela
VN 84 Vietnam
VU 678 Vanuatu
WS 685 Samoa
YE 967 Yemen
ZA 27 South Africa
ZM 260 Zambia
ZW 263 Zimbabwe