Update Charging Station Status

Last Updated on : 2023-06-21 07:13:03download

Change the status of a specified charging station. For example, delete or suspend a charging station, or put a charging station into normal use.

API address

PUT: /v1.0/iot-02/charging-pile/device/shop-status

Request parameter

Parameter name Type IN Required Description
update_shop_status_req UpdateShopStatusReq false The input parameter.

Description of update_shop_status_req

Parameter name Type IN Required Description
shop_id String false The ID of a specified charging station.
shop_status Integer false The status of a specified charging station.
  • 0: Delete a charging station. If you query a charging station after deleting it, no data about this charging station will be returned.
  • 1: Put a charging station into normal use.
  • 2: Suspend a charging station.

Return parameter

Parameter name Type Description
result Boolean The returned result. Valid values:
  • true: Started successfully.
  • false: Failed to start it.

Request example

PUT: /v1.0/iot-02/charging-pile/device/shop-status
{ "shop_id": "13932a3f6ac1a***", "shop_status": 1 }

Return example

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

Error code

For more information, see error code.