Payment details
Description#
The price specifications choosen using the API Server control panel could be sent to API receiver that can use it for the price count. This is a section of start-charge, of meter-values and of stop-charge requests from Thor
This json section is available if the service is active
Request format#
Body format: JSON
| Key | Type | Description |
|---|---|---|
| type | Type | Specify the type of payment option choosen |
| options | {}Option | The options setted using API Server for the payment. |
| options.theshold_hour | Float | (if choosen). This is a data you can use to make some more complicate calculations. For example if you need a theshold price for the hour |
| options.unit | String | The RFID value or the value generated by the server returned here. |
| options.currency | String | The currency of the transaction (default eur). |
| options.amount | Float | The amount of the payment based on unit choosen. |
| options.start_charge | Float | The price you choose to apply when the transaction was started. |
| options.minimum_threshold | Integer | Minumum charging threshold (minutes). |
Request schema:
Enums#
Type#
Mode: String
These are the possible types of the payment mode:
freewhen the charge is freeconsume-basedwhen the end user pay an amount in function of the consumptiontime-basedwhen the end user pay an amount in function of the timeflatwhen the end user pay an amount separate from time and consumption