Start a charge
#
DescriptionWhen a charge has succesfully started or has been rejected by the chargebox, Thor will send a notification to your system. To receive this message you'll have to configure the Start charge section of the API integration.
If you want to know more about the remote charge workflow, take a look to this guide or this guide.
#
Request formatMethod: POST
Body format: JSON
Key | Type | Description |
---|---|---|
type | String | Specifies that this message is a start charge notification. For this request it will be always equal to "start". |
accepted | Boolean | true if the transaction has succesfully started. |
chargebox | String | The chargebox identifier. |
id | String | The RFID value or the value generated by the server returned here. |
connector | Integer | The connector where the charge has been started or rejected. |
transaction_id | Integer | The transaction progressive (0 when accepted = false ). |
mode | Charge mode | The way the transaction was started. |
payment | Payment | (if available for client) The settings of the payment choosen by client to calculate che total price |
Request schema:
#
Expected responseA nice 200 - OK
is more than enough for Thor.
If you choose the API payment management Thor expects to receive 200 - OK
and the amount in a JSON in this format:
#
Enums#
Charge modeMode: String
These are the possible types of the charge mode:
local
when the charge was started with an RFID cardremote
when the charge was started via the Thor end users applicationapi
when the charge was started via an API request