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
snstringRequired

Device serial number

Example: ST22****77FV
startstringOptional

Start Time with ISO8601 UTC format, default recent 7 days, maximum 90 days

Example: 1737257242000
endstringOptional

End Time with ISO8601 UTC format, default now

Example: 1737862042000
currentnumberOptional

Current page number, default and minimum value is 1

Example: 1
sizenumberOptional

The amount pf data presented per page, default and minimum value is 10

Example: 10
Responses
200

Operation was successful

application/json
post
/v1/device/battery/charge-discharge-records
POST /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