Read a transaction's meter values
get/v1/tenants/{tenant_id}/transactions/{transaction_id}/meter-values
Requires an API key
The sampled values the charger reported during the transaction (MeterValues, OCPP 2.x TransactionEvent and OCPP 1.6 StopTransaction data), in the order the core recorded them, newest last. Each sample states measurand, value, unit, multiplier, phase and context; omitted ones carry the OCPP defaults (Energy.Active.Import.Register, Wh, Sample.Periodic). Energy registers also give value_wh. Paginate with after=next_cursor.
Path parameters
- tenant_idintegerRequired
- transaction_idintegerRequired
Query parameters
- afterintegerDefault
0· Minimum 0 - limitintegerDefault
100· Minimum 1 · Maximum 500
Returns · 200
- transaction_idintegerRequired
- dataarray of MeterValueRecordRequired
Child attributes
- idintegerRequiredMeter value ID; pass the last one as after to read the next page.
- timestampstring | nullRequiredThe charger's sample time.
- sourceenumRequiredThe message that carried it: MeterValues, an OCPP 2.x TransactionEvent or the OCPP 1.6 StopTransaction's transactionData.One of
meter_values,transaction_event,stop_transaction - samplesarray of SampledValueRecordRequired
Child attributes
- measurandstringRequiredOCPP measurand; Energy.Active.Import.Register when the charger omitted it (the OCPP default).
- valuestring | nullRequiredThe value as the charger reported it, as decimal text, before multiplier.
- unitstringRequiredUnit of value; Wh when the charger omitted it (the OCPP default).
- multiplierintegerRequiredPower of ten value is multiplied by (OCPP 2.x unitOfMeasure.multiplier; 0 on OCPP 1.6).
- phasestring | nullRequired
- contextstringRequiredReading context; Sample.Periodic when the charger omitted it (the OCPP default).
- locationstring | nullRequired
- value_whinteger | nullRequiredEnergy register measurands in Wh or kWh: the reading in integer Wh, multiplier applied. Null otherwise.
- next_cursorintegerRequired
GET /v1/tenants/{tenant_id}/transactions/{transaction_id}/meter-values
curl --fail-with-body "https://api.ivoracharge.com/v1/tenants/1042/transactions/1/meter-values" \
-H "Authorization: Bearer $IVORA_API_KEY"Response · 200
{
"transaction_id": 1,
"data": [
{
"id": 1,
"timestamp": "string",
"source": "meter_values",
"samples": [
{
"measurand": "string",
"value": "string",
"unit": "string",
"multiplier": 1,
"phase": "string",
"context": "string",
"location": "string",
"value_wh": 7500
}
]
}
],
"next_cursor": 1
}Try it is not available here yetRequests from this page are off until the production API at
https://api.ivoracharge.com is public. Use the code samples from your application server; Ivora grants production access. Keys are created in Developer tools.