POST api/Charging/Charge
Request Information
URI Parameters
None.
Body Parameters
KiviCOM.API.Business.Stations.Charging.ChargeRequestInfo| Name | Description | Type | Additional information |
|---|---|---|---|
| Action | string |
None. |
|
| StationId | integer |
None. |
|
| StationCode | string |
None. |
|
| SocketId | integer |
None. |
|
| ChargingHistoryId | integer |
None. |
|
| IsERoaming | boolean |
None. |
|
| PaymentAuthorize | boolean |
None. |
Request Formats
application/json, text/json
Sample:
{
"Action": "sample string 1",
"StationId": 2,
"StationCode": "sample string 3",
"SocketId": 4,
"ChargingHistoryId": 1,
"IsERoaming": true,
"PaymentAuthorize": true
}
text/xml
Sample:
<ChargeRequestInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/KiviCOM.API.Business.Stations.Charging"> <Action>sample string 1</Action> <ChargingHistoryId>1</ChargingHistoryId> <IsERoaming>true</IsERoaming> <PaymentAuthorize>true</PaymentAuthorize> <SocketId>4</SocketId> <StationCode>sample string 3</StationCode> <StationId>2</StationId> </ChargeRequestInfo>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
KiviCOM.API.Business.Stations.Charging.ChargeResponseInfo| Name | Description | Type | Additional information |
|---|---|---|---|
| TransactionId | integer |
None. |
|
| TransactionERoamingId | string |
None. |
|
| Message | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"TransactionId": 1,
"TransactionERoamingId": "sample string 2",
"Message": "sample string 3"
}
text/xml
Sample:
<ChargeResponseInfo xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/KiviCOM.API.Business.Stations.Charging"> <Message>sample string 3</Message> <TransactionERoamingId>sample string 2</TransactionERoamingId> <TransactionId>1</TransactionId> </ChargeResponseInfo>