Record the previous platform's baseline of chargers
What the previous platform has for each charger, from its export: configuration keys and values, the tariff (currency and prices in minor units) and the sessions it recorded in a window (count and energy in Wh). Parity reports compare it with Ivora's records. A section given replaces that section of the charger's baseline; the others stay. Secret configuration keys (passwords, keys, tokens) and the keys that decide where the charger connects (CentralSystemURL and similar) are dropped and never stored. Prices are minor units, decimals for a sub-cent price. 64 KiB per call (about 25 chargers with a full OCPP 1.6 configuration; tariff-only baselines up to 500); a configuration has at most 300 keys, each value at most 500 characters. Needs migration:import (client, support, partner; a key needs stations:write). A participant narrowed to some sites covers and reads the chargers at its sites only. Audited (migration.parity.baseline_recorded) in the same transaction; nothing is recorded unless its entry is stored. Errors: 404 migration_charger_not_in_migration, 404 migration_not_found, 409 migration_closed, 413 request_too_large, 503 migration_audit_unavailable. See Errors and statuses.
Path parameters
- migration_idstringRequiredPattern
^mig_[0-9a-f]{32}$
Request body
- chargersarray of BaselineChargerRequiredEach charger's baseline; a section given replaces that section of its earlier baseline, the sections left out stay. The body is at most 64 KiB: about 25 chargers with a full OCPP 1.6 configuration, up to 500 with a tariff only.
Child attributes
- station_idintegerRequiredA charger of the migration.Greater than 0
- configurationobject | nullThe charger's configuration on the previous platform: key to value (at most 300 keys, values at most 500 characters), keys named as Ivora's configuration read names them (OCPP 1.6 keys such as MeterValueSampleInterval; OCPP 2.x component/variable labels). Secret keys (passwords, keys, tokens) and the keys that decide where the charger connects (CentralSystemURL and similar) are dropped, never stored.
- tariffobject | nullThe price the previous platform charges on it.
Child attributes
- currencystringRequiredISO 4217, upper case.Pattern
^[A-Z]{3}$ - rate_minor_per_kwhinteger | number | nullEnergy price, minor units per kWh; null or 0: none. Decimal minor units for a sub-cent price (35.5: USD 0.355), at most 4 decimals.
- rate_minor_per_minuteinteger | number | nullTime price, minor units per minute; null or 0: none. Decimal minor units for a sub-cent price (35.5: USD 0.355), at most 4 decimals.
- session_fee_minorinteger | number | nullFlat fee per session, minor units; null or 0: none. Decimal minor units for a sub-cent price (35.5: USD 0.355), at most 4 decimals.
- sessionsobject | nullThe sessions the previous platform recorded on it in a window.
Child attributes
- sincestringRequiredThe window's start (ISO 8601 with offset), inclusive: sessions that started at or after it.Up to 40 characters
- untilstringRequiredThe window's end (ISO 8601 with offset), exclusive. At most 31 days after since.Up to 40 characters
- countintegerRequiredSessions the previous platform recorded on the charger that started in the window.Minimum 0 · Maximum 1000000
- energy_whintegerRequiredTheir energy, Wh, summed.Minimum 0 · Maximum 1000000000000
Returns · 200
- recordedintegerRequired
- chargersarray of BaselineRecordedRequired
Child attributes
- station_idintegerRequired
- charger_keystringRequired
- sectionsarray of enumRequiredThe sections this call recorded.
- dropped_keysarray of stringRequiredConfiguration keys left out, never stored: secrets, and the keys that decide where the charger connects (never compared; a URL can carry credentials).
curl --fail-with-body -X PUT "https://api.ivoracharge.com/v1/migrations/mig_0123456789abcdef0123456789abcdef/parity/baseline" \
-H "Authorization: Bearer $IVORA_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"chargers": [
{
"station_id": 1
}
]
}'{
"recorded": 1,
"chargers": [
{
"station_id": 1,
"charger_key": "string",
"sections": [
"configuration"
],
"dropped_keys": [
"string"
]
}
]
}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.
PUT is a write: you confirm the method, path and project before it is sent, with a generated Idempotency-Key.



