Long-running operations
Calls that return 202 Accepted, and what to poll after each one.
Deploying chargers and sending them commands takes longer than one HTTP request should wait. These calls return 202 Accepted at once and finish in the background. Each operation’s description in the API Reference names what to poll.
Polling well
- Poll every 2 to 5 seconds, and stop at a deadline you choose.
- A
404fromcommands.getStatusmeans the charger has not received the command yet. Keep polling. - When a deployment’s
outcomeisstuck, read itshint, then callevcharger.deploymentRuntimeOps.diagnosticsand readverdictandnotes.
Prefer events to polling? Register a webhook for the event types you need.
Retries and 202s
The SDKs send a POST that can act twice only once, even after a 503: the first attempt may already have deployed the charger. Check the status before you retry it yourself. See Errors and retries.