Plug, charge and unplug
You need a running virtual charger (see the Quickstart) and an id tag your CSMS accepts.
The sequence
Each call targets chargers with target: one charger by its OCPP identity (the one you chose when you deployed it) or its deployment_id, or every charger of a location_id, optionally narrowed to charger_ids. payload picks the connector; without it, EVSE 1 connector 1 is used.
Full example
Every command returns 202 with one results[].command.id per targeted charger. The example polls each id until the charger reports a final status: applied, rejected, expired or failed. Until the charger has received the command, polling returns 404.
startSession already plugs the cable in before it authorizes. Call plugConnector first only when you want to test how your CSMS handles a plugged-in, idle charger.
Other commands
The same pattern works for every evcharger.commands.* call, including authorizeIdTag, changeConfiguration, injectFault, clearFault, sendLocalList and powerUpdate. See the API Reference.