SolarmanOpenAPI (v1 1 0) - EN
SolarmanOpenAPI (v1 1 0) - EN
(V1.1.0)
User Manual
companId (V1.0)
2 Account Interface................................................................................................... 5
2.1 Obtain Token.....................................................................................................................5
2.2 Business Relation.............................................................................................................. 8
2.3 Permission......................................................................................................................... 9
2.4 Account Registration...................................................................................................... 11
2.5 Obtain Account Info.................................................................................................. 13
2.6 Modify Account Info................................................................................................. 15
2.7 Modify Binding Info.................................................................................................... 16
2.8 Reset Password.......................................................................................................... 18
2.9 Modify Password........................................................................................................19
3 Device Interface....................................................................................................21
3.1 Alert Details-Device...................................................................................................... 21
3.2 Alert List-Device........................................................................................................... 23
3.3 Real-time Data-Device................................................................................................. 26
3.4 Historical Data-Device...................................................................................................33
3.5 Device List......................................................................................................................37
3.6 Obtain SIM Card Info of Gateway Device................................................................... 39
4 Plant Interface....................................................................................................... 41
4.1 Query Plant Info............................................................................................................. 41
4.2 Obtain Device List......................................................................................................... 44
4.3 Obtain Historical Data.................................................................................................... 46
4.4 Obtain Plant List............................................................................................................ 50
4.5 Obtain Real-time Data.................................................................................................. 53
4.6 Obtain Operation Privilege............................................................................................. 55
4.7 Obtain Alert List............................................................................................................ 57
4.8 Create a plant............................................................................................................. 60
4.9 Modify a Plant............................................................................................................. 63
4.10 Delete a Plant............................................................................................................ 66
4.11 Calculation of Accumulated Production............................................................ 67
4.12 Set Offset..................................................................................................................... 68
4.13 Add Gateway (Logger/DTU)................................................................................. 70
4.14 Delete a Device.........................................................................................................71
5 Common Interface............................................................................................... 73
5.1 Generate Verification Code..................................................................................... 73
7 Enumerated Type................................................................................................. 76
8 Dictionary-Time Zone..........................................................................................77
9 Dictionary-Currency.............................................................................................81
10 Dictionary-Region...............................................................................................87
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.
7. It is required to add Authorization at http header under the circumstance of calling other
1.1 Terminology
APP_ID Unique ID
Default:
2 Account Interface
Obtain token
Request Parameters
Parameter
Parameter Name Data Type Required or not Description
Type
APPID (Example):
appId string query Y
201911067156002
appSecret (Example):
appSecret string body Y
1q3e2ee5w5w20ww
Password (Example):
encrypted)
Response Parameters
Parameter
Parameter Name Data Type Required or not Description
Type
access_token (Example):
access_token string body N
eyJhbGciOiJSUzI1NiIsInR5cC
expires_in (Example):5183999
expires_in string body N
(Unit:s)
refresh_token (Example):
refresh_token string body N
eyJhbGciOiJSUzI1NiIsInR5cC
Request ID (Example):
requestId string body N
1d6f6eca9bee4b6483d4af064b
659eec
Example
/account/v1.0/token?appId=201911067232002&language=en
"appSecret": "3a8791f012acc13226ca60e63ac6c1aff3",
"username": "cvwwb",
Request
"orgId": 860,
Parameters
"password":
"472bbe83616e93d3c09a79103ae47d8f71e3d35a966d6e8b22f74
3218d04171d"
"code": null,
"msg": null,
"success": true,
"requestId": "9d8cfe698b344d2780478006462899de",
"access_token":
"eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX25hbWUiOiI4Nj
BfY3ZiXzMiLCJzY29wZSI6WyJhuu9IH6DXL_ZOx5RHvts8K9a_k1eE
A7wadIB32we9o0zTJgbzC1oGyB1FqbQ",
"token_type": "bearer",
"eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJ1c2VyX25hbWUiOiI4Nj
BfY3ZiXzMiLCJzY29wZSI6WyJhbGwiXSwiYXRpIjoiZGYxYjlmODQtM
zhiNC00ZTEzLWIxYTktZjE3ZWZhMjMjJ7FW59UavQ4uw-651xNcox
pj754eMrPP3SVO9_HI4aufGsIP1P7PPWzJ3VZsckTLHas6cWWEvde
ngunK2BLLsokdz4klxsT3oX0BmewfcWEZ9qjGenF0Ht0eRLZdaRwr2
skqHhUQ",
"expires_in": "5183999",
"scope": null,
"uid": 6681
}
2.2 Business Relation
Business Relation
Interface
Query corresponding company and role
Description
Request Parameters
Parameter
Parameter Name Data Type Required or not Description
Type
accessToken (Example):
pXVCJ9
Response Parameters
Parameter
Parameter Name Data Type Required or not Description
Type
659eec
Example
Request
/account/v1.0/info?language=en
Parameters
"code": null,
"msg": null,
"success": true,
"requestId": "c1cf72f30f4f483da94e81f458fd3f4a",
"orgInfoList": [
"companyId": 12,
"companyName": "business-zcg01",
Return Value
"roleName": "超级管理员"
},
"companyId": 129,
"companyName": "OpenAPI",
"roleName": "超级管理员"
2.3 Permission
Permission
Interface
Login to SolarMAN Business and obtain the permission under the account.
Description
Request Parameters
Parameter
Parameter Name Data Type Required or not Description
Type
accessToken (Example):
pXVCJ9
Response Parameters
Parameter
Parameter Name Data Type Required or not Description
Type
Request ID ( Example):
659eec
Example
Request
/account/v1.0/role?language=en
Parameters
"code": null,
"msg": null,
"success": true,
"requestId": "a5a7c7a7e8f8459f9ed04ebb3faaaa13",
"viewStationList": 1,
"viewStationInfo": 1,
"viewStationData": 1,
"viewStationAlertList": 1,
"viewDeviceList": 1,
"viewDeviceData": 1,
"viewDeviceAlertList": 1,
"viewDeviceAlertData": 1
Account Registration
Interface
Register a new account
Description
Request Parameters
Parameter
Parameter Name Data Type Required or not Description
Type
APPID (Example)
appId string query Y
201911067156002
Customer Uid,Rule:
oldUserId string body N
{APP_ID}_{OldUid}
Response Parameters
Parameter
Parameter Name Data Type Required or not Description
Type
Request Id (Example)
659eec
Example
"phoneNumber":"176250134584",
"phoneNumberPrefix":"86",
"captcha":"306051",
"password":"8d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca
Request
12020c923adc6c92",
Parameters
"originalPhotoUrl":"https://pic4.zhimg.com/6e66781f90ed16cb34656e0
ea982f76b_xll.jpg",
"photoUrl":"https://pic4.zhimg.com/6e66781f90ed16cb34656e0ea982f
76b_xll.jpg"
"code": null,
"msg": null,
"success": true,
Return Value
"requestId": "47ad0d1931d242699afad57223caf32c",
"userId": 620
Interface
Obtain Account Info
Description
Request Parameters
accessToken (Example)
pXVCJ9
Response Parameters
Parameter
Parameter Name Data Type Required or not Description
Type
phoneNumberPrefi
string body N Phone Number Prefix
x
Request ID (Example)
659eec
Example
Request
/account/v1.0/user-info
Parameters
"msg": null,
"success": true,
"requestId": "b19522c0cda74b90992cd0cf1aa17d68",
"userId": 14,
"phoneNumberPrefix": "86",
"phoneNumber": "1301110006",
"email": "[email protected]",
"username": "zcg",
"regTime": null,
"lastLoginTime": 1583803446.000000000,
"nickname": "张成功",
"photoUrl": "http://img1.igen-tech.com/temp/79d4091821834ae9b3d35c
69793f5a131583200093224b",
"originalPhotoUrl": "”http://img1.igen-tech.com/temp/880861e2f161473
3932eefaa13f3d1531583200091488.gif",
"oldUserId": null
Interface
Modify Account Info, e.g. Nickname, avatar
Description
Request Parameters
accessToken (Example)
authorization string header Y
eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9
newNickname string body N Nickname
Response Parameters
Request ID
59eec
Example
{
Request
"newNickname":"ggg"
Parameters
}
"code": null,
"msg": null,
Return Value
"success": true,
"requestId": "b46c65eee2064e278f9d2990c4a9a826"
Interface
Modify phone number, E-mail, username
Description
Request Parameters
Parameter Required
Parameter Name Data Type Description
Type or not
accessToken (Example)
CJ9
phoneNumberPrefi
string body N Phone Number Prefix (Example) 86
x
Response Parameters
Parameter Required
Parameter Name Data Type Description
Type or not
Request ID (Example)
ec
Example
"captcha": "153354",
Request
"newPhoneNumber": "126250134584",
Parameters
"phoneNumberPrefix": "86"
{
Return Value
"code": null,
"msg": null,
"success": true,
"requestId": "bf05126704f14a44a51dd5513817ec26"
Reset Password
Interface
Reset Password
Description
Request Parameters
APPID (Example)
appId string query Y
201911067156002
Response Parameters
Parameter
Parameter Name Data Type Required or not Description
Type
Request ID (Example)
659eec
Example
"captcha":"035230",
"phoneNumber":"126250134584",
Request
"phoneNumberPrefix":"86",
Parameters
"newPassword":"8d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca1
2020c923adc6c92"
"code": null,
"msg": null,
Return Value
"success": true,
"requestId": "6cef74d133814757b381489697220b21"
Modify Password
Interface
Modify Password
Description
Request Parameters
accessToken (Example)
pXVCJ9
Response Parameters
Parameter
Parameter Name Data Type Required or not Description
Type
Request ID (Example)
659eec
Example
"newPassword":
"8d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6
Request c921",
Parameters "oldPassword":
"8d969eef6ecad3c29a3a629280e686cf0c3f5d5a86aff3ca12020c923adc6
c92"
"code": null,
"msg": null,
Return Value
"success": true,
"requestId": "6cef74d133814757b381489697220b21"
}
3 Device Interface
Alert Details-Device
Interface
Alert Details-Device
Description
Request Parameters
Parameter Required or
Parameter Name Data Type Description
Type not
accessToken ( Example):
XVCJ9
Response Parameters
Parameter Required or
Parameter Name Data Type Description
Type not
Influence(0:No Influence,1:
Influence Production,2:
Production&Safety)( Example):
10
Alert Level(0:Prompt,1:
10
Request ID ( Example):
9eec
Example
"deviceId": 200203179,
Request
"deviceSn": "dev1800078101",
Parameters
"alertId": 4
"msg": null,
"success": true,
"requestId": "85aff69bfabe4872846c5e9db11e4220",
"alertId": 4,
"deviceSn": "dev1800078101",
"deviceType": "INVERTER",
"addr": "ERR1",
"alertCode": "3",
"level": 2,
"influence": 2,
"alertTime": 1580621358,
"description": "",
"reason": null,
"solution": null
Alert List-Device
Interface
Alert List-Device
Description
Request Parameters
Required or
Parameter Name Data Type Parameter Type Description
not
XVCJ9
Response Parameters
Required or
Parameter Name Data Type Parameter Type Description
not
Influence(0:No Influence,1:
Influence Production,2:
Production&Safety)( Example):
Alert Level(0:Prompt,1:
Request ID ( Example):
9eec
Example
"deviceId": 200203179,
"deviceSn": "dev1800078101",
Parameters "page": 1,
"size": 10,
"startTimestamp": 1580540643,
"code": null,
"msg": null,
"success": true,
"requestId": "99bcad02b13241349dd89936793414a2",
"deviceSn": "dev1800078101",
"deviceId": 200203179,
Return Value
"deviceType": "INVERTER",
"total": 5,
"alertList": [
"alertId": 2,
"addr": "ERR1",
"code": "1",
"level": 0,
"influence": 0,
"alertTime": 1580621658
Real-time Data-Device
Interface
Real-time Data-Device
Description
Request Parameters
accessToken ( Example):
IkpXVCJ9
Device SN ( Example):
deviceSn string body Y
12583SS
Response Parameters
Device SN ( Example):
deviceSn string body N
12583SS
Request ID ( Example):
b659eec
Example
"timeType": 4,
"startTime": "2019",
"endTime": "2020",
Return Value
"deviceSn": "dev1800078101",
"deviceId": 200203179
}{
"code": null,
"msg": null,
"success": true,
"requestId": "d35ced8da68d4fa1868c540afb7166bc",
"deviceSn": "dev1800078101",
"deviceId": 200203179,
"deviceType": "INVERTER",
"deviceState": 3,
"dataList": [
"key": "SN1",
"value": "dev1800078101",
"unit": null,
"name": "SN"
},
"key": "DV1",
"value": "4980.60",
"unit": "V",
},
"key": "DV2",
"value": "5803.20",
"unit": "V",
},
"key": "DC1",
"value": "5056.50",
"unit": "A",
},
{
"key": "DC2",
"value": "3089.50",
"unit": "A",
},
"key": "DP1",
"value": "4004365166",
"unit": "W",
},
"key": "DP2",
"value": "447735664",
"unit": "W",
},
"key": "DPi_t1",
"value": "3495584498",
"unit": "W",
},
"key": "AV1",
"value": "5803.10",
"unit": "V",
},
"key": "AV2",
"value": "6298.00",
"unit": "V",
},
"key": "AV3",
"value": "3996.80",
"unit": "V",
},
"key": "AC1",
"value": "4072.60",
"unit": "A",
},
"key": "AC2",
"value": "3526.90",
"unit": "A",
},
"key": "AC3",
"value": "996.60",
"unit": "A",
},
"key": "APo_t1",
"value": "0",
"unit": "W",
"name": "Total AC Output Power (Active)"
},
"key": "A_Fo1",
"value": "493.07",
"unit": "Hz",
},
"key": "PF0",
"value": "5.97",
"unit": null,
},
"key": "Et_ge0",
"value": "29110.00",
"unit": "kWh",
},
"key": "Etdy_ge1",
"value": "800",
"unit": "kWh",
},
"key": "INV_T0",
"value": "6519.00",
"unit": "℃",
},
{
"key": "t_w_hou1",
"value": "1575738915",
"unit": "h",
},
"key": "INV_ST1",
"value": "56462",
"unit": null,
},
"key": "PG_V_ERR0",
"value": "6026.00",
"unit": null,
},
"key": "PG_F_ERR0",
"value": "436.80",
"unit": null,
},
"key": "MAC_T_ERRin1",
"value": "2777.80",
"unit": null,
},
"key": "N_I_ERR1",
"value": "521.35",
"unit": null,
},
"key": "D_ERRcp1",
"value": "2206.50",
"unit": null,
},
"key": "V_ERRi1",
"value": "4121.10",
"unit": null,
},
"key": "ELC_ERR1",
"value": "559.12",
"unit": null,
Historical Data-Device
Interface
Historical Data-Device
Description
Request Parameters
Parameter Required or
Parameter Name Data Type Description
Type not
accessToken ( Example):
XVCJ9
2019-11-18
2019-11-18
( Example):1
Response Parameters
Parameter Required or
Parameter Name Data Type Description
Type not
yyyy ,( Example):123456
( Example):1
Request ID ( Example):
9eec
Example
{
"timeType": 4,
"startTime": "2019",
Request
"endTime": "2020",
Parameters
"deviceSn": "dev1800078101",
"deviceId": 200203179
"code": null,
"msg": null,
"success": true,
"requestId": "150657ef285d414894870310d03b448e",
"deviceSn": "dev1800078101",
"deviceId": 200203179,
"deviceType": "INVERTER",
"timeType": 4,
"paramDataList": [
"collectTime": "2019",
"key": "generation",
"value": "9292.00",
"unit": "kWh",
"name": "Production"
},
"collectTime": "2020",
"dataList": [
{
"key": "generation",
"value": "16935.00",
"unit": "kWh",
"name": "Production"
Device List
Interface
Device List
Description
Request Parameters
Parameter
Parameter Name Data Type Required or not Description
Type
accessToken ( Example):
CJ9
Parameter
Parameter Name Data Type Required or not Description
Type
Request ID ( Example):
eec
Example
Request "page":1,
Parameters "size":2
"code": null,
"msg": null,
"success": true,
"total": 27,
"deviceList": [
"deviceSn": "1800072201",
"deviceId": 200197997,
"deviceType": "COLLECTOR",
"deviceState": 3,
"updateTime": 1582772840
},
"deviceSn": "1800072201-Igen",
"deviceId": 200206455,
"deviceType": "INVERTER",
"deviceState": 3,
"updateTime": 1582772840
Interface
Obtain SIM Card Info of Gateway Device
Description
Request Parameters
Parameter Required or
Parameter Name Data Type Description
Type not
accessToken ( Example):
XVCJ9
deviceId integer body N Device ID ( Example):252525
Response Parameters
Parameter Required or
Parameter Name Data Type Description
Type not
to expire, ( Example):343
Request ID ( Example):
59eec
Example
"code": null,
"msg": null,
"success": true,
Return Value
"requestId": "c6ffed3a4dae44d59dc30f3af19ea062",
"status": 2,
"limitTime": “2020-12-11”
}
4 Plant Interface
Interface
Query Plant Info
Description
Request Parameters
Parameter
Parameter Name Data Type Required or not Description
Type
accessToken ( Example):
pXVCJ9
Response Parameters
Parameter
Parameter Name Data Type Required or not Description
Type
installationAzimuth
number body N Azimuth
Angle
Request ID ( Example):
659eec
Example
/station/v1.0/base?language=en
Request {
"code": null,
"msg": null,
"success": true,
"requestId": "ceb09fee2d184064a8e7cc38aad3e5d0",
"id": 895,
"name": "001_OPENAPI_报警",
"locationLat": 32.025278437978635,
"locationLng": 120.4771381250024,
"locationAddress": "苏州张家港市",
"region": {
"level1": 156922,
"level2": 158778,
"level3": 158861,
"level4": null,
"level5": null,
"timezone": "PRC"
},
"type": "HOUSE_ROOF",
"gridInterconnectionType": "BATTERY_BACKUP",
"installedCapacity": 6754.0,
"installationAzimuthAngle": 183.0,
"installationTiltAngle": 32.0,
"startOperatingTime": 1577030400.000000000,
"currency": "CNY",
"ownerName": "张成功",
"ownerCompany": "无锡英臻科技",
"contactPhone": "13011110001",
"mergeElectricPrice": 0.98,
"constructionCost": 6666.0,
"stationImage": null,
"stationImages": [
"id": 85,
"name": "OPENAPI001",
"url": "http://img1.igen-tech.com/temp/fff4520a38ea44e2a378185
0aea55fc41577074336462.jpg"
],
"createdDate": 1577069449.000000000
Interface
Obtain Device List, support paged query
Description
Parameter Required or
Parameter Name Data Type Description
Type not
accessToken ( Example):
XVCJ9
type
Response Parameters
Parameter Required or
Parameter Name Data Type Description
Type not
Request ID ( Example):
59eec
Example
/station/v1.0/device?language=en
"deviceType": "INVERTER",
Request
"page": 1,
Parameters
"size": 10,
"stationId": 895
"code": null,
"msg": null,
"success": true,
"requestId": "b9bba24b99e045d981f5040411b08246",
"total": 2,
"deviceListItems": [
{
Return Value
"deviceSn": "1800078009-Igen",
"deviceId": 200203165,
"deviceType": "INVERTER",
"connectStatus": 0,
"collectionTime": 1580621692
Interface
Obtain Historical Data,support query via frame,day, month, year.
Description
Request Parameters
accessToken ( Example):
XVCJ9
Response Parameters
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
1d6f6eca9bee4b6483d4af064b6
59eec
Example
"stationId": 895,
"timeType": 2,
Request Parameters
"startTime":"2019-12-10",
"endTime":"2019-12-30"
"code": null,
"msg": null,
"success": true,
"requestId": "931f71e74fc64050b364c2e67bf33cad",
"total": 8,
"stationDataItems": [
"generationPower": null,
"usePower": null,
"gridPower": null,
"purchasePower": null,
Return Value
"wirePower": null,
"chargePower": null,
"dischargePower": null,
"batteryPower": null,
"batterySoc": null,
"irradiateIntensity": null,
"generationValue": 1788.0,
"generationRatio": 89.93288590604027,
"gridRatio": -2.7755575615628914E-15,
"chargeRatio": 10.06711409395973,
"useValue": 1608.0,
"useRatio": 100.0,
"buyRatio": 0.0,
"useDischargeRatio": 0.0,
"gridValue": 0.0,
"buyValue": 1608.0,
"chargeValue": 1608.0,
"dischargeValue": 0.0,
"fullPowerHours": 0.2647320106603494,
"irradiate": 0.72,
"theoreticalGeneration": 0.0,
"pr": 0.3676833481393742,
"cpr": null,
"dateTime": null,
"year": 2019,
"month": 12,
"day": 23
Interface
Obtain Plant List
Description
Request Parameters
accessToken ( Example):
XVCJ9
Response Parameters
Request ID ( Example):
59eec
Example
/station/v1.0/list?language=en
"size": 50
"code": null,
"msg": null,
"success": true,
"requestId": "c6645d538e7b41b6b8f7b406783ec4ee",
"total": 6,
"stationList": [
Return Value {
"id": 895,
"name": "001_OPENAPI_报警",
"locationLat": 32.025278437978635,
"locationLng": 120.4771381250024,
"locationAddress": "苏州张家港市",
"regionNationId": 44,
"regionLevel1": 156922,
"regionLevel2": 158778,
"regionLevel3": 158861,
"regionLevel4": null,
"regionLevel5": null,
"regionTimezone": "PRC",
"type": "HOUSE_ROOF",
"gridInterconnectionType": "BATTERY_BACKUP",
"installedCapacity": 6754.0,
"startOperatingTime": 1577030400.000000000,
"stationImage": null,
"createdDate": 1577069449.000000000,
"batterySoc": 56.0,
"networkStatus": "ALL_OFFLINE",
"generationPower": 678.0,
"lastUpdateTime": 1580621692.000000000
Interface
Obtain Real-time Data
Description
Request Parameters
accessToken ( Example):
XVCJ9
Response Parameters
Request ID ( Example):
59eec
Example
{
Return Value
"code": null,
"msg": null,
"success": true,
"requestId": "80682ee60ddc4c5f95c8ee0022bbf570",
"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
Interface Login to User Platform, then obtain plant operation privilege. If permission denied,
Request Parameters
accessToken ( Example):
authorization string header Y
eyJhbGciOiJSUzI1NiIsInR5cCI6Ikp
XVCJ9
Response Parameters
Request ID ( Example):
59eec
Example
}
{
"code": null,
"msg": null,
"success": true,
"requestId": "6cf5668095a34224b5c078fc81bf014e",
"viewStationAlert": 1,
"viewStationInfo": 1,
"editStation": 1,
"deleteStation": 0,
"setStation": 1,
"addStationDevice": 1,
"deleteStationDevice": 1
Interface
Obtain Alert List, support paged query
Description
Request Parameters
accessToken ( Example):
authorization string header Y
eyJhbGciOiJSUzI1NiIsInR5cCI6Ikp
XVCJ9
Response Parameters
( Example):Influence Production,
influence integer body N
Influence Safety, Influence
Production&Safety.
Failure
Request ID ( Example):
59eec
Example
"stationId": 895,
"startTime":"2020-02-01",
"page":1,
"size":2
"code": null,
"msg": null,
"success": true,
"requestId": "b1752aedc8a94169a14a0353fde524e4",
"total": 5,
"stationAlertItems": [
"deviceSn": "dev1800078101",
"deviceType": "INVERTER",
"ruleId": 2,
"addr": "ERR1",
"code": "1",
"level": 0,
"influence": 0,
"alertTime": 1580621658
}
]
Create a plant
Interface
Create a plant
Description
Request Parameters
Parameter
Parameter Name Data Type Required or not Description
Type
accessToken ( Example)
pXVCJ9
installationAzimuth
number body N Azimuth Angle
Angle
Response Parameters
Parameter
Parameter Name Data Type Required or not Description
Type
Request ID (Example)
659eec
Example
Request {
Parameters "constructionCost": 55000,
"region": {
"nationId": 44,
"level1": 156922,
"level2": 158774,
"level3": 158828,
"level4": null,
"level5": null,
"timezone": "PRC"
},
"ownerName": "八零超管",
"contactPhone": "15200000000",
"gridInterconnectionType": "BATTERY_BACKUP",
"ownerCompany": "八零超管有限公司",
"installationTiltAngle": 60,
"type": "GROUND",
"mergeElectricPrice": 5.5,
"locationLng": 120.36131,
"currency": "CNY",
"installationAzimuthAngle": 50,
"name": 1,
"startOperatingTime": 1580486400,
"locationLat": 31.5064,
"installedCapacity": 10,
"stationImage": "有",
"locationAddress": "天安智慧城"
"code": null,
"success": true,
"requestId": "7d0f65b40b4248ab88d2bb0603ab673e",
"id": 2052
Modify a Plant
Interface
Modify a Plant
Description
Request Parameters
Parameter
Parameter Name Data Type Required or not Description
Type
accessToken (Example)
pXVCJ9
installationAzimuth
number body N Azimuth Angle
Angle
Response Parameters
Parameter
Parameter Name Data Type Required or not Description
Type
Request ID (Example):
659eec
Example
{
Request
"constructionCost": 55000,
Parameters
"region": {
"nationId": 44,
"level1": 156922,
"level2": 158774,
"level3": 158828,
"level4": null,
"level5": null,
"timezone": "PRC"
},
"ownerName": "八零超管",
"contactPhone": "15200000000",
"gridInterconnectionType": "BATTERY_BACKUP",
"ownerCompany": "八零超管有限公司",
"installationTiltAngle": 60,
"type": "GROUND",
"mergeElectricPrice": 5.5,
"locationLng": 120.36131,
"currency": "CNY",
"installationAzimuthAngle": 50,
"name": 1,
"startOperatingTime": 1580486400
"locationLat": 31.5064,
"installedCapacity": 10,
"stationImage": "有",
"locationAddress": "天安智慧城",
"stationId": 2052
"code": null,
"msg": null,
Return Value
"success": true,
"requestId": "fa396f22567344c5bc9c1f1307dfceda"
}
4.10 Delete a Plant
Delete a Plant
Interface
Delete a Plant
Description
Request Parameters
Parameter
Parameter Name Data Type Required or not Description
Type
accessToken (Example)
XVCJ9
Response Parameters
Parameter
Parameter Name Data Type Required or not Description
Type
Request ID (Example):
59eec
Example
Request
{"stationId":2052}
Parameters
{
"code": null,
"msg": null,
Return Value
"success": true,
"requestId": "a49a4923f3a249e0bc9df2f532596f87"
Interface
Calculation of accumulated production
Description
Request Parameters
Parameter
Parameter Name Data Type Required or not Description
Type
accessToken (Example)
pXVCJ9
Calculation of accumulated
production
Response Parameters
Parameter
Parameter Name Data Type Required or not Description
Type
Request ID (Example):
659eec
Example
Request
{ "stationId" : 2053,"totalProductionType":1}
Parameters
"code": null,
"msg": null,
Return Value
"success": true,
"requestId": "2c992d590c3d4194a44fd366903c1edd"
Set Offset
Interface
Set Offset
Description
Request Parameters
Offset type
(Example) 1
Offset Value
Positive number:Add
offsetValue number body Y
Negative number: Reduce
(Example) 3.0
Response Parameters
Request ID (Example):
requestId string body N
1d6f6eca9bee4b6483d4af064b659eec
Example
"stationId" : 2053,
Request "date":"2019-01-16",
Parameters "offsetType":1,
"offsetValue":110
{
Return Value
"code": null,
"msg": null,
"success": true,
"requestId": "7fc2640dcd194ab39831fcb8e7d673da"
Interface
Add Gateway (Logger/DTU)
Description
Request Parameters
Parameter
Parameter Name Data Type Required or not Description
Type
accessToken (Example)
XVCJ9
Response Parameters
Parameter
Parameter Name Data Type Required or not Description
Type
Request ID (Example):
9eec
Example
"stationId" : 2053,
Request
"deviceSn":"2323dddg",
Parameters
"isAuto":false
"code": null,
"msg": null,
"requestId": "fb6e16fb5f49447d975688578d069a1b",
"gatewayId": 200206594
Delete a Device
Interface
Delete a Device
Description
Request Parameters
accessToken (Example)
authorization string header Y
eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9
Response Parameters
Request ID (Example):
requestId string body N
1d6f6eca9bee4b6483d4af064b659eec
Example
Parameters "deviceSn":"2323dddg"
"code": null,
"msg": null,
Return Value
"success": true,
"requestId": "5f741dfaab634b4392ba49a0243e9e85"
}
5 Common Interface
Request Parameters
(Example):ACCOUNT
Response Parameters
Example
"phoneNumber":"176250134584",
"purpose":"BIND"
"code": null,
"msg": null,
"success": true,
Return Value
"requestId": "0ea84ef086a546cd84b69e31121e6ac4",
"captcha": "566380",
"validity": 1800
Code Description
1000000 success
7 Enumerated Type
OFF_GRID Offline
INVERTER Inverter
METER Meter
DTU DTU
FAN Fan
COLLECTOR Logger
PV_MODULE PV
BATTERY Battery
REPEATER REPEATER
8 Dictionary-Time Zone
9 Dictionary-Currency
Appendix: area.csv