Skip to main content
PATCH
Change a transaction

Authorizations

Authorization
string
header
required

An access token from accounts.plugchoice.com, for a personal API token, a person signed in through an app, or an OAuth client.

Scopes

transactions:write

Path Parameters

transaction
string<uuid>
required

The transaction's id

Body

application/json

What to change of a transaction: only the fields sent change.

label
string | null

Its label, or null to remove it. business, private and guest are the standard ones, which apps translate; anything else shows as written. Left out, it stays as it is.

Required string length: 1 - 50
note
string | null

Its note, or null to remove it. Left out, it stays as it is.

Required string length: 1 - 1000

Response

The transaction, changed

A transaction: one vehicle charged at one EVSE, from its start to its stop.

card
object | null
required

The card or token that started it; null when the charger sent none.

charger
object
required

A charger, as a transaction names it.

charger_energy_wh
integer<int64> | null
required

The energy the charger counted, in Wh: the register it reported at its stop minus meter_start_wh, never below 0. It can differ from energy_wh, which is what Plugchoice settled: a transaction a card's operator refused, for instance, settles nothing. Null while it is active, and when the charger reported no register at its stop.

energy_wh
integer<int64> | null
required

The energy it delivered, in Wh: what Plugchoice settled, meter_stop_wh minus meter_start_wh. Null while it is active (its progress is in the charger's live state).

estimated
boolean
required

Whether meter_stop_wh is Plugchoice's estimate rather than a register the charger reported.

evse
integer<int32> | null
required

The number of the EVSE it charged at; null when the charger did not say.

id
string<uuid>
required

The transaction's id.

label
string | null
required

The label people gave it: business, private and guest are the standard ones, which apps translate; anything else shows as written. Null without one.

location
object | null
required

The location its charger is at now; null when it is at no location.

meter_start_wh
integer<int64> | null
required

The EVSE's energy register when it started, in Wh; null until the charger sends it (an OCPP 2.x charger may start without it, and then the transaction starts at its first reading).

meter_stop_wh
integer<int64> | null
required

meter_start_wh plus the energy Plugchoice settled, in Wh; null while it is active. It is not always the register the charger reported at its stop: a transaction that ended without one is settled up to its last reading.

note
string | null
required

The note people wrote on it; null without one, and below sensitive access.

ocpp_transaction_id
string | null
required

The id the charger and Plugchoice gave it in OCPP (transactionId), as the charger's logs carry it: text, a number for an OCPP 1.6 charger. Null for a transaction imported from elsewhere, and below sensitive access.

source
string | null
required

Where an imported transaction came from, as whoever imported it named it (up to 100 characters); null for a transaction the charger reported itself.

started_at
string<date-time>
required

When it started, by the charger's clock.

status
enum<string>
required

Where a transaction is, from its start until Plugchoice settled it. One from before 26 October 2026, when Plugchoice started recording this, is final, or incomplete when Plugchoice recorded closing it without a stop from the charger. Accept values you do not know: more may come.

Available options:
active,
stopped,
final,
incomplete
stop_reason
enum<string> | null
required

Why it stopped, as the charger or Plugchoice reported it; null while it is active, or when the reason is not one this API knows.

Available options:
de_authorized,
emergency_stop,
energy_limit_reached,
ev_disconnected,
ground_fault,
hard_reset,
immediate_reset,
local,
local_out_of_credit,
master_pass,
other,
overcurrent_fault,
power_loss,
power_quality,
reboot,
remote,
soc_limit_reached,
soft_reset,
stopped_by_ev,
time_limit_reached,
timeout,
unlock_command,
auto_closed
stopped_at
string<date-time> | null
required

When it stopped; null while it is active.

time_precision
enum<string>
required

How exact started_at, stopped_at and updated_at are: month below sensitive access for a transaction that started more than 14 days ago.

Available options:
exact,
month
unsettled_reason
enum<string> | null
required

Why Plugchoice does not settle it as usual; null when it does.

Available options:
operator_refused_local_override
updated_at
string<date-time>
required

When it, its label or its note last changed.