POST api/Transaction/StartTransaction
Request Information
URI Parameters
None.
Body Parameters
AddTransactionModel| Name | Description | Type | Additional information |
|---|---|---|---|
| UserID | globally unique identifier |
None. |
|
| CustomerID | globally unique identifier |
None. |
|
| VehicleID | globally unique identifier |
None. |
|
| StationID | globally unique identifier |
None. |
|
| ConnectorNumber | integer |
None. |
|
| Platform | string |
None. |
Request Formats
application/json, text/json
Sample:
{
"UserID": "fcba3ec0-11fc-4fda-93d8-a83dc9089a0e",
"CustomerID": "86af0e14-ab7c-4c04-b3fe-d22270296b2f",
"VehicleID": "b468a463-d009-4f57-904d-385b43dc7863",
"StationID": "e9a4f085-9231-4d1a-827f-1464ab3b5d65",
"ConnectorNumber": 5,
"Platform": "sample string 6"
}
text/html, multipart/form-data
Sample:
{"UserID":"fcba3ec0-11fc-4fda-93d8-a83dc9089a0e","CustomerID":"86af0e14-ab7c-4c04-b3fe-d22270296b2f","VehicleID":"b468a463-d009-4f57-904d-385b43dc7863","StationID":"e9a4f085-9231-4d1a-827f-1464ab3b5d65","ConnectorNumber":5,"Platform":"sample string 6"}
application/xml, text/xml
Sample:
<AddTransactionModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VarCharge.MobilApi.Models.Transaction"> <ConnectorNumber>5</ConnectorNumber> <CustomerID>86af0e14-ab7c-4c04-b3fe-d22270296b2f</CustomerID> <Platform>sample string 6</Platform> <StationID>e9a4f085-9231-4d1a-827f-1464ab3b5d65</StationID> <UserID>fcba3ec0-11fc-4fda-93d8-a83dc9089a0e</UserID> <VehicleID>b468a463-d009-4f57-904d-385b43dc7863</VehicleID> </AddTransactionModel>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
StartTransactionResultModel| Name | Description | Type | Additional information |
|---|---|---|---|
| TransactionID | string |
None. |
|
| TransactionCreated | boolean |
None. |
|
| Description | string |
None. |
Response Formats
application/json, text/json
Sample:
{
"TransactionID": "sample string 1",
"TransactionCreated": true,
"Description": "sample string 3"
}
text/html, multipart/form-data
Sample:
{"TransactionID":"sample string 1","TransactionCreated":true,"Description":"sample string 3"}
application/xml, text/xml
Sample:
<StartTransactionResultModel xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/VarCharge.MobilApi.Models.Transaction"> <Description>sample string 3</Description> <TransactionCreated>true</TransactionCreated> <TransactionID>sample string 1</TransactionID> </StartTransactionResultModel>