Skip to main content

Where you see it

  • Your server, mostly on POST /client-sessions (its body) and GET /chargers (its query).
  • Your app’s result, when the hosted flow can’t start because the action’s ids are wrong: a charger_id that isn’t a UUID, an action other than add without a charger, or a site with an action other than add.

What it means

errors lists every field that failed, by path (scope.chargers.0), each with its messages. detail repeats the first message. Some fields depend on the caller:
  • external_user_id, charger_reference, email and consent_scopes are for integrations only.
  • redirect_uri must be one of your integration’s Return URLs under Settings > SDK.
  • consent_scopes may only name scopes Plugchoice allowed your integration.
  • scope.sites can’t go with external_user_id when the chargers stay in your users’ own accounts. Use scope.location as a hint instead.

What to do

  • Fix the fields errors names, then send the request again.
  • In your app, pass a chargerId to every action but add, and a siteId only with add.

Example