Query Enabling Status of Prepayment Feature

Last Updated on : 2021-12-11 08:10:05download

Query whether the prepayment feature of a specified electrical device is enabled.

API address

GET: /v1.0/iot-03/power-devices/{device_id}/prepayment

Request parameter

Parameter name Type IN Required Description
device_id String uri true The device ID.

Return parameter

Parameter name Type Description
result Boolean The returned result.
  • true: Enabled.
  • false: Disabled.

Request example

GET: /v1.0/iot-03/power-devices/6c814919a3f54fb4eb****/prepayment

Return example

{ "result": true, "t": 1637832311324, "success": true }

Error code

For more information, see error code.