HomeGuidesAPI ReferenceChangelog
Log In
API Reference

Creates a new location.

Recent Requests
Log in to see full request history
TimeStatusUser Agent
Retrieving recent requests…
LoadingLoading…
Body Params
string
required

Location name

string
required

Street address of the location

string
required

Postal code

string
required

City name

string
required

ISO-31661 alpha-2 country code of the CPO that 'owns' this location.

facilities
array of strings

List of available facilities at the location

facilities
coordinates
object
required

Geographical coordinates of the location

boolean
required

Defines if a location may be published on websites & apps etc. This will be true for public locations

openingTimes
object

The times when the EVSEs at the location can be accessed for charging

string
enum
Defaults to ON_STREET

Type of parking available.

The mapping of the parkingType to the Spirii location Type is visible in the table below:

[ParkingType] - [Spirii Location Type]

ON_STREET - Public road

ON_DRIVEWAY - Residential

PARKING_LOT - Parking lot

PARKING_GARAGE - Parking lot (indoor)

UNDERGROUND_GARAGE - Parking lot (underground)

OTHER - Hotel

Allowed:
number

Legacy ID of the customer that 'owns' the location. An 'owner' represents a 'customer' in the Spirii Connect portal/UI. While the term 'ownerId' is outdated, this ID is retained for backward compatibility with legacy systems.

number

ID of the customer that 'owns' the location. The 'customerId' is the unique identifier for a customer. The 'customer' can be found in the Connect Customer management page. This customer ID corresponds with the customer ID that can be retrieved from the Customer v2 API.

string

Uniquely identifies the tariff within the CPO’s platform

number
deprecated

The tariff displayed for all the users who are using older versions of the app

boolean

If a location allows priority charging

string

An optional identifier used to reference specific charging sessions or transactions in invoices

Responses

201

Creates an new location. The operator will be derived from the logged in user

400

Bad Request provided. A message will describe the issue.

403

Authorization header token is invalid or not provided.

500

Internal Server Error.

Language
Credentials
Header
LoadingLoading…
Response
Click Try It! to start a request and see the response here! Or choose an example:
application/json