Log inTalk to us

Read a location's default tariff

get/v1/tenants/{tenant_id}/locations/{location_id}/default-tariff
Requires an API key

The tariff that prices the location's connectors that have no tariff of their own (tariff_id null when none is set). Read what applies to one connector with its effective-tariff route. Needs stations:read.

Path parameters

  • tenant_idintegerRequired
  • location_idintegerRequired

Returns · 200

  • scopeenumRequired
    location: the default of one location; project: the project's default.
    One of location, project
  • location_idinteger | nullRequired
    The location, when scope is location.
  • tariff_idinteger | nullRequired
    The default tariff; null when none is set.
  • previous_tariff_idinteger | null
    Set by a change: the default before; null when there was none or on a read.
  • changedboolean | null
    Set by a change: false when the default already was this tariff.
GET /v1/tenants/{tenant_id}/locations/{location_id}/default-tariff
curl --fail-with-body "https://api.ivoracharge.com/v1/tenants/1042/locations/7/default-tariff" \
  -H "Authorization: Bearer $IVORA_API_KEY"
Response · 200JSON
{
  "scope": "location",
  "location_id": 7,
  "tariff_id": 42,
  "previous_tariff_id": 1,
  "changed": false
}
Requires an approved production API keyProduction access starts with a request, a short meeting with Ivora and a card on file, after which Ivora staff grant your account access. How to request access
Try itproduction · api.ivoracharge.com

Paste a production api key (iv_live_…). Create keys in Developer tools. The key stays in this page's memory, is sent only to https://api.ivoracharge.com and clears when you reload. Test keys are refused.