Query Enabling Status of Prepayment Feature

Last Updated on : 2023-06-15 05:59:29

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.