Payment details
#
DescriptionThe 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 formatBody 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#
TypeMode: String
These are the possible types of the payment mode:
free
when the charge is freeconsume-based
when the end user pay an amount in function of the consumptiontime-based
when the end user pay an amount in function of the timeflat
when the end user pay an amount separate from time and consumption