Start Charging

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

A charging station starts charging, with a timer included. After one user enters the charging duration, charging will automatically stop when the specified duration expires.

API address

POST: /v1.0/iot-02/charging-pile/start-charge

Request parameter

Parameter name Type IN Required Description
req ChargingPileStartChargeReq false The input parameters.

Description of req

Parameter name Type IN Required Description
port String false The charging port number.
device_id String false The device ID.
serial_number String false The unique transaction serial number of the merchant system. It is customized by the merchant.
seconds Integer false The charging duration. Unit: seconds.

Return parameter

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

Request example

POST: /v1.0/iot-02/charging-pile/start-charge
{ "seconds": 1000, "serialNumber": "12d1b823a580****", "port": "1", "deviceId": "6052502784f3eb57****" }

Return example

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

Error code

For more information, see error code.