Add or replace a tariff in an existing location of an integration between customer and third party
x-ms-visibility: "important"
Use POST to add a tariff and PUT to replace the current tariff with a new one in location of an integration. If only locationId exists in the request body, the tariff will be set to the whole location. If chargerIds exist, the tariff is set only to those chargers and if no sockets are mentioned, then all the sockets get the tariff. If sockets exist, the tariff is set only those sockets.
Path Parameters
integrationId string required
Unique identifier for the integration
tariffId string required
Unique identifier for the tariff of the integration
application/json
Request Body
Request body with the location(s), charger (s) and/or sockets
- Array [
- Array [
- ]
- ]
locations object[]
locationId string
chargers object[]
chargerId string
sockets string[]
Responses
- 200
- 400
- 401
- 404
Returns the integration id if update was successful
application/json
Schema
Example (from schema)
response
Schema
integrationId string
{
"integrationId": "string"
}
{"integrationId":"123"}
Something went wrong
Not authorised
Item not found
Loading...