Download OpenAPI specification:Download
| Revision | Remark |
|---|---|
| 1.0.0 | The basic POI API's |
| 2.0.0 | Included authentication and transactions |
| 3.0.0 | Included the WebAPI keys |
| Point Status | Actual Meaning |
|---|---|
| Occupied | Point is available |
| OutOfService | Point is out of service |
| Reserved | Point is reserved |
| Unknown | Point status is unknown |
The HecOne WebAPI allows 3rd parties to integrate with Hectronic's ecosystem.
All endpoints require a valid access token (see POST /users/login). Use the token in the Authorization header:
Authorization: Bearer <access_token>
Tokens expire and must be refreshed using POST /users/refresh_token.
https://api.develop.hectronic.cloudhttps://api.test.hectronic.cloudhttps://api.one.hectronic.cloudThis service allows the user to login into the HecOne platform in a secure way. Use access_token from the response to access the API. The token's lifetime is limited. After expiration, token has to be requested again.
User credentials that needs to login. The user can login with either the pair username/password or client_id/client_secret
string [ 3 .. 30 ] characters .*\S.* User Email. If this is added then we have to provide the "password" field as well. | |
| password | string User Password. |
| client_id | string.*\S.* Client ID. If this is added then we have to provide the "client_secret" field as well. |
| client_secret | string Client Secret. |
{- "email": "email@company.com",
- "password": "password",
- "client_id": 2134,
- "client_secret": "GiJ0[R5Jr[59tb_9"
}{- "access_token": "jwt access token",
- "expires_in": 3600,
- "token_type": "Bearer",
- "refresh_token": "jwt refresh token",
- "id_token": "jwt id token"
}Refresh token of the user
| refresh_token required | string Current refresh token |
{- "refresh_token": "string"
}{- "access_token": "jwt access token",
- "expires_in": 3600,
- "token_type": "Bearer",
- "id_token": "jwt id token"
}The Transaction Service is used for managing all of your transactions in the HecOne platform. Using this service you can create a transaction, view transaction status and patch existing transactions with more details to move forward in the business flow.
This service adds a new transaction to the system.
Transaction object that needs to be added to the system. Wherever site_id is required the poi_id have to be provided.
| site_id required | string <uuid> The unique identifier of the site for which the transaction is taking place. |
| point_id | string <uuid> The unique identifier of the point for which the transaction is taking place. |
Array of objects (articles) List of articles used. | |
Array of objects (payments) List of payments. | |
object (customer_data_object) | |
object (receiptV3) | |
| terminal_transaction_number | string Has possible two parts. First is number of fiscal printer which can be empty. Second Is a number between 0 and 9999 or 0 and 99999 (Customer-dependent). This number helps with identification, but is not unique on its own (overflow). |
| session_id | string <uuid> The unique identifier of the session for which the transaction is taking place. |
{- "site_id": "72771e6a-6f5e-4de4-a5b9-1266c4197811",
- "point_id": "cd99f0d9-6824-4d90-b67f-24518d22d7b6",
- "articles": [
- {
- "id": "93a7a2ff-b08b-417d-ab46-c75b8d0729b4",
- "product_id": "93a7a2ff-b08b-417d-ab46-c75b8d0729b4",
- "category": "charging",
- "state": "reserved",
- "start_time": "2020-08-10T12:00:00+02:00",
- "end_time": "2020-08-10T13:15:00+02:00",
- "unit_price": 0.34,
- "amount": 10.5,
- "tax_percentage": 7.6,
- "tax_amount": 13,
- "quantity": 5,
- "free_quantity": 30,
- "max_amount": 120,
- "name": "Diesel",
- "unit_measure": "l",
- "currency": "EUR",
- "log": [
- {
- "code": 0,
- "description": "string",
- "timestamp": "2020-08-10T13:15:00+02:00",
- "level": "string"
}
], - "charge_detail_record": {
- "encoding_method": "string",
- "encoding_method_version": 0,
- "public_key": "string",
- "signed_values": [
- {
- "nature": "string",
- "plain_data": "string",
- "signed_data": "string"
}
]
}
}
], - "payments": [
- {
- "id": "3fa85f64-5717-4562-b3fc-dsad213das",
- "identification_id": "020983c3-023c-47ec-a858-f1b3834dd5cf",
- "state": "open",
- "created_at": "2020-08-10T12:01:00+02:00",
- "reserved_amount": 120,
- "amount": 70,
- "currency": "EUR",
- "card_entrymode": "Remote",
- "entry_mode": "Remote",
- "medium": "Card",
- "type": "PSPCard",
- "function": "SingleCard",
- "scheme": "7 Byte UID",
- "card_id": "5168 xxxx xxxx 8932",
- "pin": "string",
- "terminal_receipt": [
- "string"
], - "fiscal_receipt": [
- "string"
], - "log": [
- {
- "code": 0,
- "description": "string",
- "timestamp": "2020-08-10T13:15:00+02:00",
- "level": "string"
}
], - "additional_card": {
- "function": "SingleCard",
- "card_id": "5168 xxxx xxxx 8932"
}
}
], - "customer_data": {
- "odometer": 0,
- "driver_number": "string",
- "vehicle_number": "string",
- "additional_info": "string",
- "license_plate": "string",
- "cost_center": "string"
}, - "receipt": {
- "ocmf_start": "string",
- "ocmf_stop": "string",
- "state": "string",
- "email": "string",
- "links": {
- "customer_url": "string"
}, - "log": [
- {
- "code": 0,
- "description": "string",
- "timestamp": "2020-08-10T13:15:00+02:00",
- "level": "string"
}
]
}, - "terminal_transaction_number": "string",
- "session_id": "1ffd059c-17ea-40a8-8aef-70fd0307db82"
}{- "_links": {
- "self": "string",
- "next": "string",
- "prev": "string",
- "first": "string",
- "last": "string"
}, - "meta": {
- "limit": 0,
- "start": 0,
- "size": 0,
- "total": 0
}, - "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "mandator_id": "dc5a5bcf-08ed-4181-bdd6-b189c7f464f9",
- "state": "created",
- "invoice": {
- "amount": 0,
- "paid_amount": 0,
- "currency": "string",
- "created_at": "2020-08-10T13:15:00+02:00",
- "tax_amount": 0
}, - "client": {
- "id": "john.doe@test.com",
- "type": "user"
}, - "site_id": "72771e6a-6f5e-4de4-a5b9-1266c4197811",
- "point_id": "cd99f0d9-6824-4d90-b67f-24518d22d7b6",
- "articles": [
- {
- "id": "93a7a2ff-b08b-417d-ab46-c75b8d0729b4",
- "product_id": "93a7a2ff-b08b-417d-ab46-c75b8d0729b4",
- "category": "charging",
- "state": "reserved",
- "start_time": "2020-08-10T12:00:00+02:00",
- "end_time": "2020-08-10T13:15:00+02:00",
- "unit_price": 0.34,
- "amount": 10.5,
- "tax_percentage": 7.6,
- "tax_amount": 13,
- "quantity": 5,
- "free_quantity": 30,
- "max_amount": 120,
- "name": "Diesel",
- "unit_measure": "l",
- "currency": "EUR",
- "log": [
- {
- "code": 0,
- "description": "string",
- "timestamp": "2020-08-10T13:15:00+02:00",
- "level": "string"
}
], - "charge_detail_record": {
- "encoding_method": "string",
- "encoding_method_version": 0,
- "public_key": "string",
- "signed_values": [
- {
- "nature": "string",
- "plain_data": "string",
- "signed_data": "string"
}
]
}
}
], - "payments": [
- {
- "id": "3fa85f64-5717-4562-b3fc-dsad213das",
- "identification_id": "020983c3-023c-47ec-a858-f1b3834dd5cf",
- "state": "open",
- "created_at": "2020-08-10T12:01:00+02:00",
- "reserved_amount": 120,
- "amount": 70,
- "currency": "EUR",
- "card_entrymode": "Remote",
- "entry_mode": "Remote",
- "medium": "Card",
- "type": "PSPCard",
- "function": "SingleCard",
- "scheme": "7 Byte UID",
- "card_id": "5168 xxxx xxxx 8932",
- "pin": "string",
- "terminal_receipt": [
- "string"
], - "fiscal_receipt": [
- "string"
], - "log": [
- {
- "code": 0,
- "description": "string",
- "timestamp": "2020-08-10T13:15:00+02:00",
- "level": "string"
}
], - "additional_card": {
- "function": "SingleCard",
- "card_id": "5168 xxxx xxxx 8932"
}
}
], - "customer_data": {
- "odometer": 0,
- "driver_number": "string",
- "vehicle_number": "string",
- "additional_info": "string",
- "license_plate": "string",
- "cost_center": "string"
}, - "receipt": {
- "ocmf_start": "string",
- "ocmf_stop": "string",
- "state": "string",
- "email": "string",
- "links": {
- "customer_url": "string"
}, - "log": [
- {
- "code": 0,
- "description": "string",
- "timestamp": "2020-08-10T13:15:00+02:00",
- "level": "string"
}
]
}, - "terminal_transaction_number": "string",
- "session_id": "1ffd059c-17ea-40a8-8aef-70fd0307db82"
}
]
}| mandator_id required | string <uuid> It is internal unique ID of the Mandator/Tenant of the transactions to be returned. The mandator_id is the same as the one used for the authorization token. |
| sort | string Example: sort="name" Order ascending or descending the list of transactions by a property. For descending order the sort field should be prefixed with a minus('-'). All general fileds can be sorted and for nested objects only the created_at and amount from invoice, site_name, device_name and point_name |
| page[offset] | number Example: page[offset]=10 number of items that should be skipped and not included in the response |
| page[limit] | number Example: page[limit]=20 number of items to be included in the response |
| start_date required | string <date-time> Example: start_date="2020-08-10T10:00:00Z" |
| end_date required | string <date-time> Example: end_date="2020-08-10T10:00:00Z" |
| fileds | string Example: fileds=id,created_at,state,payments.amount Required for OpenSearch approach to get only the needed fields for transactions |
composite_filter_descriptor (object) or filter_descriptor (object) Filters should be sent as encoded URI. All general fields can be filtered and for nested object only the created_at from invoice. |
{- "_links": {
- "self": "string",
- "next": "string",
- "prev": "string",
- "first": "string",
- "last": "string"
}, - "meta": {
- "limit": 0,
- "start": 0,
- "size": 0,
- "total": 0
}, - "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "mandator_id": "dc5a5bcf-08ed-4181-bdd6-b189c7f464f9",
- "state": "created",
- "invoice": {
- "amount": 0,
- "paid_amount": 0,
- "currency": "string",
- "created_at": "2020-08-10T13:15:00+02:00",
- "tax_amount": 0
}, - "client": {
- "id": "john.doe@test.com",
- "type": "user"
}, - "site_id": "72771e6a-6f5e-4de4-a5b9-1266c4197811",
- "point_id": "cd99f0d9-6824-4d90-b67f-24518d22d7b6",
- "articles": [
- {
- "id": "93a7a2ff-b08b-417d-ab46-c75b8d0729b4",
- "product_id": "93a7a2ff-b08b-417d-ab46-c75b8d0729b4",
- "category": "charging",
- "state": "reserved",
- "start_time": "2020-08-10T12:00:00+02:00",
- "end_time": "2020-08-10T13:15:00+02:00",
- "unit_price": 0.34,
- "amount": 10.5,
- "tax_percentage": 7.6,
- "tax_amount": 13,
- "quantity": 5,
- "free_quantity": 30,
- "max_amount": 120,
- "name": "Diesel",
- "unit_measure": "l",
- "currency": "EUR",
- "log": [
- {
- "code": 0,
- "description": "string",
- "timestamp": "2020-08-10T13:15:00+02:00",
- "level": "string"
}
], - "charge_detail_record": {
- "encoding_method": "string",
- "encoding_method_version": 0,
- "public_key": "string",
- "signed_values": [
- {
- "nature": "string",
- "plain_data": "string",
- "signed_data": "string"
}
]
}
}
], - "payments": [
- {
- "id": "3fa85f64-5717-4562-b3fc-dsad213das",
- "identification_id": "020983c3-023c-47ec-a858-f1b3834dd5cf",
- "state": "open",
- "created_at": "2020-08-10T12:01:00+02:00",
- "reserved_amount": 120,
- "amount": 70,
- "currency": "EUR",
- "card_entrymode": "Remote",
- "entry_mode": "Remote",
- "medium": "Card",
- "type": "PSPCard",
- "function": "SingleCard",
- "scheme": "7 Byte UID",
- "card_id": "5168 xxxx xxxx 8932",
- "pin": "string",
- "terminal_receipt": [
- "string"
], - "fiscal_receipt": [
- "string"
], - "log": [
- {
- "code": 0,
- "description": "string",
- "timestamp": "2020-08-10T13:15:00+02:00",
- "level": "string"
}
], - "additional_card": {
- "function": "SingleCard",
- "card_id": "5168 xxxx xxxx 8932"
}
}
], - "customer_data": {
- "odometer": 0,
- "driver_number": "string",
- "vehicle_number": "string",
- "additional_info": "string",
- "license_plate": "string",
- "cost_center": "string"
}, - "receipt": {
- "ocmf_start": "string",
- "ocmf_stop": "string",
- "state": "string",
- "email": "string",
- "links": {
- "customer_url": "string"
}, - "log": [
- {
- "code": 0,
- "description": "string",
- "timestamp": "2020-08-10T13:15:00+02:00",
- "level": "string"
}
]
}, - "terminal_transaction_number": "string",
- "session_id": "1ffd059c-17ea-40a8-8aef-70fd0307db82",
- "site": {
- "name": "string",
- "code": "string",
- "timezone": "string",
- "street": "string",
- "city": "string"
}, - "device": {
- "name": "string",
- "code": "string"
}, - "point": {
- "name": "string",
- "number": 0
}, - "products": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "code": "string"
}
], - "card_issuer": {
- "vehicle_number": "string",
- "driver_name": "string"
}, - "log": [
- {
- "code": 0,
- "description": "string",
- "timestamp": "2020-08-10T13:15:00+02:00",
- "level": "string"
}
]
}
]
}| transaction_id required | string <uuid> Example: "8a159c56-1785-4d8b-a40e-22cb47f56bba" The ID of the transaction to be returned. |
| additional_info | boolean Example: additional_info=true Key if additional infomation required. |
{- "_links": {
- "self": "string",
- "next": "string",
- "prev": "string",
- "first": "string",
- "last": "string"
}, - "meta": {
- "limit": 0,
- "start": 0,
- "size": 0,
- "total": 0
}, - "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "mandator_id": "dc5a5bcf-08ed-4181-bdd6-b189c7f464f9",
- "state": "created",
- "invoice": {
- "amount": 0,
- "paid_amount": 0,
- "currency": "string",
- "created_at": "2020-08-10T13:15:00+02:00",
- "tax_amount": 0
}, - "client": {
- "id": "john.doe@test.com",
- "type": "user"
}, - "site_id": "72771e6a-6f5e-4de4-a5b9-1266c4197811",
- "point_id": "cd99f0d9-6824-4d90-b67f-24518d22d7b6",
- "articles": [
- {
- "id": "93a7a2ff-b08b-417d-ab46-c75b8d0729b4",
- "product_id": "93a7a2ff-b08b-417d-ab46-c75b8d0729b4",
- "category": "charging",
- "state": "reserved",
- "start_time": "2020-08-10T12:00:00+02:00",
- "end_time": "2020-08-10T13:15:00+02:00",
- "unit_price": 0.34,
- "amount": 10.5,
- "tax_percentage": 7.6,
- "tax_amount": 13,
- "quantity": 5,
- "free_quantity": 30,
- "max_amount": 120,
- "name": "Diesel",
- "unit_measure": "l",
- "currency": "EUR",
- "log": [
- {
- "code": 0,
- "description": "string",
- "timestamp": "2020-08-10T13:15:00+02:00",
- "level": "string"
}
], - "charge_detail_record": {
- "encoding_method": "string",
- "encoding_method_version": 0,
- "public_key": "string",
- "signed_values": [
- {
- "nature": "string",
- "plain_data": "string",
- "signed_data": "string"
}
]
}
}
], - "payments": [
- {
- "id": "3fa85f64-5717-4562-b3fc-dsad213das",
- "identification_id": "020983c3-023c-47ec-a858-f1b3834dd5cf",
- "state": "open",
- "created_at": "2020-08-10T12:01:00+02:00",
- "reserved_amount": 120,
- "amount": 70,
- "currency": "EUR",
- "card_entrymode": "Remote",
- "entry_mode": "Remote",
- "medium": "Card",
- "type": "PSPCard",
- "function": "SingleCard",
- "scheme": "7 Byte UID",
- "card_id": "5168 xxxx xxxx 8932",
- "pin": "string",
- "terminal_receipt": [
- "string"
], - "fiscal_receipt": [
- "string"
], - "log": [
- {
- "code": 0,
- "description": "string",
- "timestamp": "2020-08-10T13:15:00+02:00",
- "level": "string"
}
], - "additional_card": {
- "function": "SingleCard",
- "card_id": "5168 xxxx xxxx 8932"
}
}
], - "customer_data": {
- "odometer": 0,
- "driver_number": "string",
- "vehicle_number": "string",
- "additional_info": "string",
- "license_plate": "string",
- "cost_center": "string"
}, - "receipt": {
- "ocmf_start": "string",
- "ocmf_stop": "string",
- "state": "string",
- "email": "string",
- "links": {
- "customer_url": "string"
}, - "log": [
- {
- "code": 0,
- "description": "string",
- "timestamp": "2020-08-10T13:15:00+02:00",
- "level": "string"
}
]
}, - "terminal_transaction_number": "string",
- "session_id": "1ffd059c-17ea-40a8-8aef-70fd0307db82"
}
]
}This service add or update a transaction to the system. Updates the transaction if anything is to be changed/amended in the transaction.
| transaction_id required | string <uuid> Example: 8a159c56-1785-4d8b-a40e-22cb47f56bba The ID of the transaction to be returned. |
| site_id | string <uuid> The unique identifier of the site for which the transaction is taking place |
| point_id | string <uuid> The unique identifier of the point for which the transaction is taking place |
Array of objects (articles) | |
Array of objects (payments) | |
object (customer_data_object) | |
object (receiptV3) | |
| terminal_transaction_number | null or string Has possible two parts. First is number of fiscal printer which can be empty. Second Is a number between 0 and 9999 or 0 and 99999 (Customer-dependent). This number helps with identification, but is not unique on its own (overflow). |
| session_id | string <uuid> |
{- "site_id": "72771e6a-6f5e-4de4-a5b9-1266c4197811",
- "point_id": "cd99f0d9-6824-4d90-b67f-24518d22d7b6",
- "articles": [
- {
- "id": "93a7a2ff-b08b-417d-ab46-c75b8d0729b4",
- "product_id": "93a7a2ff-b08b-417d-ab46-c75b8d0729b4",
- "category": "charging",
- "state": "reserved",
- "start_time": "2020-08-10T12:00:00+02:00",
- "end_time": "2020-08-10T13:15:00+02:00",
- "unit_price": 0.34,
- "amount": 10.5,
- "tax_percentage": 7.6,
- "tax_amount": 13,
- "quantity": 5,
- "free_quantity": 30,
- "max_amount": 120,
- "name": "Diesel",
- "unit_measure": "l",
- "currency": "EUR",
- "log": [
- {
- "code": 0,
- "description": "string",
- "timestamp": "2020-08-10T13:15:00+02:00",
- "level": "string"
}
], - "charge_detail_record": {
- "encoding_method": "string",
- "encoding_method_version": 0,
- "public_key": "string",
- "signed_values": [
- {
- "nature": "string",
- "plain_data": "string",
- "signed_data": "string"
}
]
}
}
], - "payments": [
- {
- "id": "3fa85f64-5717-4562-b3fc-dsad213das",
- "identification_id": "020983c3-023c-47ec-a858-f1b3834dd5cf",
- "state": "open",
- "created_at": "2020-08-10T12:01:00+02:00",
- "reserved_amount": 120,
- "amount": 70,
- "currency": "EUR",
- "card_entrymode": "Remote",
- "entry_mode": "Remote",
- "medium": "Card",
- "type": "PSPCard",
- "function": "SingleCard",
- "scheme": "7 Byte UID",
- "card_id": "5168 xxxx xxxx 8932",
- "pin": "string",
- "terminal_receipt": [
- "string"
], - "fiscal_receipt": [
- "string"
], - "log": [
- {
- "code": 0,
- "description": "string",
- "timestamp": "2020-08-10T13:15:00+02:00",
- "level": "string"
}
], - "additional_card": {
- "function": "SingleCard",
- "card_id": "5168 xxxx xxxx 8932"
}
}
], - "customer_data": {
- "odometer": 0,
- "driver_number": "string",
- "vehicle_number": "string",
- "additional_info": "string",
- "license_plate": "string",
- "cost_center": "string"
}, - "receipt": {
- "ocmf_start": "string",
- "ocmf_stop": "string",
- "state": "string",
- "email": "string",
- "links": {
- "customer_url": "string"
}, - "log": [
- {
- "code": 0,
- "description": "string",
- "timestamp": "2020-08-10T13:15:00+02:00",
- "level": "string"
}
]
}, - "terminal_transaction_number": null,
- "session_id": "1ffd059c-17ea-40a8-8aef-70fd0307db82"
}{- "_links": {
- "self": "string",
- "next": "string",
- "prev": "string",
- "first": "string",
- "last": "string"
}, - "meta": {
- "limit": 0,
- "start": 0,
- "size": 0,
- "total": 0
}, - "data": [
- {
- "id": "497f6eca-6276-4993-bfeb-53cbbbba6f08",
- "mandator_id": "dc5a5bcf-08ed-4181-bdd6-b189c7f464f9",
- "state": "created",
- "invoice": {
- "amount": 0,
- "paid_amount": 0,
- "currency": "string",
- "created_at": "2020-08-10T13:15:00+02:00",
- "tax_amount": 0
}, - "client": {
- "id": "john.doe@test.com",
- "type": "user"
}, - "site_id": "72771e6a-6f5e-4de4-a5b9-1266c4197811",
- "point_id": "cd99f0d9-6824-4d90-b67f-24518d22d7b6",
- "articles": [
- {
- "id": "93a7a2ff-b08b-417d-ab46-c75b8d0729b4",
- "product_id": "93a7a2ff-b08b-417d-ab46-c75b8d0729b4",
- "category": "charging",
- "state": "reserved",
- "start_time": "2020-08-10T12:00:00+02:00",
- "end_time": "2020-08-10T13:15:00+02:00",
- "unit_price": 0.34,
- "amount": 10.5,
- "tax_percentage": 7.6,
- "tax_amount": 13,
- "quantity": 5,
- "free_quantity": 30,
- "max_amount": 120,
- "name": "Diesel",
- "unit_measure": "l",
- "currency": "EUR",
- "log": [
- {
- "code": 0,
- "description": "string",
- "timestamp": "2020-08-10T13:15:00+02:00",
- "level": "string"
}
], - "charge_detail_record": {
- "encoding_method": "string",
- "encoding_method_version": 0,
- "public_key": "string",
- "signed_values": [
- {
- "nature": "string",
- "plain_data": "string",
- "signed_data": "string"
}
]
}
}
], - "payments": [
- {
- "id": "3fa85f64-5717-4562-b3fc-dsad213das",
- "identification_id": "020983c3-023c-47ec-a858-f1b3834dd5cf",
- "state": "open",
- "created_at": "2020-08-10T12:01:00+02:00",
- "reserved_amount": 120,
- "amount": 70,
- "currency": "EUR",
- "card_entrymode": "Remote",
- "entry_mode": "Remote",
- "medium": "Card",
- "type": "PSPCard",
- "function": "SingleCard",
- "scheme": "7 Byte UID",
- "card_id": "5168 xxxx xxxx 8932",
- "pin": "string",
- "terminal_receipt": [
- "string"
], - "fiscal_receipt": [
- "string"
], - "log": [
- {
- "code": 0,
- "description": "string",
- "timestamp": "2020-08-10T13:15:00+02:00",
- "level": "string"
}
], - "additional_card": {
- "function": "SingleCard",
- "card_id": "5168 xxxx xxxx 8932"
}
}
], - "customer_data": {
- "odometer": 0,
- "driver_number": "string",
- "vehicle_number": "string",
- "additional_info": "string",
- "license_plate": "string",
- "cost_center": "string"
}, - "receipt": {
- "ocmf_start": "string",
- "ocmf_stop": "string",
- "state": "string",
- "email": "string",
- "links": {
- "customer_url": "string"
}, - "log": [
- {
- "code": 0,
- "description": "string",
- "timestamp": "2020-08-10T13:15:00+02:00",
- "level": "string"
}
]
}, - "terminal_transaction_number": "string",
- "session_id": "1ffd059c-17ea-40a8-8aef-70fd0307db82"
}
]
}| mandator_id required | string <uuid> The ID of the mandator to which the transaction to be returned. |
| start_date required | string <date-time> Example: start_date="2020-08-10T10:00:00Z" |
| end_date required | string <date-time> Example: end_date="2020-08-10T10:00:00Z" |
| fileds | string Example: fileds=id,created_at,state,payments.amount Required for OpenSearch approach to get only the needed fields for transactions |
composite_filter_descriptor (object) or filter_descriptor (object) Filters should be sent as encoded URI. All general fields can be filtered and for nested object only the created_at from invoice. |
{- "_links": {
- "self": "string",
- "next": "string",
- "prev": "string",
- "first": "string",
- "last": "string"
}, - "meta": {
- "limit": 0,
- "start": 0,
- "size": 0,
- "total": 0
}, - "data": [
- {
- "hourly_transactions": [
- {
- "hour": "string",
- "transactions": 0
}
], - "payment_type_ranking": [
- {
- "amount": 0,
- "payment_type": "string"
}
], - "payment_medium_ranking": [
- {
- "amount": 0,
- "payment_medium": "string"
}
], - "payment_scheme_ranking": [
- {
- "amount": 0,
- "payment_scheme": "string"
}
], - "payment_entry_mode_ranking": [
- {
- "amount": 0,
- "payment_entry_mode": "string"
}
], - "payment_function_ranking": [
- {
- "amount": 0,
- "payment_function": "string"
}
], - "article_quantities_ranking": [
- {
- "unit_measure": "string",
- "articles_quantities": [
- {
- "article_name": "string",
- "quantity": 0
}
]
}
], - "sites_amount_ranking": [
- {
- "amount": 0,
- "site_name": "string"
}
], - "sites_transactions_ranking": [
- {
- "site_name": "string",
- "transactions": 0
}
], - "transactions_count": {
- "growth": 0,
- "value": 0
}, - "transactions_total_amount": {
- "growth": 0,
- "value": 0
}
}
]
}The Point Of Interest (POI) service fetches various details and data belonging to the sites/locations, devices and refuelling/eCharging points from the HecOne platform to be shared to the external world via custom apps.
The POI service enables mobile and web apps to display charging and refuelling points in a map. Beside the geo-position of those points it also allows to see open hours, products and more information of this site - including the availability of the points (how many are occupied or out of service).
Returns a list of Points of Interest within the specified geographical coordinates and of the specific Refuelling/Charging type.
Usage - The 'Start' and 'End' of Latitudes and Longitudes are to be used like this: on the Map, use the Lat start , Long start for picking up the co-ordinates of the top left corner of the page; then the Lat and Long End to pick the co-ordinates at the bottom right corner of the page. The response provides the POIs within the map area on the screen. For a cleaner user experience, its important to share the Lat and Long of start, end accordingly as the user zooms in and zooms out in the screen.
| lat_start required | number The starting latitude coordinate for the geographical area within which Point of Interest(POI) will be searched. |
| long_start required | number The starting longitude coordinate for the geographical area within which Point of Interest(POI) will be searched. |
| lat_end required | number The ending latitude coordinate for the geographical area within which Point of Interest(POI) will be searched. To be used when we need to fetch the POIs between two locations (useful for routing). |
| long_end required | number The ending longitude coordinate for the geographical area within which Point of Interest(POI) will be searched. To be used when we need to fetch the POIs between two locations (useful for routing). |
| poi_type required | Array of strings The type of Point of Interest (POI) to be searched based of fuel type such as "ChargingStation" or "RefuellingStation". |
| con_type | Array of strings The type of Charging Connector to be searched. Valid for ChargingStation only. |
| max_power | string This field/value indicates the maximum power that a device can dispense via the point. The above example helps in filtering out POIs that have a maximum power output of 50 KwH or more. |
{- "lat_start": 49.18531,
- "long_start": 7.18531,
- "lat_end": 51.142391,
- "long_end": 10.392011,
- "poi_type": [
- "ChargingStation"
], - "con_type": [
- "CCS",
- "Chademo"
], - "max_power": "50+"
}{- "data": [
- {
- "id": "0004f780-f4e2-421f-b5f9-22f191f36265",
- "lat": 50.913668,
- "long": 9.181833,
- "available": "5",
- "total": "6",
- "max_power": 300,
- "is_restricted": false,
- "name": "340 017S Schwalmstadt, Tegut 1"
}, - {
- "id": "f3c1d6b9-0be7-4562-95d9-b38046218b72",
- "lat": 51.123456,
- "long": 8.765432,
- "available": "3",
- "total": "5",
- "max_power": 250,
- "is_restricted": true,
- "name": "340 018S Example Location"
}
]
}Returns detailed information about a specific Point of Interest(POI) identified by its ID.
| poi_id required | string The unique internal identifier for the Point of Interest(POI)/location. |
{- "poi_id": "4d3c9dad-dd74-4abe-a57d-06822ef04ac8",
- "code": null,
- "name": "BERANGER - SIEGE - 92183",
- "operator_name": "Liikennevirta Oy (CPO)",
- "payment_method": "App;HecOne",
- "protocol": "OICP",
- "street": "12 boulevard Claude Antonetti",
- "city": "la penne sur huveaune",
- "country": "FRA",
- "zip": null,
- "poi_type": "ChargingStation",
- "lat": "43.28654",
- "long": "5.51344",
- "working_hours": null,
- "total": 4,
- "available": 1,
- "points": [
- {
- "poi_id": "4d3c9dad-dd74-4abe-a57d-06822ef04ac8",
- "id": "45599de9-45f2-47bf-867d-1923f26abad2",
- "name": "Point 1",
- "type": "point",
- "evse_id": "FR*VIR*E92183",
- "status": "available",
- "max_power": 22,
- "number": null,
- "access": "Public accessible",
- "category": null,
- "device_id": null,
- "con_type": {
- "CF": null,
- "CS": "Type2",
- "PT": null
}, - "products": [
- {
- "poi_id": "4d3c9dad-dd74-4abe-a57d-06822ef04ac8",
- "point_id": "45599de9-45f2-47bf-867d-1923f26abad2",
- "id": "e27e2ddc-f619-44fd-8352-d8297ea09f07",
- "number": "5",
- "unit_measure": "min",
- "unit_price": "2",
- "name": "Test Idle Fee",
- "category": "charging",
- "code": "500",
- "description": "null",
- "currency": "EUR",
- "tax_percentage": 19,
- "max_amount": 120
}
]
}, - {
- "poi_id": "4d3c9dad-dd74-4abe-a57d-06822ef04ac8",
- "id": "5c1788a8-cc22-419e-827d-6fb523aebe6c",
- "name": "Point 2",
- "type": "point",
- "evse_id": "FR*E10*E92184",
- "status": "occupied",
- "max_power": 22,
- "number": null,
- "access": "Public accessible",
- "category": null,
- "device_id": null,
- "con_type": {
- "CF": null,
- "CS": "Type2",
- "PT": null
}, - "products": [ ]
}, - {
- "poi_id": "4d3c9dad-dd74-4abe-a57d-06822ef04ac8",
- "id": "4f2ea6de-acf2-4bca-98f1-93021990ba81",
- "name": "Point 3",
- "type": "point",
- "evse_id": "FR*VIR*E92184",
- "status": "occupied",
- "max_power": 22,
- "number": null,
- "access": "Public accessible",
- "category": null,
- "device_id": null,
- "con_type": {
- "CF": null,
- "CS": "Type2",
- "PT": null
}, - "products": [ ]
}, - {
- "poi_id": "4d3c9dad-dd74-4abe-a57d-06822ef04ac8",
- "id": "3a589307-64e6-4180-9067-b559e8319298",
- "name": "Point 4",
- "type": "point",
- "evse_id": "FR*E10*E92183",
- "status": "occupied",
- "max_power": 22,
- "number": null,
- "access": "Public accessible",
- "category": null,
- "device_id": null,
- "con_type": {
- "CF": null,
- "CS": "Type2",
- "PT": null
}, - "products": [
- {
- "poi_id": "4d3c9dad-dd74-4abe-a57d-06822ef04ac8",
- "point_id": "3a589307-64e6-4180-9067-b559e8319298",
- "id": "e27e2ddc-f619-44fd-8352-d8297ea09f07",
- "number": "5",
- "unit_measure": "min",
- "unit_price": 2,
- "name": "Test Idle Fee",
- "category": "charging",
- "code": "500",
- "description": "null",
- "currency": "EUR",
- "tax_percentage": 19,
- "max_amount": 120
}
]
}
], - "pumps": [
- {
- "poi_id": "4d3c9dad-dd74-4abe-a57d-06822ef04ac8",
- "id": "2005cab4-117f-42ee-bc41-03842b6e25ee",
- "type": "pump",
- "evse_id": "null",
- "status": "online",
- "max_power": 230,
- "number": "1",
- "access": "restricted",
- "category": "PUMP01",
- "device_id": "2",
- "con_type": "null",
- "products": [
- {
- "poi_id": "4d3c9dad-dd74-4abe-a57d-06822ef04ac8",
- "point_id": "2005cab4-117f-42ee-bc41-03842b6e25ee",
- "id": "398075b3-db57-40bd-810b-2438ed70c9bf",
- "number": "5",
- "unit_measure": "LTR",
- "unit_price": 2,
- "name": "Super",
- "category": "refuelling",
- "code": "23452",
- "description": "null",
- "currency": "EUR",
- "tax_percentage": 10,
- "max_amount": 120
}
]
}
], - "is_favorite": false
}Retrieve POI data using polyline coordinates.
| encoded_polyline required | string The polyline data to be encoded. |
| range required | number The range(in meters) the polyline data to be encoded. |
| poi_type required | Array of strings The type of Point of Interest (POI) to be searched based of fuel type such as "ChargingStation" or "RefuellingStation". |
| include_restricted | boolean Whether to include restricted POIs. If this is true the response includes the restriced access POIs as well. |
| max_power | string The maximum power in KwH that charging points at a particular POI (Point of interest) can dispense. This will be valid only for eCharging POIs only. The above example helps in filtering out POIs that have a maximum power output of 50 KwH or more. |
{- "encoded_polyline": "H4sIAAAAAAAAE219y85tO4/Vu9BGv3",
- "range": 500,
- "poi_type": "ChargingStation",
- "include_restricted": false,
- "max_power": "50+"
}{- "data": [
- {
- "id": "0004f780-f4e2-421f-b5f9-22f191f36265",
- "lat": 50.913668,
- "long": 9.181833,
- "available": "5",
- "total": "6",
- "max_power": 300,
- "is_restricted": false,
- "name": "340 017S Schwalmstadt, Tegut 1"
}, - {
- "id": "f3c1d6b9-0be7-4562-95d9-b38046218b72",
- "lat": 51.123456,
- "long": 8.765432,
- "available": "3",
- "total": "5",
- "max_power": 250,
- "is_restricted": true,
- "name": "340 018S Example Location"
}
]
}Retrieves various filters such as access types, connection types, product names, payment methods, protocols, refuelling operators, charging operators, and max power.
{- "access": [
- {
- "id": 1,
- "code": "RA",
- "description": "Restricted access"
}, - {
- "id": 2,
- "code": "UN",
- "description": "Unspecified"
}, - {
- "id": 3,
- "code": "PA",
- "description": "Public accessible"
}, - {
- "id": 4,
- "code": "PPBA",
- "description": "Paying publicly accessible"
}, - {
- "id": 5,
- "code": "PPA",
- "description": "Paying personal access"
}
], - "max_power": [
- {
- "id": 6,
- "code": "<50",
- "description": "Less than 50 KwH."
}, - {
- "id": 7,
- "code": "50>",
- "description": "Greater than or equal to 50 KwH."
}
]
}Retrieve available options for a specified filter type such as payment methods, operator names, access types, connection types, and protocols.
| filter_type required | string Enum: "payment_method" "max_power" "operator_name" "access" "con_type" "product_name" "protocol" The type of filter to retrieve. |
[- {
- "id": 1,
- "code": "RA",
- "description": "Restricted access"
}, - {
- "id": 2,
- "code": "UN",
- "description": "Unspecified"
}, - {
- "id": 3,
- "code": "PA",
- "description": "Public accessible"
}, - {
- "id": 4,
- "code": "PPBA",
- "description": "Paying publicly accessible"
}
]Add POI as a favorite
| user_id required | string Example: "david" The unique internal identifier of the user. |
| poi_id required | string The unique internal identifier for the Point of Interest (POI). |
{- "poi_id": "ed2ad63b-eea0-4fc6-9e51-c23f9fbe18f3"
}{- "result": {
- "msg": "Record inserted successfully!"
}
}Get POI as a favorite
| user_id required | string Example: "david" The unique internal identifier of the user. |
{- "result": [
- {
- "poi_id": "ed2ad63b-eea0-4fc6-9e51-c23f9fbe18f3",
- "poi_type": "ChargingStation",
- "lat": "47.877153",
- "long": "12.337174",
- "available": "1",
- "total": 2,
- "max_power": 22,
- "is_restricted": false,
- "name": "Gemeinde Rimsting"
}, - {
- "poi_id": "0004f780-f4e2-421f-b5f9-22f191f36265",
- "poi_type": "ChargingStation",
- "lat": "50.913668",
- "long": "9.181833",
- "available": "5",
- "total": 6,
- "max_power": 300,
- "is_restricted": false,
- "name": "340 017S Schwalmstadt, Tegut 1"
}
]
}Remove POI as a favorite
| user_id required | string Example: "david" The unique internal identifier of the user. |
| poi_id required | string The unique internal identifier for the Point of Interest (POI). |
{- "poi_id": "ed2ad63b-eea0-4fc6-9e51-c23f9fbe18f3"
}{- "result": {
- "msg": "Record Removed successfully!"
}
}