Stop a charge
#
DescriptionThis endpoint is used to stop a running charge. The charge can either a local charge or a remote.
#
Request formatMethod: POST
Endpoint: https://dev.api.thor.tools/latest/integration/charges/stop
Body format: JSON
Key | Type | Description |
---|---|---|
chargebox | String | The unique chargebox identifier. |
connector | Integer | The connector where you want to start the charge. |
id_tag | String | The identifier that the chargebox used to start a transaction. |
transaction | Integer | The transaction progressive returned by the Start charge request from Thor. This field is optional. |
Request schema:
#
Response formatThe response doesn't conain any field, but if it has an HTTP status code 200 - OK
, it means that the request was sent to the chargebox.
#
Error responseThe following errors are returned if something went wrong while processing the request:
HTTP status code | Message | Description |
---|---|---|
400 | ConnectorNotValid | The connector value is lesser than or equal to zero. |
400 | NotInTransaction | The given connector of the given chargebox is currently not involved in a transaction. |
400 | WrongTransaction | The id_tag or transaction (if given) field is not valid. |
403 | APIKeyNotFound | An invalid API key was given in the header of the request. |
403 | RestAPINotEnabled | REST API integration is set as disabled in the administration dashboard. |
403 | InvalidSourceIPAddr | The request comes from an IP address that is different from the one given in the REST API integration configuration. |
404 | ChargeboxNotFound | No chargebox with the give identifier was found. |
500 | InternalServerError | Something unexpected went wrong while executing the request. |