Stop Charging

Last Updated on : 2023-06-21 07:12:54download

A charging station proactively stops charging. The API of starting charging includes a timer. This API can be requested to proactively stop charging when the charging service is started but the end time is not reached.

API address

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

Request parameter

Parameter name Type IN Required Description
req ChargingPileEndChargeReq 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, used to start charging. It is customized by the merchant.

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/initiative/end-charge
{ "serialNumber": "12d1b823a580****", "port": "1", "deviceId": "6052502784f3eb57****" }

Return example

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

Error code

For more information, see error code.