Get Charge/Discharge Records
post
Obtain charge or discharge records in your battery with default interval of 30m.
Required scopes
This endpoint requires the following scopes:
- : all privileges
- : all privileges
Authorizations
OAuth2clientCredentialsRequired
Token URL:
OAuth2authorizationCodeRequired
Authorization URL: Token URL:
Body
snstringRequiredExample:
Device serial number
ST22****77FVstartstringOptionalExample:
Start Time with ISO8601 UTC format, default recent 7 days, maximum 90 days
1737257242000endstringOptionalExample:
End Time with ISO8601 UTC format, default now
1737862042000currentnumberOptionalExample:
Current page number, default and minimum value is 1
1sizenumberOptionalExample:
The amount pf data presented per page, default and minimum value is 10
10Responses
200
Operation was successful
application/json
400
Bad Request
application/json
401
Unauthorized
application/json
404
Device Does Not Exist
application/json
default
Internal error
application/json
post
/v1/device/battery/charge-discharge-recordsPOST /portal/v1/device/battery/charge-discharge-records HTTP/1.1
Host: idaas-sandbox.hanchuess.com
Authorization: Bearer YOUR_OAUTH2_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 85
{
"sn": "ST22****77FV",
"start": 1737257242000,
"end": 1737862042000,
"current": 1,
"size": 10
}{
"errno": 200,
"msg": "The operation has been successful",
"data": {
"records": [
{
"sn": "H03Z****10007",
"eChg": 0.9,
"eDschg": 0,
"timestamp": "2025-07-02T10:00:01Z"
}
],
"current": 1,
"size": 10,
"total": 1,
"pages": 1
}
}Last updated