# Add Card Source: https://developer.plugchoice.com/api-reference/cards/add-card POST /v3/sites/{site}/cards Adds a new RFID card to the specified location. **site** `string` *required* The UUID of the location. **name** `string` *required* The display name of the card. Maximum 255 characters. **id\_token** `string` *required* The RFID token identifier. Maximum 36 characters. **charger\_ids** `array` An optional array of charger UUIDs to restrict the card to. Each UUID must belong to the location. Omit or pass an empty array to allow the card on all chargers at the location. ## Response **id** `integer` The numeric ID of the card. **name** `string` The display name of the card. **id\_token** `string` The RFID token identifier of the card. **charger\_ids** `array` The UUIDs of the chargers this card is restricted to. An empty array means the card is allowed on all chargers at the location. **created\_at** `string` ISO 8601 timestamp of when the card was created. **updated\_at** `string` ISO 8601 timestamp of when the card was last updated. # Delete Card Source: https://developer.plugchoice.com/api-reference/cards/delete-card DELETE /v3/sites/{site}/cards/{card} Deletes an RFID card from the specified location. Returns a `204 No Content` response on success. **site** `string` *required* The UUID of the location. **card** `string` *required* The ID of the card. # List Cards Source: https://developer.plugchoice.com/api-reference/cards/list-cards GET /v3/sites/{site}/cards Returns a paginated list of RFID cards for the specified location. Results are paginated with 25 items per page. **site** `string` *required* The UUID of the location. ## Response **id** `integer` The numeric ID of the card. **name** `string` The display name of the card. **id\_token** `string` The RFID token identifier of the card. **charger\_ids** `array` The UUIDs of the chargers this card is restricted to. An empty array means the card is allowed on all chargers at the location. **created\_at** `string` ISO 8601 timestamp of when the card was created. **updated\_at** `string` ISO 8601 timestamp of when the card was last updated. # List Seen Cards Source: https://developer.plugchoice.com/api-reference/cards/list-seen-cards GET /v3/sites/{site}/seen-cards Returns a paginated list of cards that have been seen via OCPP Authorize logs at chargers belonging to the specified location. These are cards that have attempted to authenticate but may not yet be registered. **site** `string` *required* The UUID of the location. **page** `integer` The page number. Defaults to `1`. **per\_page** `integer` The number of items per page. Defaults to `10`, maximum `100`. ## Response Each item in the paginated list represents a distinct card token seen at the location's chargers. **id\_tag** `string` The RFID token identifier (`idTag`) extracted from the OCPP Authorize log. **last\_seen\_at** `string` Timestamp of the most recent time this token was seen at the location's chargers. # Update Card Source: https://developer.plugchoice.com/api-reference/cards/update-card PUT /v3/sites/{site}/cards/{card} Updates an existing RFID card for the specified location. **site** `string` *required* The UUID of the location. **card** `string` *required* The ID of the card. **name** `string` *required* The display name of the card. Maximum 255 characters. **id\_token** `string` *required* The RFID token identifier. Maximum 36 characters. **charger\_ids** `array` An optional array of charger UUIDs to restrict the card to. Each UUID must belong to the location. When provided, it replaces the card's current charger restrictions; pass an empty array to allow the card on all chargers at the location. ## Response **id** `integer` The numeric ID of the card. **name** `string` The display name of the card. **id\_token** `string` The RFID token identifier of the card. **charger\_ids** `array` The UUIDs of the chargers this card is restricted to. An empty array means the card is allowed on all chargers at the location. **created\_at** `string` ISO 8601 timestamp of when the card was created. **updated\_at** `string` ISO 8601 timestamp of when the card was last updated. # Bulk Command Source: https://developer.plugchoice.com/api-reference/charger-actions/bulk-command POST /v3/chargers/commands/bulk Queues the same OCPP 1.6 command against multiple chargers at once. Each charger is processed by a background job; the response returns a run resource you can poll to track progress. Chargers the authenticated user cannot access are silently reported as `skipped_forbidden` in the run results. Chargers that are offline at dispatch time are reported as `offline`. Chargers that refuse, do not support or do not answer the command are reported as `rejected`, `not_supported` or `unanswered`. Other failures are reported as `charger_error` or `error` with a message. **command** `string` *required* The OCPP 1.6 command name (e.g. `Reset`, `ChangeAvailability`, `UnlockConnector`, `TriggerMessage`, `ChangeConfiguration`). **data** `object` Command-specific payload forwarded to each charger. Optional. Shape depends on the command. **charger\_ids** `array` *required* UUIDs of the target chargers. Minimum 1, no hard upper bound: result rows are inserted in batches and one queue job is dispatched per accessible charger. ## Response Returns `202 Accepted` with the created run wrapped in `data`. **uuid** `string` Unique identifier of the bulk run. Use this with `GET /v3/chargers/commands/bulk/{run}` to poll progress. **command** `string` The OCPP command that was queued. **data** `object` The command payload forwarded to each charger. **status** `string` `running` while jobs are in flight, `completed` once every charger has a terminal result. **total\_count** `integer` Number of chargers submitted. **sent\_count** `integer` Chargers that accepted the command (or answered a read). **rejected\_count** `integer` Chargers that answered and refused the command. **not\_supported\_count** `integer` Chargers that do not implement the command. Sending it again will not change the answer. **charger\_error\_count** `integer` Chargers that answered with an OCPP error (message in the per-result payload). **unanswered\_count** `integer` Chargers that did not answer in time. The command may still have run. **offline\_count** `integer` Chargers that were offline when the command was dispatched. Nothing was sent to them. **error\_count** `integer` Chargers whose command could not be confirmed as delivered (message in the per-result payload). **skipped\_count** `integer` Chargers the authenticated user does not have access to, or that could not be resolved. **created\_at** `string` When the run was created (ISO 8601 date-time). **completed\_at** `string` When every charger reached a terminal result (ISO 8601 date-time). `null` while the run is still in progress. **results** `array` Per-charger status. Each entry contains `charger_uuid`, `status` (`pending`, `sent`, `rejected`, `not_supported`, `charger_error`, `unanswered`, `offline`, `error`, `skipped_forbidden`), `message`, `executed_at`, and (when the user has access) an embedded `charger` object with `uuid`, `identity`, and `reference`. # Clear Charging Profile Source: https://developer.plugchoice.com/api-reference/charger-actions/clear-charging-profile POST /v3/chargers/{charger}/actions/clear-charging-profile Sends a ClearChargingProfile command to the charger. All parameters are optional filters -- if none are provided, all charging profiles are cleared. **charger** `string` *required* The UUID of the charger. **id** `integer` The ID of the charging profile to clear. **connector\_id** `integer` The connector ID to clear profiles for. Must be 0 or greater. **charging\_profile\_purpose** `string` Filter by purpose. One of `ChargePointMaxProfile`, `TxDefaultProfile`, or `TxProfile`. **stack\_level** `integer` Filter by stack level. Must be 0 or greater. ## Response **status** `string` The response status from the charger (e.g., `Accepted`, `Unknown`). # Get Bulk Command Run Source: https://developer.plugchoice.com/api-reference/charger-actions/get-bulk-command GET /v3/chargers/commands/bulk/{run} Retrieves the current state of a bulk command run, including per-charger results. Poll this endpoint (e.g. every two seconds) until `status` is `completed`. **run** `string` *required* The UUID returned by `POST /v3/chargers/commands/bulk`. ## Response Returns the run resource wrapped in `data`. See [Bulk Command](/api-reference/charger-actions/bulk-command#response) for field descriptions. ## Paged results For large runs, `GET /v3/chargers/commands/bulk/{run}/results` returns the per-charger results 50 at a time (`page`, `per_page` up to 100) in a standard paginated envelope, with the run's status and counters (without results) under `run`. # Get Composite Schedule Source: https://developer.plugchoice.com/api-reference/charger-actions/get-composite-schedule POST /v3/chargers/{charger}/actions/composite-schedule Retrieves the composite charging schedule from the charger. The composite schedule is a merged view of all active charging profiles for a given connector and time duration. **charger** `string` *required* The UUID of the charger. **connector\_id** `integer` *required* The ID of the connector to get the schedule for. Use `0` to get the schedule for the entire charge point. **duration** `integer` *required* The duration in seconds for the requested schedule. **charging\_rate\_unit** `string` The unit in which the schedule should be expressed. Possible values: `A` (Amperes), `W` (Watts). ## Response **status** `string` The response status from the charger (`Accepted` or `Rejected`). **connectorId** `integer` The connector ID for which the schedule is provided. **scheduleStart** `string` The start date and time of the composite schedule (ISO 8601). **chargingSchedule** `object` The composite charging schedule. **chargingSchedule** **chargingRateUnit** `string` The unit of the schedule (`A` or `W`). **chargingSchedulePeriod** `array` List of charging schedule periods. **chargingSchedulePeriod** **startPeriod** `integer` Start of the period in seconds from the start of the schedule. **limit** `number` Power or current limit during this period. **numberPhases** `integer` Number of phases that can be used for charging. **duration** `integer` Duration of the schedule in seconds. **startSchedule** `string` Start date and time of the schedule (ISO 8601). **minChargingRate** `number` Minimum charging rate supported. # Restart Source: https://developer.plugchoice.com/api-reference/charger-actions/restart-charger POST /v3/chargers/{charger}/actions/restart Sends a remote reset command to the charger, causing it to restart. **charger** `string` *required* The UUID of the charger. ## Response **status** `string` The response status from the charger (e.g., `Accepted`, `Rejected`). # Set Charge Limit Source: https://developer.plugchoice.com/api-reference/charger-actions/set-charge-limit POST /v3/chargers/{charger}/actions/charge-limit Sets the limit for a connector, in amps or watts. Plugchoice stores the limit and keeps it on the charger across sessions and while the charger is offline. Power management and smart charging can still keep the connector lower. A connector has one limit: a new one replaces the one before it. On a charger that can discharge the car (V2G), a negative limit in watts makes the car discharge at that power. This is available for Ambibox chargers. **charger** `string` *required* The UUID of the charger. **connector\_id** `integer` *required* The ID of the connector to set the limit for, from 1. **limit** `number | null` *required* The limit in the given unit, up to 1000 A or between -1000000 and 1000000 W (whole watts). `null` removes the limit. `0` pauses charging. Negative only in watts, on a charger that can discharge. **unit** `string` (default: A) `A` for amps per phase or `W` for watts. **stack\_level** `integer` No longer used. Accepted so older integrations keep working. ## Response **status** `string` `Accepted` when the limit is stored. # Set Charging Profile Source: https://developer.plugchoice.com/api-reference/charger-actions/set-charging-profile POST /v3/chargers/{charger}/actions/charging-profile Sends a SetChargingProfile command to the charger. Supports the full OCPP 1.6 SetChargingProfile structure including `ChargePointMaxProfile`, `TxDefaultProfile`, and `TxProfile` purposes. **charger** `string` *required* The UUID of the charger. **connector\_id** `integer` *required* The connector ID. Use `0` for the charge point level, or a positive integer for a specific connector. **charging\_profile** `object` *required* The charging profile to set. **charging\_profile** **charging\_profile\_id** `integer` *required* Unique identifier for the charging profile. **transaction\_id** `integer` Transaction ID. Only applicable for `TxProfile` purpose. **stack\_level** `integer` *required* Priority level of the profile in the stack. Must be 0 or greater. **charging\_profile\_purpose** `string` *required* Purpose of the profile. One of `ChargePointMaxProfile`, `TxDefaultProfile`, or `TxProfile`. **charging\_profile\_kind** `string` *required* Kind of schedule. One of `Absolute`, `Recurring`, or `Relative`. **recurrency\_kind** `string` Recurrency period. One of `Daily` or `Weekly`. Only applicable for `Recurring` kind. **valid\_from** `string` Start of profile validity as an ISO 8601 date-time. **valid\_to** `string` End of profile validity as an ISO 8601 date-time. **charging\_schedule** `object` *required* The charging schedule. **charging\_schedule** **duration** `integer` Duration of the schedule in seconds. **start\_schedule** `string` Start of the schedule as an ISO 8601 date-time. **charging\_rate\_unit** `string` *required* Unit of rate. Either `A` (Amperes) or `W` (Watts). **charging\_schedule\_period** `object[]` *required* List of schedule periods. At least one period is required. **period** **start\_period** `integer` *required* Start of the period in seconds from the schedule start. Must be 0 or greater. **limit** `number` *required* The charging rate limit for this period. Must be 0 or greater. **number\_phases** `integer` The number of phases to use. Between 1 and 3. **min\_charging\_rate** `number` Minimum charging rate supported. ## Response **status** `string` The response status from the charger (e.g., `Accepted`, `Rejected`). # Start Charging Source: https://developer.plugchoice.com/api-reference/charger-actions/start-charging POST /v3/chargers/{charger}/actions/start Sends a remote start transaction command to the charger. The charger will attempt to start a charging session on the specified connector using the provided ID token. **charger** `string` *required* The UUID of the charger. **connector\_id** `integer` The connector ID to start charging on. Must be greater than 0. If not specified, the charger will select a connector automatically. **id\_token** `string` *required* The ID token (RFID tag) to authorize the charging session. Maximum 20 characters for an OCPP 1.6 charger, 36 for OCPP 2.0.1 and 255 for OCPP 2.1. ## Response **status** `string` The response status from the charger (e.g., `Accepted`, `Rejected`). # Stop Charging Source: https://developer.plugchoice.com/api-reference/charger-actions/stop-charging POST /v3/chargers/{charger}/actions/stop Sends a remote stop transaction command to the charger to end an active charging session. **charger** `string` *required* The UUID of the charger. **transaction\_id** `integer` The ID of the transaction to stop. Must be 0 or greater. If not specified, the charger will stop the active transaction. ## Response **status** `string` The response status from the charger (e.g., `Accepted`, `Rejected`). # Remove NANOGRID Configuration Source: https://developer.plugchoice.com/api-reference/charger-settings/delete-nanogrid DELETE /v3/chargers/{charger}/settings/nanogrid Removes the NANOGRID configuration file from the specified charger. Returns a `204 No Content` response on success. **charger** `string` *required* The UUID of the charger. # Get Lock Status Source: https://developer.plugchoice.com/api-reference/charger-settings/get-cable-lock GET /v3/chargers/{charger}/settings/lock Returns the current lock status for the specified charger. When locked, the charger is set to `Unavailable` in OCPP and will not accept new charging sessions. **charger** `string` *required* The UUID of the charger. ## Response **enabled** `boolean` Whether the charger is currently locked (unavailable). **interactable** `boolean` Whether the lock can be toggled right now. This is `false` while any connector is in an active state (such as `Charging`, `Preparing`, `Finishing`, `Reserved`, `Faulted`, `SuspendedEV`, or `SuspendedEVSE`). # Get Display & LED Settings Source: https://developer.plugchoice.com/api-reference/charger-settings/get-display-led GET /v3/chargers/{charger}/settings/display-led Returns the current display and LED settings for the specified charger. **charger** `string` *required* The UUID of the charger. ## Response **fields** `object[]` A list of configurable display and LED settings. **field** **key** `string` The setting key identifier (e.g., `LightIntensity`). **label** `string` A human-readable label for the setting. **type** `string` The value type (e.g., `integer`, `boolean`). **value** `string` The current value of the setting. **min** `integer` The minimum allowed value (for numeric types). **max** `integer` The maximum allowed value (for numeric types). # Get NANOGRID Configuration Source: https://developer.plugchoice.com/api-reference/charger-settings/get-nanogrid GET /v3/chargers/{charger}/settings/nanogrid Returns the NANOGRID configuration file status for the specified charger, including whether the charger model supports NANOGRID and the current file contents. **charger** `string` *required* The UUID of the charger. ## Response **supported** `boolean` Whether the charger model supports the NANOGRID configuration. **present** `boolean` Whether a NANOGRID configuration file is currently present on the charger. **content** `string` The current contents of the NANOGRID configuration file. Empty when no file is present. **error** `string` A human-readable error message. Only present when the configuration could not be read, for example when the charger is offline. # Get Plug & Charge Status Source: https://developer.plugchoice.com/api-reference/charger-settings/get-plug-charge GET /v3/chargers/{charger}/settings/plug-charge Returns the current Plug & Charge status for the specified charger. **charger** `string` *required* The UUID of the charger. ## Response **enabled** `boolean` Whether Plug & Charge is currently enabled. **token** `string` The RFID card UID currently configured for Plug & Charge. May be an empty string when none is set. # Get Public Charging Settings Source: https://developer.plugchoice.com/api-reference/charger-settings/get-public-charging GET /v3/chargers/{charger}/settings/public-charging Returns the public charging (Scan to Pay) settings for the specified charger, including pricing, currency, billing plan, and the connected Stripe account status. **charger** `string` *required* The UUID of the charger. ## Response **enabled** `boolean` Whether public charging is currently enabled for the charger. **price\_per\_kwh** `integer` The price per kWh in the smallest currency unit (for example, cents). May be `null` when not set. **start\_fee** `integer` The fixed start fee in the smallest currency unit. Defaults to `0`. **currency** `string` The ISO currency code of the connected Stripe account. May be `null` when no account is connected. **public\_code** `string` The public code used to reach the charger's Scan to Pay page. May be `null` when public charging has never been enabled. **public\_url** `string` The full URL of the charger's Scan to Pay page. May be `null` when `public_code` is not set. **preauth\_amount** `integer` The pre-authorisation amount charged to the driver, in the smallest currency unit. **limits** `object` The configurable pricing limits for the merchant's currency. **limits** **max\_price\_per\_kwh** `integer` The maximum allowed price per kWh, in the smallest currency unit. **max\_start\_fee** `integer` The maximum allowed start fee, in the smallest currency unit. **connect** `object` The status of the merchant's connected Stripe account. **connect** **has\_account** `boolean` Whether the merchant has a connected Stripe account. **onboarding\_complete** `boolean` Whether Stripe Connect onboarding has been completed. **team\_name** `string` The name of the merchant team. May be `null`. **billing** `object` The billing configuration for public charging. **billing** **plan** `string` The billing plan. One of `subscription` or `transaction`. May be `null` when never chosen. **fee\_percent** `number` The transaction fee percentage applied to public charging sessions. **ac\_price** `integer` The monthly AC socket subscription price, in the smallest currency unit. **dc\_price** `integer` The monthly DC socket subscription price, in the smallest currency unit. **subscription\_active** `boolean` Whether the merchant currently has an active socket subscription. **has\_payment\_method** `boolean` Whether the merchant has a default payment method on file. # Get payment QR Source: https://developer.plugchoice.com/api-reference/charger-settings/get-qr-payment GET /v3/chargers/{charger}/settings/qr-payment Returns the payment link a charger shows as a QR on its display. Only chargers whose model has `capabilities.qr_payment` (the Peblar Dual) have this setting. The link is your own: Plugchoice hosts no payment page for it. Plugchoice reads it from the charger with `GetConfiguration`, so the charger must be online. **charger** `string` *required* The UUID of the charger. ## Response **available** `boolean` Whether the charger reports the setting. When `false`, its firmware has no payment QR. **template** `string` The link template. The charger replaces `{chargingstationid}` with its Chargepoint ID and `{evse}` with the connector number before it draws the QR. Empty when the charger shows no QR. **readonly** `boolean` Whether the charger lets you change the link. **error** `string` Present when the charger could not be reached, for example because it is offline. # Get display text Source: https://developer.plugchoice.com/api-reference/charger-settings/get-screen-branding GET /v3/chargers/{charger}/settings/screen-branding Returns the name and support contact a charger shows on its display. Only chargers whose model has `capabilities.screen_branding` (the Peblar Dual) have these settings. Plugchoice reads them from the charger with `GetConfiguration`, so the charger must be online. **charger** `string` *required* The UUID of the charger. ## Response **fields** `object[]` The values the charger reports. A value the charger does not report is left out, so the list can be empty. **field** **key** `string` `PredefinedCpoName` for the name on the display, `ContactDetail` for the support contact. **value** `string` The current value. **readonly** `boolean` Whether the charger lets you change the value. **error** `string` Present when the charger could not be reached, for example because it is offline. # Get Socket Lock Status Source: https://developer.plugchoice.com/api-reference/charger-settings/get-socket-lock GET /v3/chargers/{charger}/settings/socket-lock Returns the current socket lock status for the specified charger. When the socket is locked, the charging cable is held in place and cannot be removed. **charger** `string` *required* The UUID of the charger. ## Response **supported** `boolean` Whether the charger's model has a socket lock. When `false`, the charger is not asked, `enabled` and `interactable` are `false` and `error` says the model does not support it. The model's `capabilities.socket_lock` tells the same before you call this endpoint. **enabled** `boolean` Whether the socket is currently locked. **interactable** `boolean` Whether the socket lock can be toggled right now. This is `true` when the socket is already locked, or when the model locks the cable from the next transaction (Volt Time One Business and Two Pro). Other models need a cable physically inserted (the connector is in a `Preparing`, `Charging`, `SuspendedEV`, `SuspendedEVSE`, `Finishing`, or `Occupied` state). **error** `string` A human-readable error message. Only present when the setting could not be read, for example when the charger is offline. When present, `enabled` and `interactable` are returned as `false`. # Set Lock Source: https://developer.plugchoice.com/api-reference/charger-settings/set-cable-lock POST /v3/chargers/{charger}/settings/lock Locks or unlocks the charger. When locked, the charger is set to `Unavailable` in OCPP and will not accept new charging sessions. Returns a `204 No Content` response on success. **charger** `string` *required* The UUID of the charger. **enabled** `boolean` *required* Set to `true` to lock the charger (make unavailable) or `false` to unlock it (make available). # Set Display & LED Settings Source: https://developer.plugchoice.com/api-reference/charger-settings/set-display-led POST /v3/chargers/{charger}/settings/display-led Updates the display and LED settings for the specified charger. Returns a `204 No Content` response on success. **charger** `string` *required* The UUID of the charger. **settings** `object` *required* An object of setting key-value pairs. Each key should be a valid setting key (e.g., `LightIntensity`) and the value should be a string. At least one setting is required. Maximum 255 characters per value. # Set NANOGRID Configuration Source: https://developer.plugchoice.com/api-reference/charger-settings/set-nanogrid POST /v3/chargers/{charger}/settings/nanogrid Installs or replaces the NANOGRID configuration file on the specified charger. Returns a `204 No Content` response on success. **charger** `string` *required* The UUID of the charger. **content** `string` *required* The contents of the NANOGRID configuration file. Maximum 65535 characters. # Set Plug & Charge Source: https://developer.plugchoice.com/api-reference/charger-settings/set-plug-charge POST /v3/chargers/{charger}/settings/plug-charge Enables or disables Plug & Charge for the specified charger. When enabling, a card UID must be provided. Returns a `204 No Content` response on success. **charger** `string` *required* The UUID of the charger. **enabled** `boolean` *required* Whether to enable (`true`) or disable (`false`) Plug & Charge. **card\_uid** `string` The RFID card UID to use for Plug & Charge. Required when `enabled` is `true`. Maximum 20 characters for an OCPP 1.6 charger, 36 for OCPP 2.0.1 and 255 for OCPP 2.1. # Set Public Charging Settings Source: https://developer.plugchoice.com/api-reference/charger-settings/set-public-charging POST /v3/chargers/{charger}/settings/public-charging Enables or disables public charging (Scan to Pay) for the specified charger and updates its pricing and billing plan. Enabling requires that the organization has public charging enabled and has completed Stripe Connect onboarding. Requires a verified email address. Returns the updated public charging settings on success, in the same shape as [Get Public Charging Settings](/api-reference/charger-settings/get-public-charging). **charger** `string` *required* The UUID of the charger. **enabled** `boolean` *required* Whether to enable (`true`) or disable (`false`) public charging. **price\_per\_kwh** `integer` The price per kWh in the smallest currency unit (for example, cents). Required when `enabled` is `true`. Must be at least `1` and may not exceed the maximum allowed for the merchant's currency. **start\_fee** `integer` The fixed start fee in the smallest currency unit. Must be `0` or greater and may not exceed the maximum allowed for the merchant's currency. **billing\_plan** `string` The billing plan. One of `subscription` or `transaction`. When omitted, the existing plan is kept, otherwise the transaction plan is used. # Set payment QR Source: https://developer.plugchoice.com/api-reference/charger-settings/set-qr-payment POST /v3/chargers/{charger}/settings/qr-payment Changes the payment link a charger shows as a QR on its display. Plugchoice writes it with `ChangeConfiguration`. Returns `204 No Content` when the charger accepts it. **charger** `string` *required* The UUID of the charger. **template** `string` *required* A link that starts with `https://`, at most 100 characters. Use `{chargingstationid}` and `{evse}` where the charger should put its Chargepoint ID and the connector number. An empty string removes the QR from the display. ## Errors | Status | When | | - | - | | `400` | The charger is offline. | | `422` | The link does not start with `https://` or is too long, or the charger did not accept it. In that last case the body has `reason` set to `value_rejected`. | # Set display text Source: https://developer.plugchoice.com/api-reference/charger-settings/set-screen-branding POST /v3/chargers/{charger}/settings/screen-branding Changes the name or support contact a charger shows on its display. Plugchoice writes each value with `ChangeConfiguration`. Returns `204 No Content` when the charger accepts every value. **charger** `string` *required* The UUID of the charger. **settings** `object` *required* The settings to change, by key: `PredefinedCpoName`, `ContactDetail`, or both. Each value is a string of at most 100 characters. An empty string clears the value. ## Errors | Status | When | | - | - | | `400` | The charger is offline. | | `422` | A value is too long, a key is not `PredefinedCpoName` or `ContactDetail`, or the charger did not accept the value. In that last case the body has `reason` set to `value_rejected` and `key` set to the refused key. | # Set Socket Lock Source: https://developer.plugchoice.com/api-reference/charger-settings/set-socket-lock POST /v3/chargers/{charger}/settings/socket-lock Locks or unlocks the charging socket for the specified charger. When locked, the charging cable is held in place and cannot be removed. Models that lock the cable right away need a cable inserted to lock and return `422` without one. The Volt Time One Business and Two Pro store the lock and apply it from the next transaction, so they accept it at any time. Returns a `204 No Content` response on success. **charger** `string` *required* The UUID of the charger. **enabled** `boolean` *required* Set to `true` to lock the socket or `false` to unlock it. # Set Firmware Auto-Update Source: https://developer.plugchoice.com/api-reference/chargers/auto-update-firmware POST /v3/chargers/{charger}/firmware/auto-update Enables or disables automatic firmware updates for the specified charger. Returns a `204 No Content` response on success. **charger** `string` *required* The UUID of the charger. **enabled** `boolean` *required* Whether automatic firmware updates should be enabled (`true`) or disabled (`false`). # Create Charger Source: https://developer.plugchoice.com/api-reference/chargers/create-charger POST /v3/chargers Registers a new charger. The charger is assigned to the authenticated user's team. If the user does not have a team, a personal team is automatically created. **identity** `string` *required* The unique identity string for the charger (e.g., serial number). Maximum 45 characters. Must be unique across all chargers. One exception: if your team already owns a charger with this identity and it is not at a location (for example after you removed it from one), that charger is returned instead of a `422`. When `site_uuid` is given, it is added to that location. **team\_uuid** `string` The UUID of the team to assign the charger to. Must be a valid UUID of an existing team. **site\_uuid** `string` The UUID of the location to assign the charger to. Must be a valid UUID of an existing location. ## Response **uuid** `string` The unique UUID of the charger. **id** `integer` The numeric ID of the charger. **identity** `string` The unique identity string of the charger. **serial\_number** `string` The serial number of the charger. May be `null`. **charge\_box\_serial\_number** `string` The `chargeBoxSerialNumber` the charger sent in its last boot notification. May be `null`. **pincode** `string` The charger's pincode. Only returned if the authenticated user has sensitive permissions. **reference** `string` A user-defined reference for the charger. May be `null`. **connection\_status** `string` The current connection status of the charger. **status** `string` The current OCPP status of the charger. **error** `string` The current error code, if any. May be `null`. **error\_info** `string` Additional error information. May be `null`. **vendor\_id** `string` The vendor identifier. May be `null`. **vendor\_error\_code** `string` A vendor-specific error code. May be `null`. **firmware\_version** `string` The raw firmware version string. May be `null`. **parsed\_firmware\_version** `string` The parsed and normalized firmware version. May be `null`. **server** `string` The OCPP server the charger is connected to. May be `null`. **last\_connection\_at** `string` ISO 8601 timestamp of the last connection. May be `null`. **last\_disconnection\_at** `string` ISO 8601 timestamp of the last disconnection. May be `null`. **last\_heartbeat\_at** `string` ISO 8601 timestamp of the last heartbeat. May be `null`. **setup\_pending** `boolean` Whether the charger has a pending setup operation. **setup\_completed** `boolean` Whether the charger has completed initial setup. **blocked** `boolean` Whether the charger is blocked. **max\_current** `number` The maximum current in Amperes the charger can deliver. **created\_at** `string` ISO 8601 timestamp of when the charger was created. **updated\_at** `string` ISO 8601 timestamp of when the charger was last updated. **licenses** `object` The charger's active licenses. **licenses** **smart** `boolean` Whether the smart charging license is active. **pro** `boolean` Whether the pro license is active. **load\_balancing** `boolean` Whether the charger can join dynamic load balancing: it has a Smart license, or it kept load balancing from before it became part of the Smart license. **model\_id** `integer` The ID of the charger model. May be `null`. **is\_mid** `boolean` Whether the charger is a MID-certified meter. May be `null`. **permissions** `object` The authenticated user's permissions for this charger. **permissions** **basic** `boolean` Whether the user has basic read access. **sensitive** `boolean` Whether the user has access to sensitive data (e.g., pincode, transactions). **full** `boolean` Whether the user has full control (e.g., delete, transfer). # Delete Charger Source: https://developer.plugchoice.com/api-reference/chargers/delete-charger DELETE /v3/chargers/{charger} Deletes the specified charger. Returns a `204 No Content` response on success. **charger** `string` *required* The UUID of the charger to delete. # Get Charger Source: https://developer.plugchoice.com/api-reference/chargers/get-charger GET /v3/chargers/{charger} Returns the details of a specific charger, including its model and connectors. **charger** `string` *required* The UUID of the charger. ## Response **uuid** `string` The unique UUID of the charger. **id** `integer` The numeric ID of the charger. **identity** `string` The unique identity string of the charger. **serial\_number** `string` The serial number of the charger. May be `null`. **charge\_box\_serial\_number** `string` The `chargeBoxSerialNumber` the charger sent in its last boot notification. May be `null`. **pincode** `string` The charger's pincode. Only returned if the authenticated user has sensitive permissions. **reference** `string` A user-defined reference for the charger. May be `null`. **connection\_status** `string` The current connection status of the charger. **status** `string` The current OCPP status of the charger. **error** `string` The current error code, if any. May be `null`. **error\_info** `string` Additional error information. May be `null`. **vendor\_id** `string` The vendor identifier. May be `null`. **vendor\_error\_code** `string` A vendor-specific error code. May be `null`. **firmware\_version** `string` The raw firmware version string. May be `null`. **parsed\_firmware\_version** `string` The parsed and normalized firmware version. May be `null`. **server** `string` The OCPP server the charger is connected to. May be `null`. **last\_connection\_at** `string` ISO 8601 timestamp of the last connection. May be `null`. **last\_disconnection\_at** `string` ISO 8601 timestamp of the last disconnection. May be `null`. **last\_heartbeat\_at** `string` ISO 8601 timestamp of the last heartbeat. May be `null`. **setup\_pending** `boolean` Whether the charger has a pending setup operation. **setup\_completed** `boolean` Whether the charger has completed initial setup. **blocked** `boolean` Whether the charger is blocked. **max\_current** `number` The maximum current in Amperes the charger can deliver. **created\_at** `string` ISO 8601 timestamp of when the charger was created. **updated\_at** `string` ISO 8601 timestamp of when the charger was last updated. **licenses** `object` The charger's active licenses. **licenses** **smart** `boolean` Whether the smart charging license is active. **pro** `boolean` Whether the pro license is active. **load\_balancing** `boolean` Whether the charger can join dynamic load balancing: it has a Smart license, or it kept load balancing from before it became part of the Smart license. **model\_id** `integer` The ID of the charger model. May be `null`. **model** `object` The charger model details. **model** **vendor** `string` The vendor or manufacturer name. **name** `string` The model name. **is\_dc** `boolean` Whether this is a DC charger. **image\_url** `string` The URL of the model image. May be `null`. **capabilities** `object` Which settings the model supports, the same object as in [List models](/api-reference/data/list-models). Hide a setting the model does not support, such as `socket_lock` on a model with a fixed cable. **internal\_model** `object` The internal model details. Only included when the internal model relationship is loaded. May be `null`. **internal\_model** **id** `integer` The internal model ID. **name** `string` The internal model name. **sku** `string` The internal model SKU. **is\_mid** `boolean` Whether the charger is a MID-certified meter. Derived from the internal model, falling back to the model. May be `null`. **connectors** `object[]` The charger's connectors. **connector** **id** `integer` The internal ID of the connector. **charger\_id** `integer` The ID of the parent charger. **connector\_id** `integer` The OCPP connector ID. **status** `string` The current status of the connector. **error** `string` The current error code, if any. **error\_info** `string` Additional error information. **vendor\_id** `string` The vendor identifier. **vendor\_error\_code** `string` A vendor-specific error code. **max\_amperage** `integer` The maximum amperage for the connector. **min\_current** `integer` The minimum current for the connector. **current\_limit** `integer` The configured current limit for the connector. **current\_limit\_managed\_by** `string` Indicates who set the connector's current limit. One of `api` or `user`. May be `null` when no manual limit has been applied. **max\_voltage** `integer` The maximum voltage for the connector. **standard** `string` The connector standard (e.g., IEC 62196). **format** `string` The connector format (e.g., Cable, Socket). **power\_type** `string` The power type (e.g., AC\_1\_PHASE, AC\_3\_PHASE, DC). **phase\_rotation** `string` The phase rotation configuration. **created\_at** `string` ISO 8601 timestamp of when the connector was created. **updated\_at** `string` ISO 8601 timestamp of when the connector was last updated. **permissions** `object` The authenticated user's permissions for this charger. **permissions** **basic** `boolean` Whether the user has basic read access. **sensitive** `boolean` Whether the user has access to sensitive data (e.g., pincode, transactions). **full** `boolean` Whether the user has full control (e.g., delete, transfer). # Get Firmware Status Source: https://developer.plugchoice.com/api-reference/chargers/get-firmware GET /v3/chargers/{charger}/firmware Returns the firmware overview for the specified charger, including the current version and whether an update is available. **charger** `string` *required* The UUID of the charger. ## Response **current\_version** `string` The current firmware version installed on the charger. May be `null`. **latest\_version** `string` The latest firmware version available for this charger. May be `null`. **update\_available** `boolean` Whether a newer firmware version is available for this charger. **auto\_update** `boolean` Whether automatic firmware updates are enabled for this charger. **can\_update** `boolean` Whether an update can currently be triggered. `false` when no update is available or an update is already in progress. **status** `string` The current firmware update status. One of `idle`, `update_available`, `requested`, `downloading`, `downloaded`, `installing`, `installed`, `up_to_date`, or `failed`. **progress** `integer` The firmware update progress percentage (0-100). **last\_status** `string` The most recent raw firmware status reported (e.g., `Downloading`, `Installed`, `Requested`). May be `null`. **last\_status\_at** `string` ISO 8601 timestamp of the most recent firmware status. May be `null`. **availability\_reason** `string` The reason a newer version is unavailable when applicable. One of `up_to_date`, `no_pipeline`, `unknown_version`, or `invalid_version`. May be `null`. # Get Proxy Servers Source: https://developer.plugchoice.com/api-reference/chargers/get-proxy GET /v3/chargers/{charger}/proxy Returns the proxy server configuration for the specified charger. **charger** `string` *required* The UUID of the charger. ## Response **data** `object[]` A list of proxy server entries. **proxy server** **websocket\_url** `string` The WebSocket URL of the proxy server. **role** `string` The role of this server. Either `ROLE_LEADER` or `ROLE_FOLLOWER`. **has\_password** `boolean` Whether a password is currently stored for this server. The password value itself is never returned. **created\_at** `string` ISO 8601 timestamp of when the proxy entry was created. **updated\_at** `string` ISO 8601 timestamp of when the proxy entry was last updated. # Get Support Snapshot Source: https://developer.plugchoice.com/api-reference/chargers/get-support-snapshot GET /v3/chargers/{charger}/support-snapshot Returns what support needs to know about a charger and its location at one moment: what the charger is, whether it was online, its connectors and faults, the events and OCPP calls before the moment, the transaction, the meter values around it, the location's settings and power management, its operators and open alerts. `text` holds the snapshot as plain English text, ready to paste into a support conversation. The snapshot only reads what is already stored or held live. It never sends the charger a command. Each section is cut to your access level. `meta.missing` lists what is not in the snapshot and why. **charger** `string` *required* The UUID of the charger. **at** `string` The moment, as an ISO 8601 timestamp, not in the future. Defaults to now. Live state (the proxy view, reconnects, whether power management runs and why it holds back, the operators' connection state) is only known when the moment is within two minutes of now. **transaction** `integer` The ID of the transaction the question is about. Without it, the transaction running at the moment, else the last one before it. **connector** `integer` Limit the connectors and meter values to one connector. **events** `integer` (default: 25) How many logbook events to include, from 1 to 100. ## Access levels | Level | Who | Gets | | - | - | - | | `full` | The team that owns the location | Every section, with the SIM's ICCID and IMSI. Never an IP address. | | `sensitive` | A team on the location with data access | As `full`, without the ICCID and IMSI. | | `basic` | A team on the location without data access | The charger, connection, connectors, fault history, transaction, location, power management settings, operators and alerts. No events, OCPP calls, proxy view, card, meter serial number, meter values, allocations or operator connection state. | | `third_party` | Anyone else who can see the charger, such as a charger brand | As `basic`, without the charger name, the location's name, address and other chargers, the meter code and the operators. | ## Response **data** `object` **snapshot** **meta** `object` `generated_at`, `at`, `live` (whether the moment is now), `level`, `timezone` of the location, and `missing`: a list of `{field, reason}` with reason `not_allowed`, `no_data`, `not_kept` or `only_live`. **charger** `object` `identity`, `reference`, `serial_number`, `brand`, `model`, `firmware_version`, `is_mid`, `licenses`, `setup_completed`, `created_at`. **connection** `object` `status`, the last connection, disconnection and heartbeat, the heartbeats just before and after the moment, `reconnects_last_hour`, and `proxy`: the proxy's live view of the charger socket. **connectivity** `object` The last boot, the meter in the charger, whether it has a Volt Time SIM, and for the owner the ICCID and IMSI. **connectors** `object[]` Per connector: `status`, `error` (never `NoError`), `error_info`, `vendor_error_code`, `max_amperage`, `min_current`, `current_limit`. **fault\_history** `object` How often the charger reported Faulted in the 30 days up to the moment, the first and the last time, and the last code. **events** `object` The charger's logbook up to the moment, in the shape of `GET /v3/chargers/{charger}/events`: `data`, `operators`, `cards`. **ocpp\_tail** `object[]` The last 15 OCPP calls up to the moment, without heartbeats, meter values, charging profiles, security events and configuration calls. **transaction** `object` The transaction: `id`, `running_at` (whether it ran at the moment), start, stop, energy, stop reason, the card UID and its name on the location, and which backend authorized it. **meter\_values** `object[]` Per measurand, phase and location: `min`, `max`, `avg`, `first`, `last` and `count`, from ten minutes before to five minutes after the moment. **location** `object` The name, address, country, timezone, energy price settings (scheduled charging or dynamic price charging) and the other chargers on the location. **power\_management** `object` `groups`: the charger's group and every group above it, with limits, method, solar, peak shaving, the meter and its code (for Chargee the V3 code) and, when the moment is now, whether power management runs. `connectors`: what it allocated and requested in the five minutes up to the moment, the last charging profile and its answer, and when the moment is now the live reason. **operators** `object[]` Each operator besides Plugchoice: `name`, `role` (`billing` or `data_and_control`) and, when the moment is now, its connection state. **alerts** `object[]` Up to ten service alerts on the charger or its location that were open at the moment. **text** `string` The snapshot as plain English text: a first line on what it is about, then sections under a heading, with a coloured dot for connection, connector status and faults. It ends with an open question for the customer. # List Chargers Source: https://developer.plugchoice.com/api-reference/chargers/list-chargers GET /v3/chargers Returns a paginated list of chargers accessible to the authenticated user. Each charger includes its associated model. ## Response **uuid** `string` The unique UUID of the charger. **id** `integer` The numeric ID of the charger. **identity** `string` The unique identity string of the charger (e.g., serial number). **serial\_number** `string` The serial number of the charger. May be `null`. **charge\_box\_serial\_number** `string` The `chargeBoxSerialNumber` the charger sent in its last boot notification. May be `null`. **pincode** `string` The charger's pincode. Only returned if the authenticated user has sensitive permissions. **reference** `string` A user-defined reference or label for the charger. May be `null`. **connection\_status** `string` The current connection status of the charger. **status** `string` The current OCPP status of the charger. **error** `string` The current error code, if any. May be `null`. **error\_info** `string` Additional error information. May be `null`. **vendor\_id** `string` The vendor identifier. May be `null`. **vendor\_error\_code** `string` A vendor-specific error code. May be `null`. **firmware\_version** `string` The raw firmware version string. May be `null`. **parsed\_firmware\_version** `string` The parsed and normalized firmware version. May be `null`. **server** `string` The OCPP server the charger is connected to. May be `null`. **last\_connection\_at** `string` ISO 8601 timestamp of the last connection. May be `null`. **last\_disconnection\_at** `string` ISO 8601 timestamp of the last disconnection. May be `null`. **last\_heartbeat\_at** `string` ISO 8601 timestamp of the last heartbeat. May be `null`. **setup\_pending** `boolean` Whether the charger has a pending setup operation. **setup\_completed** `boolean` Whether the charger has completed initial setup. **blocked** `boolean` Whether the charger is blocked. **max\_current** `number` The maximum current in Amperes the charger can deliver. **created\_at** `string` ISO 8601 timestamp of when the charger was created. **updated\_at** `string` ISO 8601 timestamp of when the charger was last updated. **licenses** `object` The charger's active licenses. **licenses** **smart** `boolean` Whether the smart charging license is active. **pro** `boolean` Whether the pro license is active. **load\_balancing** `boolean` Whether the charger can join dynamic load balancing: it has a Smart license, or it kept load balancing from before it became part of the Smart license. **model\_id** `integer` The ID of the charger model. May be `null`. **model** `object` The charger model details. Only included when the model relationship is loaded. **model** **vendor** `string` The vendor or manufacturer name. **name** `string` The model name. **is\_dc** `boolean` Whether this is a DC charger. **image\_url** `string` The URL of the model image. May be `null`. **is\_mid** `boolean` Whether the charger is a MID-certified meter. May be `null`. **permissions** `object` The authenticated user's permissions for this charger. **permissions** **basic** `boolean` Whether the user has basic read access. **sensitive** `boolean` Whether the user has access to sensitive data (e.g., pincode, transactions). **full** `boolean` Whether the user has full control (e.g., delete, transfer). # Setup Charger Source: https://developer.plugchoice.com/api-reference/chargers/setup-charger POST /v3/chargers/{charger}/setup Configures initial settings for a charger including phases, current limits, and other configuration. The charger will automatically restart after a successful setup. This endpoint is rate limited to 1 request per 60 seconds per charger. **charger** `string` *required* The UUID of the charger to set up. **phases** `integer` *required* The number of phases. Must be `1` or `3`. **max\_current** `integer` *required* The maximum current in Amperes. Must be at least 6. **group** `integer` The location group ID to assign the charger to. Must reference an existing location group. Joining a group needs a Smart license on the charger, unless it already had load balancing before that became part of the Smart license; otherwise the request fails with `402`. **net\_type** `string` The electrical network type. One of `IT`, `TT`, `TN`, or `unknown`. **phase\_rotation** `string` The phase rotation configuration. The length must match the number of phases. Valid values for 3 phases: `RST`, `RTS`, `SRT`, `STR`, `TRS`, `TSR`. Valid values for 1 phase: `R`, `S`, `T`. ## Response **message** `string` A success message indicating the charger will restart. **setup\_pending** `boolean` Whether the setup is still pending. # Update Charger Source: https://developer.plugchoice.com/api-reference/chargers/update-charger PUT /v3/chargers/{charger} Updates the details of a specific charger. **charger** `string` *required* The UUID of the charger to update. **reference** `string` A user-defined reference or label for the charger. Maximum 255 characters. Set to `null` (or an empty string) to clear the reference for the resolved team. **team\_uuid** `string` The UUID of the team the reference applies to. Must be a valid UUID of an existing team accessible for this charger. When omitted, the authenticated user's current team is used. ## Response **uuid** `string` The unique UUID of the charger. **id** `integer` The numeric ID of the charger. **identity** `string` The unique identity string of the charger. **serial\_number** `string` The serial number of the charger. May be `null`. **charge\_box\_serial\_number** `string` The `chargeBoxSerialNumber` the charger sent in its last boot notification. May be `null`. **pincode** `string` The charger's pincode. Only returned if the authenticated user has sensitive permissions. **reference** `string` The updated reference for the charger. May be `null`. **connection\_status** `string` The current connection status of the charger. **status** `string` The current OCPP status of the charger. **error** `string` The current error code, if any. May be `null`. **error\_info** `string` Additional error information. May be `null`. **vendor\_id** `string` The vendor identifier. May be `null`. **vendor\_error\_code** `string` A vendor-specific error code. May be `null`. **firmware\_version** `string` The raw firmware version string. May be `null`. **parsed\_firmware\_version** `string` The parsed and normalized firmware version. May be `null`. **server** `string` The OCPP server the charger is connected to. May be `null`. **last\_connection\_at** `string` ISO 8601 timestamp of the last connection. May be `null`. **last\_disconnection\_at** `string` ISO 8601 timestamp of the last disconnection. May be `null`. **last\_heartbeat\_at** `string` ISO 8601 timestamp of the last heartbeat. May be `null`. **setup\_pending** `boolean` Whether the charger has a pending setup operation. **setup\_completed** `boolean` Whether the charger has completed initial setup. **blocked** `boolean` Whether the charger is blocked. **max\_current** `number` The maximum current in Amperes the charger can deliver. **created\_at** `string` ISO 8601 timestamp of when the charger was created. **updated\_at** `string` ISO 8601 timestamp of when the charger was last updated. **licenses** `object` The charger's active licenses. **licenses** **smart** `boolean` Whether the smart charging license is active. **pro** `boolean` Whether the pro license is active. **load\_balancing** `boolean` Whether the charger can join dynamic load balancing: it has a Smart license, or it kept load balancing from before it became part of the Smart license. **model\_id** `integer` The ID of the charger model. May be `null`. **is\_mid** `boolean` Whether the charger is a MID-certified meter. May be `null`. **permissions** `object` The authenticated user's permissions for this charger. **permissions** **basic** `boolean` Whether the user has basic read access. **sensitive** `boolean` Whether the user has access to sensitive data (e.g., pincode, transactions). **full** `boolean` Whether the user has full control (e.g., delete, transfer). # Update Firmware Source: https://developer.plugchoice.com/api-reference/chargers/update-firmware POST /v3/chargers/{charger}/firmware/update Triggers a firmware update to the latest available version for the specified charger. Returns `202 Accepted` when the update is successfully requested. Returns `422 Unprocessable Entity` with a `message` field when no newer firmware is available, no update track is configured, or the current version cannot be determined. **charger** `string` *required* The UUID of the charger to update. ## Response **current\_version** `string` The current firmware version installed on the charger. May be `null`. **latest\_version** `string` The target firmware version for the update. May be `null`. **update\_available** `boolean` Whether a newer firmware version is available for this charger. **auto\_update** `boolean` Whether automatic firmware updates are enabled for this charger. **can\_update** `boolean` Whether an update can currently be triggered. Always `false` after a successful trigger. **status** `string` The firmware update status. Always `requested` after a successful trigger. **progress** `integer` The firmware update progress percentage. `12` immediately after a successful trigger. **last\_status** `string` The most recent raw firmware status reported. May be `null`. **last\_status\_at** `string` ISO 8601 timestamp of the most recent firmware status. May be `null`. **availability\_reason** `string` The reason a newer version is unavailable when applicable. May be `null`. # Update Proxy Servers Source: https://developer.plugchoice.com/api-reference/chargers/update-proxy PUT /v3/chargers/{charger}/proxy Updates the proxy server configuration for the specified charger. There must be exactly one leader across the vendor role and all server entries. **charger** `string` *required* The UUID of the charger. **vendor\_role** `string` *required* The role of the vendor (Plugchoice) connection. Either `ROLE_LEADER` or `ROLE_FOLLOWER`. **servers** `object[]` An array of proxy server configurations. **server** **servers\[].websocket** `string` *required* The WebSocket URL of the proxy server. Must use `ws://` or `wss://` protocol. **servers\[].role** `string` *required* The role of this server. Either `ROLE_LEADER` or `ROLE_FOLLOWER`. **servers\[].password** `string | null` Optional credential the charger uses to authenticate to this server. Stored encrypted at rest and never returned by the API. Three-state semantics: * **Omit the field** to preserve the password currently stored for this server (matched by `websocket`). * Pass a **non-empty string** to set or replace the password. * Pass `null` (or an empty string) to clear the stored password. This means partial updates from a UI that does not know existing passwords (e.g. only changing a role) will not wipe credentials. ## Response **data** `object[]` The updated list of proxy server entries. **proxy server** **websocket\_url** `string` The WebSocket URL of the proxy server. **role** `string` The role of this server. **has\_password** `boolean` Whether a password is currently stored for this server. The password value itself is never returned. **created\_at** `string` ISO 8601 timestamp of when the proxy entry was created. **updated\_at** `string` ISO 8601 timestamp of when the proxy entry was last updated. # Get Latest Meter Value Source: https://developer.plugchoice.com/api-reference/connectors/get-latest-meter-value GET /v3/chargers/{charger}/connectors/{connector_id}/latest-metervalue Returns the latest OCPP meter value for a specific connector. This includes detailed sampled values for energy, current, voltage, and other measurands. **charger** `string` *required* The UUID of the charger. **connector\_id** `integer` *required* The OCPP connector ID. ## Response **connectorId** `integer` The connector ID this meter value belongs to. **transactionId** `integer` The ID of the transaction the meter value relates to, when the reading was taken during an active transaction. May be omitted. **meterValue** `object[]` An array of meter value entries. **meterValue** **timestamp** `string` ISO 8601 timestamp of the measurement. **sampledValue** `object[]` Array of sampled values. **sampledValue** **value** `string` The measured value. **context** `string` The context of the reading (e.g., `Trigger`, `Sample.Periodic`). **format** `string` The value format (e.g., `Raw`). **measurand** `string` The type of measurement (e.g., `Energy.Active.Import.Register`, `Current.Import`, `Voltage`). **phase** `string` The phase this value applies to (e.g., `L1`, `L2`, `L3`, `L1-N`). May be `null`. **location** `string` The measurement location (e.g., `Outlet`, `Inlet`). **unit** `string` The unit of measurement (e.g., `Wh`, `A`, `V`). # Get Power Usage Source: https://developer.plugchoice.com/api-reference/connectors/get-power-usage GET /v3/chargers/{charger}/connectors/{connector_id}/power-usage Returns the current real-time power usage for a specific connector. Data is retrieved from live measurements. **charger** `string` *required* The UUID of the charger. **connector\_id** `integer` *required* The OCPP connector ID. ## Response **timestamp** `string` ISO 8601 timestamp of when the measurement was taken. **L1** `string` Current on phase L1 in Amperes. Displays `-` if not available. **L2** `string` Current on phase L2 in Amperes. Displays `-` if not available. **L3** `string` Current on phase L3 in Amperes. Displays `-` if not available. **kW** `string` Total power consumption in kilowatts. **soc** `string` State of charge of the connected vehicle's battery, as a whole-number percentage (0 to 100). Only reported by chargers that support it (typically DC fast chargers); the field is omitted when unavailable. # Update Connector Source: https://developer.plugchoice.com/api-reference/connectors/update-connector PUT /v3/chargers/{charger}/connectors/{connector_id} Updates the phase rotation and max amperage configuration for a specific connector. **charger** `string` *required* The UUID of the charger. **connector\_id** `integer` *required* The OCPP connector ID. **phase\_rotation** `string` *required* The phase rotation configuration. Valid values for 3 phases: `RST`, `RTS`, `SRT`, `STR`, `TRS`, `TSR`. Valid values for 2 phases: `RS`, `RT`, `SR`, `ST`, `TR`, `TS`. Valid values for 1 phase: `R`, `S`, `T`. **max\_amperage** `integer` *required* The maximum amperage for the connector. Must be at least 1 and may not exceed the charger's configured max current (defaults to 1000 when the charger has no max current set). **min\_current** `integer` The minimum charging current for the connector. Must be at least 0 and may not exceed the charger's configured max current (defaults to 1000 when the charger has no max current set). **current\_limit** `integer` The manual charging speed (current limit) for the connector. Must be at least 0 and may not exceed the charger's configured max current (defaults to 1000 when the charger has no max current set). The values 1, 2, 3, 4, and 5 are not allowed. Setting a current limit is a smart-charging feature and requires the charger to have a Smart license. ## Response **id** `integer` The internal ID of the connector. **charger\_id** `integer` The ID of the parent charger. **connector\_id** `integer` The OCPP connector ID. **status** `string` The current status of the connector. One of `Available`, `Charging`, `Faulted`, `Finishing`, `Preparing`, `Reserved`, `SuspendedEV`, `SuspendedEVSE`, `Unavailable`. **error** `string` The current error code, if any. **error\_info** `string` Additional error information. **vendor\_id** `string` The vendor identifier. **vendor\_error\_code** `string` A vendor-specific error code. **max\_amperage** `integer` The maximum amperage for the connector. **min\_current** `integer` The minimum charging current for the connector. **current\_limit** `integer` The manual charging speed (current limit) for the connector. **current\_limit\_managed\_by** `string` Indicates who set the connector's current limit. One of `api` or `user`. Set to `user` when the limit is changed through this endpoint. May be `null` when no manual limit has been applied. **max\_voltage** `integer` The maximum voltage for the connector. **standard** `string` The connector standard. One of `CHADEMO`, `IEC_62196_T1`, `IEC_62196_T2`, `IEC_62196_T2_COMBO`, `IEC_62196_T3A`, `IEC_62196_T3C`, `TESLA_S`. **format** `string` The connector format. One of `CABLE`, `SOCKET`. **power\_type** `string` The power type. One of `AC_1_PHASE`, `AC_2_PHASE`, `AC_2_PHASE_SPLIT`, `AC_3_PHASE`, `DC`. **phase\_rotation** `string` The phase rotation configuration. **created\_at** `string` ISO 8601 timestamp of when the connector was created. **updated\_at** `string` ISO 8601 timestamp of when the connector was last updated. # List Energy Suppliers Source: https://developer.plugchoice.com/api-reference/data/list-energy-suppliers GET /v3/energy-suppliers Returns the energy suppliers a household can choose in one country, in the order Plugchoice shows them. Use it to let your user pick the supplier they buy their energy from. A country Plugchoice holds no suppliers for returns an empty list. **country** `string` *required* The country as a two-letter ISO 3166 code, such as `NL` or `DE`. Upper or lower case. ## Response **data** `array` Array of energy supplier objects, in display order. **energy supplier** **id** `string` The supplier's identifier within the country, such as `vattenfall`. It stays the same over time. **name** `string` The supplier name. **logo\_url** `string` The full URL of the supplier's logo, an SVG or PNG file. Can be `null`. # List Meter Models Source: https://developer.plugchoice.com/api-reference/data/list-meter-models GET /v3/meter-models Returns the meters the Plugchoice app can set up, with an image of each, what it reads, a rough price and, where there is one, a shop to buy it. This endpoint does not require authentication. ## Response **data** `array` Array of meter model objects. **meter model** **key** `string` The model's key, for example `sparky` or `flint`. **name** `string` The model name. **vendor** `object` The vendor of the meter. **vendor** **key** `string` The vendor's key. **name** `string` The vendor name. **image\_url** `string` The publicly accessible URL of the model's image. `null` when the model has no image. **capabilities** `array` What the meter reads and how it connects, as keys: `smart_meter` (the P1 or HAN port of a smart meter), `modbus_meter` (an energy meter over Modbus), `wifi`, `ethernet` and `cellular`. Empty when unknown. **price** `object` A rough consumer price, VAT included, or `null` when there is none. An indication, not an offer. **price** **amount** `number` The amount, for example `24.95`. **currency** `string` The ISO currency code, for example `EUR`. **shop** `object` Where to buy the meter, or `null` when there is no shop. **shop** **url** `string` The URL of the shop. **countries** `array` The ISO country codes of the countries the shop delivers to, for example `NL`. # List Models Source: https://developer.plugchoice.com/api-reference/data/list-models GET /v3/models Returns a list of published charger models, ordered by vendor then name. This endpoint does not require authentication. ## Response **data** `array` Array of model objects. **model** **id** `integer` The numeric ID of the model. **vendor** `string` The vendor name. Resolved from the canonical vendor when the model is linked to one, otherwise the raw vendor string stored on the model. **name** `string` The model name. **display\_name** `string` The customer-facing display name for the model. Can be `null`. **is\_dc** `boolean` Whether the model is a DC charger. Can be `null` if not set. **is\_mid** `boolean` Whether the model has MID-certified metering. Can be `null` if not set. **image\_url** `string` The publicly accessible URL of the model's image: the first of `images`, or an older image while `images` is empty. `null` when the model has no image. **images** `array` Every image of the model, in the order to show them. Empty when the model has none. **image** **role** `string` What the image shows, for example `front`, `side`, `angle`, `back` or `detail`. **url** `string` The publicly accessible URL of the image (WebP, PNG, JPEG or SVG). **width** `integer` The width in pixels. Can be `null`, for example for an SVG. **height** `integer` The height in pixels. Can be `null`, for example for an SVG. **serial\_format** `object` The expected shape of the model's serial number, or `null` when not configured. **serial\_format** **type** `string` Either `numeric` or `alphanumeric`. **length** `integer` The exact required length. Only present when `type` is `numeric`. **max\_length** `integer` The maximum allowed length. Only present when `type` is `alphanumeric`. **identity\_prefix** `string` An optional prefix prepended to the charger identity for this model (e.g. `VT_`). Can be `null`. **help\_article\_id** `string` The identifier of the associated Intercom help article. Can be `null`. **requires\_pincode** `boolean` Whether setting up a charger of this model requires a PIN code. **wifi\_setup** `boolean` Whether the model's setup flow includes a Wi-Fi configuration step. **certified** `boolean` Whether the model is certified. **capabilities** `object` The settings/capabilities supported by this model. `lock` and `autostart` are generic and always `true`; the rest are derived from the model-specific support classes so they can never drift from what the firmware actually supports. **capabilities** **lock** `boolean` Always `true`. **autostart** `boolean` Always `true`. **setup** `boolean` Whether the model supports guided setup. **socket\_lock** `boolean` Whether the model supports socket locking. **display\_led** `boolean` Whether the model supports reading the display LED state. **nanogrid** `boolean` Whether the model supports NanoGrid. **qr\_payment** `boolean` Whether the model can show a payment QR on its display. `true` for the Peblar Dual. See [Get payment QR](/api-reference/charger-settings/get-qr-payment). **screen\_branding** `boolean` Whether the model can show your name and support contact on its display. `true` for the Peblar Dual. See [Get display text](/api-reference/charger-settings/get-screen-branding). # List Products Source: https://developer.plugchoice.com/api-reference/data/list-products GET /v3/products Returns a list of all available products (e.g., charger licenses). ## Response **data** `array` Array of product objects. **product** **id** `integer` The numeric ID of the product. **name** `string` The product name. **sku** `string` The product SKU identifier. **active** `boolean` Whether the product is currently active and available for purchase. **digital** `boolean` Whether the product is a digital product. **price** `integer` The product price, expressed as an integer in minor currency units. # List Providers Source: https://developer.plugchoice.com/api-reference/data/list-providers GET /v3/providers Returns a list of available charging network providers, ordered alphabetically by name. This endpoint does not require authentication. ## Response **data** `array` Array of provider objects. **provider** **name** `string` The provider name. **websocket\_url** `string` The OCPP WebSocket URL for connecting chargers to this provider. # List Tariffs Source: https://developer.plugchoice.com/api-reference/data/list-tariffs GET /v3/tariffs Returns a list of energy tariffs for a specific location. Only tariffs from today onwards are returned. **location** `string` *required* The location identifier to retrieve tariffs for. **interval** `string` `hour` returns one price per clock hour. Each price is the arithmetic mean of the quarter-hour prices in that hour, and `timestamp` is the start of the hour. An hour with fewer than four quarters uses the mean of the quarters present. Omit this parameter, or pass `quarter`, to return the quarter-hour prices. ## Response **data** `array` Array of tariff objects. **tariff** **type** `string` The tariff type. **location** `string` The location identifier. **timestamp** `string` ISO 8601 timestamp of when the tariff rate applies. **price** `number` The energy price in minor currency units. Quarter-hour prices are integers. With `interval=hour` the price is the mean of those integers and can be fractional. **price\_includes\_tax** `boolean` Whether the price includes tax. # Get energy summary Source: https://developer.plugchoice.com/api-reference/energy/get-site-energy-summary GET /v3/sites/{site}/energy/summary Returns what charging cost at a location in one calendar month: the total, the cost per 100 km and, for the current month, the expected total. It adds up the sessions of [Get transaction energy](/api-reference/energy/get-transaction-energy) that started in that month, in the location's own time. You need access to the location's charging data and Plugchoice Plus. Without Plus the answer is `403` with `reason` `plus_required`. **site** `string` *required* The UUID of the location. **month** `string` The month as `YYYY-MM`. Defaults to the current month. ## Response **data** `object` **data** **month** `string` The month, as `YYYY-MM`. **currency** `string` `EUR`, `GBP` for a location in the United Kingdom, or `null` when no session has a cost. **sessions** `integer` The number of sessions that started in the month and have been calculated. **sessions\_with\_cost** `integer` How many of them have a cost. **kwh** `number` The energy of all sessions, in kWh. **cost** `number` The total cost of the sessions that have one, or `null` when none has. **cost\_per\_100\_km** `number` The cost per kWh of those sessions times `consumption_kwh_per_km` times 100, or `null`. **consumption\_kwh\_per\_km** `number` The consumption per km used for `cost_per_100_km`: the average of all electric cars in the EV Database. **forecast\_cost** `number` Only for the current month: the cost so far divided by the days of the month so far (today included), times the days in the month. `null` for other months or without a cost. **solar\_share** `number` The part of the energy from solar panels, from 0 to 1, over the sessions that have one, or `null`. **co2\_g** `number` The CO2 of the grid energy in grams, over the sessions that have it, or `null`. **co2\_avoided\_g** `number` The CO2 avoided compared with a petrol car, in grams, or `null`. **null\_reasons** `object` The number of sessions without a cost per reason, for example `{"contract_incomplete": 2}`. The reasons are those of `null_reason` on a session. **contract\_complete** `boolean` Whether the energy contract of the location is complete. When it is `false`, ask the user to finish it. # Get transaction energy Source: https://developer.plugchoice.com/api-reference/energy/get-transaction-energy GET /v3/transactions/{transaction}/energy Returns what one charging session cost the location, with every quarter hour of the session. The cost comes from the energy contract in the location's [energy profile](/api-reference/site-energy-profile/get-energy-profile), always including delivery costs and VAT. Plugchoice calculates it once the session is final, and again when the session is corrected. You need access to the location's charging data and Plugchoice Plus. Without Plus the answer is `403` with `reason` `plus_required`. **transaction** `integer` *required* The ID of the transaction. ## How the cost is calculated * **Energy per quarter hour**: the energy the session was billed for, split over its quarter hours by the charger's meter readings. Without readings the energy is split evenly and `estimated` is `true`. * **Fixed or variable contract**: the price per kWh, or the off-peak price within the off-peak hours, in the location's own time. * **Dynamic contract in the Netherlands**: the day-ahead price including energy tax and VAT, plus the supplier's markup. * **Dynamic contract elsewhere**: (day-ahead price + energy tax) x (1 + VAT), plus the supplier's markup. This needs the energy tax of the country; without it there is no cost. * **Solar energy** counts at the feed-in price of the contract, or 0 without one. Grid energy counts at the quarter hour's price. ## Solar share and CO2 * **Solar share**: `solar_kwh` is the solar energy of the session, from the charger's solar samples, and at most `kwh`. When that is not known, `solar_share` is null with `not_available`. A home battery does not change that. * **Quarter hours**: that solar energy is split by the solar power in the session's samples in each quarter hour, scaled so the quarters add up to `solar_kwh`. Without samples, or when those samples cannot be read, it is split in proportion to the energy of each quarter hour. The rest of each quarter hour is grid energy. * **CO2**: the grid energy of each quarter hour times the CO2 per kWh of the country's electricity in that hour, from the ENTSO-E generation mix and life cycle emission factors per fuel. * **CO2 avoided**: the distance the energy covers (at `consumption_kwh_per_km` of the [energy summary](/api-reference/energy/get-site-energy-summary)) times what an average petrol car emits per km, including producing its fuel, minus `co2_g`. A session keeps the contract it was first priced with, so changing the contract later does not change it. ## Response **data** `object` **data** **transaction\_id** `integer` The ID of the transaction. **status** `string` `computed`, or `pending` when there is no calculation yet. A pending answer only has `transaction_id`, `status` and `decided`. **decided** `boolean` Only when `status` is `pending`: whether the session is final. A final session gets its calculation within a few minutes. **started\_at** `string` When the session started, as an ISO 8601 UTC timestamp. **stopped\_at** `string` When the session stopped, as an ISO 8601 UTC timestamp. **kwh** `number` The energy of the session in kWh. **grid\_kwh** `number` The part from the grid, in kWh. **solar\_kwh** `number` The part from solar panels, in kWh. **cost** `number` What the session cost, in `currency`, or `null` with the reason in `null_reason`. **currency** `string` `EUR`, `GBP` for a location in the United Kingdom, or `null` without a cost. **solar\_share** `number` The part of the energy from solar panels, from 0 to 1, or `null` with the reason in `solar_share_null_reason`. **co2\_g** `number` The CO2 of the grid energy in grams, or `null` with the reason in `co2_null_reason`. **co2\_avoided\_g** `number` The CO2 in grams a petrol car would have emitted over the same distance, minus `co2_g`, or `null`. **null\_reason** `string` Why `cost` is `null`: `contract_incomplete` (ask the user to finish the energy contract), `tax_rates_missing`, `prices_missing` or `no_location`. `null` when there is a cost. **solar\_share\_null\_reason** `string` Why `solar_share` is `null`: `not_available` (the solar energy of the session is not known) or `no_location`. A summary from before this calculation may still say `home_battery` until it is recalculated. **co2\_null\_reason** `string` Why `co2_g` is `null`: `intensity_missing` (no grid mix for the country and one of the session's hours; the United Kingdom has none) or `no_location`. A summary from before this calculation may still say `not_available` until it is recalculated. **estimated** `boolean` Whether the split over the quarter hours is an estimate because the charger sent no meter readings. **method\_version** `integer` The version of the calculation. A new version recalculates every session. **computed\_at** `string` When the session was calculated, as an ISO 8601 UTC timestamp. **intervals** `array` The quarter hours of the session, oldest first. **interval object** **start** `string` The start of the quarter hour, as an ISO 8601 UTC timestamp. **kwh** `number` The energy in the quarter hour, in kWh. **grid\_kwh** `number` The part from the grid, in kWh. **solar\_kwh** `number` The part from solar panels, in kWh. **price\_per\_kwh** `number` The grid price per kWh, or `null` without a cost. **cost** `number` The cost of the quarter hour, or `null` without a cost. **co2\_g** `number` The CO2 of the grid energy in grams, or `null`. # Energy Export Source: https://developer.plugchoice.com/api-reference/insights/energy-export GET /v3/sites/{site}/insights/energy-export Exports energy usage data for a location at 15-minute intervals, including the location power curve and per-charger summary. **site** `string` *required* The UUID of the location. **started\_from** `string` *required* The start date for the export range. Must be a valid date string (e.g., `2024-01-01`). Data is returned from the start of this day. **stopped\_until** `string` *required* The end date for the export range. Must be a valid date string and equal to or after `started_from`. Data is returned through the end of this day. ## Response **power\_curve** `array` The location-level power curve, sampled at 15-minute intervals from site statistics. **interval object** **date** `string` The timestamp marking the start of the 15-minute interval bucket. **avg\_kw** `number` The average power draw across the interval, in kilowatts (rounded to 2 decimals). **kwh** `number` The energy delivered during the interval, in kilowatt-hours (rounded to 4 decimals). **charger\_summary** `array` A per-charger energy summary derived from completed transactions, ordered by total energy delivered (descending). **charger object** **charger\_identity** `string` The OCPP identity of the charger. **charger\_reference** `string` The viewing team's reference for the charger, or an empty string if none is set. **total\_kwh** `number` The total energy delivered by the charger over the range, in kilowatt-hours (rounded to 2 decimals). **transaction\_count** `integer` The number of completed transactions for the charger over the range. # List Meter Values Source: https://developer.plugchoice.com/api-reference/meter-values/list-charger-meter-values GET /v3/chargers/{charger}/metervalues Returns a paginated list of historical OCPP meter values for the specified charger. > [!NOTE] > > If you only need the most recent meter value, use [Get Latest Meter Value](/api-reference/connectors/get-latest-meter-value) instead. **charger** `string` *required* The UUID of the charger. **date\_from** `string` *required* Start date for the query. Format: `Y-m-d H:i:s` (e.g., `2025-01-01 00:00:00`). **date\_to** `string` *required* End date for the query. Format: `Y-m-d H:i:s` (e.g., `2025-12-31 23:59:59`). **context** `string` Filter by measurement context. One of `Interruption.Begin`, `Interruption.End`, `Other`, `Sample.Clock`, `Sample.Periodic`, `Transaction.Begin`, `Transaction.End`, or `Trigger`. **measurand** `string` Filter by measurand type: any measurand of OCPP 1.6, 2.0.1 or 2.1, such as `Energy.Active.Import.Register`, `Power.Active.Import`, `Current.Import`, `Voltage` or `SoC`. **phase** `string` Filter by phase. One of `L1`, `L2`, `L3`, `N`, `L1-N`, `L2-N`, `L3-N`, `L1-L2`, `L2-L3`, or `L3-L1`. **location** `string` Filter by measurement location. One of `Body`, `Inlet`, `Cable`, `Outlet`, `EV`, or `Upstream`. **unit** `string` Filter by unit. One of `Wh`, `kWh`, `varh`, `kvarh`, `VAh`, `kVAh`, `W`, `kW`, `VA`, `kVA`, `var`, `kvar`, `A`, `V`, `Hz`, `s`, `Celsius`, `Fahrenheit`, `K`, or `Percent`. **limit** `integer` Maximum number of results to return. Maximum 10,000. **order\_by** `string` Sort order. Either `asc` or `desc`. ## Response **id** `integer` The meter value record ID. **charger\_id** `integer` The ID of the charger. **charger\_connector\_id** `integer` Deprecated. Use `connector_id` instead. **connector\_id** `integer` The connector ID this meter value belongs to. **charger\_transaction\_id** `integer` Deprecated. Use `transaction_id` instead. **transaction\_id** `integer` The transaction ID this meter value belongs to. May be `null`. **timestamp** `string` ISO 8601 timestamp of the measurement. **value** `string` The measured value as a string. **context** `string` The context of the reading. **format** `string` Deprecated. Always returns `Raw`. **measurand** `string` The type of measurement. **phase** `string` The phase this value applies to. May be `null`. **location** `string` The measurement location. **unit** `string` The unit of measurement. # Get Command Exchange Source: https://developer.plugchoice.com/api-reference/ocpp-logs/get-command-exchange GET /v3/chargers/{charger}/logs/command-exchange Returns a command sent to a charger, the charger's answer, and the messages the command asked for that the charger sent within 60 seconds after it. A `TriggerMessage` is answered with only `Accepted`; the data it asks for, such as `MeterValues` or `StatusNotification`, arrives as a message of its own. Works for OCPP 1.6 and 2.0.1. The command is the `method` sent to the charger closest to `sent_at`, up to two minutes before or after it. **charger** `string` *required* The UUID of the charger. **method** `string` *required* The OCPP action of the command, for example `TriggerMessage`. **sent\_at** `string` *required* When the command was sent, as an ISO 8601 timestamp. ## Response **command** `object` The command as logged, with the same fields as an entry of [List Logs](/api-reference/ocpp-logs/list-charger-logs). `null` when no such command is in the log, for example because it is not logged yet. **follow\_ups** `object[]` The messages of the asked-for types the charger sent within the window, oldest first, with the same fields as an entry of List Logs. At most 50. **follow\_up\_methods** `string[]` The actions the command asks the charger to send: the `requestedMessage` of a `TriggerMessage` or `ExtendedTriggerMessage`, `NotifyReport` after `GetBaseReport` or `GetReport`, `NotifyMonitoringReport` after `GetMonitoringReport`, `ReportChargingProfiles` after `GetChargingProfiles`, `NotifyDisplayMessages` after `GetDisplayMessages`, and `NotifyCustomerInformation` after `CustomerInformation`. Empty for a command that asks for none. **window\_seconds** `integer` How long after the command a message counts as its result: 60. **window\_open** `boolean` Whether asking again can still turn up more: the window has not passed, or the command may still be logged. # List Logbook Events Source: https://developer.plugchoice.com/api-reference/ocpp-logs/list-charger-events GET /v3/chargers/{charger}/events Returns the charger's logbook: the events in its OCPP log that matter to an owner, newest first. A refused card, a fault and its recovery, a transaction that started or ended, a restart, a command the charger refused or did not answer, and what the proxy saw between the charger and its operators. Each event points back at the OCPP call it was read from, so you can open the full message with [List Logs](/api-reference/ocpp-logs/list-charger-logs). The response carries codes, not sentences. Write the line in your own language from `type` and `details`. **charger** `string` *required* The UUID of the charger. **filter\[type]** `string[]` Only these event types. Accepts an array or a comma-separated list. See `type` below for the values. **filter\[severity]** `string[]` Only these severities: `info`, `warning`, `critical`. Use `warning,critical` for the problems alone. **filter\[operator]** `string[]` Only events that involve these operators, as the proxy names them (see `operator` below). Accepts an array or a comma-separated list. `filter_options.operators` lists the operators set on this charger. **filter\[connector]** `integer[]` Only events on these connectors. Use `0` for the charger as a whole. Accepts an array or a comma-separated list. **filter\[date\_from]** `string` Events from this moment on. Any date or ISO 8601 timestamp. **filter\[date\_to]** `string` Events up to this moment. Must be after or equal to `filter[date_from]`. **before** `string` The `next_cursor` of the previous page. Leave it out for the newest events. **per\_page** `integer` Events per page, 1 to 100. Defaults to 25. ## Response **data** `object[]` The events, newest first. A run of the same event in a row (the same card refused four times) is one event with a `count`. **event** **type** `string` What happened. One of `card_rejected`, `card_rejected_by_operator`, `session_started`, `session_stopped`, `connector_faulted`, `connector_recovered`, `connector_unavailable`, `charger_booted`, `command_failed`, `firmware_installed`, `firmware_failed`, `operator_failover`, `no_operator_reachable`, `message_lost`. `card_rejected` means the answer the charger acted on refused the card. `card_rejected_by_operator` means another operator refused it while the charger still got permission to charge. **severity** `string` `info`, `warning` or `critical`. **occurred\_at** `string` ISO 8601 timestamp of the event, or of the latest one in a run. **first\_at** `string` ISO 8601 timestamp of the first event in a run. Equal to `occurred_at` when `count` is 1. **count** `integer` How many identical events in a row this line stands for. **connector\_id** `integer` The connector, `0` for the charger as a whole, or `null` when the event has no connector. **operator** `string` The operator involved, as the proxy names it: `hub` for Plugchoice, `proxy` when the proxy answered itself, otherwise the operator's host. Look up the display name in `operators`. May be `null`. For `operator_failover` it is the operator that stood in; `details.leader` is the operator that handles billing and did not answer. **details** `object` The facts the event is written from. Depends on `type`: `id_tag`, `reason` and `authority` for a refused card (`configured` when the answer came from the operator that handles billing, `failover` when another operator stood in), plus `leader` for a `card_rejected` during a failover and `answered_by` for `card_rejected_by_operator`; `id_tag` and `transaction_id` for a started transaction; `reason` and `transaction_id` for a stopped one; `leader` for `operator_failover`; `status`, `error_code`, `info` and `vendor_error_code` for a fault; `status` for a recovery and for a failed firmware update; `command` and `outcome` for a command the charger refused or did not answer; `firmware` and `status` for a boot; `message` for a lost message. **log\_id** `integer` The ID of the OCPP call the event was read from. **next\_cursor** `string` Pass it as `before` to get the next, older page. `null` on the last page. One page reads at most 14 days of log. When those 14 days hold no events, `data` is empty and `next_cursor` points further back, so keep paging until `next_cursor` is `null`. **operators** `object` The display name for each operator on this page, keyed by the `operator` value. `hub` is Plugchoice; a host of a known operator gets its name. **cards** `object` The name the location gave each card on this page, keyed by `id_tag`. Cards without a name are left out. **card\_access** `object` Where each card refused on this page (`card_rejected`) stands on the card list of the charger's location today, keyed by `id_tag`. Matched exactly, the way Plugchoice matches a card when it decides. A card that is not on the list is left out. **card access** **status** `string` `allowed` when the card may charge on this charger now, `other_chargers` when it is on the list but only for other chargers at the location. **card** `string` The ID of the card at the location, for [Update Card](/api-reference/cards/update-card). **name** `string` The name the location gave the card. **chargers** `string[]` The UUIDs of the chargers the card is limited to. Empty means every charger at the location. **filter\_options** `object` The values you can filter on. **filter\_options** **operators** `string[]` The operators set on this charger, as the proxy names them: `hub` first, then each other operator's host. Their display names are in `operators`. ```json Response theme={null} { "data": [ { "type": "card_rejected_by_operator", "severity": "warning", "occurred_at": "2026-10-08T13:05:00.000000Z", "first_at": "2026-10-08T13:05:00.000000Z", "count": 1, "connector_id": null, "operator": "ocpp.example.com", "details": { "id_tag": "AA9CD0F7", "reason": "Invalid", "answered_by": "hub", "authority": "configured" }, "log_id": 81234 } ], "next_cursor": "WyIyMDI2LTEwLTA4IDEzOjA1OjAwIiw4MTIzNF0", "operators": { "ocpp.example.com": "Example Operator", "hub": "Plugchoice" }, "cards": { "AA9CD0F7": "Office card" }, "card_access": {}, "filter_options": { "operators": ["hub", "ocpp.example.com"] } } ``` # List Logs Source: https://developer.plugchoice.com/api-reference/ocpp-logs/list-charger-logs GET /v3/chargers/{charger}/logs Returns a paginated list of OCPP communication logs for a specific charger. Supports filtering by method, status, destination, date range, and sorting. **charger** `string` *required* The UUID of the charger. **filter\[method]** `string[]` Filter by OCPP method (e.g., `Heartbeat`, `StartTransaction`, `MeterValues`). Accepts an array or a comma-separated list of values. **filter\[status]** `string[]` Filter by log status. One or more of `pending`, `done`, or `failed`. Accepts an array or a comma-separated list of values. **filter\[destination]** `string[]` Filter by message destination. One or more of `centralsystem` or `charger`. Accepts an array or a comma-separated list of values. **filter\[hide\_insignificant]** `string` Hide high-volume, low-significance logs (`Heartbeat`, `MeterValues`, `SetChargingProfile`, `SecurityEventNotification`, `GetConfiguration`, and `ChangeConfiguration`). Use `1` to hide or `0` to show. **filter\[date\_from]** `string` Filter logs from this date. Format: `Y-m-d` or `Y-m-d H:i:s`. **filter\[date\_to]** `string` Filter logs until this date. Must be after or equal to `filter[date_from]`. Format: `Y-m-d` or `Y-m-d H:i:s`. **sort** `string` Sort field. Use `created_at` for ascending or `-created_at` for descending (default). **page** `integer` Page number for pagination. ## Response The response is a paginated payload (`simplePaginate`, 25 per page). Log entries are returned in the `data` array, alongside the standard pagination fields (`current_page`, `per_page`, `first_page_url`, `prev_page_url`, `next_page_url`, `from`, `to`, `path`) and the additional `filter_options` field described below. **data** `object[]` The list of log entries. Each entry has the following fields. **log entry** **id** `integer` The log entry ID. **charger\_id** `integer` The ID of the charger. **status** `string` The status of the OCPP message. One of `pending`, `done`, or `failed`. May be `null`. **version** `string` The OCPP protocol version used. **method** `string` The OCPP method name (e.g., `Heartbeat`, `StartTransaction`, `StatusNotification`). May be `null`. **destination** `string` The message destination (`centralsystem` or `charger`). May be `null`. **params** `object` The parameters sent with the OCPP message. Structure varies per OCPP action (e.g., `BootNotification`, `StartTransaction`). **result** `object` The result or response of the OCPP message. Structure varies per OCPP action. May be `null` for pending messages. **created\_at** `string` ISO 8601 timestamp of when the log entry was created. **updated\_at** `string` ISO 8601 timestamp of when the log entry was last updated. **operator\_names** `object` The display name for each operator on this page and each operator set on the charger, keyed by the label the proxy uses: `hub` and `proxy` are Plugchoice, a host of a known operator gets its name, any other host stays as it is. **filter\_options** `object` Available filter options. **filter\_options** **methods** `string[]` A list of all available OCPP method names that can be used with the `filter[method]` parameter. # Get Power History Source: https://developer.plugchoice.com/api-reference/power-management/get-power-history GET /v3/sites/{site}/power-history Returns historical power metrics for a branch (location group) or connector. Data is sampled to a maximum of 400 points. Use the `from` and `to` parameters to zoom in on a specific time range for more granular data. When the `from` and `to` parameters are omitted, the default range is the last 7 days. **site** `string` *required* The UUID of the location. **type** `string` *required* The history type. Must be `branch` or `connector`. **entity\_id** `integer` *required* The entity ID. Use the `site_group_id` when type is `branch`, or the `charger_id` when type is `connector`. **connector\_id** `integer` The connector ID. Required when `type` is `connector`. **from** `string` Start date/time filter in ISO 8601 format (e.g., `2024-01-01T00:00:00Z`). **to** `string` End date/time filter in ISO 8601 format. Must be after or equal to `from`. ## Response **data** `object[]` An array of data points, ordered by timestamp. Each point groups its measurands by phase. **data point** **timestamp** `string` The ISO 8601 timestamp of the data point. **L1** `object` A map of measurand name to value (number) for phase L1. For branch history the measurands are `Current.Meter`, `Current.Available`, `Current.Requested`, and `Current.Allocated`; for connector history they are `Current.Requested`, `Current.Allocated`, and `Current.Import`. Only measurands present for that timestamp are included. **L2** `object` The same structure as `L1`, for phase L2. **L3** `object` The same structure as `L1`, for phase L3. **meta** `object` Metadata describing the returned range and series. **meta** **from** `string` The ISO 8601 start of the returned range. **to** `string` The ISO 8601 end of the returned range. **type** `string` The history type, either `branch` or `connector`. **entity\_id** `integer` The entity ID the data was queried for. **connector\_id** `integer` The connector ID, or `null` for branch history. **measurands** `string[]` The measurands included for this history type. **phases** `string[]` The phases included, always `L1`, `L2`, and `L3`. **total\_points** `integer` The total number of distinct timestamps in the requested range before sampling. # Get Power Management Source: https://developer.plugchoice.com/api-reference/power-management/get-power-management GET /v3/sites/{site}/power-management Returns the power management status for the specified location, including the hierarchical group structure, chargers, connectors, and real-time metrics for load management visualization. **site** `string` *required* The UUID of the location. ## Response **data** `object` The power management payload. **data** **groups** `array` An array of top-level load balancing group objects. **group object** **id** `integer` The numeric ID of the group. **isRoot** `boolean` Whether this is a root-level group. **totalAmps** `integer` The total available amperage for the group. **netType** `string` The electrical network type (e.g., `TT`, `TN`, `IT`). **method** `string` The load balancing method. **peakShaving** `object` Peak shaving configuration. **peakShaving** **enabled** `boolean` Whether peak shaving is enabled. **threshold** `integer` The peak shaving threshold in amps. **meter** `object` The attached meter, or `null` if none. **meter** **id** `integer` The numeric ID of the meter. **uuid** `string` The UUID of the meter. **type** `string` The meter type. **serialNumber** `string` The serial number of the meter. **solarSettings** `object` Solar integration settings. **solarSettings** **additionalAmps** `integer` Additional amperage from solar. **alwaysCharge** `boolean` Whether to always charge when solar is available. **alwaysChargeAmps** `integer` Minimum amperage when solar always charge is enabled. **smartChargingChargeOnSolarExport** `boolean` Whether to charge on solar export. **dataKeys** `object` A map of Redis key names for the group's real-time available, requested, and allocated amperage per phase, plus the `meter` key (or `null` when no meter is attached). **chargers** `array` An array of charger objects assigned to this group. Each charger has the same structure as the entries in `unattachedChargers`. **subgroups** `array` An array of nested subgroup objects (same structure as group). **unattachedChargers** `array` An array of chargers not assigned to any group. **charger object** **id** `integer` The numeric ID of the charger. **uuid** `string` The UUID of the charger. **label** `string` The charger's identity label. **status** `string` The connection status of the charger. **maxCurrent** `integer` The maximum current of the charger. **hasSmartLicense** `boolean` Whether the charger has a smart charging license. **canLoadBalance** `boolean` Whether the charger can join dynamic load balancing: it has a Smart license, or it kept load balancing from before it became part of the Smart license. **connectors** `array` An array of connector objects for this charger. **connector object** **id** `integer` The numeric ID of the connector. **chargerId** `integer` The numeric ID of the parent charger. **connectorId** `integer` The OCPP connector ID on the charger. **status** `string` The connector status. **phaseRotation** `string` The phase rotation (e.g., `RST`). **maxAmperage** `integer` The maximum amperage for the connector. **minCurrent** `integer` The minimum current for the connector. **currentLimit** `integer` The configured current limit, or `null`. **currentLimitManagedBy** `string` What set the current limit. One of `api` or `user`, or `null` when not set. **powerType** `string` The power type of the connector, or `null`. **standard** `string` The connector standard, or `null`. **format** `string` The connector format, or `null`. **maxVoltage** `integer` The maximum voltage for the connector, or `null`. **dataKeys** `object` A map of Redis key names for the connector's real-time requested/allocated amperage per phase and power usage. **allChargers** `array` A flat array of all location chargers with group assignment info. **charger summary** **id** `integer` The numeric ID of the charger. **uuid** `string` The UUID of the charger. **label** `string` The charger's identity label. **status** `string` The connection status of the charger. **groupId** `integer` The ID of the group the charger is assigned to, or `null`. **canLoadBalance** `boolean` Whether the charger can join dynamic load balancing: it has a Smart license, or it kept load balancing from before it became part of the Smart license. **realTimeData** `object` A map of data keys to their current values for real-time load management metrics (available, requested, and allocated amperage per phase). **meterData** `object` A map of meter IDs to their current power readings. # Get Smart Charging Source: https://developer.plugchoice.com/api-reference/power-management/get-smart-charging GET /v3/sites/{site}/smart-charging Returns the smart charging configuration for the specified location. **site** `string` *required* The UUID of the location. ## Response **data** `object` The smart charging configuration. **data** **timezone** `string` The location's configured timezone. **smart\_charging** `string` The smart charging mode. One of `disabled`, `off_peak`, or `day_ahead_pricing`. **day\_ahead\_pricing\_strategy** `string` The day-ahead pricing strategy. One of `automatic` or `manual`. **day\_ahead\_pricing\_threshold** `integer` The day-ahead pricing threshold. **day\_ahead\_pricing\_interval** `string` Whether this location follows quarter-hour or hourly day-ahead prices. One of `quarter` or `hour`. `quarter` is the default. **day\_ahead\_pricing\_smart\_mode\_price** `number` The threshold smart mode charges under, in currency per kWh: the upper median of the day-ahead prices from the start of today (UTC), over hourly means when `day_ahead_pricing_interval` is `hour`. **off\_peak\_start** `string` The off-peak start time in `HH:mm` format. **off\_peak\_end** `string` The off-peak end time in `HH:mm` format. **tariff\_zone** `string` The selected tariff zone key for zonal day-ahead-pricing markets, or `null`. For example, `GB_C` for the London region. **tariff\_zone\_options** `object[]` The available tariff zone options for the location's country. Empty for single-zone countries. **tariff zone option** **value** `string` The tariff zone key (e.g., `GB_C`). **label** `string` The human-readable zone label (e.g., `London`). # Update Smart Charging Source: https://developer.plugchoice.com/api-reference/power-management/update-smart-charging PUT /v3/sites/{site}/smart-charging Updates the smart charging settings for the specified location. **site** `string` *required* The UUID of the location. **timezone** `string` *required* A valid timezone identifier (e.g., `Europe/Amsterdam`). **smart\_charging** `string` *required* The smart charging mode. One of `disabled`, `off_peak`, or `day_ahead_pricing`. Switching to `off_peak` or `day_ahead_pricing` is a smart-charging feature and requires every charger at the location to have a Smart license; otherwise the request fails with `402`. **day\_ahead\_pricing\_strategy** `string` The day-ahead pricing strategy. One of `automatic` or `manual`. **day\_ahead\_pricing\_threshold** `integer` The day-ahead pricing threshold. Required when `day_ahead_pricing_strategy` is `manual` and no threshold has been previously set. **day\_ahead\_pricing\_interval** `string` Whether this location follows quarter-hour or hourly day-ahead prices. One of `quarter` or `hour`. Omit it to leave the saved value unchanged. `quarter` is the default for a new location. **off\_peak\_start** `string` The off-peak start time in `HH:mm` format. **off\_peak\_end** `string` The off-peak end time in `HH:mm` format. **tariff\_zone** `string` The tariff zone key for zonal day-ahead-pricing markets (e.g., `GB_C`). Must be a valid zone for the location's country, or `null`. ## Response **data** `object` The updated smart charging configuration. **data** **timezone** `string` The location's configured timezone. **smart\_charging** `string` The smart charging mode. One of `disabled`, `off_peak`, or `day_ahead_pricing`. **day\_ahead\_pricing\_strategy** `string` The day-ahead pricing strategy. One of `automatic` or `manual`. **day\_ahead\_pricing\_threshold** `integer` The day-ahead pricing threshold. **day\_ahead\_pricing\_interval** `string` Whether this location follows quarter-hour or hourly day-ahead prices. One of `quarter` or `hour`. **day\_ahead\_pricing\_smart\_mode\_price** `number` The threshold smart mode charges under, in currency per kWh: the upper median of the day-ahead prices from the start of today (UTC), over hourly means when `day_ahead_pricing_interval` is `hour`. **off\_peak\_start** `string` The off-peak start time in `HH:mm` format. **off\_peak\_end** `string` The off-peak end time in `HH:mm` format. **tariff\_zone** `string` The selected tariff zone key for zonal day-ahead-pricing markets, or `null`. **tariff\_zone\_options** `object[]` The available tariff zone options for the location's country. Empty for single-zone countries. **tariff zone option** **value** `string` The tariff zone key (e.g., `GB_C`). **label** `string` The human-readable zone label (e.g., `London`). # Add Charger Source: https://developer.plugchoice.com/api-reference/site-chargers/add-charger-to-site POST /v3/sites/{site}/chargers Attaches an existing charger to the specified location using its identity and pincode. **site** `string` *required* The UUID of the location. **identity** `string` *required* The OCPP identity of the charger to attach. Maximum 255 characters. **pincode** `string` The pincode of the charger (4 to 8 digits), as printed on the charger. Send it as a string so any leading zeros are preserved. Required unless your team already owns the charger, for example one you created with [Create Charger](/api-reference/chargers/create-charger) or removed from a location earlier. A number is also accepted for compatibility with clients that cannot send a string, in which case leading zeros are lost in transit (`00503437` becomes `503437`). The pincode is matched on its significant digits, so those requests still resolve to the right charger. ## Response Returns the attached charger. **uuid** `string` The unique UUID of the charger. **id** `integer` The numeric ID of the charger. **identity** `string` The charger's OCPP identity string. **serial\_number** `string` The charger's serial number. May be `null`. **charge\_box\_serial\_number** `string` The `chargeBoxSerialNumber` the charger sent in its last boot notification. May be `null`. **pincode** `string` The charger's pincode. Only included when the authenticated user has sensitive access to the charger. **reference** `string` A custom reference label for the charger. May be `null`. **connection\_status** `string` The current connection status of the charger. **status** `string` The current OCPP status of the charger. **error** `string` The current error code, if any. May be `null`. **error\_info** `string` Additional error information. May be `null`. **vendor\_id** `string` The vendor identifier. May be `null`. **vendor\_error\_code** `string` A vendor-specific error code. May be `null`. **firmware\_version** `string` The raw firmware version string. May be `null`. **parsed\_firmware\_version** `string` The parsed and normalized firmware version. May be `null`. **server** `string` The OCPP server the charger is connected to. May be `null`. **last\_connection\_at** `string` ISO 8601 timestamp of the last connection. May be `null`. **last\_disconnection\_at** `string` ISO 8601 timestamp of the last disconnection. May be `null`. **last\_heartbeat\_at** `string` ISO 8601 timestamp of the last heartbeat. May be `null`. **setup\_pending** `boolean` Whether the charger has a pending setup operation. **setup\_completed** `boolean` Whether the charger has completed initial setup. **blocked** `boolean` Whether the charger is blocked. **max\_current** `integer` The maximum current in amps. **licenses** `object` The charger's active licenses. **licenses** **smart** `boolean` Whether the smart charging license is active. **pro** `boolean` Whether the pro license is active. **model\_id** `integer` The ID of the charger model. May be `null`. **model** `object` The charger model details. Only included when the model relationship is loaded. **model** **vendor** `string` The vendor or manufacturer name. **name** `string` The model name. **is\_dc** `boolean` Whether this is a DC charger. **image\_url** `string` The URL of the model image. May be `null`. **internal\_model** `object` The internal model details. Only included when the internal model relationship is loaded, otherwise `null`. **internal\_model** **id** `integer` The numeric ID of the internal model. **name** `string` The internal model name. **sku** `string` The internal model SKU. **is\_mid** `boolean` Whether the charger is MID-certified, derived from its internal or public model. May be `null`. **permissions** `object` The authenticated user's permissions for this charger. **permissions** **basic** `boolean` Whether the user has basic read access. **sensitive** `boolean` Whether the user has access to sensitive data (e.g., pincode, transactions). **full** `boolean` Whether the user has full control (e.g., delete, transfer). **connectors** `array` An array of connector objects for this charger. Only included when the connectors relationship is loaded. **created\_at** `string` ISO 8601 timestamp of when the charger was created. **updated\_at** `string` ISO 8601 timestamp of when the charger was last updated. # List Chargers Source: https://developer.plugchoice.com/api-reference/site-chargers/list-site-chargers GET /v3/sites/{site}/chargers Returns a paginated list of chargers assigned to the specified location. Includes connector information for each charger. Results are paginated with 25 items per page. **site** `string` *required* The UUID of the location. ## Response **uuid** `string` The unique UUID of the charger. **id** `integer` The numeric ID of the charger. **identity** `string` The charger's OCPP identity string. **serial\_number** `string` The charger's serial number. May be `null`. **charge\_box\_serial\_number** `string` The `chargeBoxSerialNumber` the charger sent in its last boot notification. May be `null`. **pincode** `string` The charger's pincode. Only included when the authenticated user has sensitive access to the charger. **reference** `string` A custom reference label for the charger. May be `null`. **connection\_status** `string` The current connection status of the charger. **status** `string` The current OCPP status of the charger. **error** `string` The current error code, if any. **error\_info** `string` Additional error information, if any. **vendor\_id** `string` The vendor identifier. **vendor\_error\_code** `string` The vendor-specific error code, if any. **firmware\_version** `string` The charger's firmware version string. **parsed\_firmware\_version** `string` The parsed firmware version, or `null` if unparseable. **server** `string` The OCPP server the charger is connected to. **last\_connection\_at** `string` ISO 8601 timestamp of the last connection. **last\_disconnection\_at** `string` ISO 8601 timestamp of the last disconnection. **last\_heartbeat\_at** `string` ISO 8601 timestamp of the last heartbeat. **setup\_pending** `boolean` Whether the charger has a pending setup. **setup\_completed** `boolean` Whether the charger setup is completed. **blocked** `boolean` Whether the charger is blocked. **max\_current** `integer` The maximum current in amps. **licenses** `object` The charger's active licenses. **licenses** **smart** `boolean` Whether the smart license is active. **pro** `boolean` Whether the pro license is active. **connectors** `array` An array of connector objects for this charger. **connector object** **id** `integer` The numeric ID of the connector. **charger\_id** `integer` The ID of the parent charger. **connector\_id** `integer` The OCPP connector ID. **status** `string` The current connector status. **error** `string` The current connector error code, if any. May be `null`. **error\_info** `string` Additional connector error information. May be `null`. **vendor\_id** `string` The vendor identifier for the connector. May be `null`. **vendor\_error\_code** `string` The vendor-specific error code for the connector. May be `null`. **max\_amperage** `integer` The maximum amperage of the connector. **min\_current** `integer` The minimum current of the connector in amps. **current\_limit** `integer` The current limit applied to the connector in amps. **current\_limit\_managed\_by** `string` Identifies what is currently managing the connector's current limit. May be `null`. **max\_voltage** `integer` The maximum voltage of the connector. **standard** `string` The connector standard (e.g., IEC 62196). **format** `string` The connector format (e.g., Socket, Cable). **power\_type** `string` The power type (e.g., AC\_1\_PHASE, AC\_3\_PHASE, DC). **phase\_rotation** `string` The phase rotation configuration. **created\_at** `string` ISO 8601 timestamp of when the connector was created. **updated\_at** `string` ISO 8601 timestamp of when the connector was last updated. **model\_id** `integer` The ID of the charger model. May be `null`. **model** `object` The charger model details. Only included when the model relationship is loaded. **model** **vendor** `string` The vendor or manufacturer name. **name** `string` The model name. **is\_dc** `boolean` Whether this is a DC charger. **image\_url** `string` The URL of the model image. May be `null`. **internal\_model** `object` The internal model details. Only included when the internal model relationship is loaded, otherwise `null`. **internal\_model** **id** `integer` The numeric ID of the internal model. **name** `string` The internal model name. **sku** `string` The internal model SKU. **is\_mid** `boolean` Whether the charger is MID-certified, derived from its internal or public model. May be `null`. **permissions** `object` The authenticated user's permissions for this charger. **permissions** **basic** `boolean` Whether the user has basic read access. **sensitive** `boolean` Whether the user has access to sensitive data (e.g., pincode, transactions). **full** `boolean` Whether the user has full control (e.g., delete, transfer). **created\_at** `string` ISO 8601 timestamp of when the charger was created. **updated\_at** `string` ISO 8601 timestamp of when the charger was last updated. # Move Charger Source: https://developer.plugchoice.com/api-reference/site-chargers/move-charger PATCH /v3/sites/{site}/chargers/{charger}/move Moves a charger to a different location and resets its configuration. You must have sensitive access to both the source and target locations. **site** `string` *required* The UUID of the current location. **charger** `string` *required* The UUID of the charger to move. **target\_site\_uuid** `string` *required* The UUID of the target location to move the charger to. Must be an existing location and cannot be the same as the current location. ## Response Returns the moved charger. **uuid** `string` The unique UUID of the charger. **id** `integer` The numeric ID of the charger. **identity** `string` The charger's OCPP identity string. **serial\_number** `string` The charger's serial number. May be `null`. **charge\_box\_serial\_number** `string` The `chargeBoxSerialNumber` the charger sent in its last boot notification. May be `null`. **pincode** `string` The charger's pincode. Only included when the authenticated user has sensitive access to the charger. **reference** `string` A custom reference label for the charger. May be `null`. **connection\_status** `string` The current connection status of the charger. **status** `string` The current OCPP status of the charger. **error** `string` The current error code, if any. May be `null`. **error\_info** `string` Additional error information. May be `null`. **vendor\_id** `string` The vendor identifier. May be `null`. **vendor\_error\_code** `string` A vendor-specific error code. May be `null`. **firmware\_version** `string` The raw firmware version string. May be `null`. **parsed\_firmware\_version** `string` The parsed and normalized firmware version. May be `null`. **server** `string` The OCPP server the charger is connected to. May be `null`. **last\_connection\_at** `string` ISO 8601 timestamp of the last connection. May be `null`. **last\_disconnection\_at** `string` ISO 8601 timestamp of the last disconnection. May be `null`. **last\_heartbeat\_at** `string` ISO 8601 timestamp of the last heartbeat. May be `null`. **setup\_pending** `boolean` Whether the charger has a pending setup operation. **setup\_completed** `boolean` Whether the charger has completed initial setup. **blocked** `boolean` Whether the charger is blocked. **max\_current** `integer` The maximum current in amps. **licenses** `object` The charger's active licenses. **licenses** **smart** `boolean` Whether the smart charging license is active. **pro** `boolean` Whether the pro license is active. **model\_id** `integer` The ID of the charger model. May be `null`. **model** `object` The charger model details. Only included when the model relationship is loaded. **model** **vendor** `string` The vendor or manufacturer name. **name** `string` The model name. **is\_dc** `boolean` Whether this is a DC charger. **image\_url** `string` The URL of the model image. May be `null`. **internal\_model** `object` The internal model details. Only included when the internal model relationship is loaded, otherwise `null`. **internal\_model** **id** `integer` The numeric ID of the internal model. **name** `string` The internal model name. **sku** `string` The internal model SKU. **is\_mid** `boolean` Whether the charger is MID-certified, derived from its internal or public model. May be `null`. **permissions** `object` The authenticated user's permissions for this charger. **permissions** **basic** `boolean` Whether the user has basic read access. **sensitive** `boolean` Whether the user has access to sensitive data (e.g., pincode, transactions). **full** `boolean` Whether the user has full control (e.g., delete, transfer). **connectors** `array` An array of connector objects for this charger. Only included when the connectors relationship is loaded. **created\_at** `string` ISO 8601 timestamp of when the charger was created. **updated\_at** `string` ISO 8601 timestamp of when the charger was last updated. # Reassign Charger Source: https://developer.plugchoice.com/api-reference/site-chargers/reassign-charger PATCH /v3/sites/{site}/chargers/{charger}/reassign Moves a charger to a different load balancing group within the same location. Dynamic load balancing is part of the Smart license: every charger that joins a group needs a Smart license, unless it already had load balancing before that change. Otherwise the request fails with `402`, and the response's `chargers` array lists the `uuid` and `identity` of each charger that needs one. Chargers already in a group can always move between groups. **site** `string` *required* The UUID of the location. **charger** `string` *required* The UUID of the charger. **site\_group\_id** `integer` *required* The ID of the target group or subgroup to reassign the charger to. ## Response **message** `string` A confirmation message indicating the charger was reassigned successfully. # Remove Charger Source: https://developer.plugchoice.com/api-reference/site-chargers/remove-charger-from-site DELETE /v3/sites/{site}/chargers/{charger} Detaches a charger from the specified location. Returns a `204 No Content` response on success. **site** `string` *required* The UUID of the location. **charger** `string` *required* The UUID of the charger. **team\_uuid** `string` The UUID of the team to reassign the charger to after detaching. Must be a valid UUID. # List Connectors Source: https://developer.plugchoice.com/api-reference/site-connectors/list-site-connectors GET /v3/sites/{site}/connectors Returns a paginated list of all connectors across all chargers for the specified location. Each connector includes its parent charger information. Results are paginated with 25 items per page. **site** `string` *required* The UUID of the location. ## Response **id** `integer` The numeric ID of the connector. **charger\_id** `integer` The ID of the parent charger. **connector\_id** `integer` The OCPP connector ID. **status** `string` The current connector status. **error** `string` The current error code, if any. **error\_info** `string` Additional error information, if any. **vendor\_id** `string` The vendor identifier. **vendor\_error\_code** `string` The vendor-specific error code, if any. **max\_amperage** `integer` The maximum amperage of the connector. **min\_current** `integer` The minimum current of the connector. **current\_limit** `integer` The current limit of the connector. **current\_limit\_managed\_by** `string` Identifies what is currently managing the connector's current limit. May be `null`. **max\_voltage** `integer` The maximum voltage of the connector. **standard** `string` The connector standard (e.g., IEC 62196). **format** `string` The connector format (e.g., Socket, Cable). **power\_type** `string` The power type (e.g., AC\_1\_PHASE, AC\_3\_PHASE, DC). **phase\_rotation** `string` The phase rotation configuration. **charger** `object` The parent charger object. **charger** **uuid** `string` The unique UUID of the charger. **id** `integer` The numeric ID of the charger. **identity** `string` The charger's OCPP identity string. **serial\_number** `string` The charger's serial number. **pincode** `string` The charger's pincode. Only included when the authenticated user has permission to view sensitive data. **reference** `string` A custom reference label for the charger, or `null` if none is set. **connection\_status** `string` The current connection status of the charger. **status** `string` The current OCPP status of the charger. **error** `string` The current error code, if any. **error\_info** `string` Additional error information, if any. **vendor\_id** `string` The vendor identifier. **vendor\_error\_code** `string` The vendor-specific error code, if any. **firmware\_version** `string` The charger's firmware version string. **parsed\_firmware\_version** `string` The parsed firmware version, or `null` if unparseable. **server** `string` The OCPP server the charger is connected to. **last\_connection\_at** `string` ISO 8601 timestamp of the last connection. **last\_disconnection\_at** `string` ISO 8601 timestamp of the last disconnection. **last\_heartbeat\_at** `string` ISO 8601 timestamp of the last heartbeat. **setup\_pending** `boolean` Whether the charger has a pending setup. **setup\_completed** `boolean` Whether the charger setup is completed. **blocked** `boolean` Whether the charger is blocked. **max\_current** `integer` The maximum current in amps. **created\_at** `string` ISO 8601 timestamp of when the charger was created. **updated\_at** `string` ISO 8601 timestamp of when the charger was last updated. **licenses** `object` The charger's active licenses. **licenses** **smart** `boolean` Whether the smart license is active. **pro** `boolean` Whether the pro license is active. **model\_id** `integer` The ID of the charger's model. **is\_mid** `boolean` Whether the charger is a MID-certified (metering compliant) model. **permissions** `object` The authenticated user's permissions for this charger. **created\_at** `string` ISO 8601 timestamp of when the connector was created. **updated\_at** `string` ISO 8601 timestamp of when the connector was last updated. # Get Energy Profile Source: https://developer.plugchoice.com/api-reference/site-energy-profile/get-energy-profile GET /v3/sites/{site}/energy-profile Returns what the user told you about the energy setup at a location: solar panels, a home battery, the electricity contract and its prices. A location without any answers returns every field as `null`. **site** `string` *required* The UUID of the location. ## Response **data** `object` The energy profile of the location. **data** **has\_solar\_panels** `boolean` Whether the location has solar panels, or `null` when not answered. **has\_home\_battery** `boolean` Whether the location has a home battery, or `null` when not answered. **wants\_solar\_panels** `boolean` Whether the user would like solar panels, or `null` when not answered. Only set while `has_solar_panels` is `false`. **wants\_home\_battery** `boolean` Whether the user would like a home battery, or `null` when not answered. Only set while `has_home_battery` is `false`. **contract\_type** `string` The electricity contract. One of `fixed`, `variable` or `dynamic`, or `null` when not answered. **supplier** `string` The energy supplier as the user entered or picked it, or `null`. **price\_per\_kwh** `number` The price per kWh in euro including VAT, or `null`. For a fixed or variable contract this is the normal or single rate. **off\_peak\_price\_per\_kwh** `number` The off-peak (low) rate per kWh in euro including VAT, or `null`. **off\_peak\_hours** `array` When the off-peak rate applies, as blocks of `days`, `from` and `to`, or `null` when not answered. **feed\_in\_price\_per\_kwh** `number` What the user gets per kWh fed back to the grid, in euro including VAT, or `null`. **dynamic\_markup\_per\_kwh** `number` For a dynamic contract, the supplier's markup per kWh on the day-ahead price, in euro including VAT, or `null`. **contract\_complete** `boolean` Whether session costs can be calculated: a contract type, the price that type needs (the price per kWh for `fixed` and `variable`, the markup for `dynamic`, which may be `0`) and `off_peak_hours` whenever there is an off-peak rate. **suggested\_off\_peak\_hours** `array` Common off-peak hours in the location's country, to prefill the question while `off_peak_hours` has no answer, or `null`. Only a suggestion: save it with `off_peak_hours` once the user confirms it. **completed\_at** `string` When the user first finished answering, as an ISO 8601 UTC timestamp (for example `2026-10-08T07:12:34Z`), or `null`. **updated\_at** `string` When an answer last changed, as an ISO 8601 UTC timestamp, or `null` when there are no answers yet. # Update Energy Profile Source: https://developer.plugchoice.com/api-reference/site-energy-profile/update-energy-profile PATCH /v3/sites/{site}/energy-profile Saves one or more answers about the energy setup at a location. Send only the fields you want to change: fields you leave out keep their value, and `null` clears a field. The first request creates the profile, so you can save each answer as soon as the user gives it. Prices are in euro per kWh including VAT: a number from 0 to 5 with at most 5 decimals. **site** `string` *required* The UUID of the location. **has\_solar\_panels** `boolean` Whether the location has solar panels. **has\_home\_battery** `boolean` Whether the location has a home battery. **wants\_solar\_panels** `boolean` Whether the user would like solar panels. Only kept while `has_solar_panels` is `false`: saving `has_solar_panels` as `true` clears it, also when both are sent in the same request. **wants\_home\_battery** `boolean` Whether the user would like a home battery. Only kept while `has_home_battery` is `false`: saving `has_home_battery` as `true` clears it, also when both are sent in the same request. **contract\_type** `string` The electricity contract. One of `fixed`, `variable` or `dynamic`. **supplier** `string` The energy supplier. Maximum 100 characters. **price\_per\_kwh** `number` The price per kWh. For a fixed or variable contract, the normal or single rate. **off\_peak\_price\_per\_kwh** `number` The off-peak (low) rate per kWh. **off\_peak\_hours** `array` When the off-peak rate applies, in the location's own time: at most 14 blocks, each with `days` (ISO days, 1 for Monday to 7 for Sunday), `from` and `to` (`HH:MM`). A block whose `to` is before `from` runs past midnight; `from` equal to `to` is the whole day. For example `[{"days": [1, 2, 3, 4, 5], "from": "23:00", "to": "07:00"}, {"days": [6, 7], "from": "00:00", "to": "00:00"}]`. **feed\_in\_price\_per\_kwh** `number` What the user gets per kWh fed back to the grid. **dynamic\_markup\_per\_kwh** `number` For a dynamic contract, the supplier's markup per kWh on the day-ahead price. **completed** `boolean` Send `true` when the user has finished answering. The first time, this sets `completed_at` to the current time; later requests keep that first time. `false` is not accepted. ## Response Returns `200` with the whole profile, also when the request created it. **data** `object` The energy profile of the location. **data** **has\_solar\_panels** `boolean` Whether the location has solar panels, or `null` when not answered. **has\_home\_battery** `boolean` Whether the location has a home battery, or `null` when not answered. **wants\_solar\_panels** `boolean` Whether the user would like solar panels, or `null`. **wants\_home\_battery** `boolean` Whether the user would like a home battery, or `null`. **contract\_type** `string` The electricity contract. One of `fixed`, `variable` or `dynamic`, or `null` when not answered. **supplier** `string` The energy supplier, or `null`. **price\_per\_kwh** `number` The price per kWh in euro including VAT, or `null`. **off\_peak\_price\_per\_kwh** `number` The off-peak (low) rate per kWh in euro including VAT, or `null`. **off\_peak\_hours** `array` When the off-peak rate applies, as blocks of `days`, `from` and `to`, or `null` when not answered. **feed\_in\_price\_per\_kwh** `number` What the user gets per kWh fed back to the grid, in euro including VAT, or `null`. **dynamic\_markup\_per\_kwh** `number` The supplier's markup per kWh on the day-ahead price, in euro including VAT, or `null`. **contract\_complete** `boolean` Whether session costs can be calculated: a contract type, the price that type needs (the price per kWh for `fixed` and `variable`, the markup for `dynamic`, which may be `0`) and `off_peak_hours` whenever there is an off-peak rate. **suggested\_off\_peak\_hours** `array` Common off-peak hours in the location's country, to prefill the question while `off_peak_hours` has no answer, or `null`. Only a suggestion: save it with `off_peak_hours` once the user confirms it. **completed\_at** `string` When the user first finished answering, as an ISO 8601 UTC timestamp (for example `2026-10-08T07:12:34Z`), or `null`. **updated\_at** `string` When an answer last changed, as an ISO 8601 UTC timestamp. # Assign Chargers to Group Source: https://developer.plugchoice.com/api-reference/site-groups/assign-chargers-to-group POST /v3/sites/{site}/groups/{siteGroup}/chargers Assigns multiple chargers to the specified load balancing group. Dynamic load balancing is part of the Smart license: every charger that joins a group needs a Smart license, unless it already had load balancing before that change. Otherwise the request fails with `402`, and the response's `chargers` array lists the `uuid` and `identity` of each charger that needs one. Chargers already in a group can always move between groups. **site** `string` *required* The UUID of the location. **siteGroup** `integer` *required* The ID of the group to assign chargers to. **charger\_uuids** `string[]` *required* An array of charger UUIDs to assign to the group. Must contain at least one UUID. ## Response Returns the group object the chargers were assigned to. **id** `integer` The numeric ID of the group. **site\_id** `integer` The numeric ID of the location this group belongs to. **group\_id** `integer` The ID of the parent group, or `null` if this is a root group. **meter\_id** `integer` The ID of the attached meter, or `null`. **total\_amps** `integer` The total available amperage for the group. **net\_type** `string` The electrical network type. One of `TN`, `TT`, or `IT`. May be `null`. **method** `string` The load balancing method. One of `boost` or `solar`. **solar\_additional\_amps** `integer` Additional amperage from solar. **solar\_always\_charge** `boolean` Whether to always allow charging when solar is available. **solar\_always\_charge\_amps** `integer` Minimum amperage when solar always charge is enabled. **smart\_charging\_charge\_on\_solar\_export** `boolean` Whether to charge on solar export. **peak\_shaving\_enabled** `boolean` Whether peak shaving is enabled for this group. **peak\_shaving\_threshold** `integer` The peak shaving threshold in amps. **created\_at** `string` ISO 8601 timestamp of when the group was created. **updated\_at** `string` ISO 8601 timestamp of when the group was last updated. # Create Group Source: https://developer.plugchoice.com/api-reference/site-groups/create-group POST /v3/sites/{site}/groups Creates a new load balancing group for the specified location. If a group already exists, it will be deleted and replaced with the new one. Every charger at the location joins the new group. Dynamic load balancing is part of the Smart license: every charger that joins a group needs a Smart license, unless it already had load balancing before that change. Otherwise the request fails with `402`, and the response's `chargers` array lists the `uuid` and `identity` of each charger that needs one. Chargers already in a group can always move between groups. **site** `string` *required* The UUID of the location. **net\_type** `string` *required* The electrical network type. Must be one of: `IT`, `TT`, `TN`, `unknown`. A value of `unknown` is stored as `TT`. **total\_amps** `integer` *required* The total available amperage for the group. Minimum value is `6`. **meter\_uuid** `string` The UUID of a meter to attach to the group. Cannot be used together with `meter_id`. **meter\_id** `integer` The numeric ID of a meter to attach to the group. Cannot be used together with `meter_uuid`. ## Response Returns the created group object. **id** `integer` The numeric ID of the group. **site\_id** `integer` The numeric ID of the location this group belongs to. **group\_id** `integer` The ID of the parent group, or `null` if this is a root group. **meter\_id** `integer` The ID of the attached meter, or `null`. **total\_amps** `integer` The total available amperage for the group. **net\_type** `string` The electrical network type. One of `TN`, `TT`, or `IT`. May be `null`. **method** `string` The load balancing method. One of `boost` or `solar`. **solar\_additional\_amps** `integer` Additional amperage from solar. **solar\_always\_charge** `boolean` Whether to always allow charging when solar is available. **solar\_always\_charge\_amps** `integer` Minimum amperage when solar always charge is enabled. **smart\_charging\_charge\_on\_solar\_export** `boolean` Whether to charge on solar export. **peak\_shaving\_enabled** `boolean` Whether peak shaving is enabled for this group. **peak\_shaving\_threshold** `integer` The peak shaving threshold in amps. **created\_at** `string` ISO 8601 timestamp of when the group was created. **updated\_at** `string` ISO 8601 timestamp of when the group was last updated. # Create Subgroup Source: https://developer.plugchoice.com/api-reference/site-groups/create-subgroup POST /v3/sites/{site}/groups/{siteGroup}/subgroups Creates a new subgroup under an existing load balancing group. Optionally assigns chargers to the new subgroup. Dynamic load balancing is part of the Smart license: every charger that joins a group needs a Smart license, unless it already had load balancing before that change. Otherwise the request fails with `402`, and the response's `chargers` array lists the `uuid` and `identity` of each charger that needs one. Chargers already in a group can always move between groups. When the chargers are refused, the subgroup isn't created either. **site** `string` *required* The UUID of the location. **siteGroup** `integer` *required* The ID of the parent group. **total\_amps** `integer` *required* The total available amperage for the subgroup. Minimum value is `1`. **charger\_uuids** `string[]` An array of charger UUIDs to assign to the new subgroup. ## Response Returns the created subgroup object. **id** `integer` The numeric ID of the group. **site\_id** `integer` The numeric ID of the location this group belongs to. **group\_id** `integer` The ID of the parent group, or `null` if this is a root group. **meter\_id** `integer` The ID of the attached meter, or `null`. **total\_amps** `integer` The total available amperage for the group. **net\_type** `string` The electrical network type. One of `TN`, `TT`, or `IT`. May be `null`. **method** `string` The load balancing method. One of `boost` or `solar`. **solar\_additional\_amps** `integer` Additional amperage from solar. **solar\_always\_charge** `boolean` Whether to always allow charging when solar is available. **solar\_always\_charge\_amps** `integer` Minimum amperage when solar always charge is enabled. **smart\_charging\_charge\_on\_solar\_export** `boolean` Whether to charge on solar export. **peak\_shaving\_enabled** `boolean` Whether peak shaving is enabled for this group. **peak\_shaving\_threshold** `integer` The peak shaving threshold in amps. **created\_at** `string` ISO 8601 timestamp of when the group was created. **updated\_at** `string` ISO 8601 timestamp of when the group was last updated. # Delete All Groups Source: https://developer.plugchoice.com/api-reference/site-groups/delete-all-groups DELETE /v3/sites/{site}/groups Deletes all load balancing groups for the specified location. Returns a `204 No Content` response on success. **site** `string` *required* The UUID of the location. # Delete Group Source: https://developer.plugchoice.com/api-reference/site-groups/delete-group DELETE /v3/sites/{site}/groups/{siteGroup} Deletes a single load balancing group from the specified location. Returns a `204 No Content` response on success. **site** `string` *required* The UUID of the location. **siteGroup** `integer` *required* The ID of the group to delete. # Get Group Meter Source: https://developer.plugchoice.com/api-reference/site-groups/get-group-meter GET /v3/sites/{site}/groups/{siteGroup}/meter Returns the meter readings for the specified group. Returns a `404` error if no meter is attached to the group. **site** `string` *required* The UUID of the location. **siteGroup** `integer` *required* The ID of the group. ## Response **uuid** `string` The unique UUID of the meter. **id** `integer` The numeric ID of the meter. **type** `string` The meter type: `chargee`, `ct_meter` or `cpmfg_operations`. **model** `string` For a `chargee` meter, which Chargee device it is: `sparky` or `flint`. `null` for other types, and until Plugchoice has looked the device up. **latest\_data** `object` The latest reading load management took from the meter. Load management reads the meter only while it is running, so this can be older than `power`. **latest\_data** **l1** `number` Current on phase L1 in milliamps (negative when returning to the grid). **l2** `number` Current on phase L2 in milliamps (negative when returning to the grid). **l3** `number` Current on phase L3 in milliamps (negative when returning to the grid). **updated\_at** `string` Timestamp of that reading, or `-` when there is none. **power** `object` Calculated power information for the meter. May be `null` when no reading is available, an object with `error` (a message) and `problem` (the code described under `status.problem`) when the meter maker's service refused or failed, or a string message when power information cannot be retrieved for the meter. **power** **value** `number` Net active power in watts (positive when consuming, negative when exporting). **unit** `string` The unit of the `value` field. Always `W`. **current** `object` Per-phase current in milliamps (negative when returning to the grid). **current** **l1** `number` Current on phase L1 in milliamps. May be `null`. **l2** `number` Current on phase L2 in milliamps. May be `null`. **l3** `number` Current on phase L3 in milliamps. May be `null`. **voltage** `object` Per-phase voltage in volts. **voltage** **l1** `number` Voltage on phase L1 in volts. May be `null`. **l2** `number` Voltage on phase L2 in volts. May be `null`. **l3** `number` Voltage on phase L3 in volts. May be `null`. **updated\_at** `string` Timestamp of the power reading. **status** `object` Whether the meter is live, judged on the server's clock. **status** **live** `boolean` `true` when the newest reading (`power` or `latest_data`) is at most 60 seconds old. **last\_reading\_at** `string` ISO 8601 timestamp of the newest reading, or `null` when the meter never sent one. **problem** `string` Why the meter is not live, when that is known; always `null` while it is live. One of `no_access` (the meter maker refuses Plugchoice access), `not_found` (the meter maker does not know the meter), `no_smart_meter` (no smart meter is connected to the device), `no_data` (the meter never sent a reading), `unavailable` (the meter maker's service failed or is rate limiting) or `unsupported` (Plugchoice cannot read this meter type). `null` with a `last_reading_at` means the readings stopped coming in. **created\_at** `string` ISO 8601 timestamp of when the meter was created. **updated\_at** `string` ISO 8601 timestamp of when the meter was last updated. # List Groups Source: https://developer.plugchoice.com/api-reference/site-groups/list-groups GET /v3/sites/{site}/groups Returns a list of load balancing groups for the specified location. Returns up to 25 groups. **site** `string` *required* The UUID of the location. ## Response The response is an array of group objects. **id** `integer` The numeric ID of the group. **site\_id** `integer` The numeric ID of the location this group belongs to. **group\_id** `integer` The ID of the parent group, or `null` if this is a root group. **meter\_id** `integer` The ID of the attached meter, or `null`. **total\_amps** `integer` The total available amperage for the group. **net\_type** `string` The electrical network type. One of `TN`, `TT`, or `IT`. May be `null`. **method** `string` The load balancing method. One of `boost` or `solar`. **solar\_additional\_amps** `integer` Additional amperage from solar. **solar\_always\_charge** `boolean` Whether to always allow charging when solar is available. **solar\_always\_charge\_amps** `integer` Minimum amperage when solar always charge is enabled. **smart\_charging\_charge\_on\_solar\_export** `boolean` Whether to charge on solar export. **peak\_shaving\_enabled** `boolean` Whether peak shaving is enabled for this group. **peak\_shaving\_threshold** `integer` The peak shaving threshold in amps. **created\_at** `string` ISO 8601 timestamp of when the group was created. **updated\_at** `string` ISO 8601 timestamp of when the group was last updated. # Reassign Group Source: https://developer.plugchoice.com/api-reference/site-groups/reassign-group PATCH /v3/sites/{site}/groups/{siteGroup}/reassign Moves a group to a different parent group within the same location. A group cannot be assigned as its own parent. **site** `string` *required* The UUID of the location. **siteGroup** `integer` *required* The ID of the group to reassign. **parent\_group\_id** `integer` *required* The ID of the new parent group. Cannot be the same as the group being reassigned. ## Response Returns the reassigned group object. **id** `integer` The numeric ID of the group. **site\_id** `integer` The numeric ID of the location this group belongs to. **group\_id** `integer` The ID of the parent group, or `null` if this is a root group. **meter\_id** `integer` The ID of the attached meter, or `null`. **total\_amps** `integer` The total available amperage for the group. **net\_type** `string` The electrical network type. One of `TN`, `TT`, or `IT`. May be `null`. **method** `string` The load balancing method. One of `boost` or `solar`. **solar\_additional\_amps** `integer` Additional amperage from solar. **solar\_always\_charge** `boolean` Whether to always allow charging when solar is available. **solar\_always\_charge\_amps** `integer` Minimum amperage when solar always charge is enabled. **smart\_charging\_charge\_on\_solar\_export** `boolean` Whether to charge on solar export. **peak\_shaving\_enabled** `boolean` Whether peak shaving is enabled for this group. **peak\_shaving\_threshold** `integer` The peak shaving threshold in amps. **created\_at** `string` ISO 8601 timestamp of when the group was created. **updated\_at** `string` ISO 8601 timestamp of when the group was last updated. # Update Group Source: https://developer.plugchoice.com/api-reference/site-groups/update-group PUT /v3/sites/{site}/groups/{siteGroup} Updates an existing load balancing group or subgroup. All fields are optional; only provided fields will be updated. **site** `string` *required* The UUID of the location. **siteGroup** `integer` *required* The ID of the group or subgroup. **total\_amps** `integer` The total available amperage for the group. Minimum value is `1`. **net\_type** `string` The electrical network type. One of `TN`, `TT`, or `IT`. **method** `string` The load balancing method. One of `boost` or `solar`. Switching to `solar` is a smart-charging feature and requires every charger at the location to have a Smart license; otherwise the request fails with `402`. **meter\_uuid** `string` The UUID of a meter to attach to the group. **remove\_meter** `boolean` Set to `true` to remove the currently attached meter. **solar\_additional\_amps** `integer` Additional amperage from solar. Minimum value is `0`. **solar\_always\_charge** `boolean` Whether to always allow charging when solar is available. **solar\_always\_charge\_amps** `integer` The minimum amperage to allocate when solar always charge is enabled. Minimum value is `0`. **smart\_charging\_charge\_on\_solar\_export** `boolean` Whether to enable charging when solar export is detected. **peak\_shaving\_enabled** `boolean` Whether peak shaving is enabled for this group. Enabling peak shaving is a smart-charging feature and requires every charger at the location to have a Smart license; otherwise the request fails with `402`. **peak\_shaving\_threshold** `integer` The peak shaving threshold in amps. Minimum value is `0`. ## Response Returns the updated group object. **id** `integer` The numeric ID of the group. **site\_id** `integer` The numeric ID of the location this group belongs to. **group\_id** `integer` The ID of the parent group, or `null` if this is a root group. **meter\_id** `integer` The ID of the attached meter, or `null`. **total\_amps** `integer` The total available amperage for the group. **net\_type** `string` The electrical network type. One of `TN`, `TT`, or `IT`. May be `null`. **method** `string` The load balancing method. One of `boost` or `solar`. **solar\_additional\_amps** `integer` Additional amperage from solar. **solar\_always\_charge** `boolean` Whether to always allow charging when solar is available. **solar\_always\_charge\_amps** `integer` Minimum amperage when solar always charge is enabled. **smart\_charging\_charge\_on\_solar\_export** `boolean` Whether to charge on solar export. **peak\_shaving\_enabled** `boolean` Whether peak shaving is enabled for this group. **peak\_shaving\_threshold** `integer` The peak shaving threshold in amps. **created\_at** `string` ISO 8601 timestamp of when the group was created. **updated\_at** `string` ISO 8601 timestamp of when the group was last updated. # Create Location Source: https://developer.plugchoice.com/api-reference/sites/create-site POST /v3/sites Creates a new location and assigns it to the authenticated user's team. If the user does not have a team, a personal team is automatically created. **team\_uuid** `string` The UUID of the team to assign the location to. Must be a team the authenticated user belongs to. If omitted, the location is assigned to the user's first team. **name** `string` *required* The name of the location. Maximum 255 characters. **street** `string` *required* The street name. Maximum 255 characters. **house\_number** `number` *required* The house number. Must be 0 or greater. **house\_number\_addition** `string` The house number addition (e.g., "A", "B"). Maximum 255 characters. **postal\_code** `string` *required* The postal code. Maximum 255 characters. **city** `string` *required* The city name. Maximum 255 characters. **country** `string` *required* The ISO 3166-1 alpha-2 country code (e.g., "NL", "DE"). Maximum 2 characters. **manual\_coordinates** `boolean` Whether the location's coordinates are set manually. When `true`, `latitude` and `longitude` are required; otherwise the coordinates are geocoded from the address. **latitude** `number` The latitude of the location. Must be between -90 and 90. Required when `manual_coordinates` is `true`. **longitude** `number` The longitude of the location. Must be between -180 and 180. Required when `manual_coordinates` is `true`. ## Response **uuid** `string` The unique UUID of the location. **id** `integer` The numeric ID of the location. **name** `string` The name of the location. **address** `string` The full formatted address of the location. **street** `string` The street name. **postal\_code** `string` The postal code. **house\_number** `integer` The house number. **house\_number\_addition** `string` The house number addition. May be `null`. **city** `string` The city name. **country** `string` The ISO 3166-1 alpha-2 country code. **tariff\_zone** `string` The tariff zone key used for day-ahead pricing lookups. May be `null`. **latitude** `number` The latitude of the location. May be `null`. **longitude** `number` The longitude of the location. May be `null`. **manual\_coordinates** `boolean` Whether the location's coordinates were set manually rather than geocoded automatically. **access\_level** `string` The access level of the location. One of `closed`, `app_users`, or `roaming`. **smart\_charging** `string` The smart charging mode of the location. One of `disabled`, `off_peak`, or `day_ahead_pricing`. **chargers\_count** `integer` The number of chargers assigned to this location. **capabilities** `object` The location's available capabilities based on licensing. **capabilities** **smart\_charging** `boolean` Whether smart charging is available. **load\_management** `object` Load management capabilities. **load\_management** **dynamic** `boolean` Whether dynamic load balancing is available: `true` when every charger at the location has a Smart license or kept load balancing from before it became part of the Smart license. **peak\_shaving** `boolean` Whether peak shaving is available. **solar** `boolean` Whether solar integration is available. **created\_at** `string` ISO 8601 timestamp of when the location was created. **updated\_at** `string` ISO 8601 timestamp of when the location was last updated. **permissions** `object` The authenticated user's permissions for this location. **permissions** **basic** `boolean` Whether the user has basic read access. **sensitive** `boolean` Whether the user has access to sensitive data (e.g., cards, transactions). **full** `boolean` Whether the user has full control (e.g., delete, transfer ownership). # Delete Location Source: https://developer.plugchoice.com/api-reference/sites/delete-site DELETE /v3/sites/{site} Deletes the specified location. Returns a `204 No Content` response on success. **site** `string` *required* The UUID of the location to delete. **team\_uuid** `string` The UUID of the team that owns the location. # Get Location Source: https://developer.plugchoice.com/api-reference/sites/get-site GET /v3/sites/{site} Returns the details of a specific location. **site** `string` *required* The UUID of the location. ## Response **uuid** `string` The unique UUID of the location. **id** `integer` The numeric ID of the location. **name** `string` The name of the location. **address** `string` The full formatted address of the location. **street** `string` The street name. **postal\_code** `string` The postal code. **house\_number** `integer` The house number. **house\_number\_addition** `string` The house number addition. May be `null`. **city** `string` The city name. **country** `string` The ISO 3166-1 alpha-2 country code. **tariff\_zone** `string` The tariff zone key used for day-ahead pricing lookups. May be `null`. **latitude** `number` The latitude of the location. May be `null`. **longitude** `number` The longitude of the location. May be `null`. **manual\_coordinates** `boolean` Whether the location's coordinates were set manually rather than geocoded automatically. **access\_level** `string` The access level of the location. One of `closed`, `app_users`, or `roaming`. **charge\_when\_operator\_refuses** `boolean` Whether a card of the location charges when the operator with the Billing role on a charger refuses it. That transaction is free and nobody settles it. `false` unless turned on. **smart\_charging** `string` The smart charging mode of the location. One of `disabled`, `off_peak`, or `day_ahead_pricing`. **chargers\_count** `integer` The number of chargers assigned to this location. **capabilities** `object` The location's available capabilities based on licensing. **capabilities** **smart\_charging** `boolean` Whether smart charging is available. **load\_management** `object` Load management capabilities. **load\_management** **dynamic** `boolean` Whether dynamic load balancing is available: `true` when every charger at the location has a Smart license or kept load balancing from before it became part of the Smart license. **peak\_shaving** `boolean` Whether peak shaving is available. **solar** `boolean` Whether solar integration is available. **created\_at** `string` ISO 8601 timestamp of when the location was created. **updated\_at** `string` ISO 8601 timestamp of when the location was last updated. **permissions** `object` The authenticated user's permissions for this location. **permissions** **basic** `boolean` Whether the user has basic read access. **sensitive** `boolean` Whether the user has access to sensitive data (e.g., cards, transactions). **full** `boolean` Whether the user has full control (e.g., delete, transfer ownership). # List Locations Source: https://developer.plugchoice.com/api-reference/sites/list-sites GET /v3/sites Returns a paginated list of locations accessible to the authenticated user. **team** `string` Filter locations by team identifier. **search** `string` Search locations by name, address, or the Chargepoint ID of one of their chargers. A Chargepoint ID matches on any part, in any casing: `vt_12` finds a location with charger `VT_1234567`. ## Response **uuid** `string` The unique UUID of the location. **id** `integer` The numeric ID of the location. **name** `string` The name of the location. **address** `string` The full formatted address of the location. **street** `string` The street name. **postal\_code** `string` The postal code. **house\_number** `integer` The house number. **house\_number\_addition** `string` The house number addition (e.g., "A", "B"). May be `null`. **city** `string` The city name. **country** `string` The ISO 3166-1 alpha-2 country code. **tariff\_zone** `string` The tariff zone key used for day-ahead pricing lookups. May be `null`. **latitude** `number` The latitude of the location. May be `null`. **longitude** `number` The longitude of the location. May be `null`. **manual\_coordinates** `boolean` Whether the location's coordinates were set manually rather than geocoded automatically. **access\_level** `string` The access level of the location. One of `closed`, `app_users`, or `roaming`. **smart\_charging** `string` The smart charging mode of the location. One of `disabled`, `off_peak`, or `day_ahead_pricing`. **chargers\_count** `integer` The number of chargers assigned to this location. **charger\_preview** `object` One charger to name the location by, for a list row such as "VT\_1234567 (+2 others)". `null` when the location has no chargers. **charger\_preview** **identity** `string` The charger's Chargepoint ID. When `search` matched a charger at this location, this is that charger; otherwise it is the oldest charger at the location. **others** `integer` How many other chargers the location has. **capabilities** `object` The location's available capabilities based on licensing. **capabilities** **smart\_charging** `boolean` Whether smart charging is available. **load\_management** `object` Load management capabilities. **load\_management** **dynamic** `boolean` Whether dynamic load balancing is available: `true` when every charger at the location has a Smart license or kept load balancing from before it became part of the Smart license. **peak\_shaving** `boolean` Whether peak shaving is available. **solar** `boolean` Whether solar integration is available. **created\_at** `string` ISO 8601 timestamp of when the location was created. **updated\_at** `string` ISO 8601 timestamp of when the location was last updated. **permissions** `object` The authenticated user's permissions for this location. **permissions** **basic** `boolean` Whether the user has basic read access. **sensitive** `boolean` Whether the user has access to sensitive data (e.g., cards, transactions). **full** `boolean` Whether the user has full control (e.g., delete, transfer ownership). # Update Location Source: https://developer.plugchoice.com/api-reference/sites/update-site PUT /v3/sites/{site} Updates the details of a specific location. All fields are optional; only the fields provided will be updated. **site** `string` *required* The UUID of the location to update. **name** `string` The name of the location. Maximum 255 characters. **street** `string` The street name. Maximum 255 characters. **house\_number** `number` The house number. Must be 0 or greater. **house\_number\_addition** `string` The house number addition (e.g., "A", "B"). Maximum 255 characters. **postal\_code** `string` The postal code. Maximum 255 characters. **city** `string` The city name. Maximum 255 characters. **country** `string` The ISO 3166-1 alpha-2 country code (e.g., "NL", "DE"). Maximum 2 characters. **access\_level** `string` The access level of the location. One of `closed`, `app_users`, or `roaming`. Setting `app_users` or `roaming` requires the current team to be an admin team. **manual\_coordinates** `boolean` Whether the location's coordinates are set manually. When `true`, `latitude` and `longitude` are required; otherwise the coordinates are geocoded from the address. **charge\_when\_operator\_refuses** `boolean` Let a card of the location charge when the operator with the Billing role on a charger refuses it. That transaction is free and nobody settles it: it carries `unsettled_reason` `operator_refused_local_override`. Needs full access to the location. **latitude** `number` The latitude of the location. Must be between -90 and 90. Required when `manual_coordinates` is `true`. **longitude** `number` The longitude of the location. Must be between -180 and 180. Required when `manual_coordinates` is `true`. ## Response **uuid** `string` The unique UUID of the location. **id** `integer` The numeric ID of the location. **name** `string` The name of the location. **address** `string` The full formatted address of the location. **street** `string` The street name. **postal\_code** `string` The postal code. **house\_number** `integer` The house number. **house\_number\_addition** `string` The house number addition. May be `null`. **city** `string` The city name. **country** `string` The ISO 3166-1 alpha-2 country code. **tariff\_zone** `string` The tariff zone key used for day-ahead pricing lookups. May be `null`. **latitude** `number` The latitude of the location. May be `null`. **longitude** `number` The longitude of the location. May be `null`. **manual\_coordinates** `boolean` Whether the location's coordinates were set manually rather than geocoded automatically. **access\_level** `string` The access level of the location. One of `closed`, `app_users`, or `roaming`. **charge\_when\_operator\_refuses** `boolean` Whether a card of the location charges when the operator with the Billing role on a charger refuses it. That transaction is free and nobody settles it. `false` unless turned on. **smart\_charging** `string` The smart charging mode of the location. One of `disabled`, `off_peak`, or `day_ahead_pricing`. **chargers\_count** `integer` The number of chargers assigned to this location. **capabilities** `object` The location's available capabilities based on licensing. **capabilities** **smart\_charging** `boolean` Whether smart charging is available. **load\_management** `object` Load management capabilities. **load\_management** **dynamic** `boolean` Whether dynamic load balancing is available: `true` when every charger at the location has a Smart license or kept load balancing from before it became part of the Smart license. **peak\_shaving** `boolean` Whether peak shaving is available. **solar** `boolean` Whether solar integration is available. **created\_at** `string` ISO 8601 timestamp of when the location was created. **updated\_at** `string` ISO 8601 timestamp of when the location was last updated. **permissions** `object` The authenticated user's permissions for this location. **permissions** **basic** `boolean` Whether the user has basic read access. **sensitive** `boolean` Whether the user has access to sensitive data (e.g., cards, transactions). **full** `boolean` Whether the user has full control (e.g., delete, transfer ownership). # List Chargers Source: https://developer.plugchoice.com/api-reference/team-chargers/list-team-chargers GET /v3/teams/{team}/chargers Returns a paginated list of chargers belonging to the specified team, with filtering and sorting support. **team** `string` *required* The UUID of the team. **filter\[search]** `string` Filter by charger identity, serial number, or team reference. **filter\[connection\_status]** `string` Filter by connection status. One of `online`, `offline`, or `never_seen`. **filter\[status]** `string` Filter by charger status. One of `Available`, `Charging`, `Faulted`, `Finishing`, `Preparing`, `Reserved`, `SuspendedEV`, `SuspendedEVSE`, or `Unavailable`. **filter\[connector\_status]** `string` Filter by connector status. One of `Available`, `Charging`, `Faulted`, `Finishing`, `Preparing`, `Reserved`, `SuspendedEV`, `SuspendedEVSE`, or `Unavailable`. Accepts a single value or an array. **filter\[vendor]** `string` Filter by charger vendor. Accepts a single value or an array. **filter\[model]** `string` Filter by charger model name. Accepts a single value or an array. **filter\[firmware\_version]** `string` Filter by firmware version. Matches partially. **filter\[license]** `string` Filter by license type. One of `basic`, `smart`, or `pro`. Accepts a single value or an array. **filter\[site\_uuid]** `string` Filter by location UUID. Accepts a single value or an array. **sort** `string` Sort field. One of `identity`, `connection_status`, `status`, `created_at`, `firmware_version`, or `model`. Prefix with `-` for descending order. Defaults to `-created_at`. **page** `integer` Page number for pagination. ## Response **data** `array` Array of charger objects. **charger** **uuid** `string` The unique UUID of the charger. **identity** `string` The charger's identity string. **serial\_number** `string` The charger's serial number. May be `null`. **reference** `string` The team's reference for this charger. May be `null`. **connection\_status** `string` The connection status (`online`, `offline`, or `never_seen`). **status** `string` The charger status. One of `Available`, `Charging`, `Faulted`, `Finishing`, `Preparing`, `Reserved`, `SuspendedEV`, `SuspendedEVSE`, or `Unavailable`. **firmware\_version** `string` The charger's firmware version. May be `null`. **licenses** `object` License status for the charger. **licenses** **smart** `boolean` Whether the smart license is active. **pro** `boolean` Whether the pro license is active. **model** `object` The charger model information. **model** **vendor** `string` The charger vendor name. **name** `string` The charger model name. **internal\_model** `object` Internal model details. **internal\_model** **name** `string` The internal model name. **sku** `string` The internal model SKU. **site** `object` The location assigned to this charger. **site** **uuid** `string` The location UUID. **name** `string` The location name. **connectors** `object` The charger's connectors. **connectors** **data** `array` Array of connector objects. **connector** **id** `integer` The connector ID. **connector\_id** `integer` The OCPP connector ID. **status** `string` The connector status. **error** `string` The connector error code, if any. May be `null`. **error\_info** `string` Additional information about the connector error. May be `null`. **vendor\_id** `string` The vendor identifier reported for the connector. May be `null`. **vendor\_error\_code** `string` The vendor-specific error code for the connector. May be `null`. **filter\_options** `object` Available filter options based on the current dataset. **filter\_options** **connection\_statuses** `array` Available connection status values. **statuses** `array` Available charger status values. **connector\_statuses** `array` Available connector status values. **vendors** `array` Available vendor names. **models** `array` Available model names. **sites** `array` Available locations, each as an object with `value` (location UUID) and `label` (location name). **license\_types** `array` Available license type values (`basic`, `smart`, `pro`). # List Locations Source: https://developer.plugchoice.com/api-reference/team-sites/list-team-sites GET /v3/teams/{team}/sites Returns a paginated list of locations belonging to the specified team, with filtering and sorting support. **team** `string` *required* The UUID of the team. **filter\[search]** `string` Filter by location name or address. **filter\[country]** `string` Filter by ISO 3166-1 alpha-2 country code (e.g., `NL`, `DE`, `BE`). **filter\[smart\_charging]** `string` Filter by smart charging mode. One of `disabled`, `day_ahead_pricing`, or `off_peak`. **sort** `string` Sort field. One of `name`, `country`, `chargers_count`, or `created_at`. Prefix with `-` for descending order. Defaults to `-created_at`. **page** `integer` Page number for pagination. ## Response **data** `array` Array of location objects. **site** **uuid** `string` The unique UUID of the location. **name** `string` The location name. **address** `string` The full formatted address. **street** `string` The street name. **postal\_code** `string` The postal code. **house\_number** `integer` The house number. **house\_number\_addition** `string` The house number addition (e.g., "A", "B"). May be `null`. **city** `string` The city name. **country** `string` The ISO 3166-1 alpha-2 country code. **latitude** `number` The latitude coordinate of the location. May be `null`. **longitude** `number` The longitude coordinate of the location. May be `null`. **manual\_coordinates** `boolean` Whether the coordinates were set manually rather than geocoded. **smart\_charging** `string` The smart charging mode (`disabled`, `day_ahead_pricing`, or `off_peak`). **chargers\_count** `integer` The number of chargers at this location. **created\_at** `string` ISO 8601 timestamp of when the location was created. **permissions** `object` The authenticated user's permissions for this location. **permissions** **basic** `boolean` Whether the user has basic access to the location. **sensitive** `boolean` Whether the user has access to sensitive location data. **full** `boolean` Whether the user has full access to the location. **filter\_options** `object` Available filter options based on the current dataset. **filter\_options** **countries** `array` Available country codes. **smart\_charging\_modes** `array` Available smart charging mode values. # Create Team Source: https://developer.plugchoice.com/api-reference/teams/create-team POST /v3/teams Creates a new team for the authenticated user. **name** `string` *required* The name of the team. Maximum 255 characters. **email** `string` *required* The contact email address for the team. Must be a valid email. Maximum 255 characters. **type** `string` Accepted for backwards compatibility with older clients. One of `personal` or `business`. This value is no longer stored and has no effect. ## Response **uuid** `string` The unique UUID of the team. **id** `integer` The numeric ID of the team. **name** `string` The team name. **slug** `string` The URL-friendly slug of the team. **email** `string` The team's contact email address. **created\_at** `string` ISO 8601 timestamp of when the team was created. **updated\_at** `string` ISO 8601 timestamp of when the team was last updated. # Delete Team Source: https://developer.plugchoice.com/api-reference/teams/delete-team DELETE /v3/teams/{team} Deletes the specified team. Returns a `204 No Content` response on success. **team** `string` *required* The UUID of the team to delete. # List Teams Source: https://developer.plugchoice.com/api-reference/teams/list-teams GET /v3/teams Returns a list of all teams the authenticated user belongs to. ## Response **data** `array` Array of team objects. **team** **uuid** `string` The unique UUID of the team. **id** `integer` The numeric ID of the team. **name** `string` The team name. **slug** `string` The URL-friendly slug of the team. **email** `string` The team's contact email address. **created\_at** `string` ISO 8601 timestamp of when the team was created. **updated\_at** `string` ISO 8601 timestamp of when the team was last updated. # Import Transactions Source: https://developer.plugchoice.com/api-reference/transactions/import-charger-transactions POST /v3/chargers/{charger}/transactions Records charging sessions that happened outside the OCPP flow, for example sessions captured by the Plugchoice app, a Peblar local API, or a backend you are migrating away from. Every transaction created here is flagged with `imported: true` and stamped with the `source` you supply, so imported sessions stay distinguishable from ones reported by the charger itself. The payload is always a list. Importing a single session means sending a list of one. Rows are judged individually: valid ones are created, duplicates are skipped, and anything else is reported against its position in the list. One bad row never discards the rest of the batch. Only finished sessions can be imported: `stopped_at` and `meter_stop` are required. **charger** `string` *required* The UUID of the charger the sessions belong to. **source** `string` *required* Where these sessions came from, e.g. `Plugchoice app` or `peblar local`. Free text, up to 100 characters. Stamped onto every transaction in the batch. **transactions** `object[]` *required* The sessions to import. Between 1 and 500 items. **transactions** **connector\_id** `integer` *required* The OCPP connector id on this charger. The connector must already exist; importing does not create hardware. **id\_tag** `string` *required* The RFID tag or token that authorized the session. Maximum 255 characters. **meter\_start** `integer` *required* The meter reading at the start of the session, in Wh. **meter\_stop** `integer` *required* The meter reading at the end of the session, in Wh. Must be greater than or equal to `meter_start`. Energy is always expressed as meter readings. `total_kwh` is derived from them and cannot be sent. **started\_at** `string` *required* ISO 8601 timestamp of when the session started. Cannot be in the future. **stopped\_at** `string` *required* ISO 8601 timestamp of when the session stopped. Must be at or after `started_at`, and cannot be in the future. **stop\_reason** `string` Why the session ended. One of `DeAuthorized`, `EmergencyStop`, `EVDisconnected`, `HardReset`, `Local`, `Other`, `PowerLoss`, `Reboot`, `Remote`, `SoftReset`, or `UnlockCommand`. May be omitted. **reservation\_id** `integer` The reservation id, if the session was tied to one. ## Duplicates A session is treated as a duplicate when it matches one that already exists on the same connector, whether it was imported earlier or reported live by the charger. It matches when `started_at` is the same. Because a charger clock can drift and a source can send local time as UTC, it also matches when `started_at` and `stopped_at` are both off by the same whole number of hours (up to 14), give or take 15 minutes, and the energy agrees: * When both sessions have a `meter_start` above 0, `meter_start` and `meter_stop` must each agree within 2 Wh. * When either `meter_start` is 0, the energy (`meter_stop` minus `meter_start`) must agree within 10 Wh or 1%, whichever is larger. A session where `meter_stop` equals `meter_start` only matches on the same `started_at`. Duplicates are counted in `skipped` rather than rejected, so re-sending a batch is safe and will not double-count energy. ## Response **message** `string` Always `Import completed`. **created** `integer` How many transactions were created. **skipped** `integer` How many rows were skipped as duplicates. **failed** `integer` How many rows failed validation. **errors** `object[]` One entry for every row that was not created, both failures and skipped duplicates. **errors** **index** `integer` The zero-based position of the row in the `transactions` list you sent. **errors** `object` Messages keyed by field name, e.g. `{"meter_stop": ["The meter stop field must be greater than or equal to meter start."]}`. **transactions** `object[]` The transactions that were created, in the order they were sent. Each one has the same shape as a transaction returned by [List Transactions](/api-reference/transactions/list-charger-transactions), including the generated `total_kwh` and the assigned `id`. # List Transactions Source: https://developer.plugchoice.com/api-reference/transactions/list-charger-transactions GET /v3/chargers/{charger}/transactions Returns a paginated list of transactions for a specific charger. **charger** `string` *required* The UUID of the charger. **limit** `integer` Maximum number of transactions to return. Between 1 and 10,000. **filter\[status]** `string` Filter by transaction status. One of `active` or `finished`. **filter\[started\_from]** `string` Filter transactions started from this date. ISO 8601 date format. **filter\[stopped\_until]** `string` Filter transactions stopped until this date. Must be after or equal to `filter[started_from]`. ISO 8601 date format. **sort** `string` Sort field. One of `created_at`, `started_at`, `stopped_at`, `total_kwh`, `meter_start`, or `meter_stop`. Prefix with `-` for descending order. Defaults to `-started_at`. ## Response **id** `integer` The transaction ID. **charger\_id** `integer` The ID of the charger. **charger\_connector\_id** `integer` The ID of the connector used. **reservation\_id** `integer` The reservation ID, if applicable. May be `null`. **id\_tag** `string` The RFID tag or token used to authorize the transaction. **meter\_start** `integer` The meter reading at the start of the transaction in Wh. **meter\_stop** `integer` The meter reading at the end of the transaction in Wh: `meter_start` plus the energy billed for the transaction. `null` for active transactions. **meter\_stop\_estimated** `boolean` `true` when the charger never sent a StopTransaction. Plugchoice then ended the transaction after seven days or when the charger started a new transaction on the same connector, and took `meter_stop` from the transaction's own meter readings. **total\_kwh** `number` The total energy consumed in kWh. **started\_at** `string` ISO 8601 timestamp of when the transaction started. **stopped\_at** `string` ISO 8601 timestamp of when the transaction stopped. May be `null` for active transactions. **stop\_reason** `string` The reason the transaction was stopped (e.g., `Remote`, `EVDisconnected`). May be `null`. **is\_valid** `boolean` Whether the transaction is considered valid. May be `null` if not yet determined. **imported** `boolean` Whether the transaction was imported through the API rather than reported by the charger over OCPP. **source** `string` The system the transaction was imported from, e.g. `Plugchoice app`. `null` for transactions reported by the charger. **charger** `object` The charger associated with this transaction. **charger** **uuid** `string` The UUID of the charger. **identity** `string` The Chargepoint ID of the charger. **serial\_number** `string` The serial number of the charger. May be `null`. **reference** `string` The reference label of the charger. May be `null`. **connector** `object` The connector used for this transaction. **connector** **connector\_id** `integer` The OCPP connector ID. **created\_at** `string` ISO 8601 timestamp of when the transaction record was created. **updated\_at** `string` ISO 8601 timestamp of when the transaction record was last updated. # List Transactions Source: https://developer.plugchoice.com/api-reference/transactions/list-site-transactions GET /v3/sites/{site}/transactions Returns a paginated list of transactions for all chargers at a specific location. Includes the total energy consumption across the location. **site** `string` *required* The UUID of the location. **limit** `integer` Maximum number of transactions to return. Between 1 and 10,000. **filter\[status]** `string` Filter by transaction status. One of `active` or `finished`. **filter\[charger\_uuid]** `string` Filter by a specific charger UUID. **filter\[started\_from]** `string` Filter transactions started from this date. ISO 8601 date format. **filter\[stopped\_until]** `string` Filter transactions stopped until this date. Must be after or equal to `filter[started_from]`. ISO 8601 date format. **filter\[id\_tag]** `string` Filter by exact RFID tag or token. Maximum 255 characters. **sort** `string` Sort field. One of `created_at`, `started_at`, `stopped_at`, `total_kwh`, `meter_start`, or `meter_stop`. Prefix with `-` for descending order. Defaults to `-started_at`. ## Response **id** `integer` The transaction ID. **charger\_id** `integer` The ID of the charger. **charger\_connector\_id** `integer` The ID of the connector used. **reservation\_id** `integer` The reservation ID, if applicable. May be `null`. **id\_tag** `string` The RFID tag or token used to authorize the transaction. **meter\_start** `integer` The meter reading at the start of the transaction in Wh. **meter\_stop** `integer` The meter reading at the end of the transaction in Wh: `meter_start` plus the energy billed for the transaction. `null` for active transactions. **meter\_stop\_estimated** `boolean` `true` when the charger never sent a StopTransaction. Plugchoice then ended the transaction after seven days or when the charger started a new transaction on the same connector, and took `meter_stop` from the transaction's own meter readings. **total\_kwh** `number` The total energy consumed in kWh. **started\_at** `string` ISO 8601 timestamp of when the transaction started. **stopped\_at** `string` ISO 8601 timestamp of when the transaction stopped. May be `null` for active transactions. **stop\_reason** `string` The reason the transaction was stopped. May be `null`. **is\_valid** `boolean` Whether the transaction is considered valid. May be `null` if not yet determined. **imported** `boolean` Whether the transaction was imported through the API rather than reported by the charger over OCPP. **source** `string` The system the transaction was imported from, e.g. `Plugchoice app`. `null` for transactions reported by the charger. **charger** `object` The charger associated with this transaction. **charger** **uuid** `string` The UUID of the charger. **identity** `string` The Chargepoint ID of the charger. **serial\_number** `string` The serial number of the charger. May be `null`. **reference** `string` The reference label of the charger. May be `null`. **connector** `object` The connector used for this transaction. **connector** **connector\_id** `integer` The OCPP connector ID. **created\_at** `string` ISO 8601 timestamp of when the transaction record was created. **updated\_at** `string` ISO 8601 timestamp of when the transaction record was last updated. The response includes an additional top-level field: **total\_kwh** `number` The total energy consumption in kWh across all chargers at the location. # List Team Transactions Source: https://developer.plugchoice.com/api-reference/transactions/list-team-transactions GET /v3/teams/{team}/transactions Returns a paginated list of transactions across all chargers the team has sensitive access to. Uses cursor-based pagination (simple pagination) for infinite scroll support. **team** `string` *required* The UUID of the team. **filter\[status]** `string` Filter by transaction status. One of `active` or `finished`. **filter\[search]** `string` Search by transaction ID (numeric), Card UID, or Chargepoint ID. **sort** `string` Sort field. One of `started_at`, `stopped_at`, `total_kwh`, `meter_start`, or `meter_stop`. Prefix with `-` for descending order. Defaults to `-started_at`. **page** `integer` Page number for pagination. 25 results per page. ## Response **data** `array` Array of transaction objects. **transaction** **id** `integer` The transaction ID. **status** `string` The transaction status. One of `active` or `finished`. **charger** `object` The charger associated with this transaction. May be `null`. **charger** **uuid** `string` The UUID of the charger. **identity** `string` The Chargepoint ID of the charger. **reference** `string` The reference label of the charger. May be `null`. **site** `object` The location the charger belongs to. May be `null`. **site** **uuid** `string` The UUID of the location. **name** `string` The name of the location. **is\_mid** `boolean` Whether the charger model is MID certified. May be `null` if unknown. **connector\_id** `integer` The OCPP connector ID used for this transaction. May be `null`. **id\_tag** `string` The RFID tag or token used to authorize the transaction. **started\_at** `string` ISO 8601 timestamp of when the transaction started. **stopped\_at** `string` ISO 8601 timestamp of when the transaction stopped. `null` for active transactions. **meter\_start** `integer` The meter reading at the start of the transaction in Wh. **meter\_stop** `integer` The meter reading at the end of the transaction in Wh: `meter_start` plus the energy billed for the transaction. `null` for active transactions. **meter\_stop\_estimated** `boolean` `true` when the charger never sent a StopTransaction. Plugchoice then ended the transaction after seven days or when the charger started a new transaction on the same connector, and took `meter_stop` from the transaction's own meter readings. **total\_kwh** `number` The total energy consumed in kWh, rounded to 2 decimal places. **stop\_reason** `string` The reason the transaction was stopped (e.g., `Local`, `Remote`, `EVDisconnected`). `null` for active transactions. **imported** `boolean` Whether the transaction was imported through the API rather than reported by the charger over OCPP. **source** `string` The system the transaction was imported from, e.g. `Plugchoice app`. `null` for transactions reported by the charger. **filter\_options** `object` Available filter options. **filter\_options** **statuses** `array` Available status filter values (`active`, `finished`). # Delete User Source: https://developer.plugchoice.com/api-reference/users/delete-user DELETE /v3/user Sends an email to the authenticated user with a link to delete their account. Returns a `204 No Content` response on success. # Get Current User Source: https://developer.plugchoice.com/api-reference/users/get-current-user GET /v3/user Returns the authenticated user's account details. ## Response **uuid** `string` The unique UUID of the user. **id** `integer` The numeric ID of the user. **name** `string` The user's full name. **email** `string` The user's email address. **email\_verified** `boolean` Whether the user has verified their email address. **has\_password** `boolean` Whether the account has a password. `false` for an account made with a sign-in code, Google or Apple. Changing the email address or the password needs the current password, so such an account changes both in the web portal. **profiling** `object` Onboarding status for the user. **profiling** **required** `boolean` Whether the user still has a pending onboarding profile to complete. **next\_step** `string` The next onboarding step to complete, or `null` when none is pending. One of `company` or `tailor`. **avatar** `string` Gravatar URL for the user's avatar, based on their email address. **intercom** `object` Credentials used to identify the user in Intercom. **intercom** **jwt** `string` Signed JWT identifying the user to Intercom. **hmac\_android** `string` HMAC identity verification hash for the Android SDK. **hmac\_ios** `string` HMAC identity verification hash for the iOS SDK. **hmac\_web** `string` HMAC identity verification hash for the web SDK. **tours\_reset\_at** `string` ISO 8601 UTC timestamp of when Plugchoice support last reset the user's guided tours and swipe hints in the Plugchoice app, or `null` when they were never reset. When it differs from the value the app last applied, the app shows every tour again. **created\_at** `string` ISO 8601 timestamp of when the user was created. **updated\_at** `string` ISO 8601 timestamp of when the user was last updated. # Resend Verification Mail Source: https://developer.plugchoice.com/api-reference/users/resend-verification POST /v3/user/email/verification-notification Sends the verification mail to the authenticated user's email address again. Returns `202 Accepted` when the mail went out, and `204 No Content` when the address is already verified and there is nothing to send. Limited to 6 requests per minute. # Change Password Source: https://developer.plugchoice.com/api-reference/users/update-password PUT /v3/user/password Sets a new password for the authenticated user. Returns `204 No Content` on success. Limited to 6 requests per minute. **current\_password** `string` *required* The user's current password. An account without a password (`has_password: false` on the user) cannot change it here and sets its first one in the web portal. **password** `string` *required* The new password. At least 8 characters. **password\_confirmation** `string` *required* The new password again. Must match `password`. ## Errors A `422` names the field that failed: `current_password` when it is missing or wrong, `password` when the new password is too short or the confirmation does not match. # Update User Source: https://developer.plugchoice.com/api-reference/users/update-user PATCH /v3/user Changes the authenticated user's name, email address, or both. Send at least one of them. Returns the user as [Get Current User](/api-reference/users/get-current-user) does. A new email address is unverified until the user follows the link in the verification mail sent to it, so the response has `email_verified` set to `false`. The address must not belong to another account, in any casing. Limited to 6 requests per minute. **name** `string` The user's full name. Maximum 255 characters. Required without `email`. **email** `string` The new email address. Must be a valid email. Maximum 255 characters. Required without `name`. **current\_password** `string` The user's current password. Required when `email` changes the address. An account without a password (`has_password: false` on the user) changes its address in the web portal. ## Errors A `422` names the field that failed: `email` when the address is invalid or already in use, `current_password` when it is missing or wrong. # Authentication Source: https://developer.plugchoice.com/guides/authentication Authenticate with the Plugchoice API using OAuth 2.0 or personal access tokens. All API requests must include a bearer token in the `Authorization` header: ``` Authorization: Bearer YOUR_API_TOKEN ``` ## Personal access tokens The simplest way to authenticate is with a personal access token. Generate one from your [dashboard settings](https://app.plugchoice.com/settings/personal-access-tokens). **1. Go to Settings** Navigate to **Settings > Personal Access Tokens** in the Plugchoice dashboard. **2. Create a token** Click **Create Token**, give it a descriptive name, and copy the token value. The token is only shown once. **3. Use the token** Include the token in the `Authorization` header of your API requests. ```bash theme={null} curl https://api.plugchoice.com/v3/user \ -H "Authorization: Bearer your_personal_access_token" ``` ## OAuth 2.0 For third-party integrations, Plugchoice supports OAuth 2.0. The following grant types are available: | Grant type | Use case | | - | - | | Authorization code | Web apps that need user authorization | | Client credentials | Server-to-server communication | | Refresh token | Renewing expired access tokens | | Device code | Devices without a browser (e.g., charger displays) | > [!NOTE] > > The OAuth endpoints live on the dashboard host (`https://app.plugchoice.com/oauth/*`), not on the API host. Only the `/v3` resource endpoints are served from `https://api.plugchoice.com`. ### Authorization code flow **1. Redirect to authorize** Redirect the user to the authorization endpoint: ``` GET https://app.plugchoice.com/oauth/authorize ?client_id=YOUR_CLIENT_ID &redirect_uri=YOUR_REDIRECT_URI &response_type=code &scope= ``` **2. Exchange code for token** After the user grants access, exchange the authorization code for tokens: ```bash theme={null} curl -X POST https://app.plugchoice.com/oauth/token \ -d grant_type=authorization_code \ -d client_id=YOUR_CLIENT_ID \ -d client_secret=YOUR_CLIENT_SECRET \ -d redirect_uri=YOUR_REDIRECT_URI \ -d code=AUTHORIZATION_CODE ``` **3. Use the access token** Use the returned `access_token` in the `Authorization` header: ```json theme={null} { "token_type": "Bearer", "expires_in": 31536000, "access_token": "eyJ0...", "refresh_token": "def5..." } ``` ### Client credentials flow For server-to-server integrations that don't require user authorization: ```bash theme={null} curl -X POST https://app.plugchoice.com/oauth/token \ -d grant_type=client_credentials \ -d client_id=YOUR_CLIENT_ID \ -d client_secret=YOUR_CLIENT_SECRET \ -d scope= ``` ### Refreshing tokens Use a refresh token to obtain a new access token: ```bash theme={null} curl -X POST https://app.plugchoice.com/oauth/token \ -d grant_type=refresh_token \ -d client_id=YOUR_CLIENT_ID \ -d client_secret=YOUR_CLIENT_SECRET \ -d refresh_token=YOUR_REFRESH_TOKEN ``` ### Revoking tokens Revoke an authorized access token when it's no longer needed by deleting it by ID: ```bash theme={null} curl -X DELETE https://app.plugchoice.com/oauth/tokens/TOKEN_ID \ -H "Authorization: Bearer YOUR_ACCESS_TOKEN" ``` > [!WARNING] > > Keep your client secret confidential. Never expose it in client-side code or public repositories. # Errors Source: https://developer.plugchoice.com/guides/errors How the Plugchoice API communicates errors and HTTP status codes. The Plugchoice API uses standard HTTP status codes and returns JSON error responses. ## Error response format All error responses include a `message` field: ```json theme={null} { "message": "The given data was invalid." } ``` Validation errors (422) include field-level details in the `errors` field: ```json theme={null} { "message": "The given data was invalid.", "errors": { "name": ["The name field is required."], "email": ["The email must be a valid email address."] } } ``` ## HTTP status codes | Code | Description | | - | - | | `200` | OK - Request succeeded | | `201` | Created - Resource created successfully | | `204` | No Content - Request succeeded with no response body (e.g., deletes) | | `400` | Bad Request - Malformed request | | `401` | Unauthorized - Missing or invalid authentication token | | `403` | Forbidden - Valid token but insufficient permissions | | `404` | Not Found - Resource does not exist | | `422` | Unprocessable Entity - Validation errors in request body | | `429` | Too Many Requests - Rate limit exceeded | | `500` | Internal Server Error - Unexpected server error | | `504` | Gateway Timeout - The charger could not be reached in time | ## Common error scenarios ### Authentication errors (401) Returned when no token is provided or the token is expired/revoked: ```json theme={null} { "message": "Unauthenticated." } ``` ### Authorization errors (403) Returned when the authenticated user lacks permission for the requested action: ```json theme={null} { "message": "This action is unauthorized." } ``` ### Charger timeout (504) Some charger actions communicate with the physical charger in real-time. If the charger doesn't respond within the timeout period, a 504 is returned: ```json theme={null} { "message": "Unable to communicate with the charger. Please check the connection and try again." } ``` This does not necessarily mean the action failed - the charger may still execute the command. # Plugchoice API Source: https://developer.plugchoice.com/guides/introduction Manage your EV chargers from your own systems: their status, charging, locations and energy use. With the Plugchoice API, your own systems can do what you do in the Plugchoice dashboard: see your chargers and their status, start and stop charging, manage locations and charge cards, and read charging sessions and energy use. ## What you can do > [card] [Chargers](/api-reference/chargers/list-chargers) > > List your chargers, see their status, change their settings and update their firmware. > [card] [Charging](/api-reference/charger-actions/start-charging) > > Start and stop charging, or restart a charger. > [card] [Locations and teams](/api-reference/sites/list-sites) > > Organise chargers by location and team, and manage who may charge with charge cards. > [card] [Sessions and energy](/api-reference/transactions/list-team-transactions) > > Read charging sessions and meter values, and export energy use. ## Make your first request **1. Create a token** In the dashboard, go to [**Settings › Personal Access Tokens**](https://app.plugchoice.com/settings/personal-access-tokens) and create a token. Copy it: it's shown only once. **2. Call the API** Send the token in the `Authorization` header. This asks who you are: ```bash theme={null} curl https://api.plugchoice.com/v3/user \ -H "Authorization: Bearer YOUR_API_TOKEN" ``` **3. List your chargers** ```bash theme={null} curl https://api.plugchoice.com/v3/chargers \ -H "Authorization: Bearer YOUR_API_TOKEN" ``` The [API reference](/api-reference/chargers/list-chargers) lets you try every endpoint from the page. Building something other people sign in to? Use OAuth 2.0 instead of a personal token: see [Authentication](/guides/authentication). ## How it's organised * **Teams** are at the top. You can belong to more than one. * **Locations** are the places with chargers. Each belongs to a team. * **Chargers** are at a location. * **Connectors** are the plugs on a charger. A charger has one or more. The API calls locations `sites`, as in `/v3/sites`. ## Good to know > [accordion] Requests and responses > > Every endpoint lives under `https://api.plugchoice.com/v3`, takes JSON and answers with JSON. > [accordion] Lists come in pages > > Endpoints that list things answer one page at a time. [Pagination](/guides/pagination) > [accordion] There's a rate limit > > Too many requests in a short time get `429 Too Many Requests`. [Rate limiting](/guides/rate-limiting) > [accordion] Errors > > Errors use the usual HTTP status codes, with a message in the body. [Errors](/guides/errors) > [card] [Building an app for EV drivers?](/sdk) > > The Plugchoice SDK lets the people using your app connect their charger in a few taps, without leaving your app. # Pagination Source: https://developer.plugchoice.com/guides/pagination Navigate large result sets with page-based pagination. List endpoints return paginated results with 25 items per page by default. ## Request Use the `page` query parameter to navigate through pages: ```bash theme={null} curl https://api.plugchoice.com/v3/chargers?page=2 \ -H "Authorization: Bearer YOUR_API_TOKEN" ``` ## Response format Paginated responses include `data`, `links`, and `meta` fields: ```json theme={null} { "data": [ { "uuid": "abc-123", "identity": "CHARGER-001", ... }, { "uuid": "def-456", "identity": "CHARGER-002", ... } ], "links": { "first": "https://api.plugchoice.com/v3/chargers?page=1", "last": null, "prev": "https://api.plugchoice.com/v3/chargers?page=1", "next": "https://api.plugchoice.com/v3/chargers?page=3" }, "meta": { "current_page": 2, "from": 26, "path": "https://api.plugchoice.com/v3/chargers", "per_page": 25, "to": 50 } } ``` ## Fields | Field | Description | | - | - | | `data` | Array of resources for the current page | | `links.first` | URL to the first page | | `links.last` | URL to the last page (may be `null`) | | `links.prev` | URL to the previous page, or `null` if on the first page | | `links.next` | URL to the next page, or `null` if on the last page | | `meta.current_page` | Current page number | | `meta.from` | Index of the first item on this page | | `meta.to` | Index of the last item on this page | | `meta.per_page` | Number of items per page | ## Iterating through pages To fetch all results, follow the `links.next` URL until it returns `null`: ```javascript theme={null} let url = 'https://api.plugchoice.com/v3/chargers'; const allChargers = []; while (url) { const response = await fetch(url, { headers: { 'Authorization': 'Bearer YOUR_API_TOKEN' } }); const json = await response.json(); allChargers.push(...json.data); url = json.links.next; } ``` # Rate limiting Source: https://developer.plugchoice.com/guides/rate-limiting Understand API rate limits and how to handle them. The Plugchoice API enforces rate limits to ensure fair usage and platform stability. ## Default limits | Scope | Limit | | - | - | | Global API | 500 requests per minute per authenticated user | | Location invitations | 5 requests per minute | | Chargee meter | 5 requests per minute | | Public charging: start session | 3 requests per minute per IP address | | Public charging: session actions (confirm, stop, cancel, receipt email) | 10 requests per minute per session token | | Public charging: charger/session status polling | 30 requests per minute per charger code or session token | | Public charging: page load | 30 requests per minute per IP address | Unauthenticated requests are rate limited by IP address. The public charging endpoints (driver-facing, session-token based) are keyed by session token or IP address rather than by authenticated user account. ## Rate limit headers Rate-limited responses include the following headers: | Header | Description | | - | - | | `X-RateLimit-Limit` | Maximum number of requests allowed in the window | | `X-RateLimit-Remaining` | Number of requests remaining in the current window | | `Retry-After` | Seconds to wait before retrying (only on 429 responses) | ## Handling rate limits When you exceed the rate limit, the API returns a `429 Too Many Requests` response: ```json theme={null} { "message": "Too Many Attempts." } ``` Back off and retry after the number of seconds indicated by the `Retry-After` header: ```javascript theme={null} const response = await fetch(url, { headers }); if (response.status === 429) { const retryAfter = parseInt(response.headers.get('Retry-After') || '60', 10); await new Promise(resolve => setTimeout(resolve, retryAfter * 1000)); // Retry the request } ``` ## Best practices * **Cache responses** when possible to reduce the number of requests. * **Use pagination** rather than fetching large datasets repeatedly. * **Implement exponential backoff** when receiving 429 responses. * **Batch operations** where the API supports it (e.g., card imports). # Get a location Source: https://developer.plugchoice.com/map/api/get-location api-reference/map/map-v1.openapi.json GET /locations/{id} One location: its address, opening times, each charger (EVSE) with its live status and connectors, the tariffs as the operator publishes them, and how busy it usually is. # Get a tile Source: https://developer.plugchoice.com/map/api/get-tile api-reference/map/map-v1.openapi.json GET /tiles/{z}/{x}/{y} A 512 px web mercator tile, numbered as XYZ map tiles are. Up to zoom 14 its locations are grouped into the cells of an 8 by 8 grid (`clusters`); from zoom 15 each location is a pin. Locations at the very same coordinates are one pin. With filters, a tile counts only the connectors that match and leaves out a location none of whose connectors do. # Search by EVSE id Source: https://developer.plugchoice.com/map/api/search api-reference/map/map-v1.openapi.json GET /search Chargers (EVSEs) by the id printed on them, ignoring case, `*` and spaces: the exact matches first, then those that start with it. At most 10. # Build a map Source: https://developer.plugchoice.com/map/build-a-map Draw the map's tiles in any map library, filter them, open a location and search by EVSE id. The Map API gives you clusters and pins per map tile as JSON, and your map library draws them as its own markers. Any library that tells you its visible area and zoom works: MapLibre, Mapbox, Leaflet, Google Maps, or a native map on iOS and Android. ## Ask for the visible tiles Tiles are numbered as XYZ map tiles are: at zoom `z` the world is `2^z` by `2^z` tiles, `x` counted from the west and `y` from the north. Zoom runs from 0 to 22. When the map stops moving, work out the tiles that cover the visible area and ask for each: ```typescript theme={null} const BASE = "https://roaming.plugchoice.com/map/v1"; function tileOf(lat: number, lng: number, z: number) { const n = 2 ** z; const rad = (lat * Math.PI) / 180; const x = Math.floor(((lng + 180) / 360) * n); const y = Math.floor(((1 - Math.log(Math.tan(rad) + 1 / Math.cos(rad)) / Math.PI) / 2) * n); return { x: Math.min(Math.max(x, 0), n - 1), y: Math.min(Math.max(y, 0), n - 1) }; } function visibleTiles(bounds: { north: number; south: number; east: number; west: number }, z: number) { const topLeft = tileOf(bounds.north, bounds.west, z); const bottomRight = tileOf(bounds.south, bounds.east, z); const tiles = []; for (let x = topLeft.x; x <= bottomRight.x; x++) { for (let y = topLeft.y; y <= bottomRight.y; y++) { tiles.push(`${BASE}/tiles/${z}/${x}/${y}`); } } return tiles; } ``` Use the map's zoom rounded down as `z`. The clusters are sized for a tile drawn 512 px wide. If your library counts zoom for 256 px tiles, as Leaflet and Google Maps do, ask for one zoom lower than the map shows (`z = floor(zoom) - 1`). A map that crosses the antimeridian needs the tiles on both sides. ## Draw clusters and pins ```json theme={null} { "clusters": [[52.09074, 5.12142, 14, 38, 20, 15, 3]], "pins": [ { "ids": ["remote-12"], "lat": 52.37403, "lng": 4.88969, "name": "Station", "connectors": 2, "available": 1, "occupied": 1, "out_of_order": 0, "power_types": ["AC"], "max_power_kw": 22.1, "price_per_kwh": 0.39, "price_per_kwh_incl_vat": 0.4719 } ] } ``` Up to zoom 14 a tile is a grid of 8 by 8 cells. Each cell with locations is a cluster, an array of `[lat, lng, locations, connectors, available, occupied, out_of_order]` at the centroid of its locations. Show a cluster as a bubble with its number of connectors, and colour it by the counts if you like. Tapping a cluster usually zooms in on it. From zoom 15 every location is a pin. Up to zoom 14 a cell whose locations all share one spot is a pin too. Draw every cluster and pin of every tile: a location is in one tile at each zoom, so nothing shows twice. Locations at the very same coordinates are one pin with all their `ids`. The `name` is the first one's. If a pin has more than one id, let your user page through them in the detail panel. ## Filter Add filters to the tile's query string. A filtered tile counts only the connectors that match and leaves out a location none of whose connectors do. | Parameter | Only | | - | - | | `available=1` | available connectors | | `power_type=AC` or `power_type=DC` | AC or DC connectors | | `connector=IEC_62196_T2,IEC_62196_T2_COMBO` | connectors of any of these OCPI standards, comma-separated or repeated | | `min_kw=50` | connectors of at least this many kW | | `max_price=0.45` | connectors whose price per kWh now, before VAT, is at most this many euros | | `max_price_incl_vat=0.55` | connectors whose price per kWh now, VAT included, is at most this many euros | | `always_open=1` | locations open 24/7 | ```bash theme={null} curl "https://roaming.plugchoice.com/map/v1/tiles/12/2102/1350?available=1&power_type=DC&min_kw=50" ``` A filter that isn't valid is a `422` that names it, for example `{"error": "power_type is AC or DC"}`. ## Open a location When your user taps a pin, read the location by one of its `ids`: ```bash theme={null} curl https://roaming.plugchoice.com/map/v1/locations/remote-12 ``` The answer has the address, opening times and facilities, each charger (EVSE) with its live status and connectors, and each connector's tariffs. Once a location has two weeks of history it also has `occupancy`, how busy it usually is per hour of the week, and `out_of_order_ratio_30d`. See [Locations and prices](/map/locations) and the [reference](/map/api/get-location). ## Search by EVSE id Search for the EVSE id printed on a charger, or for its start, from 3 characters: ```bash theme={null} curl "https://roaming.plugchoice.com/map/v1/search?q=NL*GFX*EACE0673532" ``` ```json theme={null} { "results": [ { "location_id": "remote-12", "evse_id": "NL*GFX*EACE0673532*1", "name": "Station", "lat": 52.37403, "lng": 4.88969 } ] } ``` Case, `*` and spaces don't count. Exact matches come first, then ids that start with `q`, at most 10. Move the map to the result and open its `location_id`. The search finds chargers only. For addresses and places, use your map library's geocoding. ## Ask again without downloading again Keep each answer with its `ETag`, and send it back in `If-None-Match` when you ask for the same tile again. If nothing changed, the answer is an empty `304` and you draw what you kept. Browsers do this for you: a `fetch` revalidates by itself, because every answer is `Cache-Control: no-cache`. ```typescript theme={null} const kept = new Map(); async function getTile(url: string) { const known = kept.get(url); const response = await fetch(url, { headers: known ? { "If-None-Match": known.etag } : {} }); if (response.status === 304 && known) return known.body; if (response.status === 429) return known?.body ?? null; // try again on the next move const body = await response.json(); kept.set(url, { etag: response.headers.get("ETag") ?? "", body }); return body; } ``` Outside a browser, as above, keep the ETags yourself. A map that pans fast asks for a few screens of tiles a second, which stays well within the [rate limit](/map/requests#rate-limit). # Map API Source: https://developer.plugchoice.com/map/index Show where Plugchoice's charge cards charge: public charging locations with their live status, prices and how busy they usually are. The Map API serves the charging map in Plugchoice. You can put the same map in your own app or website, with any map library. It has the public charging locations of the operators Plugchoice roams with, and the chargers on Plugchoice that their owners opened to roaming. ## Base URL ``` https://roaming.plugchoice.com/map/v1 ``` The Map API is public and read-only. It needs no key or account, and any origin may call it from a browser. ```bash theme={null} curl https://roaming.plugchoice.com/map/v1/tiles/12/2102/1350 ``` ## Endpoints | Endpoint | What it gives you | | - | - | | [`GET /tiles/{z}/{x}/{y}`](/map/api/get-tile) | The clusters and pins in one map tile, with filters | | [`GET /locations/{id}`](/map/api/get-location) | A location's address, chargers, connectors, tariffs and how busy it usually is | | [`GET /search?q=`](/map/api/search) | Chargers by the EVSE id printed on them | ## Live data Nothing is cached. Each answer is what Plugchoice knows when you ask: a status an operator sends is on the next tile within seconds. Answers carry an `ETag`, so asking again for a tile that hasn't changed costs an empty `304`. See [Requests and limits](/map/requests). ## Next > [card] [Build a map](/map/build-a-map) > > Tiles, clusters, pins, filters, the detail panel and the search. > [card] [Locations and prices](/map/locations) > > What is on the map, the statuses, the prices and the occupancy. # Locations and prices Source: https://developer.plugchoice.com/map/locations Which locations are on the map, how statuses count, what a price means and how occupancy is measured. ## What is on the map * The public locations of the operators Plugchoice roams with, as they publish them over OCPI, when they have coordinates. * Chargers on Plugchoice whose owners opened them to roaming with a price, at locations with coordinates. Chargers an operator removed are left out. A location's id is `remote-…` for an operator's location and `site-…` for one on Plugchoice. Treat it as an opaque string. ## Statuses A tile counts each connector by its charger's (EVSE's) status, in three groups: | Status | Counts as | | - | - | | `AVAILABLE` | available | | `CHARGING`, `BLOCKED`, `RESERVED` | occupied | | `OUTOFORDER`, `INOPERATIVE`, `UNKNOWN`, `PLANNED` | out of order | A location's detail has each EVSE's own status and `status_since`. ## Power A pin's `power_types` are `AC`, `DC` or both, from its connectors. `max_power_kw` is the most powerful connector's kW: what the operator gives as its maximum power, or else its voltage times its current (times the phases for AC). It is what the connector can deliver. A car may charge slower. ## Prices `price_per_kwh` on a pin is in euros per kWh, before VAT, from the tariff in effect now in the location's own time zone. A tariff can differ by time of day, by day and by power. The pin has the lowest price of its connectors. It is `null` when the location has no price per kWh, or only one in another currency. `price_per_kwh_incl_vat` is the same price with VAT: the operator's rate when it gives one above 0, otherwise the rate on charging in the location's country. It is `null` when neither is known. This is the price the operator publishes to roaming partners. A driver pays what their charge card's provider charges, which can add its own fees and VAT. Show it as an indication. A location's detail has its tariffs as the operator publishes them, by id: OCPI 2.2.1 tariffs with every element, price component and restriction, so you can show a time or parking fee too. `prices_include_vat` is always `false`. A price component's `vat` is the percentage on top, when the operator gives it. Each connector also has `price_now`: what a session starting now costs (`per_kwh`, `per_hour`, `start` and `parking_per_hour`), from the tariff its pin's price uses, or `null` when nothing is priced. `includes_vat` says whether these include VAT: when a rate is not known, none of them do. Show this to match the pin, without pricing the tariffs yourself. ## Occupancy Plugchoice samples every location's connectors every 5 minutes and keeps twelve weeks of the sums. From that, once a location has two weeks of history, its detail has: * `occupancy`: 7 days, Monday first, of 24 hours in the location's own time zone. Each hour is the share of its working connectors that were occupied, from 0 to 1, or `null` for an hour without data. * `out_of_order_ratio_30d`: the share of the last 30 days its connectors were out of order, from 0 to 1. Before two weeks both are missing from the answer. The samples count connectors and keep nothing about who charged. # Requests and limits Source: https://developer.plugchoice.com/map/requests Caching with ETags, compression, browser access, the rate limit and errors. ## No key, any origin The Map API has no authentication. Every answer allows any origin (`Access-Control-Allow-Origin: *`) and exposes its `ETag`, so you can call it straight from a browser. Your page may send its own headers, such as tracing headers. ## Caching Every answer is computed when you ask and carries `Cache-Control: no-cache` and an `ETag`. Keep the answer, and send its `ETag` in `If-None-Match` when you ask again. If it hasn't changed, you get an empty `304 Not Modified`. Browsers do this by themselves. Answers are compressed with gzip or Brotli when your client accepts it. ## Rate limit Each IP address may make 600 requests at once and 60 a second after that. A full screen of tiles is about 12 requests. Past the limit the answer is a `429 Too Many Requests` with no body and `Retry-After: 1`. Call the Map API from your users' browsers or apps, so each of them has their own limit. Requests through one server of yours share that server's limit. ## Errors An error has a JSON body with a message: ```json theme={null} { "error": "No such tile" } ``` | Status | When | | - | - | | `404` | The tile doesn't exist (zoom above 22, or `x` or `y` outside it), or the location isn't on the map. | | `422` | A tile filter or the search's `q` isn't valid. The message names it. | | `429` | Too many requests. No body. | | `503` | A location's detail can't be read right now. Try again later. | ## Versions `v1` only grows. A new field, filter or endpoint can be added to it, so ignore fields you don't know. A field that changes or goes comes in a new version, at a new path. # Android Source: https://developer.plugchoice.com/sdk/android Add the Plugchoice SDK to an Android app, open Link and handle the result. The Android SDK is the library `com.plugchoice:plugchoice`, for Kotlin apps. It shows Link, the hosted flow at `connect.plugchoice.com`, in a full-screen activity, and does what a web page can't: join a charger's Wi-Fi, find and reach chargers on the local network, talk Bluetooth to them and scan a QR code. ## Install **Requirements**: Android 10 (API 29) or later (`minSdk 29`), `compileSdk 36`, and JDK 17. Bluetooth on Android 12 and later needs your app to target API 31 or later. Scanning a charger's QR code uses Google Play services; on a device without them, the user types the code instead. The library is `com.plugchoice:plugchoice` on Maven Central. Make sure `mavenCentral()` is in your repositories (it usually is), then add the dependency to your app module: ```kotlin build.gradle.kts theme={null} dependencies { implementation("com.plugchoice:plugchoice:0.4.0") } ``` ```groovy build.gradle theme={null} dependencies { implementation 'com.plugchoice:plugchoice:0.4.0' } ``` The public API is in the package `com.plugchoice`. ## Configure your app ### Permissions The library's manifest adds every permission it uses to your app's manifest. You don't add any. The SDK asks for the runtime ones only when the flow needs them. | Permission | Why | | - | - | | `INTERNET`, `ACCESS_NETWORK_STATE`, `CHANGE_NETWORK_STATE`, `ACCESS_WIFI_STATE`, `CHANGE_WIFI_STATE` | Loading the hosted flow, joining a charger's Wi-Fi and talking to the charger | | `CHANGE_WIFI_MULTICAST_STATE` | Finding chargers on the home Wi-Fi | | `NEARBY_WIFI_DEVICES` (Android 13 and later) | Joining a charger's Wi-Fi. Runtime. | | `ACCESS_FINE_LOCATION`, `ACCESS_COARSE_LOCATION` (up to Android 12L) | Joining a charger's Wi-Fi; on Android 10 and 11 also scanning for Bluetooth chargers. Runtime. | | `BLUETOOTH_SCAN`, `BLUETOOTH_CONNECT` (Android 12 and later) | Setting chargers up over Bluetooth. Runtime. | | `BLUETOOTH`, `BLUETOOTH_ADMIN` (up to Android 11) | Setting chargers up over Bluetooth | Bluetooth LE is declared as an optional feature, so devices without it can still install your app. To leave Bluetooth out, remove the four Bluetooth permissions in your manifest with `tools:node="remove"`; the SDK then doesn't offer it. Bluetooth on Android 12 and later also needs your app to target API 31 or later. ### Plain HTTP to chargers Some chargers serve their local API over plain HTTP or a plain WebSocket on their own Wi-Fi: Peblar answers at `http://172.16.0.1`, a Charge Amps Halo at `ws://192.168.250.1`. Android blocks plain connections by default, and the SDK's requests follow your app's network security configuration, so allow them for those addresses only: ```xml res/xml/network_security_config.xml theme={null} 172.16.0.1 192.168.250.1 ``` ```xml AndroidManifest.xml theme={null} ``` If your app already has a network security configuration, add the `domain-config` to it. Without this, Peblar and Charge Amps chargers can't be set up in your app. A go-e answers over a plain WebSocket at an address its own hotspot gives out, which no `domain-config` can name: to set up go-e chargers, allow plain connections in your `base-config` instead. The other chargers the SDK sets up today use HTTPS or Bluetooth. ### Google Play data safety Scanning a charger's QR code uses Google's code scanner from Google Play services. It needs no camera permission, but its ML Kit components send usage data to Google. Mention it in your app's data safety form. ## Create the SDK Create one `Plugchoice` instance and keep it for your app's lifetime, for example in your `Application` or a singleton. Give it a callback that fetches a client secret from your server: ```kotlin theme={null} import com.plugchoice.Plugchoice val plugchoice = Plugchoice(fetchClientSecret = { action -> // action.name ("add", "network", …), action.chargerId, action.siteId backend.plugchoiceClientSecret(action) }) ``` The callback calls your own endpoint, which creates a client session scoped to the action and returns its secret. [Get started](/sdk/get-started) shows that endpoint. The callback runs on the main thread, so make the call with a suspending client. With OkHttp, it can look like this: ```kotlin theme={null} class Backend(private val baseUrl: String, private val client: OkHttpClient) { suspend fun plugchoiceClientSecret(action: LinkAction): String = withContext(Dispatchers.IO) { val body = JSONObject() .put("action", action.name) .putOpt("chargerId", action.chargerId) .putOpt("siteId", action.siteId) .toString() .toRequestBody("application/json".toMediaType()) // Add your own authentication: your server needs to know who is signed in. val request = Request.Builder().url("$baseUrl/plugchoice/client-secret").post(body).build() client.newCall(request).execute().use { response -> check(response.isSuccessful) { "client secret: HTTP ${response.code}" } JSONObject(response.body!!.string()).getString("clientSecret") } } } ``` The SDK calls `fetchClientSecret` when Link opens, while the hosted flow loads. It calls it again, with the same action, whenever the secret expires (after 60 minutes), so a user can take as long as they need. The secret never goes into a URL or an intent, and the SDK never logs it. ## Open Link Register the SDK's activity result contract, then launch it with an action: ```kotlin theme={null} class ChargerActivity : ComponentActivity() { private val openLink = registerForActivityResult(plugchoice.link.contract()) { result: LinkResult -> // Handle the result. } fun changeNetwork(chargerId: String) = openLink.launch(LinkAction.reconnect(chargerId)) } ``` In Jetpack Compose: ```kotlin theme={null} val openLink = rememberLauncherForActivityResult(plugchoice.link.contract()) { result -> /* … */ } Button(onClick = { openLink.launch(LinkAction.addCharger()) }) { Text("Add a charger") } ``` Without the Activity Result API, start `plugchoice.link.intent(context, action)` for a result, and read it in `onActivityResult` with `plugchoice.link.parseResult(resultCode, data)`. The actions: | Action | Helper | | - | - | | Add a charger, optionally at one of your user's sites | `LinkAction.addCharger()`, `LinkAction.addCharger(siteId)` | | Set a charger up | `LinkAction.setup(chargerId)` | | Reconnect a charger to Plugchoice | `LinkAction.reconnect(chargerId)` | | An action this SDK version has no helper for yet | `LinkAction.custom(action, chargerId, siteId)` | The SDK passes the action to the hosted flow without reading it, so a new action works through `custom` before it gets a helper. Your client session's scope must cover the action's charger or site. [Actions](/sdk/concepts/actions) explains each one. Link handles rotation, dark mode and keyboard changes itself, so the flow never reloads. It keeps the screen on while it's open, because a charger's Wi-Fi connection drops when the phone locks. ## Handle the result The contract returns a `LinkResult`: **status** `LinkResult.Status` `SUCCESS`, `CANCELLED` or `ERROR`. **action** `String` The action the link session did. The user may have picked another one from the list of what a charger can do; otherwise it's the action you opened. **sessionId** `String?` The link session, when the hosted flow started one. `null` when Link closed before that. **devices** `List\` The devices the link session reported, each `Device(type, id)`. On `SUCCESS`, the devices it finished. `type` is `"charger"` (`Device.TYPE_CHARGER`) today; ignore types you don't know. **error** `LinkError?` On `ERROR`: a `code`, and a `message` for your logs. ```kotlin theme={null} when (result.status) { LinkResult.Status.SUCCESS -> { val chargerIds = result.devices.filter { it.type == Device.TYPE_CHARGER }.map { it.id } // Tell your server about result.sessionId; it confirms the outcome. } LinkResult.Status.CANCELLED -> Unit // The user left. Nothing changed. LinkResult.Status.ERROR -> Log.w("Plugchoice", "Link failed: ${result.error}") } ``` The result is for your app's UI. Before you rely on it, your server confirms it with [Get a link session](/sdk/api/get-link-session) (`GET /sdk/v1/link-sessions/{id}`). [Link sessions](/sdk/concepts/link-sessions) explains why. ## Errors On `ERROR`, `result.error?.code` says why. The SDK sets two codes itself: | Code | Constant | When | | - | - | - | | `pageLoadFailed` | `LinkError.PAGE_LOAD_FAILED` | The hosted flow didn't load (no internet, server unreachable). The SDK showed a "The page did not load" screen with **Try again**, and the user closed it. | | `internal` | `LinkError.INTERNAL` | The SDK couldn't run the hosted flow: no usable Android System WebView, or its renderer stopped. | Every other code comes from the hosted flow. The one to know is `clientSecretUnavailable` (`LinkError.CLIENT_SECRET_UNAVAILABLE`): your `fetchClientSecret` threw, returned an empty string or took longer than 30 seconds. The user then sees this screen, with **Try again**, and the result reports `clientSecretUnavailable` if they close it. ![The hosted flow's error screen when the app couldn't get a client secret, with a Try again button](/images/sdk/secret-unavailable-light.webp) What the user sees when fetchClientSecret fails The same screen shows when Android recreated Link after your app's process died: the `Plugchoice` instance is gone, so the user starts again from your app. Other codes are for your logs; don't branch on them. [Errors](/sdk/errors) lists them. ## Show actions where they work Not every charger can do every action, and not every phone has what an action needs. Show a button only when both are true: * The charger's [capability](/sdk/concepts/capabilities) for it is `capable`. Your server reads it with [Get a charger](/sdk/api/get-charger). * Every transport in the capability's `needs` is in `Plugchoice.transports(context)`. ```kotlin theme={null} // A capability as your server passed it on from the SDK API: // { "capable": true, "needs": ["ble"] } data class Capability(val capable: Boolean, val needs: List) fun canOffer(context: Context, capability: Capability): Boolean = capability.capable && Plugchoice.transports(context).containsAll(capability.needs) ``` `Plugchoice.transports(context)` asks for no permission. It returns `wifi` (on a device with Wi-Fi), `http`, `socket` and `lan`, and `ble` when the device has Bluetooth LE and your app kept the SDK's Bluetooth permissions. ## Test on a real device The emulator can open Link, but it can't reach a charger. Use a phone for: * joining a charger's Wi-Fi, and the system's "connect to device" prompt * finding chargers on the home Wi-Fi * everything Bluetooth, and its permission prompts * scanning a QR code The [example app](https://github.com/plugchoice/mobile-sdk/tree/main/android/example) opens Link with a client secret you paste, for any action. # Create a client session Source: https://developer.plugchoice.com/sdk/api/create-client-session api-reference/sdk/sdk-v1.openapi.yaml POST /client-sessions Says who Link acts for, and what it may reach, for 60 minutes. Call it from the one endpoint your app's `fetchClientSecret` calls and return `client_secret` to the SDK, or send a browser to `web_url` (append `&action=…&charger_id=…` for an action other than `add`). Link opens any number of link sessions with it until it expires, then asks your app for a new one. Without `external_user_id` the client session is for your own chargers. With it, it is for one of your users: the first client session for an `external_user_id` creates that user, and their first link session shows them a consent screen with your name and logo. A Plugchoice user calling with their own token acts for themselves. The **`scope`** (required) is everything its link sessions may reach, so the secret can't be used on the rest of your fleet: the chargers to work on, the sites to add chargers to (and work on any charger at them), one address to add chargers at (`location`), and whether `add` may make a new site at an address the hosted flow asks your user for (`new_site`). Name at least one (`422 scope-required`), at most 100 ids per list. Every id is checked now (`404 not-found` for one you may not use), so a scope can only narrow your access; there is no "everything". What you may name: | Caller | Chargers and sites | `location` or `new_site` | |---|---|---| | Integration, without `external_user_id` (your own chargers) | At sites your team owns | Creates a site in your team | | Integration, with `external_user_id` (one of your users) | At that user's sites | Reuses the user's site with the same `reference`, else creates one in your team | | Plugchoice user | At sites they have Sensitive access to | Creates a site in their current team | Once an `add` link session has made the site of `location` (when it starts) or a new site (when the hosted flow has the address), later link sessions of the same client session add to that site. The other fields are defaults for every link session: the language, the colour scheme, the brand and methods offered, and your label for the charger. # Get a charger Source: https://developer.plugchoice.com/sdk/api/get-charger api-reference/sdk/sdk-v1.openapi.yaml GET /chargers/{charger_id} One of the chargers `listChargers` would list for you. # Get a link session Source: https://developer.plugchoice.com/sdk/api/get-link-session api-reference/sdk/sdk-v1.openapi.yaml GET /link-sessions/{link_session_id} One time through Link, opened with one of your client sessions. The SDK returns its id (`sessionId`) when Link closes; read the outcome here before you rely on it (or poll it on a timer). # Get a transaction Source: https://developer.plugchoice.com/sdk/api/get-transaction api-reference/sdk/sdk-v1.openapi.yaml GET /transactions/{transaction_id} One of the transactions `listTransactions` would list for you. # SDK API Source: https://developer.plugchoice.com/sdk/api/index Create client sessions, read link sessions, chargers and their transactions from your server. The SDK API is what your server calls for the Plugchoice SDK. It creates the client sessions your app hands to Link, reads the link sessions Link opened, reads chargers with what each can do, reads their charging sessions (transactions), and removes chargers and customers. > [!WARNING] > > **The SDK API isn't the Plugchoice API (`/v3`).** It has its own base URL, credentials, versions and error format. ## Base URL ``` https://api.plugchoice.com/sdk/v1 ``` ## Authentication Call the SDK API from your server only. Your app never sees your credentials: it gets a short-lived client secret through your own endpoint (see [Get started](/sdk/get-started)). ### Integrations An integration has a client ID and a client secret; it starts in test mode. Exchange them for an access token with the OAuth client credentials grant: ```bash theme={null} curl -X POST https://app.plugchoice.com/oauth/token \ -d grant_type=client_credentials \ -d client_id=YOUR_CLIENT_ID \ -d client_secret=YOUR_CLIENT_SECRET ``` ```json theme={null} { "token_type": "Bearer", "expires_in": 3600, "access_token": "eyJ0..." } ``` The token lasts an hour and acts as your integration's team. Keep it on your server, reuse it until it expires, then request a new one. Send it in the `Authorization` header: ```bash theme={null} curl https://api.plugchoice.com/sdk/v1/chargers \ -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \ -H "Plugchoice-Version: 2026-10-07" ``` To get an integration, email [support@plugchoice.com](mailto:support@plugchoice.com). See [Test and live](/sdk/concepts/test-and-live). > [!WARNING] > > Keep your client ID and secret on your server. Never put them in your app. ### Plugchoice users A Plugchoice user can call the SDK API with their own OAuth access token or personal access token (see [Authentication](/guides/authentication)). They then act for themselves: their client sessions reach the chargers and sites they have Sensitive access to, and their link sessions show no consent screen. ## Versions The SDK API is versioned by date. Send the version you built against in the `Plugchoice-Version` header: ``` Plugchoice-Version: 2026-10-07 ``` * Without the header you get the newest version. Pin it, so a new version never changes what your server reads. * Every response says which version answered, in the same header. * An unknown version is [`400 unknown-version`](/sdk/errors/unknown-version). `2026-10-07` is the only version. See [Versions](/sdk/versioning). ## Errors Errors are [RFC 9457](https://www.rfc-editor.org/rfc/rfc9457) problem details, with `Content-Type: application/problem+json`: ```json theme={null} { "type": "https://developer.plugchoice.com/sdk/errors/scope-required", "title": "A scope is required", "status": 422, "code": "scope-required", "detail": "Name the chargers, the sites, the address or a new site (`scope`) this client session may reach." } ``` Switch on `code`; `type` links to its page. New codes may be added. See [Errors](/sdk/errors). ## Rate limits Each integration or Plugchoice user may make 120 requests a minute. Over it, the API answers [`429 rate-limited`](/sdk/errors/rate-limited) with a `Retry-After` header in seconds. ## Pagination [List chargers](/sdk/api/list-chargers) and [List transactions](/sdk/api/list-transactions) return a page at a time, newest first: * `limit`: 1 to 100, 25 by default. * `cursor`: the `next_cursor` of the previous page. `next_cursor` is `null` on the last page. ## Conventions * Ids are UUIDs. * Times are RFC 3339, in UTC. * Ignore fields and values you don't know: new ones may be added within a version. ## Endpoints > [card] [Create a client session](/sdk/api/create-client-session) > > Say who Link acts for, and what it may reach. > [card] [Get a link session](/sdk/api/get-link-session) > > Confirm what happened in Link. > [card] [List chargers](/sdk/api/list-chargers) > > Your chargers, with their capabilities. > [card] [Get a charger](/sdk/api/get-charger) > > One charger, with its capabilities. > [card] [Remove a charger](/sdk/api/remove-charger) > > End your access to a user's charger, or release one your team owns. > [card] [Remove a customer](/sdk/api/remove-customer) > > End your access to a user's chargers, release the ones your team holds for them, and forget the user. > [card] [List transactions](/sdk/api/list-transactions) > > Charging sessions of your chargers, and of your users' chargers they let you read. > [card] [Get a transaction](/sdk/api/get-transaction) > > One charging session. # List chargers Source: https://developer.plugchoice.com/sdk/api/list-chargers api-reference/sdk/sdk-v1.openapi.yaml GET /chargers Newest first, with what each can do (`capabilities`): for an integration every charger at a site its team owns, whether Link added it or not, and every charger in a user's own Plugchoice account it has a grant on; for a Plugchoice user the chargers at sites they have Sensitive access to. Filter by user (integrations) or site. # List transactions Source: https://developer.plugchoice.com/sdk/api/list-transactions api-reference/sdk/sdk-v1.openapi.yaml GET /transactions Charging sessions, newest first. Every transaction of a charger at a site your team owns, and the whole history of a charger in a user's own account while your integration has a grant on it with `sessions:read`. One still charging is `active`, with the energy so far; poll to follow it. The card is a hash: the same card gives the same `card` for your integration, so you can tell your users' cards apart, but you can't read the card id and another integration gets a different hash. # Remove a charger Source: https://developer.plugchoice.com/sdk/api/remove-charger api-reference/sdk/sdk-v1.openapi.yaml DELETE /chargers/{charger_id} A user's charger your integration has access to only loses that access: it stays in their own Plugchoice account. A charger your team owns is released: deleted with its history, or, when that's not possible (a Volt Time charger, or one with billing or roaming records), taken off its site and team with the card ids removed from its charging sessions, and refused when it connects. The same answer for a charger that's gone already or that you can't reach, so retrying is safe. # Remove a customer Source: https://developer.plugchoice.com/sdk/api/remove-customer api-reference/sdk/sdk-v1.openapi.yaml DELETE /customers/{external_user_id} Ends your integration's access to the user's chargers in their own Plugchoice account (they keep them), releases the chargers at sites your team owns for them (as `deleteCharger` does), deletes a site that was theirs alone, and forgets the `external_user_id`. The same answer for a customer that's gone already, so retrying is safe. # Changelog Source: https://developer.plugchoice.com/sdk/changelog New versions of the Plugchoice SDK and the SDK API. The SDK's releases are also on [GitHub](https://github.com/plugchoice/mobile-sdk/releases), with the full list of changes. See [Versions](/sdk/versioning) for what each kind of version means. **Volt Time Two Pro** 11 November 2026 * The **[Volt Time Two Pro](/sdk/chargers/volt-time#two-pro)**: added with its serial number and pincode like other Volt Time chargers, then checked over Bluetooth with its Bluetooth PIN, also when it's already online. Link corrects its OCPP address when it's wrong and shows its connections, and your user can give it a Wi-Fi network or a SIM's APN. In your app or in Chrome and Edge (`reconnect` needs `ble`). * No new SDK version needed. **Charge Amps** 11 November 2026 * The **[Charge Amps](/sdk/chargers/charge-amps)** Halo: set up over the charger's own hotspot after a restart at its breaker, with the serial number and PIN on its label. In your app (`local_hotspot`, needs `wifi`, `socket`). * The charger keeps its Chargepoint ID and its current operator, and Charge Amps' cloud stays connected as Data & control. Link shows its connections, can give it a Wi-Fi from the charger's own scan, and restarts it onto Plugchoice. * No new SDK version needed. **Meter readings** 2 November 2026 * Every [transaction](/sdk/api/list-transactions) has its meter readings, `meter_start_kwh` and `meter_stop_kwh`, whether the stop reading was estimated (`meter_stop_estimated`), and `is_mid`: whether the charger has a MID-certified meter. Filter on `charger_id`, `from` and `to` for one charger's transactions in a period. **Webasto** 28 October 2026 * The **[Webasto](/sdk/chargers/webasto)** Next: set up over the charger's own hotspot, from the label in its manual. In your app (`local_hotspot`, needs `wifi`, `lan`). * The charger keeps its Chargepoint ID, its serial number, and its current operator. Link shows its connections and can connect it to a Wi-Fi network. * No new SDK version needed. **go-e** 27 October 2026 * **[go-e](/sdk/chargers/go-e)** Chargers, the PRO, Gemini, Gemini flex, Core and HOME: set up over the charger's own hotspot, from the reset card that comes with it. In your app (`local_hotspot`, needs `wifi`, `lan`, `socket`). * The charger keeps its Chargepoint ID and its current operator. Link shows its connections, with the mobile network it's on, and can give it a Wi-Fi from the charger's own scan. Plugchoice imports its charging history from go-e's cloud. * Finalize takes `history_export`, where a charger's brand's cloud keeps its history, and reads the sessions from there. * No new SDK version needed. **Teltonika** 27 October 2026 * **[Teltonika](/sdk/chargers/teltonika)** TeltoCharges, the TeltoCharge and the EVC 2: set up over Bluetooth, paired with the last 6 digits of the installer code on the charger's sticker. In your app (`local_ble`, needs `ble`). * The charger keeps its Chargepoint ID and its current operator. Link imports its charging history, and its RFID cards when it isn't on OCPP yet, shows its connections and can give it a Wi-Fi from the charger's own scan. * No new SDK version needed. **Wallbox** 27 October 2026 * **[Wallbox](/sdk/chargers/wallbox)** chargers, such as the Pulsar Plus, Pulsar Max, Pulsar Pro and Quasar: set up over Bluetooth, paired with the passcode the Wallbox app shows in its Charger info. In your app (`local_ble`, needs `ble`). * The charger keeps its Chargepoint ID and its current operator. Link imports its charging history, shows its connections and can give it a Wi-Fi from the charger's own scan. * No new SDK version needed. **MID** 27 October 2026 * `is_mid` on every [charger](/sdk/api/get-charger): whether it has a MID-certified meter. `null` when Plugchoice doesn't know its model, or whether that model has one. **Enovates** 27 October 2026 * **[Enovates](/sdk/chargers/enovates)** chargers, such as the ENO one: set up over the charger's own hotspot, from the ENO install code on the label in its installation guide. In your app (`local_hotspot`, needs `wifi` and `socket`). * Your user restarts the charger first: it only opens its hotspot when it starts. * The charger keeps its Chargepoint ID and its current operator. Link shows its connections and can give it a Wi-Fi or change its mobile settings. * No new SDK version needed. **Fewer questions** 27 October 2026 * When you give a whole `location` on the [client session](/sdk/api/create-client-session), Link no longer shows the address screen before signing in. * Link skips the model picker when every model of the brand is added the same way. * No new SDK version needed. **Meter readers** 20 October 2026 * **[Meter readers](/sdk/meters)**: a client session with `device_type: "meter"` adds a meter reader to a site instead of a charger. * The **[Reduxi](/sdk/meters/reduxi)** P1 Ultra, set up over its own hotspot in your app (`local_hotspot`, needs `wifi` and `tcp`). * **[Chargee](/sdk/meters/chargee)** Sparky and Flint, added by the code on the reader, also in a browser (`vendor_cloud`). **Transactions** 19 October 2026 * **[List transactions](/sdk/api/list-transactions)** and **[get a transaction](/sdk/api/get-transaction)**: the charging sessions of the chargers your team owns, and of your users' chargers they let you read (`sessions:read`). One still charging is `active`, with the energy so far. The card used is a hash per integration. **Start links** 19 October 2026 * **[Start links](/sdk/web#without-an-app-or-a-server)**: a link and QR code that opens Link in a browser, without an app or a server of yours. Make one under **Settings > SDK**, for an integration whose chargers stay in your users' own accounts. **New link** replaces it at once; **Turn off** stops it. * Each person starts as a new customer, `start:` and a UUID, and joins your existing customer for their account when they sign in. * When your team is a Plugchoice reseller, new chargers get your team as their reseller. * A link that no longer works shows [`start-code-invalid`](/sdk/errors/start-code-invalid). **Set up first, then sign in** 17 October 2026 * When the charger goes to your user's own Plugchoice account, your user sets it up first and signs in after, to save it to one of their sites or a new one. A link session that ends without signing in releases the charger. * No new SDK version needed. **The SDK page** 16 October 2026 * **Settings > SDK** in Plugchoice, for teams with access to the SDK. Team admins fill in the profile for the consent screen with a logo, set each integration's accent colour and **Return URLs**, and rotate the secret: the previous one keeps working for 24 hours. * Every member sees your customers, the chargers users shared with you, and the link sessions. Admins can delete a customer. * Chargers your users shared with you show in your team's charger list. * Plugchoice gives a team access to the SDK. Without it, its integrations get [`403 sdk-access-required`](/sdk/errors/sdk-access-required). **Chargers stay in your users' accounts** 16 October 2026 * By default, a charger your user adds goes to their own Plugchoice account, and your integration gets a **grant** with the scopes they agreed to. Plugchoice can set an integration up so the chargers go to your team instead. See [Client sessions and scopes](/sdk/concepts/client-sessions). * Your user signs in to their Plugchoice account during the link session, or creates one, with a code by email, Google or Apple. * `consent_scopes` on the [client session](/sdk/api/create-client-session): what the consent screen asks for, within what Plugchoice allowed your integration. `charger:read` is always asked. A user is asked again when you ask for more. * `email` on the client session prefills signing in. * Your user can share a charger they already have in their account. In a browser, a charger only an app can set up goes to the Plugchoice app, and Link waits until it shows up in their account. * `access` on every [charger](/sdk/api/get-charger): `partner` for one your team owns, `user` with the scopes for one shared with you. A shared charger has no `site_id`. * Your profile and its review by Plugchoice, shown on the consent screen ([`profile-incomplete`](/sdk/errors/profile-incomplete) until it's reviewed). **Remove chargers and customers** 16 October 2026 * **[Remove a charger](/sdk/api/remove-charger)** (`DELETE /chargers/{charger_id}`): a user's charger only loses your access and stays in their account; one your team owns is released. * **[Remove a customer](/sdk/api/remove-customer)** (`DELETE /customers/{external_user_id}`): ends your access to their chargers, releases the ones your team holds for them, and forgets the `external_user_id`. * Both answer `204`, also for one that's gone, so retrying is safe. **Volt Time Source and Ratio io7** 9 October 2026 * The **[Volt Time Source and Source 2](/sdk/chargers/volt-time#source-and-source-2)** and the **[Ratio io7](/sdk/chargers/ratio)**, set up through the charger's own web app as its Installer, on the home network or the charger's setup network. In your app. * A Source 2 signs in with the serial number and pincode on its card, a Source with its serial number and the Installer password on its sticker. * The mobile settings show the SIM's ICCID. * No new SDK version needed. **Ratio** 9 October 2026 * **[Ratio](/sdk/chargers/ratio)** io5 and io6, over Bluetooth in your app: your user picks theirs from the chargers nearby, and the phone asks for the passcode on its sticker when it pairs. A browser can't pair with it, so there Link offers your app or setting it up by hand. Other Ratio models are set up by hand. * `ratio` for `vendor` on the [client session](/sdk/api/create-client-session). * No new SDK version needed. **The charger's connections** 8 October 2026 * The charger's connections have screens of their own: each connection with its state, address and signal, the Wi-Fi networks from the charger's own scan on the next screen, and a network's password after that. The screen keeps itself up to date. * Where the charger has that setting (SolarEdge), your user picks the one connection it uses. * No new SDK version needed. **Easee and SolarEdge** 8 October 2026 * **[Easee](/sdk/chargers/easee)**: your user signs in to Easee, or confirms Plugchoice in the Easee app, and Plugchoice becomes the charger's operator. Works in a browser too. * **[SolarEdge](/sdk/chargers/solaredge)** ONE EV Chargers, added from their sticker over Bluetooth, in your app or in Chrome and Edge. * No new SDK version needed for either. * A new onboarding method, `local_ble`, for `methods` on the [client session](/sdk/api/create-client-session). **SDK 0.4.0** 7 October 2026 * **iOS**: a privacy manifest (`PrivacyInfo.xcprivacy`), so Xcode includes the SDK in your app's privacy report. The SDK doesn't track and uses none of the APIs Apple asks a reason for. * The first version on Maven Central. **SDK 0.3.0** 7 October 2026 The first public version of the Plugchoice SDK, in beta. * **Three platforms, one version**: iOS (`PlugchoiceSDK`, Swift Package Manager), Android (`com.plugchoice:plugchoice`) and React Native (`@plugchoice/react-native`, with an Expo config plugin). * **Link**, the guided charger setup: add a charger, change its network, set it up, or reconnect it, opened with an action from your app. * **One callback for client secrets**: the SDK asks your app for a client secret when Link opens and whenever it needs a new one, passing the action so your server can scope it. * **Native tools for the hosted flow**: Wi-Fi hotspot joins, local network discovery and sessions, Bluetooth LE, raw TCP and UDP, and QR scanning. * **`transports()`** tells you what the device can do, to compare with a charger's `capabilities`. **SDK API 2026-10-07** 7 October 2026 The first version of the SDK API at `https://api.plugchoice.com/sdk/v1`. * [Client sessions](/sdk/api/create-client-session) with a required `scope`, for your users (`external_user_id`) or your own chargers. * [Link sessions](/sdk/api/get-link-session), to confirm on your server what a time through Link did. * [Chargers](/sdk/api/list-chargers) with their `capabilities`. * Date versions in the `Plugchoice-Version` header, and errors as [problem details](/sdk/errors). # Alfen Source: https://developer.plugchoice.com/sdk/chargers/alfen Add Alfen chargers from their flyer: Link finds the charger on the home network, or joins its setup hotspot, and configures it. Link sets up an Alfen charger from the flyer that came in its box. The phone finds the charger on the home Wi-Fi, or connects to its setup hotspot, signs in to it over Alfen's own HTTPS, and points it at Plugchoice. Link reads the Chargepoint ID from the charger itself and checks it against the flyer. | | | | - | - | | Models | Eve Single and Eve Double Pro-line (NG9xx) | | Onboarding method | `local_lan` (or `manual_ocpp`, by hand) | | Electrical setup | Yes | | What the phone needs | `lan`, `wifi` | | Network setup | Yes, by reconnecting it (`reconnect` has `network: true` and `needs` `lan`, `wifi`) | | In a browser | By hand, or in the Plugchoice app when the charger goes to your user's own account | ## Adding a charger **1. The flyer** The flyer has a QR code next to the charger's ID, its default password and its password recovery code. Your user scans the QR code, or types the details. **2. Finding the charger** Link looks for the charger on the Wi-Fi network the phone is on. When it isn't there, your user restarts the charger with its breaker, and the phone joins the setup network the charger opens for 15 minutes after it starts. **3. The setup** Link signs in to the charger with the flyer's password and adds it to Plugchoice. It reads the charger's settings, cards and charging history, checks how the charger reaches the internet, points it at Plugchoice, and restarts it. ![Setting up your charger: the checklist for an Alfen](/images/sdk/alfen-run-light.webp) **4. Electrical setup** Once the charger is online, Link asks about its electrical setup and applies it. What to know: * **Cards, history and the current operator come along.** Plugchoice imports the charger's cards and charging history. When the charger used another OCPP backoffice, it stays the charger's operator, with Plugchoice connected alongside. * **A changed password.** When the charger doesn't accept the flyer's password, Link offers to reset it with the recovery code. A password an installer set then stops working. * **One app at a time.** The charger allows one connection. If Eve Connect or ACE Service Installer is connected, your user closes it and tries again. * **Another charger's flyer.** When the charger it reaches isn't the one on the flyer, Link stops and asks for the right flyer. ## Reconnecting it, or changing its network The `reconnect` action gets an Alfen that's already on Plugchoice reaching Plugchoice again, or moves it to another Wi-Fi network. Your user scans the flyer again, and Link finds the charger the same way as when adding it. It checks that this is the charger being reconnected, points it at Plugchoice again when it points elsewhere, shows how it reaches the internet so your user can change its Wi-Fi, and waits until it's online. It doesn't add the charger again or read its cards and charging history again. ## What your app needs * **iOS**: `_alfen._tcp` in `NSBonjourServices`, and `NSLocalNetworkUsageDescription`. iOS only looks for the service types your app declares; without `_alfen._tcp`, Link can't find the charger on the home network. If your user denies Local Network access, Link asks them to allow it in Settings. Joining the setup hotspot uses the Hotspot Configuration entitlement, and on iOS 18 and later AccessorySetupKit when you declare it. See [iOS](/sdk/ios). * **Android**: nothing to add. See [Android](/sdk/android). * **React Native**: the config plugin declares `_alfen._tcp` for you. See [React Native](/sdk/react-native). In a browser, Link can't reach the charger, so your user sets the charger up [by hand](/sdk/chargers/other), or in the Plugchoice app when the charger goes to their own account. # Charge Amps Source: https://developer.plugchoice.com/sdk/chargers/charge-amps Add a Charge Amps Halo with the serial number and PIN on its label: the phone joins the charger's own hotspot and points it at Plugchoice under its own Chargepoint ID. Link sets up a Charge Amps Halo with the serial number and PIN on its label. Your user restarts the charger first. Then the phone joins the charger's own Wi-Fi hotspot, points the charger at Plugchoice and restarts it. It shows how the charger reaches the internet, and can connect it to Wi-Fi. Your user stays near the charger while it's set up. | | | | - | - | | Models | The Halo | | Onboarding method | `local_hotspot` (or `manual_ocpp`, by hand) | | What the phone needs | `wifi`, `socket` | | Network setup | Yes, by reconnecting it (`reconnect` has `network: true` and `needs` `wifi`, `socket`) | | In a browser | By hand, or in the Plugchoice app when the charger goes to your user's own account | ## Adding a charger **1. A restart** A Halo only opens its Wi-Fi hotspot for setup when it starts. Your user switches it off at its breaker, waits 10 seconds and switches it on again. ![Restart the charger: switch its breaker off, wait, and switch it on again](/images/sdk/charge-amps-restart-light.webp) **2. The label** The Halo's label and the papers that come with it have its serial number and an eight-digit PIN. Your user types both. The PIN is also the password of the charger's hotspot. ![Find the charger's PIN: the serial number and PIN, typed in](/images/sdk/charge-amps-label-light.webp) **3. Its connections** The phone joins the charger's hotspot (`HALO_` and the last 7 characters of its serial number); your user taps **Join** when the phone asks. Link signs in with the PIN, checks that it's the charger on the label, and shows how the charger reaches the internet. Your user can connect it to a Wi-Fi network from the ones the charger can see, or type another. ![How the charger connects: its Wi-Fi, not connected yet](/images/sdk/charge-amps-network-light.webp) ![Choose a Wi-Fi network: the networks the charger can see](/images/sdk/charge-amps-networks-light.webp) **4. Onto Plugchoice** Link points the charger at Plugchoice and restarts it, because a Halo only takes a new OCPP address after a restart. Link waits for the charger to come back and checks that it kept the new address. Then the phone returns to its own network. **5. Online** Link adds the charger to Plugchoice by its Chargepoint ID and waits until it connects. What to know: * **Its Chargepoint ID stays.** A Halo connects as its serial number out of the box, and Link keeps whatever ID it has. * **Charge Amps' cloud stays connected.** A Halo comes connected to Charge Amps' own cloud. That cloud keeps getting the charger's data alongside Plugchoice, as Data & control, so the Charge Amps app keeps working. It isn't the charger's operator. * **The current operator comes along.** When the charger used another OCPP backoffice, it stays the charger's operator, with Plugchoice connected alongside. * **No charging history or cards.** A Halo keeps no charging history, and doesn't show its RFID cards while it's connected over OCPP, so none are imported. * **The right charger.** Link checks that the charger it reaches matches the label's serial number. A wrong PIN takes your user back to the label. * **No internet during the setup.** The phone is on the charger's hotspot for part of it, which has no internet. The SDK keeps the hosted flow working, and keeps the screen awake, because the hotspot drops when the phone locks. ## Reconnecting it, or changing its network The `reconnect` action gets a Halo that's already on Plugchoice reaching Plugchoice again, or moves it to another network, such as a new Wi-Fi router. Your user restarts the charger and types the serial number and PIN again. Link checks that the charger still connects with the Chargepoint ID it has on Plugchoice, shows its connections so your user can connect it, points it at Plugchoice and restarts it when it isn't, and waits until it's back online. It imports nothing again, and keeps the backoffices the charger has. ## What your app needs * **iOS**: the Hotspot Configuration and Access Wi-Fi Information entitlements, `NSLocalNetworkUsageDescription`, and `NSAllowsLocalNetworking` under `NSAppTransportSecurity` (its socket is plain `ws://`). On iOS 18 and later, AccessorySetupKit asks once per charger instead of on every join. See [iOS](/sdk/ios). * **Android**: the charger serves its setup over a plain WebSocket at `ws://192.168.250.1`. Android blocks plain connections in release builds unless your network security configuration allows that address. See [Android](/sdk/android). * **React Native**: the config plugin sets up iOS; Android's network security configuration is yours to set. See [React Native](/sdk/react-native). In a browser, Link can't join the hotspot, so your user sets the charger up [by hand](/sdk/chargers/other), or in the Plugchoice app when the charger goes to their own account. # Easee Source: https://developer.plugchoice.com/sdk/chargers/easee Add Easee chargers through Easee's cloud: the owner signs in, or confirms Plugchoice in the Easee app. Easee chargers are added through Easee's cloud. Plugchoice becomes the charger's operator at Easee, and Easee's cloud then connects the charger to Plugchoice. Nothing runs on the phone, so this works the same in your app and in a browser. | | | | - | - | | Models | Easee Home, Easee Charge and the other Easee chargers | | Onboarding method | `vendor_cloud` (or `manual_ocpp`, by hand) | | What the phone needs | Nothing | | Network setup | No: the Easee app changes the charger's Wi-Fi | | In a browser | Yes | ## Adding a charger Your user chooses how to connect it. ![How do you want to connect it: sign in to Easee, or use the Easee app](/images/sdk/easee-choice-light.webp) > [tab] Sign in to Easee > > **1. Sign in** > > Your user enters the email and password of the Easee account that owns the charger. Plugchoice passes them to Easee to sign in, and doesn't keep the password. > > **2. Pick the charger** > > Link lists the chargers on the account, with the operator each one has now and whether it's already on Plugchoice. Your user picks one. > > ![Which charger: the chargers on the Easee account, with their current operator](/images/sdk/easee-chargers-light.webp) > > **3. Plugchoice becomes its operator** > > Plugchoice adds the charger to the site, reads its charging history, and becomes its operator at Easee. The charger usually comes online within a minute. > [tab] Use the Easee app > > **1. Confirm Plugchoice in the Easee app** > > Link opens the Easee app (on a computer, Easee's website). Your user picks the site the charger is in and confirms Plugchoice as its operator. > > ![Confirm Plugchoice in the Easee app: open the app, pick the site, confirm](/images/sdk/easee-app-light.webp) > > **2. The serial number** > > Back in Link, your user types the charger's serial number: 8 letters and digits starting with E, on the charger's label and in the Easee app. > > **3. Online** > > Link waits until the charger connects to Plugchoice. What to know: * **The current operator can stay.** Plugchoice replaces the charger's operator at Easee. When it had one, Link names it and your user can keep it connected alongside Plugchoice. ![The charger was found, with its previous operator named and the choice to keep it](/images/sdk/easee-operator-light.webp) * **Charging history comes along** when your user signs in: Plugchoice imports the charger's sessions from Easee. * **Easee may refuse.** A charger on a site that another operator manages can't be switched from the owner's account. Link says so and offers the Easee app instead. * A charger that already has Plugchoice as its operator isn't switched again; it's just added. ## Reconnecting it The `reconnect` action offers the same two ways: signing in to Easee, or confirming Plugchoice in the Easee app (no serial number needed then). It makes Plugchoice the charger's operator again when it isn't, and waits until the charger is online. Its network is changed in the Easee app, so its `reconnect` capability has `network: false`. ## When something goes wrong Link shows these to your user and lets them try again, sign in again, or use the Easee app. You don't need to handle them. | Problem | What it means | | - | - | | [`vendor-sign-in-failed`](/sdk/errors/vendor-sign-in-failed) | Easee didn't accept the email and password. | | [`vendor-sign-in-required`](/sdk/errors/vendor-sign-in-required) | The Easee sign-in expired. | | [`vendor-not-permitted`](/sdk/errors/vendor-not-permitted) | Easee didn't let this account change the charger's operator. | | [`vendor-rate-limited`](/sdk/errors/vendor-rate-limited), [`vendor-unavailable`](/sdk/errors/vendor-unavailable), [`vendor-error`](/sdk/errors/vendor-error) | Easee is busy, can't be reached, or answered something unexpected. | If neither way works, your user can choose **By hand** and set the charger up as [another OCPP charger](/sdk/chargers/other). # Enovates Source: https://developer.plugchoice.com/sdk/chargers/enovates Add Enovates chargers from their label: the phone joins the charger's own hotspot and points it at Plugchoice under its own Chargepoint ID. Link sets up an Enovates charger, such as the ENO one, from the label in its installation guide. The phone joins the charger's own Wi-Fi hotspot, signs in to it, and points it at Plugchoice. Your user stays near the charger while it's set up. | | | | - | - | | Models | All Enovates chargers | | Onboarding method | `local_hotspot` (or `manual_ocpp`, by hand) | | What the phone needs | `wifi`, `socket` | | Network setup | Yes, by reconnecting it (`reconnect` has `network: true` and `needs` `wifi`, `socket`) | | In a browser | By hand, or in the Plugchoice app when the charger goes to your user's own account | ## Adding a charger **1. A restart** An Enovates only opens its Wi-Fi hotspot for setup when it starts. Your user switches it off at its breaker, waits 10 seconds, switches it on again, and waits until its light is back to its usual colour. ![Restart the charger: switch its breaker off, wait, and switch it on again, then wait for its light](/images/sdk/enovates-restart-light.webp) **2. The label** The installation guide has a label with an **ENO install** QR code, and above it the hotspot's name (SSID) and passkey. Your user scans the ENO install code, not the **User app** code next to it, or types the hotspot's name and passkey instead. ![Find the charger's label: the ENO install code, scanned](/images/sdk/enovates-label-light.webp) **3. The setup** The phone joins the charger's hotspot; your user taps **Join** when the phone asks. Link signs in to the charger with the passkey, checks that it's the charger on the label, and points it at Plugchoice. Before the hotspot closes, Link shows how the charger will reach the internet (Ethernet, Wi-Fi or mobile). Your user can connect it to a Wi-Fi network or change its mobile settings there. Then the phone returns to its own network. ![How the charger connects: Ethernet, Wi-Fi and its mobile connection](/images/sdk/enovates-network-light.webp) **4. Online** Link adds the charger to Plugchoice by its Chargepoint ID and waits until it connects. What to know: * **Its Chargepoint ID stays.** Link leaves the charger's Chargepoint ID as it is. A charger without one gets its serial number. * **The current operator comes along.** When the charger used another OCPP backoffice, it stays the charger's operator, with Plugchoice connected alongside. * **No cards or history.** An Enovates doesn't keep its RFID cards or charging history where Link can read them, so nothing is imported. * **The right label.** Link checks that the charger it reaches matches the label. * **No internet during the setup.** The phone is on the charger's hotspot for part of it, which has no internet. The SDK keeps the hosted flow working, and keeps the screen awake, because the hotspot drops when the phone locks. ## Reconnecting it, or changing its network The `reconnect` action gets an Enovates that's already on Plugchoice reaching Plugchoice again, or moves it to another network, such as a new Wi-Fi router or Ethernet. Your user restarts the charger and scans its label. Link checks that the charger still connects with the Chargepoint ID it has on Plugchoice, points it at Plugchoice when it doesn't, shows its connections so your user can connect it, and waits until it's back online. ## What your app needs * **iOS**: the Hotspot Configuration and Access Wi-Fi Information entitlements and `NSLocalNetworkUsageDescription`. On iOS 18 and later, AccessorySetupKit asks once per charger instead of on every join. See [iOS](/sdk/ios). * **Android**: nothing beyond the SDK's setup. The charger serves its setup over a secure WebSocket, which the SDK trusts for that charger only. See [Android](/sdk/android). * **React Native**: the config plugin sets everything up. See [React Native](/sdk/react-native). In a browser, Link can't join the hotspot, so your user sets the charger up [by hand](/sdk/chargers/other), or in the Plugchoice app when the charger goes to their own account. # go-e Source: https://developer.plugchoice.com/sdk/chargers/go-e Add go-e Chargers from their reset card: the phone joins the charger's own hotspot and points it at Plugchoice under its own Chargepoint ID. Link sets up a go-e Charger from the reset card that comes with it. The phone joins the charger's own Wi-Fi hotspot and points the charger at Plugchoice. It shows how the charger reaches the internet, and can connect it to Wi-Fi. Your user stays near the charger while it's set up. | | | | - | - | | Models | All go-e Chargers: the PRO, Gemini, Gemini flex, Core and HOME | | Onboarding method | `local_hotspot` (or `manual_ocpp`, by hand) | | What the phone needs | `wifi`, `lan`, `socket` | | Network setup | Yes, by reconnecting it (`reconnect` has `network: true` and `needs` `wifi`, `lan`, `socket`) | | In a browser | By hand, or in the Plugchoice app when the charger goes to your user's own account | ## Adding a charger **1. The reset card** The back of the reset card has the charger's serial number, its hotspot key and a QR code. Your user scans the QR code, or types the serial number and hotspot key instead. The card's default password isn't needed. ![Find the reset card: the charger's code, scanned](/images/sdk/go-e-card-light.webp) **2. The setup** The phone joins the charger's hotspot (`go-e-` and its serial number); your user taps **Join** when the phone asks. Link checks that it's the charger on the card and points it at Plugchoice. It takes this at once, without a restart. **3. Its connections** Before the phone leaves the hotspot, Link shows how the charger will reach the internet: Ethernet, Wi-Fi or its own SIM, with the mobile network it's on. Your user can connect it to a Wi-Fi network from the ones the charger can see, or type another. Then the phone returns to its own network. ![How the charger connects: Ethernet, Wi-Fi and its mobile connection](/images/sdk/go-e-network-light.webp) ![Choose a Wi-Fi network: the networks the charger can see](/images/sdk/go-e-networks-light.webp) **4. Online** Link adds the charger to Plugchoice by its Chargepoint ID and waits until it connects. What to know: * **No restart.** A go-e keeps its hotspot on, so your user doesn't switch it off first. * **Its Chargepoint ID stays.** A go-e connects as the ID at the end of its OCPP address, and Link keeps it. A charger without one gets `go-e-` and its serial number, the name of its hotspot. * **The current operator comes along.** When the charger used another OCPP backoffice, it stays the charger's operator, with Plugchoice connected alongside. * **Its charging history comes along.** A go-e keeps its sessions in go-e's cloud. Plugchoice imports them from there, with the meter reading at the start and end of each, and the card's number where go-e has it. * **No cards.** A go-e doesn't show its RFID cards' numbers, so none are imported. * **The right card.** Link checks that the charger it reaches matches the reset card. * **No internet during the setup.** The phone is on the charger's hotspot for part of it, which has no internet. The SDK keeps the hosted flow working, and keeps the screen awake, because the hotspot drops when the phone locks. ## Reconnecting it, or changing its network The `reconnect` action gets a go-e that's already on Plugchoice reaching Plugchoice again, or moves it to another network, such as a new Wi-Fi router. Your user scans the reset card again. Link checks that the charger still connects with the Chargepoint ID it has on Plugchoice, points it at Plugchoice when it doesn't, shows its connections so your user can connect it, and waits until it's back online. It imports nothing again. ## What your app needs * **iOS**: the Hotspot Configuration and Access Wi-Fi Information entitlements, `_http._tcp` in `NSBonjourServices` (Link finds the charger on its hotspot by name), `NSLocalNetworkUsageDescription`, and `NSAllowsLocalNetworking` under `NSAppTransportSecurity` (its socket is plain `ws://`). On iOS 18 and later, AccessorySetupKit asks once per charger instead of on every join. See [iOS](/sdk/ios). * **Android**: the charger serves its setup over a plain WebSocket (`ws://`) at an address its hotspot gives out, so your network security configuration has to allow plain connections in general, not to one address. Android blocks them in release builds otherwise. See [Android](/sdk/android). * **React Native**: the config plugin sets up iOS, `_http._tcp` included; Android's network security configuration is yours to set. See [React Native](/sdk/react-native). In a browser, Link can't join the hotspot, so your user sets the charger up [by hand](/sdk/chargers/other), or in the Plugchoice app when the charger goes to their own account. # Supported chargers Source: https://developer.plugchoice.com/sdk/chargers/index Which chargers Link can add, and what it can do for each one. Link adds chargers from Alfen, Charge Amps, Easee, Enovates, go-e, Peblar, Ratio, SolarEdge, Teltonika, Volt Time, Wallbox, Webasto and Zaptec with a guided setup made for each brand. It adds any other OCPP charger by hand. Your user picks their brand first. ![The brand picker: a searchable list of charger brands, with Other at the end](/images/sdk/brand-picker-light.webp) ## What each brand can do | Brand | How Link reaches it | In a browser | Charging history | RFID cards | | - | - | - | - | - | | [Alfen](/sdk/chargers/alfen) | The home network | | | | | [Charge Amps](/sdk/chargers/charge-amps) | The charger's own Wi-Fi | | | | | [Easee](/sdk/chargers/easee) | Easee's cloud | | | | | [Enovates](/sdk/chargers/enovates) | The charger's own Wi-Fi | | | | | [go-e](/sdk/chargers/go-e) | The charger's own Wi-Fi | | | | | [Peblar](/sdk/chargers/peblar) | The charger's own Wi-Fi | | | | | [Ratio](/sdk/chargers/ratio) | Bluetooth (io5, io6), the home network (io7) | | | io7 | | [SolarEdge](/sdk/chargers/solaredge) | Bluetooth | Chrome, Edge | | | | [Teltonika](/sdk/chargers/teltonika) | Bluetooth | | | When it isn't on OCPP yet | | [Volt Time](/sdk/chargers/volt-time) | Bluetooth for Wi-Fi (One, Source 2s, Two Pro), the home network (Source, Source 2), the charger's own Wi-Fi (ENO one for business) | Not the Source, Source 2 or ENO one for business | Source, Source 2 | Source, Source 2 | | [Wallbox](/sdk/chargers/wallbox) | Bluetooth | | | | | [Webasto](/sdk/chargers/webasto) | The charger's own Wi-Fi | | | | | [Zaptec](/sdk/chargers/zaptec) | Zaptec's cloud | | | | | [Other OCPP chargers](/sdk/chargers/other) | Set up by hand | | | | * **In a browser**: whether the brand's own setup runs there. Where it can't, Link offers setting the charger up by hand. A browser can't join a charger's Wi-Fi or reach the home network, and has Bluetooth only in Chrome and Edge. * **Charging history** and **RFID cards** are imported once, when the charger is added. Reconnecting imports nothing again. * **The current operator stays.** When the charger used another OCPP backoffice, it stays connected alongside Plugchoice. A Volt Time comes pointed at Plugchoice already. * **Network setup.** Link shows how the charger reaches the internet (Ethernet, Wi-Fi or mobile) and can give it a Wi-Fi, while adding it and later by reconnecting it. Not for Easee and Zaptec, whose own apps change the charger's network, nor for Volt Time's other models or chargers set up by hand. * **Every charger can be reconnected** (`reconnect`), and every brand but Volt Time can also be set up by hand, as other OCPP chargers are. Link offers both ways when the phone can do the brand's own setup, and only the manual one when it can't. * **The models and what the phone needs** for each brand are on its page. The SDK has everything a brand needs when your app is set up as its platform guide says ([iOS](/sdk/ios), [Android](/sdk/android), [React Native](/sdk/react-native)). > [!NOTE] > > This table is a guide. Before you show a button for an action, read the charger's `capabilities` from the SDK API and compare their `needs` with what the device can do. [Devices and capabilities](/sdk/concepts/capabilities) shows how. ## Skip the brand picker When you already know the brand, set `vendor` on the [client session](/sdk/api/create-client-session): `alfen`, `charge-amps`, `easee`, `enovates`, `go-e`, `peblar`, `ratio`, `solaredge`, `teltonika`, `volttime`, `wallbox`, `webasto`, `zaptec` or `other`. Link then starts at that brand's models, or skips them when every model of the brand is added the same way. To leave out a way of adding chargers, list the ones you allow in `methods`: `local_hotspot` (Charge Amps, Enovates, go-e, Peblar, Volt Time ENO one for business, Webasto), `local_lan` (Alfen, Volt Time Source and Source 2, Ratio io7), `local_ble` (Ratio, SolarEdge, Teltonika, Wallbox), `vendor_cloud` (Easee, Zaptec) and `manual_ocpp` (by hand). ## New brands Support for a brand lives in the hosted flow, not in the SDK. A new brand, or a fix for one, reaches your users without a new release of your app. # Other OCPP chargers Source: https://developer.plugchoice.com/sdk/chargers/other Add any OCPP 1.6 charger by hand: your user types its Chargepoint ID and points the charger at Plugchoice. Any charger that speaks OCPP 1.6 can join Plugchoice by hand. Your user types the charger's Chargepoint ID, and Link tells them what to set in the charger's own settings or app. Nothing runs on the phone, so this works the same in your app and in a browser. | | | | - | - | | Models | Any charger that speaks OCPP 1.6, and every model in Link's brand list | | Onboarding method | `manual_ocpp` | | Electrical setup | For some brands: read `capabilities.electrical_setup` | | What the phone needs | Nothing | | In a browser | Yes | Your user gets here by picking **Other / I don't know** in the brand list, or by choosing **By hand** for a brand that also has its own setup. ## Adding a charger **1. The setup guide** When Plugchoice has a setup guide for the model, Link opens it first. It shows where to find the Chargepoint ID and how to connect the charger to Plugchoice. **2. The Chargepoint ID** Your user types the Chargepoint ID: the ID the charger uses to identify itself over OCPP, which isn't its serial number. For some models Link asks for the serial number instead and builds the ID from it, and models that come with a pincode ask for it too. ![What is the Chargepoint ID? A field for the ID, with help on where to find it](/images/sdk/manual-identity-light.webp) **3. Point the charger at Plugchoice** Link adds the charger to Plugchoice, then shows the backend URL and the Chargepoint ID to enter in the charger's settings or app, each with a copy button. Your user saves them, restarts the charger if it asks, and taps **I did this**. ![Point the charger at Plugchoice: the backend URL and the Chargepoint ID, with copy buttons](/images/sdk/manual-ocpp-address-light.webp) **4. Online** Link waits until the charger connects. When that takes long, it suggests checking the Chargepoint ID, which is case-sensitive, the backend URL and the charger's internet. Your user can also go on without waiting: the charger keeps its place, and Plugchoice applies its settings the first time it connects. A charger that's already online, or that came pointed at Plugchoice (models with a pincode), skips the backend URL. ## When the charger is already registered Plugchoice knows every charger by its Chargepoint ID, so Link checks the ID before it adds the charger. * **At another site the same account manages**: Link offers to move it here. See [`charger-at-other-site`](/sdk/errors/charger-at-other-site). * **In another account**: Link offers to claim it. Plugchoice emails the current owner, and while the charger is online and not open to the public, your user can prove they're at the charger by plugging in. See [`identity-taken`](/sdk/errors/identity-taken). A claim can succeed after the link session has ended. The charger then appears at the link session's site, and the link session lists the claim. See [Link sessions](/sdk/concepts/link-sessions). # Peblar Source: https://developer.plugchoice.com/sdk/chargers/peblar Add Peblar chargers from their card: the phone joins the charger's own hotspot and configures it. Link sets up a Peblar charger from the card that came with it. The phone joins the charger's own Wi-Fi hotspot, signs in to the charger, and points it at Plugchoice. Your user stays near the charger while it's set up. | | | | - | - | | Models | Peblar chargers with a commissioning card | | Onboarding method | `local_hotspot` (or `manual_ocpp`, by hand) | | What the phone needs | `wifi`, `http`, `socket` | | Network setup | Yes, by reconnecting it (`reconnect` has `network: true` and `needs` `wifi`, `http`, `socket`) | | In a browser | By hand, or in the Plugchoice app when the charger goes to your user's own account | ## Adding a charger **1. A restart** A Peblar opens its own Wi-Fi hotspot for setup when it starts, so your user restarts it first with its breaker. ![Restart the charger: switch its breaker off, wait, and switch it on again](/images/sdk/peblar-restart-light.webp) **2. The card** The card has an **Installation Wizard** QR code and a device password. Your user scans the Installation Wizard code (not the Web App code) and types the password. They can also type the hotspot's details instead. ![Find the charger's card: scan the Installation Wizard code, then type the device password](/images/sdk/peblar-card-light.webp) **3. The setup** The phone joins the charger's hotspot; your user taps **Join** when the phone asks. Link signs in to the charger, reads its settings, cards and charging history, and points it at Plugchoice, which restarts the charger. Before the hotspot closes, Link shows how the charger will reach the internet (Ethernet, Wi-Fi or mobile), and your user can connect it to a Wi-Fi network there. Then the phone returns to its own network. ![Setting up your charger: the checklist for a Peblar](/images/sdk/peblar-run-light.webp) **4. Online** Link waits until the charger connects to Plugchoice. What to know: * **Cards, history and the current operator come along.** Plugchoice imports the charger's cards and charging history. When the charger used another OCPP backoffice, it stays the charger's operator, with Plugchoice connected alongside. Your user sees all of it before it's saved. * **The right card.** Link checks that the charger it reaches matches the card. * **No internet during the setup.** The phone is on the charger's hotspot for part of it, which has no internet. The SDK keeps the hosted flow working, and keeps the screen awake, because the hotspot drops when the phone locks. ## Reconnecting it, or changing its network The `reconnect` action gets a Peblar that's already on Plugchoice reaching Plugchoice again, or moves it to another network, such as a new Wi-Fi router or Ethernet. Your user restarts the charger and scans its card. Link checks that the charger points at Plugchoice and points it there again when it doesn't (that restarts the charger), shows its connections (Ethernet, Wi-Fi or mobile) so your user can connect it, and waits until it's back online. It doesn't read the charger's cards or charging history again. ## What your app needs * **iOS**: the Hotspot Configuration and Access Wi-Fi Information entitlements, `NSLocalNetworkUsageDescription`, and `NSAllowsLocalNetworking` under `NSAppTransportSecurity` (the charger answers over plain HTTP). On iOS 18 and later, AccessorySetupKit asks once per charger instead of on every join. See [iOS](/sdk/ios). * **Android**: the charger serves its setup over plain HTTP on its hotspot (`http://172.16.0.1`). Android blocks plain HTTP in release builds unless your network security configuration allows it. See [Android](/sdk/android). * **React Native**: the config plugin sets up iOS; Android's network security configuration is yours to set. See [React Native](/sdk/react-native). In a browser, Link can't join the hotspot, so your user sets the charger up [by hand](/sdk/chargers/other), or in the Plugchoice app when the charger goes to their own account. # Ratio Source: https://developer.plugchoice.com/sdk/chargers/ratio Add Ratio io5 and io6 chargers picked from the ones nearby: the phone sets them up over Bluetooth. Link sets up a Ratio io5 or io6 with the passcode on its sticker. The phone reaches the charger over Bluetooth, shows how it connects to the internet (and connects it to Wi-Fi when needed), and points it at Plugchoice. Your user stays near the charger while it's set up. | | | | - | - | | Models | io5 and io6. The io7 is set up through its own web app, as the [Volt Time Source](/sdk/chargers/volt-time#source-and-source-2) is, with the Installer password on its installation label. When it isn't on the phone's network, the phone joins its setup network, `ratio_io7` or `ratio_io7_` and a code, with the name and password on that label | | Onboarding method | `local_ble` (or `manual_ocpp`, by hand) | | What the phone needs | `ble` | | Network setup | Yes, by reconnecting it (`reconnect` has `network: true` and `needs` `ble`; for the io7 `lan`, `wifi`) | | In a browser | No: the charger pairs with a passcode, which a browser can't ask for. Link offers your app or setting it up by hand | ## Adding a charger **1. Pick the charger** Link lists the Ratio chargers nearby, by the name they advertise: `RATIO_` and the serial number, such as `RATIO_P00000000035706`. Your user picks theirs by the serial number on its sticker. Nothing is typed. ![Which charger is yours: the Ratio chargers nearby, with their signal](/images/sdk/ratio-nearby-light.webp) **2. Pairing** The phone asks for the Bluetooth passcode from the sticker in its own pairing dialog. Link never sees the passcode. Plugchoice then registers the charger under that name, its Chargepoint ID. **3. The setup** Link sets the charger's timezone to the phone's and reads which backoffice it uses. Then it shows how the charger connects: Wi-Fi, and Ethernet where the charger reports it. Your user can set up Wi-Fi by picking a network from the charger's own scan (or typing one) and entering its password. They continue once one connection is up, and Link points the charger at Plugchoice. ![Choose a Wi-Fi network: the networks the charger found, with their signal](/images/sdk/ratio-networks-light.webp) ![How the charger connects: Wi-Fi connected, with its network and address](/images/sdk/ratio-joined-light.webp) **4. Online** Link waits until the charger connects to Plugchoice. What to know: * **OCPP is switched off for a moment.** The charger keeps its backoffice while OCPP is on, so Link switches OCPP off, points it at Plugchoice and switches it on again. * **Older firmware.** A charger whose firmware has no backoffice address is set to Plugchoice through the Volt Time entry in Ratio's own list. One without that entry is asked to update with Ratio's app first. * **Its charging history comes along.** Link imports the charger's finished sessions, with the energy of each. * **The current operator comes along.** When the charger used another OCPP backoffice, it stays the charger's operator, with Plugchoice connected alongside. When it used none, your user is asked whether it keeps one. ## Reconnecting it, or changing its network The `reconnect` action gets a Ratio that's already on Plugchoice reaching Plugchoice again, or moves it to another Wi-Fi network. Link finds that charger by its name, and your user sees its connections, where they can give it another Wi-Fi. Link checks that the charger points at Plugchoice, and points it there again when it doesn't. It imports nothing again. ## What your app needs * **iOS**: `NSBluetoothAlwaysUsageDescription`. See [iOS](/sdk/ios). * **Android**: `BLUETOOTH_SCAN` and `BLUETOOTH_CONNECT`. See [Android](/sdk/android). * **React Native**: the config plugin sets them up. See [React Native](/sdk/react-native). The io7 needs what the [Volt Time Source](/sdk/chargers/volt-time#source-and-source-2) needs on iOS: `_http._tcp` in `NSBonjourServices`, `NSLocalNetworkUsageDescription`, and the Hotspot Configuration and Access Wi-Fi Information entitlements. In a browser, Link offers your app (the Plugchoice app, on Plugchoice's own page) or setting the charger up [by hand](/sdk/chargers/other). A browser can reach the charger over Bluetooth but can't pair with it. # SolarEdge Source: https://developer.plugchoice.com/sdk/chargers/solaredge Add SolarEdge ONE EV Chargers from their sticker: the phone sets them up over Bluetooth. Link sets up a SolarEdge ONE EV Charger from the sticker on the charger (and on the cover of its manual). The phone reaches the charger over Bluetooth, shows how it connects to the internet (and connects it to Wi-Fi when needed), and points it at Plugchoice. Your user stays near the charger while it's set up. | | | | - | - | | Models | ONE EV Charger and ONE EV Charger Pro | | Onboarding method | `local_ble` (or `manual_ocpp`, by hand) | | What the phone needs | `ble` | | Network setup | Yes, by reconnecting it (`reconnect` has `network: true` and `needs` `ble`) | | In a browser | Yes, in Chrome and Edge (Web Bluetooth) | ## Adding a charger **1. The sticker** The sticker's QR code has the charger's serial number and PIN. Your user scans it, or types the serial number (as printed above the QR code, such as `S612344-012345678-90`) and the PIN instead. The serial number gives the charger's Chargepoint ID, so Plugchoice registers the charger before the phone reaches it. ![Scan the charger's sticker: the scanned charger, with Continue](/images/sdk/solaredge-sticker-light.webp) **2. The setup** The phone finds the charger over Bluetooth and signs in with the PIN. Link reads which backoffice the charger uses, then shows how the charger connects: Ethernet, Wi-Fi or mobile, as the model has them. The charger uses one of them, and your user can choose which; with Wi-Fi it switches to mobile when the signal is too weak. The charger doesn't report whether its Ethernet cable is in, so Link shows Ethernet as in use or not. Your user can also set up Wi-Fi by picking a network from the charger's own scan (or typing one) and entering its password. Nothing changes unless they do. They continue once one connection is up, and Link points the charger at Plugchoice with a password of its own. ![How the charger connects: Ethernet in use, Wi-Fi to set up, and which one to connect through](/images/sdk/solaredge-network-light.webp) ![Choose a Wi-Fi network: the networks the charger found, with their signal](/images/sdk/solaredge-networks-light.webp) **3. Online** Link waits until the charger connects to Plugchoice. What to know: * **The current operator comes along.** When the charger used another OCPP backoffice, it stays the charger's operator, with Plugchoice connected alongside. When it used none, your user is asked whether it keeps one. * **SolarEdge stays connected.** SolarEdge's own backoffice keeps getting the charger's messages through Plugchoice, so the SolarEdge app keeps working. * **The charger is locked to Plugchoice.** Link gives the charger a new OCPP password, and Plugchoice only accepts the charger with it. * **The right sticker.** The charger checks the serial number and the PIN. A wrong PIN or another charger's sticker sends your user back to scan it again. ## Reconnecting it, or changing its network The `reconnect` action gets a SolarEdge that's already on Plugchoice reaching Plugchoice again, or moves it to another Wi-Fi network. Your user scans the sticker of that charger and sees its connections, where they can give it another Wi-Fi. Link checks that the charger points at Plugchoice, and points it there again when it doesn't, keeping the password Plugchoice knows. It imports nothing again. ## What your app needs * **iOS**: `NSBluetoothAlwaysUsageDescription`, and the camera for the sticker (`NSCameraUsageDescription`). See [iOS](/sdk/ios). * **Android**: `BLUETOOTH_SCAN` and `BLUETOOTH_CONNECT`. Scanning the sticker needs no camera permission. See [Android](/sdk/android). * **React Native**: the config plugin sets them up. See [React Native](/sdk/react-native). In a browser without Bluetooth (Safari, Firefox), Link offers setting the charger up [by hand](/sdk/chargers/other) instead. # Teltonika Source: https://developer.plugchoice.com/sdk/chargers/teltonika Add a TeltoCharge picked from the ones nearby: the phone sets it up over Bluetooth, with the pairing code on its sticker. Link sets up a Teltonika TeltoCharge with the pairing code on its sticker. The phone reaches the charger over Bluetooth, imports its charging history (and its RFID cards, when it isn't on OCPP yet), shows how it connects to the internet (and connects it to Wi-Fi when needed), and points it at Plugchoice. Your user stays near the charger while it's set up. | | | | - | - | | Models | Every TeltoCharge: the TeltoCharge and the EVC 2 | | Onboarding method | `local_ble` (or `manual_ocpp`, by hand) | | What the phone needs | `ble` | | Network setup | Yes, by reconnecting it (`reconnect` has `network: true` and `needs` `ble`) | | In a browser | No: the charger pairs with a code, which a browser can't ask for. Link offers your app or setting it up by hand | ## Adding a charger **1. The pairing code** Link shows where the charger's pairing code is: the last 6 digits of the installer code, on the sticker on the charger's middle plate (or in its manual), with a drawing of the sticker. ![Find the charger's pairing code: the last 6 digits of the installer code on its sticker, with a drawing of the sticker](/images/sdk/teltonika-code-light.webp) **2. Pick the charger** Link lists the TeltoCharges nearby, by the name they advertise, such as `TeltoCharge-153816` or `TeltoCharge2-a1b2c3`. Your user picks theirs. ![Which charger is yours: the TeltoCharges nearby, with their signal](/images/sdk/teltonika-nearby-light.webp) **3. Pairing** The phone asks for the pairing code in its own pairing dialog. Link never sees the code. Plugchoice then registers the charger under its Chargepoint ID. **4. The setup** Link imports the charger's charging history and shows how it connects. Your user can set up Wi-Fi by picking a network from the charger's own scan (or typing one) and entering its password. They continue once one connection is up, and Link points the charger at Plugchoice. ![Choose a Wi-Fi network: the networks the charger found](/images/sdk/teltonika-networks-light.webp) **5. Online** Link waits until the charger connects to Plugchoice. What to know: * **It pairs only just after it starts.** A TeltoCharge accepts a new phone in the first 5 minutes after it's switched on, and three wrong codes lock it until it restarts. When the phone doesn't ask for the code, Link tells your user to switch the charger off and on, and try again. * **Its Chargepoint ID stays.** Link leaves the charger's Chargepoint ID as it is. A charger without one gets its serial number. * **The current operator comes along.** When the charger used another OCPP backoffice, it stays the charger's operator, with Plugchoice connected alongside. That backoffice's OCPP password isn't passed on. * **Its charging history comes along.** Link imports the charger's sessions of the last two years, with the energy of each. A TeltoCharge doesn't record which card started a session. * **Its RFID cards come along when it isn't on OCPP yet.** A charger already on an OCPP backoffice leaves its cards to that backoffice and keeps none of its own. * **Scanning for Wi-Fi drops its connection for a few seconds.** The charger is back on its network shortly after. ## Reconnecting it, or changing its network The `reconnect` action gets a TeltoCharge that's already on Plugchoice reaching Plugchoice again, or moves it to another Wi-Fi network. Your user picks the charger from the ones nearby, and Link checks that it connects with the Chargepoint ID it has on Plugchoice. Link points the charger at Plugchoice again when it doesn't point there. Your user sees its connections, where they can give it another Wi-Fi, and Link waits until it's back online. It imports nothing again. ## What your app needs * **iOS**: `NSBluetoothAlwaysUsageDescription`. See [iOS](/sdk/ios). * **Android**: `BLUETOOTH_SCAN` and `BLUETOOTH_CONNECT`. See [Android](/sdk/android). * **React Native**: the config plugin sets them up. See [React Native](/sdk/react-native). In a browser, Link offers your app (the Plugchoice app, on Plugchoice's own page) or setting the charger up [by hand](/sdk/chargers/other). # Volt Time Source: https://developer.plugchoice.com/sdk/chargers/volt-time Add Volt Time chargers with their serial number and pincode, give the One, Source 2s and Two Pro their network over Bluetooth, and set up the Source and Source 2 through their own web app. Volt Time chargers leave the factory pointed at Plugchoice. Link adds one with the serial number and the pincode on the card that came with it. When the charger has no internet yet, Link gives a One or Source 2s its Wi-Fi over Bluetooth. A Two Pro always gets a Bluetooth check after it's added. | | | | - | - | | Models | One, Source, Source 2, Source 2s, Two Pro, the ENO one for business, and other Volt Time models | | Onboarding method | `manual_ocpp`, with a pincode; the Source and Source 2 also `local_lan`; the ENO one for business `local_hotspot`, over its own hotspot after a restart | | Network setup | One, Source 2s and Two Pro over Bluetooth (`reconnect` has `network: true` and `needs` `ble`); Source and Source 2 through their web app (`needs` `lan`, `wifi`); ENO one for business over its hotspot (`needs` `wifi`, `socket`) | | Electrical setup | Yes | | In a browser | Yes, except the Source, Source 2 and ENO one for business. Network setup needs Web Bluetooth: Chrome or Edge on Android, Windows, macOS or ChromeOS. | ## Adding a charger **1. Serial number and pincode** Your user picks Volt Time and the model, then types the serial number and the pincode printed on the card. Link adds the charger to Plugchoice. The pincode proves your user has the charger in hand. ![The serial number screen, with fields for the serial number and the pincode](/images/sdk/one-identity-light.webp) **2. Its internet** A charger that's already online goes straight on. An offline One or Source 2s gets its network over Bluetooth, as below. A Two Pro goes over Bluetooth even when it's online, so Link can check its OCPP address and its connection. Other Volt Time models connect by their own network; Link waits for them to come online. **3. Electrical setup** Once the charger is online, Link asks about its electrical setup, such as the rating of its overcurrent protection and its current limit, and applies it. ## Wi-Fi over Bluetooth Your user stays near the charger. The phone finds it over Bluetooth by its Chargepoint ID, which is the charger's Bluetooth name. Each setup also checks that the charger points at Plugchoice, and corrects it when it doesn't. ### One The One can't tell the phone about its network, so Link asks for the Wi-Fi first: the network name and the password. A user whose charger is connected by cable or SIM can skip this. ![Connect your charger to Wi-Fi: network name and password fields, and a Connect button](/images/sdk/one-wifi-light.webp) ![Setting up your charger: a checklist from finding the charger to sending the Wi-Fi details](/images/sdk/one-run-light.webp) Link then sends the details to the charger, which restarts and joins the Wi-Fi. Link waits until the charger is online. When that takes long, it suggests checking the network name and password, and lets your user enter them again. ![Waiting for the charger to come online after it restarts and joins the Wi-Fi](/images/sdk/one-waiting-light.webp) ### Source 2s The Source 2s reports its connections, so Link doesn't ask for anything first. The setup shows how the charger reaches the internet, on a screen of its own: Ethernet, Wi-Fi, or mobile when it has a SIM. Your user can open Wi-Fi to pick a network from the charger's own scan, or type a hidden one, and enter its password. They continue once one connection is up, and the setup goes on. ![How the charger connects: Ethernet and Wi-Fi, with the Wi-Fi connected](/images/sdk/s2s-panel-light.webp) ![The Wi-Fi networks the charger found nearby](/images/sdk/s2s-scan-light.webp) If the charger refuses the connection, Link says it's locked to another app. Your user removes it there and tries again. ### Two Pro The Two Pro asks for its Bluetooth PIN before it can be set up. This is not the pincode it was added with. Your user types it as it came with the charger, capitals and small letters as given. ![Type the charger's PIN: one field for the Bluetooth PIN](/images/sdk/two-pro-pin-light.webp) ![How the charger connects: Wi-Fi, not connected yet](/images/sdk/two-pro-panel-light.webp) Link then finds the charger, signs in with the PIN, checks that it points at Plugchoice and corrects it when it doesn't. It shows how the charger reaches the internet: Wi-Fi, Ethernet or mobile, where the charger has them. The Two Pro doesn't list the networks it can see, so your user types the Wi-Fi network name and password, or sets the SIM's APN. Link restarts the charger only when something changed, and never while it's charging. Then it waits until the charger is online. A wrong PIN takes your user back to the PIN. ## Changing the network later Open Link with the `reconnect` action and the charger's id to change its Wi-Fi. Link shows the network steps (the Wi-Fi details for a One, the connections for a Source 2s or Two Pro), checks the charger's OCPP connection, waits until the charger is online, and closes. It doesn't ask the setup questions again once the setup is done. Read the charger's `capabilities.reconnect` first: for these models `network` is `true` and it `needs` `ble`. Show a **Network settings** button only when the device has `ble` too. See [Devices and capabilities](/sdk/concepts/capabilities). ## Bluetooth in your app and in browsers * **iOS**: your app needs `NSBluetoothAlwaysUsageDescription` in its Info.plist. Without it, the SDK doesn't use Bluetooth and the device has no `ble`. See [iOS](/sdk/ios). * **Android**: keep the Bluetooth permissions the library adds to your manifest. See [Android](/sdk/android). * **React Native**: the config plugin adds the iOS string for you. See [React Native](/sdk/react-native). * **Browsers**: Chrome and Edge show their own list of nearby devices; your user picks the one named after the charger's Chargepoint ID. Safari, every browser on iPhone, and Firefox have no Bluetooth. There, Link waits for the charger to come online by cable or SIM. ## Source and Source 2 Link sets up a Volt Time Source or Source 2 through the charger's own web app, signed in as its Installer account (`local_lan`, needs `lan` and `wifi`, so your app). **1. Signing in** For a Source 2, your user types the serial number (7 digits, such as `0004920`) and the pincode from the card that came with it; Link signs in with the pincode. A first Source has no pincode: your user types its serial number and the Installer password from the sticker inside it. Either can switch to the factory's Assembler account. ![Find the charger's card: the serial number and the pincode](/images/sdk/versinetic-login-light.webp) **2. Finding the charger** Link looks for the charger on the phone's Wi-Fi network. When there are several, your user picks theirs by name. When it isn't there, your user switches the charger off and on and waits until its light is no longer white. The phone then joins the charger's setup network, `VoltTime` and the serial number. Link fills in a Source 2's password, the pincode twice, and asks for it only when that doesn't work. A Source's is on its sticker, and your user types it. ![Restart the charger: switch it off and on, wait until its light is no longer white, then connect to its setup network](/images/sdk/versinetic-hotspot-light.webp) **3. The setup** Link reads the charger's Chargepoint ID and adds it to Plugchoice, points it at Plugchoice, keeping its other settings, and brings its RFID cards along, and its charging history in SDK 0.6.0 and later. Then it shows how the charger connects: Ethernet, Wi-Fi or its SIM. Your user can give it a Wi-Fi from the charger's own scan, or see its SIM's ICCID and set its APN. ![How the charger connects: Ethernet connected, Wi-Fi to set up](/images/sdk/versinetic-run-light.webp) ![Mobile settings: the SIM's ICCID, and its APN, username and password](/images/sdk/versinetic-mobile-light.webp) **4. Online** Link waits until the charger connects to Plugchoice. When it doesn't, Link logs why it may not, from the charger's own logs and network status. Reconnecting a Source or Source 2 works the same way, without adding it or importing anything again. In your app, they need more on iOS: `_http._tcp` in `NSBonjourServices`, `NSLocalNetworkUsageDescription`, and the Hotspot Configuration and Access Wi-Fi Information entitlements, because Link finds them on the network by name or joins their setup network. ## ENO one for business Link sets up an ENO one for business over its own Wi-Fi hotspot, in your app (`local_hotspot`, needs `wifi` and `socket`). Your user restarts it at its breaker first, because it only opens its hotspot when it starts, and waits until its light is back to its usual colour. Then they scan the **ENO install** code on the label in its installation guide, or type the hotspot's name and passkey. Link points the charger at Plugchoice, keeping its Chargepoint ID, and shows its connections so your user can connect it to Wi-Fi. A charger that already connects to Plugchoice is left as it is. In a browser, your user sets it up [by hand](/sdk/chargers/other), or in the Plugchoice app when the charger goes to their own account. On iOS your app needs the Hotspot Configuration and Access Wi-Fi Information entitlements and `NSLocalNetworkUsageDescription`. Android needs nothing beyond the SDK's setup. # Wallbox Source: https://developer.plugchoice.com/sdk/chargers/wallbox Add a Wallbox picked from the ones nearby: the phone sets it up over Bluetooth, with the passcode from the Wallbox app. Link sets up a Wallbox with the Bluetooth passcode the Wallbox app shows for it. The phone reaches the charger over Bluetooth, imports its charging history, shows how it connects to the internet (and connects it to Wi-Fi when needed), and points it at Plugchoice. Your user stays near the charger while it's set up. | | | | - | - | | Models | Pulsar Plus, Pulsar Plus Socket, Pulsar Max, Pulsar Pro, Commander 2, Copper SB, Quasar and Quasar 2. Not the original Pulsar or the Supernova | | Onboarding method | `local_ble` (or `manual_ocpp`, by hand) | | What the phone needs | `ble` | | Network setup | Yes, by reconnecting it (`reconnect` has `network: true` and `needs` `ble`) | | In a browser | No: the charger pairs with a passcode, which a browser can't ask for. Link offers your app or setting it up by hand | ## Adding a charger **1. The passcode** Link shows where the charger's Bluetooth passcode is: in the Wallbox app, the charger's settings, **Charger info**. Your user notes it, with the serial number shown there. ![Find the charger's Bluetooth passcode: open the Wallbox app, its settings, then Charger info](/images/sdk/wallbox-passcode-light.webp) **2. Pick the charger** Link lists the Wallbox chargers nearby, by the name they advertise: `WB` and the serial number, such as `WB377275`. Your user picks theirs. ![Which charger is yours: the Wallbox chargers nearby, with their signal](/images/sdk/wallbox-nearby-light.webp) **3. Pairing** The phone asks for the Bluetooth passcode in its own pairing dialog. Link never sees the passcode. Plugchoice then registers the charger under its Chargepoint ID. **4. The setup** Link imports the charger's charging history and shows how it connects. Your user can set up Wi-Fi by picking a network from the charger's own scan (or typing one) and entering its password. They continue once one connection is up, and Link points the charger at Plugchoice. ![Choose a Wi-Fi network: the networks the charger found, with their signal](/images/sdk/wallbox-networks-light.webp) **5. Online** Link waits until the charger connects to Plugchoice. What to know: * **Its Chargepoint ID stays.** Link leaves the charger's Chargepoint ID as it is. A charger without one gets its serial number. * **The current operator comes along.** When the charger used another OCPP backoffice, it stays the charger's operator, with Plugchoice connected alongside. That backoffice's OCPP password isn't passed on. * **Its charging history comes along.** Link imports the charger's finished sessions, with the energy of each. A Wallbox doesn't record which card started a session, so no RFID cards are imported. * **Its software.** A charger whose software can't take a backoffice address over Bluetooth asks your user to update it in the Wallbox app first. * **The Wallbox app.** Once the charger is on OCPP, the Wallbox app's cloud features may stop working for it. The Wallbox app still reaches it over Bluetooth. ## Reconnecting it, or changing its network The `reconnect` action gets a Wallbox that's already on Plugchoice reaching Plugchoice again, or moves it to another Wi-Fi network. Your user picks the charger from the ones nearby, and Link checks that it connects with the Chargepoint ID it has on Plugchoice. Link points the charger at Plugchoice again when it doesn't point there. Your user sees its connections, where they can give it another Wi-Fi, and Link waits until it's back online. It imports nothing again. ## What your app needs * **iOS**: `NSBluetoothAlwaysUsageDescription`. See [iOS](/sdk/ios). * **Android**: `BLUETOOTH_SCAN` and `BLUETOOTH_CONNECT`. See [Android](/sdk/android). * **React Native**: the config plugin sets them up. See [React Native](/sdk/react-native). In a browser, Link offers your app (the Plugchoice app, on Plugchoice's own page) or setting the charger up [by hand](/sdk/chargers/other). A browser can reach the charger over Bluetooth but can't pair with it. # Webasto Source: https://developer.plugchoice.com/sdk/chargers/webasto Add a Webasto Next from the label in its manual: the phone joins the charger's own hotspot and points it at Plugchoice. Link sets up a Webasto Next from the label that comes in its manual. The phone joins the charger's own Wi-Fi hotspot, signs in to it and points it at Plugchoice. It shows how the charger reaches the internet, and can connect it to Wi-Fi. Your user stays near the charger while it's set up. | | | | - | - | | Models | The Next, 11 and 22 kW. Not the Unite. | | Onboarding method | `local_hotspot` (or `manual_ocpp`, by hand) | | What the phone needs | `wifi`, `lan` | | Network setup | Yes, by reconnecting it (`reconnect` has `network: true` and `needs` `wifi`, `lan`) | | In a browser | By hand, or in the Plugchoice app when the charger goes to your user's own account | ## Adding a charger **1. The label** The Next's manual has a label with Network on it: the charger's serial number, its master password, its Wi-Fi key and a QR code. Your user scans the QR code, or types the serial number, Wi-Fi key and master password instead. ![Find the charger's label: the charger's code, scanned](/images/sdk/webasto-label-light.webp) **2. The setup** The phone joins the charger's hotspot (its serial number, `NEXT-WS` and six digits); your user taps **Join** when the phone asks. Link signs in to the charger with its master password, checks that it's the charger on the label and points it at Plugchoice. It takes this at once, without a restart. **3. Its connections** Before the phone leaves the hotspot, Link shows how the charger will reach the internet: Ethernet or Wi-Fi. Your user can connect it to a Wi-Fi network by typing its name and password; the Next doesn't show the networks it can see. Then the phone returns to its own network. ![How the charger connects: Ethernet and Wi-Fi](/images/sdk/webasto-network-light.webp) **4. Online** Link adds the charger to Plugchoice by its Chargepoint ID and waits until it connects. What to know: * **No restart.** A Next keeps its hotspot on, also once it's on Wi-Fi, so your user doesn't switch it off first. * **Its Chargepoint ID is its serial number**, `NEXT-WS` and six digits, and stays that way: nobody can change it. * **The current operator comes along.** When the charger used another OCPP backoffice, it stays the charger's operator, with Plugchoice connected alongside. Webasto's own backend the charger comes with doesn't count when the charger never connected to it. * **No history or cards.** A Next doesn't show its charging sessions or its RFID cards, so none are imported. * **The right label.** Link checks that the charger it reaches is the one on the label. * **A changed password.** When the charger's master password was changed, your user types the new one instead of scanning the label. * **No internet during the setup.** The phone is on the charger's hotspot for part of it, which has no internet. The SDK keeps the hosted flow working, and keeps the screen awake, because the hotspot drops when the phone locks. ## Reconnecting it, or changing its network The `reconnect` action gets a Next that's already on Plugchoice reaching Plugchoice again, or moves it to another network, such as a new Wi-Fi router. Your user scans the label again. Link checks that it's the charger on Plugchoice, points it at Plugchoice when it isn't, shows its connections so your user can connect it, and waits until it's back online. It imports nothing again. ## What your app needs * **iOS**: the Hotspot Configuration and Access Wi-Fi Information entitlements, and `NSLocalNetworkUsageDescription`. On iOS 18 and later, AccessorySetupKit asks once per charger instead of on every join. See [iOS](/sdk/ios). * **Android**: nothing more. The charger serves its setup over HTTPS with a certificate of its own, which Link checks against the charger it joined. See [Android](/sdk/android). * **React Native**: the config plugin sets up iOS. See [React Native](/sdk/react-native). In a browser, Link can't join the hotspot, so your user sets the charger up [by hand](/sdk/chargers/other), or in the Plugchoice app when the charger goes to their own account. # Zaptec Source: https://developer.plugchoice.com/sdk/chargers/zaptec Add Zaptec chargers by signing in to the owner's Zaptec account. Plugchoice switches the installation over. Zaptec chargers are added through Zaptec's cloud. Your user signs in with the Zaptec account that owns the charger, picks it, and Plugchoice switches the charger's installation over to Plugchoice. Nothing runs on the phone, so this works the same in your app and in a browser. | | | | - | - | | Models | Chargers in a Zaptec installation | | Onboarding method | `vendor_cloud` (or `manual_ocpp`, by hand) | | What the phone needs | Nothing | | In a browser | Yes | ## Adding a charger **1. Sign in to Zaptec** Your user picks Zaptec and **Sign in to Zaptec**, then enters the email and password they use in the Zaptec app. Plugchoice passes them to Zaptec to sign in, and doesn't keep the password. ![Sign in to Zaptec: email and password fields](/images/sdk/zaptec-sign-in-light.webp) **2. Pick the charger** Link lists the chargers on the account, with whether each is online and whether it's already connected to Plugchoice or to another operator. Your user picks one and taps **Connect**. ![The chargers on the Zaptec account, with the one to connect selected](/images/sdk/zaptec-chargers-light.webp) **3. Plugchoice switches the installation** Plugchoice adds the chargers to the site, collects their charging history, and switches the installation to Plugchoice in Zaptec. The chargers usually come online within a minute. What to know: * **The whole installation comes along.** Zaptec switches every charger in an installation at once, so Link adds all of them to the site. The [link session](/sdk/concepts/link-sessions) then lists each of them in its `devices`. * **Only an owner or maintainer** of the installation in Zaptec can connect it. Link shows the chargers your user may not change, but they can't pick them. * **The charger must be online in Zaptec.** Zaptec only switches a charger it can reach. * **The current operator stays connected.** When the installation used another OCPP backoffice, it stays the operator, with Plugchoice connected alongside, so what your user has today keeps working. * **A charge card for plug-in charging.** When the installation had no backoffice before, Plugchoice adds a card to the site, and sessions that start when a car plugs in are logged under it. * An installation that already points at Plugchoice isn't switched again; its chargers are just added. ## Reconnecting it The `reconnect` action shows your user the steps to point a Zaptec at Plugchoice by hand, and waits until it's back online. Link can't change a Zaptec's network. ## When something goes wrong Link shows these to your user and lets them try again or sign in again. You don't need to handle them. | Problem | What it means | | - | - | | [`vendor-sign-in-failed`](/sdk/errors/vendor-sign-in-failed) | Zaptec didn't accept the email and password. | | [`vendor-sign-in-required`](/sdk/errors/vendor-sign-in-required) | The Zaptec sign-in expired. | | [`vendor-not-permitted`](/sdk/errors/vendor-not-permitted) | This account may not change the installation. | | [`vendor-charger-offline`](/sdk/errors/vendor-charger-offline) | Zaptec can't reach the charger. | | [`vendor-rate-limited`](/sdk/errors/vendor-rate-limited), [`vendor-unavailable`](/sdk/errors/vendor-unavailable), [`vendor-error`](/sdk/errors/vendor-error) | Zaptec is busy, can't be reached, or answered something unexpected. | If signing in to Zaptec isn't possible, your user can choose **By hand** and set the charger up as [another OCPP charger](/sdk/chargers/other). # Actions Source: https://developer.plugchoice.com/sdk/concepts/actions What your app opens Link for: add a charger, set it up, or reconnect it (which also changes its network). Your app opens Link with an **action**. The action says what the link session does; the hosted flow decides how, for each brand and model. | Action | What your user does | Needs | | - | - | - | | `add` | Adds a charger: picks the brand and model, sets it up and connects it to Plugchoice | A scope that allows adding: `sites`, `location` or `new_site` | | `setup` | Answers the electrical setup questions: phases, maximum current, grid type, phase rotation | `chargerId`; the charger's `electrical_setup` capability | | `reconnect` | Gets a charger reaching Plugchoice again, or moves it to another network, the way its brand connects | `chargerId` | Every action but `add` works on one charger, which must be in the client session's scope. See [Client sessions and scopes](/sdk/concepts/client-sessions). ## Open an action | Action | iOS | Android | React Native | | - | - | - | - | | Add a charger | `.addCharger()`, `.addCharger(siteId:)` | `LinkAction.addCharger()`, `LinkAction.addCharger(siteId)` | `{ action: 'add', siteId? }` | | Set it up | `.setup(chargerId:)` | `LinkAction.setup(chargerId)` | `{ action: 'setup', chargerId }` | | Reconnect it | `.reconnect(chargerId:)` | `LinkAction.reconnect(chargerId)` | `{ action: 'reconnect', chargerId }` | | A newer action | `.custom("name", chargerId:)` | `LinkAction.custom("name", chargerId, siteId)` | `{ action: 'name', chargerId?, siteId? }` | The SDK passes the action to the hosted flow without reading it. A new action therefore works in an SDK you already shipped, through the custom form, before the SDK gets a helper for it. ## Add a charger `add` is the default. Your user agrees to share their charger with you (the first time), picks the brand and model, and follows the steps for it: joining the charger's hotspot, finding it on the home network, sending it the Wi-Fi over Bluetooth, signing in to the brand's account, or typing its Chargepoint ID. Link waits until the charger is online, asks the electrical setup questions for models that have them, shows what it saves (settings, cards, charging history and the operator, asking whether your user uses one when the charger had none), and closes. What each brand needs is on [Supported chargers](/sdk/chargers). ## Set a charger up `setup` asks the electrical setup questions and applies the answers to the charger: one or three phases, the maximum current per phase, the grid type and the phase rotation. Offer it where the charger's `electrical_setup` capability is `capable`. ![Link asking how the charger is connected](/images/sdk/setup-wizard-light.webp) ## Reconnect a charger, or change its network `reconnect` gets a charger reaching Plugchoice again, whether it went offline or only needs a new network, such as a new Wi-Fi router. Link reaches the charger the way its brand connects: the home network for an Alfen, a Ratio io7 or a Volt Time Source or Source 2, the brand's cloud for Easee or Zaptec, its hotspot for a Charge Amps, an Enovates, a go-e, a Peblar, a Volt Time ENO one for business or a Webasto, Bluetooth for a Ratio io5 or io6, SolarEdge, Teltonika, Wallbox or Volt Time One, Source 2s or Two Pro, or the steps to point it at Plugchoice by hand. It checks the charger's OCPP connection and sets it when it's wrong, shows the charger's connections (Wi-Fi, Ethernet or mobile) on a screen of their own where its brand reports them, with the one it uses where the charger has that setting, and waits until it's online. It imports nothing again, and asks the setup questions only when the charger's setup isn't done. Every charger can be reconnected. Use it for a **Network settings** button too: the charger's `reconnect` capability says with `network` whether Link can change its network, and with `needs` what the phone must have. See [Devices and capabilities](/sdk/concepts/capabilities). ![Link asking for the Wi-Fi network and password to send to the charger](/images/sdk/network-wifi-light.webp) The Wi-Fi for the charger ![Link confirming that the charger is online on its new network](/images/sdk/network-done-light.webp) Done ## When a charger can't do an action If the charger can't do the action here (its model has no flow for it, or the phone lacks what it needs), or the action is one the hosted flow doesn't know, Link shows what the charger can do instead and lets your user pick. ![Link asking what you want to do with the charger](/images/sdk/actions-light.webp) The result's `action` says which action the link session ended up doing. # Devices and capabilities Source: https://developer.plugchoice.com/sdk/concepts/capabilities What Plugchoice can do for a charger, what a phone can do, and how to show a button only where it works. ## Devices Link and the SDK API name every device as `{ type, id }`. `type` is `charger` or `meter` (a grid meter, see [Meters](/sdk/meters)), and `id` is its id in the SDK API. Ignore types you don't know: later SDK releases and API versions may add some. ## Capabilities Every charger from [List chargers](/sdk/api/list-chargers) and [Get a charger](/sdk/api/get-charger) has `capabilities`: what Plugchoice can do for it. ```json theme={null} "capabilities": { "electrical_setup": { "capable": true, "needs": [] }, "reconnect": { "capable": true, "needs": ["ble"], "network": true } } ``` | Capability | Action | `capable` when | | - | - | - | | `electrical_setup` | `setup` | Plugchoice can apply an electrical setup to the charger's model | | `reconnect` | `reconnect` | Always. `network` is `true` when Link can also change the charger's network (Wi-Fi, Ethernet or mobile), for a **Network settings** button | * `needs` lists what the phone or browser must be able to do for it. It's empty when the capability isn't `capable`. For `reconnect`, it's what the brand's own way of connecting needs; without it, Link still offers what it can, such as the steps to reconnect the charger by hand. * More capabilities may be added. Ignore the ones you don't know. * Capabilities follow the hosted flow: when Link learns a new brand or model, its chargers become capable without a release of your app. ## Transports `needs` holds **transports**: what the phone or browser must be able to do. | Transport | What it is | | - | - | | `wifi` | Join a device's own Wi-Fi hotspot | | `http` | Talk HTTP to a device on the local network | | `socket` | Talk WebSocket to a device on the local network | | `lan` | Find devices on the home network | | `tcp` | Talk raw TCP to a device on the local network, such as a meter reader's plain HTTP | | `ble` | Talk to a charger over Bluetooth | The SDK tells you which ones this phone and your app have, without asking for a permission: | Platform | Call | Notes | | - | - | - | | iOS | `Plugchoice.transports()` | `wifi`, `http`, `socket` always. `lan` when your Info.plist declares a service type in `NSBonjourServices`. `ble` on a device with Bluetooth (not the simulator) when your Info.plist has `NSBluetoothAlwaysUsageDescription`. | | Android | `Plugchoice.transports(context)` | `http`, `socket`, `lan` always; `wifi` on a device with Wi-Fi. `ble` on a device with Bluetooth when your app kept the SDK's Bluetooth permissions. | | React Native | `await getTransports()` | As the native platform. Rejects where the SDK isn't in the build, such as Expo Go. | | A browser | - | None, except `ble` in Chrome and Edge (Web Bluetooth: check `navigator.bluetooth`). | ## Show a button only where it works Offer an action when the charger is capable of it and the phone has everything it needs: ```ts TypeScript theme={null} type Capability = { capable: boolean; needs: string[] }; function isCapableHere(capability: Capability | undefined, transports: string[]): boolean { return !!capability?.capable && capability.needs.every((need) => transports.includes(need)); } // Show "Network settings" for this charger? It opens the `reconnect` action. const charger = await yourServer.getCharger(chargerId); // from GET /sdk/v1/chargers/{id} const { reconnect } = charger.capabilities; const showNetworkSettings = reconnect.network && isCapableHere(reconnect, await getTransports()); ``` ```swift Swift theme={null} struct Capability: Decodable { let capable: Bool; let needs: [String] } func isCapableHere(_ capability: Capability?) -> Bool { guard let capability, capability.capable else { return false } let transports = Set(Plugchoice.transports()) return capability.needs.allSatisfy(transports.contains) } ``` ```kotlin Kotlin theme={null} data class Capability(val capable: Boolean, val needs: List) fun isCapableHere(capability: Capability?, context: Context): Boolean { if (capability == null || !capability.capable) return false val transports = Plugchoice.transports(context) return capability.needs.all { it in transports } } ``` Your server reads `capabilities` with its own credentials and passes them to your app; your app checks the transports. If your app opens an action the charger can't do here anyway, Link shows what it can do instead. See [Actions](/sdk/concepts/actions). # Client sessions and scopes Source: https://developer.plugchoice.com/sdk/concepts/client-sessions What your server creates for Link, what it may reach, and how the SDK gets it. A **client session** says who Link acts for and what it may reach, for 60 minutes. Your server creates it with [Create a client session](/sdk/api/create-client-session) and hands its **client secret** to your app. Link opens any number of [link sessions](/sdk/concepts/link-sessions) with it until it expires. ## One endpoint on your server You write one endpoint, and the SDK calls it through your app: 1. Your app creates the SDK with a `fetchClientSecret` callback, once. 2. When your app opens Link for an action, the SDK calls `fetchClientSecret` with that action (`add`, `reconnect`, …, plus its `chargerId` or `siteId`), while the hosted flow loads. 3. Your callback asks your endpoint, which creates a client session scoped to that action and returns its `client_secret`. 4. When the secret runs out while Link is still open, the SDK calls `fetchClientSecret` again with the same action. Your user can take as long as they need. If the callback throws, returns an empty string or takes longer than 30 seconds, the hosted flow shows an error screen with **Try again**. If your user gives up there, Link closes with the error code `clientSecretUnavailable`. ![Link's error screen when the app couldn't give it a client secret](/images/sdk/secret-unavailable-light.webp) [Get started](/sdk/get-started) has a complete endpoint in Node. ## Who it's for | You send | The client session is for | Consent screen | | - | - | - | | `external_user_id` | One of your users. The first client session for an `external_user_id` creates that user at Plugchoice. | In their first link session, and again when one asks for more | | No `external_user_id` | Your integration's own chargers | No | `external_user_id` is your own id for the user: 1 to 200 letters, digits and `._:@-`. A Plugchoice user who calls the SDK API with their own token always acts for themselves. ### Where your users' chargers go Plugchoice sets this per integration. **Settings > SDK** shows it as **Chargers belong to**. | | Your users' own Plugchoice accounts (the default) | Your team | | - | - | - | | During the link session | Your user sets the charger up, then signs in to their Plugchoice account or creates one, with a code by email, Google or Apple | No sign-in | | The charger goes to | A site in your user's own account, which they pick or make | A site your team owns for that user | | You get | A grant with the scopes your user agreed to ([Consent and branding](/sdk/concepts/consent-and-branding)) | The charger, with every scope | | A charger they already have | They can share it with you from the link session | Not offered | When the charger stays in your user's account, two more fields apply: | Field | | | - | - | | `email` | Your user's email address, prefilled when they sign in. They can change it. It never finds or links an account by itself. | | `consent_scopes` | The scopes the consent screen asks for, and your grant gets: some of `charger:read`, `sessions:read`, `charger:control` and `site:read`, within what Plugchoice allowed your integration. `charger:read` is always asked. Leave the field out and the link session asks for all the scopes your integration may ask for. | ```json theme={null} { "external_user_id": "user-123", "email": "sam@example.com", "consent_scopes": ["charger:read", "sessions:read", "charger:control"], "scope": { "new_site": true } } ``` ## The scope The `scope` is required. It's everything the client session's link sessions may reach, so a client secret can't be used on the rest of your fleet. Name at least one of these: | Field | What it allows | | - | - | | `chargers` | Work on these chargers: `setup`, `reconnect`. Up to 100 ids. | | `sites` | Add chargers to these sites, and work on any charger at them. Up to 100 ids. | | `location` | Add chargers at this address. The first `add` link session creates its site. | | `new_site` | `add` may create a new site at an address the hosted flow asks your user for. | * Every id is checked when you create the client session. One that you may not use, or that doesn't exist, is [`404 not-found`](/sdk/errors/not-found). A scope can only narrow your access. * A scope that names nothing is [`422 scope-required`](/sdk/errors/scope-required). There is no "everything": to reach a lot, list the sites. * With `external_user_id`, the chargers and sites must be that user's. Without it, they must be at sites your integration's team owns. * When the charger stays in your user's own account, your team owns none of their sites, so `scope.sites` with an `external_user_id` is a field error ([`422 validation-failed`](/sdk/errors/validation-failed)). Use `location` or `new_site`. With `location` the hosted flow doesn't ask for the address: after signing in, your user saves the charger at that address or picks one of their own sites. The chargers in `scope.chargers` are the ones they gave you a grant on, and `setup` and `reconnect` on one need `charger:control` in that grant ([`403 scope-missing`](/sdk/errors/scope-missing)). * If your app opens an action for a charger or site outside the scope, Link can't start. It shows an error, and closes with the code `not-found`. ![Link's error screen when the charger isn't in the client session's scope](/images/sdk/scope-error-light.webp) ### Scope each action Scope the client session to only what the action is about: | Action | Scope | | - | - | | `add` with a `siteId` (your team owns the chargers) | `{ "sites": [siteId] }` | | `add` without one, address known | `{ "location": { … } }` | | `add` without one, address unknown | `{ "new_site": true }` | | `setup`, `reconnect` | `{ "chargers": [chargerId] }` | An `add` link session goes to the site the app opened it for (`siteId`, which must be in `scope.sites`). Without a `siteId` it goes to the site of `location`, else to a new site, else to the scope's only site. A scope with several sites and nothing else needs a `siteId` ([`site-required`](/sdk/errors/site-required)). A scope of chargers only can't `add`. ### Locations Send a `location` when you know where your user's charger is: ```json theme={null} { "external_user_id": "user-123", "scope": { "location": { "reference": "address-987", "name": "Home", "address": { "street": "Stationsplein", "house_number": 1, "postal_code": "1012 AB", "city": "Amsterdam", "country": "NL" }, "timezone": "Europe/Amsterdam" } } } ``` * `reference` is your own id for the address. A later client session for the same user with the same `reference` adds to the same site. * `timezone` is an IANA time zone, used for schedules and history. * `name` is `Home` when you leave it out. With `new_site` instead, the hosted flow asks your user for the address before it adds the charger. ![Link asking for the address of the charger](/images/sdk/location-light.webp) Once an `add` link session has made a site, later link sessions of the same client session add to it. ## Defaults for every link session The other fields of a client session apply to all of its link sessions: | Field | | | - | - | | `language` | The hosted flow's language, as a BCP 47 tag: `de`, `en`, `es`, `fi`, `fr`, `nl` or `zh`. Others fall back to English. | | `color_scheme` | `light`, `dark` or `system` (the default). | | `vendor` | A brand, such as `peblar`, to skip the brand picker. | | `methods` | Only offer these [onboarding methods](/sdk/chargers). | | `charger_reference` | Your own label for the charger being added, returned as its `reference`. | | `redirect_uri` | In a browser only: where to send your user afterwards. See [In a browser](/sdk/web). | | `device_type` | `charger` (the default), or `meter` for a grid meter that load balancing reads, through a reader on it such as the Reduxi P1 or a Chargee Sparky or Flint. A link session adds one kind. | ## The client secret * It starts with `cs_test_` for a test integration and `cs_live_` for a live one. Otherwise it's opaque. * It works for 60 minutes (`expires_at`), for any number of link sessions. * Plugchoice stores only a hash of it. Don't log it, and don't put it in a URL. * The SDK never puts it in a URL either: it hands it to the hosted flow directly. In a browser, `web_url` carries it in the URL fragment, which never reaches a server. # Consent and branding Source: https://developer.plugchoice.com/sdk/concepts/consent-and-branding What your users agree to, and how Link shows your name, logo and colour. ## The consent screen When a client session is for one of your users (`external_user_id`), their link session asks them to agree before it adds or shares a charger. The consent screen tells them that you use Plugchoice to connect to their chargers, and lists what you may do, one line per scope the link session asks for: | Scope | What your user agrees to | | - | - | | `charger:read` | You can see their chargers, their status and settings. Always asked. | | `sessions:read` | You can see their charging sessions. | | `charger:control` | You can control their chargers: start, stop and limit charging, and change their settings. | | `site:read` | You can see the address of their chargers. | * When your integration adds chargers to your users' own Plugchoice accounts, the link session asks for the scopes in the client session's `consent_scopes`, or for every scope Plugchoice allowed your integration when you leave it out. The screen also says "Your charger stays yours. Acme Energy only gets what you allow here." * When your team owns your users' chargers, it asks for `charger:read` and `charger:control`. * It says your user can disconnect at any time. In Plugchoice, a charger's **Apps** page lists the apps with access to it, and removes one. * The footer says the Plugchoice End User Terms apply and links the Plugchoice Privacy Policy, plus your privacy policy and terms when your profile has them. ![The consent screen with Acme Energy's accent colour](/images/sdk/consent-light.webp) With an accent colour ![The consent screen with a partner's logo](/images/sdk/consent-logo-light.webp) With a logo * **Agree and continue** records the consent and goes on. * **Not now** ends the link session: it is `abandoned` with `abandon_reason: consent_declined`, and your app gets `cancelled`. * A user who agreed once isn't asked again in later link sessions with your integration, until the consent text changes or a link session asks for a scope they didn't agree to. * Your own chargers (no `external_user_id`) and Plugchoice users' own link sessions have no consent screen. ### What the consent gives you For a charger in your user's own account, your integration gets a **grant** with the scopes they agreed to, and nothing else. [Get a charger](/sdk/api/get-charger) shows them in `access.scopes`. * `sessions:read` lets you [list the charger's transactions](/sdk/api/list-transactions). Without it, [Get a transaction](/sdk/api/get-transaction) is [`403 scope-missing`](/sdk/errors/scope-missing). * `charger:control` lets you open `setup` and `reconnect` link sessions on the charger. One integration controls a charger at a time. When another app has control, Link asks your user whether your app takes it over. If they keep it with the other app, your grant gets the other scopes, or none at all when Plugchoice set your integration up as one that needs control ([`control-held`](/sdk/errors/control-held)). * To get a scope later, start an `add` link session with it in `consent_scopes`. Your user agrees again and shares the charger again. ## Your branding Link shows your brand wherever your users see it: | Item | Where | | - | - | | Name | The top of every screen ("Acme Energy, with Plugchoice") and the consent text | | Logo | The top of every screen | | Accent colour | Buttons, check marks and progress, adjusted so it reads in light and dark | | Privacy policy URL | The consent screen | | Legal name, terms URL, support email or page | The consent screen | ![Link setting up a charger in Acme Energy's accent colour](/images/sdk/accent-run-light.webp) The accent colour ![Link showing the charger's connections in Acme Energy's accent colour](/images/sdk/accent-panel-light.webp) On every screen A team admin fills these in under **Settings > SDK** in Plugchoice: the name, legal name, privacy policy and terms URLs, a support email or page, and a logo (PNG, JPG or WebP, up to 1 MB) on the **Profile** tab, and the accent colour as `#RRGGBB` in each integration's settings. The logo and accent colour are optional; without an accent colour Link uses its own. Plugchoice reviews your profile once, when it gives your team access to the SDK. Changes you make after that show at once. Until the profile is reviewed and has a support email or page, link sessions for your users don't start ([`profile-incomplete`](/sdk/errors/profile-incomplete)). ![The consent screen without an accent colour](/images/sdk/consent-plain-light.webp) Without an accent colour ## Light, dark and language Each client session sets: * `color_scheme`: `light`, `dark`, or `system` (the default), which follows the phone. Send the one your app uses, so Link matches it. * `language`: `de`, `en`, `es`, `fi`, `fr`, `nl` or `zh`. Other languages fall back to English. See [Client sessions and scopes](/sdk/concepts/client-sessions). # Link sessions Source: https://developer.plugchoice.com/sdk/concepts/link-sessions One time through Link: its status, its result in your app, and how your server confirms it. A **link session** is one time through Link: your user adds a charger, changes its network, sets it up or reconnects it. Link opens it with a client secret when the hosted flow starts, and the SDK returns its id as `sessionId` when Link closes. Your server reads it with [Get a link session](/sdk/api/get-link-session). ## Statuses | `status` | Meaning | | - | - | | `opened` | Your user is in Link. | | `completed` | Link finished: `devices` lists what it finished, with `charger_ids` for chargers and `meter_ids` for meters. | | `abandoned` | Your user left, declined, or the flow failed: see `abandon_reason`. | | `expired` | It wasn't finished within 6 hours of opening. | `abandon_reason` is `cancelled` (your user closed Link), `consent_declined` (they chose **Not now** on the consent screen) or `error`. With `error`, `error.code` says why, for your logs, for example `wifi_join_failed` or `charger_unreachable`. New codes may be added: don't branch on them. ## The result in your app and the truth on your server When Link closes, your app gets a result with: | Field | | | - | - | | `status` | `success`, `cancelled` or `error` | | `action` | The action the link session did | | `sessionId` | The link session, or `null` when Link closed before one started | | `devices` | `{ type, id }` for each device Link reported; on `success`, the ones it finished | | `error` | On `error`: a `code` and an optional `message`. See [Errors](/sdk/errors). | The result is for your app's screens. Before your server relies on it, it reads the link session itself: 1. Your app sends `sessionId` to your server. 2. Your server calls `GET /sdk/v1/link-sessions/{id}` and checks that `external_user_id` is the signed-in user. 3. When `status` is `completed`, it stores the chargers and meters in `devices`. A link session your server didn't hear about (your app was killed, for example) is still there: you can also list a user's chargers with `GET /sdk/v1/chargers?external_user_id=…`. ## Chargers that belong to someone else When your user adds a charger that is already connected to another Plugchoice account, Link can **claim** it for them. Plugchoice emails the current owner to approve it within 7 days. While the charger is online and not open to the public, your user can also prove they're at the charger by plugging in a car. ![Link waiting for the charger's owner, with the option to prove you're at the charger by plugging in](/images/sdk/claim-light.webp) A claim can succeed after the link session has ended. The charger then appears at the link session's site. `claims` in the link session shows each claim's `status`: | `status` | Meaning | | - | - | | `pending` | Waiting for the owner, or for your user to plug in. | | `approved`, `proven`, `released` | It succeeded: the owner agreed, your user plugged in, or the owner didn't answer for a charger that had been offline for 30 days. `charger_id` is set. | | `rejected`, `expired`, `withdrawn` | It didn't: the owner said no, 7 days passed, or the link session was abandoned. | While a claim is `pending`, check the link session again later, for example once a day, or list the user's chargers. # Test and live Source: https://developer.plugchoice.com/sdk/concepts/test-and-live Build against test credentials with real chargers, then switch to live. Your integration starts in **test** mode while you build, and Plugchoice switches it to **live** when your app goes out. | | Test | Live | | - | - | - | | Client secrets | `cs_test_…` | `cs_live_…` | | The hosted flow | Shows a **Test mode** badge | No badge | | Chargers | Real chargers, really connected to Plugchoice | Real chargers, really connected to Plugchoice | There is no sandbox: a test integration runs on Plugchoice's production systems, so you test with a real charger next to you, and it ends up in a real Plugchoice account or in your team, as in live. Everything else, from the SDK API to the hosted flow, works the same in both. Plugchoice users' own link sessions are always live. ![Link with a Test mode badge](/images/sdk/test-badge-light.webp) ## Get test credentials Email [support@plugchoice.com](mailto:support@plugchoice.com) with: * your company and your app, * what you want to use the SDK for. Plugchoice gives your team access to the SDK and sets up a test integration. Then a team admin finishes it under **Settings > SDK** in Plugchoice: * the profile for the consent screen: name, legal name, privacy policy and terms URLs, a support email or page, and a logo ([Consent and branding](/sdk/concepts/consent-and-branding)), * the integration's accent colour and, if you'll open Link in a browser, its **Return URLs** ([In a browser](/sdk/web)), * the API keys: the client ID is shown there, the secret only once. **Rotate secret** gives a new secret; the previous one keeps working for 24 hours, so you can deploy the new one first. See [SDK API](/sdk/api#authentication) for how to use the client ID and secret. ## Go live When your integration works in test, email [support@plugchoice.com](mailto:support@plugchoice.com) to go live. Plugchoice switches your integration to live: from then on its client secrets start with `cs_live_` and the **Test mode** badge goes. Nothing in your app changes. # bad-request Source: https://developer.plugchoice.com/sdk/errors/bad-request The request can't be handled, for example because of the HTTP method. | Status | Title | | - | - | | `4xx` | The request cannot be handled | ## Where you see it **Your server**, on any SDK API path. ## What it means A client error that has no code of its own, such as `405` for a method the path doesn't take. `status` is the actual HTTP status. ## What to do Check the method and path against the [API reference](/sdk/api). ## Example ```json theme={null} { "type": "https://developer.plugchoice.com/sdk/errors/bad-request", "title": "The request cannot be handled", "status": 405, "code": "bad-request" } ``` # charger-at-other-site Source: https://developer.plugchoice.com/sdk/errors/charger-at-other-site The charger is at another site of the same account. | Status | Title | | - | - | | `409` | Charger is at another site | ## Where you see it Only inside the hosted flow, which handles it. You don't need to handle it in your app or on your server. ## What it means The charger is already at another site that the same caller manages. `site` names it. Your user sees "This charger is at another location" with **Move it here**, which moves it to this link session's site. ![The hosted flow offering to move a charger from another location](/images/sdk/move-light.webp) ## What to do Nothing. ## Example ```json theme={null} { "type": "https://developer.plugchoice.com/sdk/errors/charger-at-other-site", "title": "Charger is at another site", "status": 409, "code": "charger-at-other-site", "detail": "This charger is at Garage. Move it here?", "site": { "id": "7d0f6f3e-2b0b-4c55-9b1e-3c6b8f0a9e21", "name": "Garage" } } ``` # charger-offline Source: https://developer.plugchoice.com/sdk/errors/charger-offline The charger has to be online to prove a claim by plugging in. | Status | Title | | - | - | | `409` | The charger is offline | ## Where you see it Only inside the hosted flow, which handles it. You don't need to handle it in your app or on your server. ## What it means To prove a claim by plugging a car in and out, Plugchoice has to see the charger's status change, so the charger must be online. This is about claims only, not about a charger's `connection_status`. ## What to do Nothing. ## Example ```json theme={null} { "type": "https://developer.plugchoice.com/sdk/errors/charger-offline", "title": "The charger is offline", "status": 409, "code": "charger-offline", "detail": "The charger has to be online to see you plug in. Set it up first, then try again." } ``` # claim-closed Source: https://developer.plugchoice.com/sdk/errors/claim-closed The claim is no longer open. | Status | Title | | - | - | | `409` | This claim is no longer open | ## Where you see it Only inside the hosted flow, which handles it. You don't need to handle it in your app or on your server. ## What it means Plugging in can only prove a pending claim. This one was already approved, proven, rejected, released, withdrawn or expired. ## What to do Nothing. ## Example ```json theme={null} { "type": "https://developer.plugchoice.com/sdk/errors/claim-closed", "title": "This claim is no longer open", "status": 409, "code": "claim-closed" } ``` # claim-exists Source: https://developer.plugchoice.com/sdk/errors/claim-exists There is already an open claim on this charger. | Status | Title | | - | - | | `409` | Already claimed | ## Where you see it Only inside the hosted flow, which handles it. You don't need to handle it in your app or on your server. ## What it means The same user or team already has a pending claim on this charger. The hosted flow shows the message. ## What to do Nothing. ## Example ```json theme={null} { "type": "https://developer.plugchoice.com/sdk/errors/claim-exists", "title": "Already claimed", "status": 409, "code": "claim-exists", "detail": "There is already an open claim on this charger." } ``` # claim-limit Source: https://developer.plugchoice.com/sdk/errors/claim-limit The user or team already started two claims in the last 24 hours. | Status | Title | | - | - | | `429` | Too many claims | ## Where you see it Only inside the hosted flow, which handles it. You don't need to handle it in your app or on your server. ## What it means A user or team can start two claims in 24 hours. Every claim emails the charger's owner. The hosted flow shows the message. ## What to do Nothing. The user can claim again 24 hours after their first claim. ## Example ```json theme={null} { "type": "https://developer.plugchoice.com/sdk/errors/claim-limit", "title": "Too many claims", "status": 429, "code": "claim-limit", "detail": "You can claim 2 chargers in 24 hours. Try again 24 hours after your first claim." } ``` # client-session-expired Source: https://developer.plugchoice.com/sdk/errors/client-session-expired The client secret is older than its 60 minutes. | Status | Title | | - | - | | `410` | This client session has expired | ## Where you see it * **Inside the hosted flow**, when it starts a link session with an expired client secret. * **Your app's result**: only after the hosted flow asked your app for a new secret three times and got an expired one every time. * **In a browser**: your user sees "This page was open too long" and starts again from your website. ## What it means A client session opens link sessions for 60 minutes. In the SDK, the hosted flow handles an expired secret by asking your app for a new one: the SDK calls your `fetchClientSecret` again with the same action. ## What to do * Create a fresh client session every time `fetchClientSecret` is called. Don't cache client secrets in your app. * For a browser, create the client session right before you send your user to its `web_url`. ## Example ```json theme={null} { "type": "https://developer.plugchoice.com/sdk/errors/client-session-expired", "title": "This client session has expired", "status": 410, "code": "client-session-expired", "detail": "Ask the app for a new client secret." } ``` # code-invalid Source: https://developer.plugchoice.com/sdk/errors/code-invalid The sign-in code doesn't match, or it expired. | Status | Title | | - | - | | `422` | This code is wrong or has expired | ## Where you see it Only inside the hosted flow, which handles it. You don't need to handle it in your app or on your server. ## What it means A code lives 10 minutes, allows three tries and works once. A new code replaces the earlier ones. ## What to do Nothing. ## Example ```json theme={null} { "type": "https://developer.plugchoice.com/sdk/errors/code-invalid", "title": "This code is wrong or has expired", "status": 422, "code": "code-invalid", "detail": "Check the email, or ask for a new code." } ``` # consent-not-needed Source: https://developer.plugchoice.com/sdk/errors/consent-not-needed This link session has no consent screen. | Status | Title | | - | - | | `409` | No consent needed | ## Where you see it Only inside the hosted flow, which handles it. You don't need to handle it in your app or on your server. ## What it means Only a link session for one of your users (`external_user_id`) asks for consent. A Plugchoice user's own link sessions don't, and neither do an integration's link sessions for its own chargers. ## What to do Nothing. ## Example ```json theme={null} { "type": "https://developer.plugchoice.com/sdk/errors/consent-not-needed", "title": "No consent needed", "status": 409, "code": "consent-not-needed", "detail": "Only an integration's users are asked for consent." } ``` # consent-required Source: https://developer.plugchoice.com/sdk/errors/consent-required Your user's consent is needed before a charger is added. | Status | Title | | - | - | | `409` | Consent is needed first | ## Where you see it Only inside the hosted flow, which handles it. You don't need to handle it in your app or on your server. ## What it means In a link session for one of your users (`external_user_id`), the hosted flow first shows the consent screen. Adding a charger, or signing in to Easee or Zaptec, before your user agreed is refused. The hosted flow always asks first, so your user never sees this. ## What to do Nothing. See [Consent and branding](/sdk/concepts/consent-and-branding) for what the consent screen covers. ## Example ```json theme={null} { "type": "https://developer.plugchoice.com/sdk/errors/consent-required", "title": "Consent is needed first", "status": 409, "code": "consent-required", "detail": "Record the user's consent before registering a charger." } ``` # control-held Source: https://developer.plugchoice.com/sdk/errors/control-held Another app controls the charger, and your integration needs control of it. | Status | Title | | - | - | | `409` | Another app controls this charger | ## Where you see it Only inside the hosted flow, when it finishes adding a charger. The link session then doesn't give your integration access to that charger. ## What it means One integration controls a charger at a time (`charger:control`: start and stop, current limit, smart charging). Your user's charger is controlled by another app, your user chose to keep it there, and Plugchoice set up your integration as one that only works with control. `held_by.name` says which app has it. ## What to do Your user can open a new link session and let your app take control, or remove control from the other app in their Plugchoice account first. If your app can work without control, ask Plugchoice support to change that setting: your integration then gets the other scopes. ## Example ```json theme={null} { "type": "https://developer.plugchoice.com/sdk/errors/control-held", "title": "Another app controls this charger", "status": 409, "code": "control-held", "detail": "Bolt controls this charger, and this app only works with control of it.", "held_by": { "name": "Bolt" } } ``` # forbidden Source: https://developer.plugchoice.com/sdk/errors/forbidden The token is valid, but its client may not use the SDK API. | Status | Title | | - | - | | `403` | Not allowed | ## Where you see it **Your server**, on any SDK API endpoint. ## What it means Your token is valid, but the OAuth client it belongs to has no active SDK integration. Either the integration was turned off, or the token comes from other Plugchoice API credentials. `detail` says why. ## What to do * Check that your server uses the client ID and secret of your SDK integration. * If it does, email [support@plugchoice.com](mailto:support@plugchoice.com). ## Example ```json theme={null} { "type": "https://developer.plugchoice.com/sdk/errors/forbidden", "title": "Not allowed", "status": 403, "code": "forbidden", "detail": "These credentials are not for an active Plugchoice SDK integration." } ``` # handover-not-offered Source: https://developer.plugchoice.com/sdk/errors/handover-not-offered This link session doesn't send chargers to the Plugchoice app. | Status | Title | | - | - | | `409` | No handover in this link session | ## Where you see it Only inside the hosted flow, which handles it. You don't need to handle it in your app or on your server. ## What it means In a browser, the hosted flow can hand a charger that only an app can set up over to the Plugchoice app, and waits until the charger shows up in the account. That's only for a link session that works in a Plugchoice account: your user's own, or a Plugchoice user's. When your integration owns its users' chargers, the link session doesn't send them to the Plugchoice app (`handover` is `false`). ## What to do Nothing. ## Example ```json theme={null} { "type": "https://developer.plugchoice.com/sdk/errors/handover-not-offered", "title": "No handover in this link session", "status": 409, "code": "handover-not-offered", "detail": "Only a link session for a Plugchoice account hands a charger over to the Plugchoice app." } ``` # identity-not-taken Source: https://developer.plugchoice.com/sdk/errors/identity-not-taken There's nothing to claim: the charger isn't someone else's. | Status | Title | | - | - | | `409` | Nothing to claim | ## Where you see it Only inside the hosted flow, which handles it. You don't need to handle it in your app or on your server. ## What it means A claim was started for a charger nobody else uses (any more). It can be added directly instead. ## What to do Nothing. ## Example ```json theme={null} { "type": "https://developer.plugchoice.com/sdk/errors/identity-not-taken", "title": "Nothing to claim", "status": 409, "code": "identity-not-taken", "detail": "This charger is not someone else's. Register it instead." } ``` # identity-taken Source: https://developer.plugchoice.com/sdk/errors/identity-taken The charger is already connected to another account. | Status | Title | | - | - | | `409` | Charger belongs to another account | ## Where you see it Only inside the hosted flow, which handles it. You don't need to handle it in your app or on your server. ## What it means Someone else uses this charger. Your user sees "This charger belongs to another account". With `claimable: true` they can also tap **Ask to add it**, which starts a claim: * the owner is emailed and has 7 days to answer; * meanwhile your user can prove they're at the charger by plugging a car in and out. ![The hosted flow waiting for the owner to answer a claim](/images/sdk/claim-light.webp) ## What to do Nothing in your app. A claim can succeed after the link session ended: the charger then appears at the link session's site. On your server, `GET /link-sessions/{link_session_id}` lists the claims and their status. See [Link sessions](/sdk/concepts/link-sessions). ## Example ```json theme={null} { "type": "https://developer.plugchoice.com/sdk/errors/identity-taken", "title": "Charger belongs to another account", "status": 409, "code": "identity-taken", "detail": "This charger is already connected to another account.", "claimable": true } ``` # Errors Source: https://developer.plugchoice.com/sdk/errors/index How the SDK API reports errors, every code you can meet, and the codes in your app's result. The SDK API answers every error with a problem details object ([RFC 9457](https://www.rfc-editor.org/rfc/rfc9457)), with the content type `application/problem+json`. The Plugchoice API (`/v3`) is different: its errors carry a `message`. ```json theme={null} { "type": "https://developer.plugchoice.com/sdk/errors/scope-required", "title": "A scope is required", "status": 422, "code": "scope-required", "detail": "Name the chargers, the sites, the address or a new site (`scope`) this client session may reach." } ``` **type** `string` *required* The code as a URL: its page in these docs, `https://developer.plugchoice.com/sdk/errors/{code}`. **title** `string` *required* A short summary, for people. **status** `integer` *required* The HTTP status code of the response. **code** `string` *required* The machine-readable code: the last part of `type`. **detail** `string` What went wrong in this case, for people. Not always present. Some codes add a member of their own: | Member | With | What it holds | | - | - | - | | `errors` | [`validation-failed`](/sdk/errors/validation-failed) | Every field that failed, by path, with its messages | | `site` | [`charger-at-other-site`](/sdk/errors/charger-at-other-site) | The site the charger is at now: `id` and `name` | | `claimable` | [`identity-taken`](/sdk/errors/identity-taken) | Whether a claim can be started | | `held_by` | [`control-held`](/sdk/errors/control-held) | The app that controls the charger: `name` | | `missing` | [`scope-missing`](/sdk/errors/scope-missing) | The consent scopes that are needed | | `vendor_charger` | Problems connecting a Zaptec installation | Which charger of the installation the problem is about: `id` and `serial` | > [!NOTE] > > Switch on `code`. Titles and details are written for people and may change. New codes may be added, so handle a code you don't know by its HTTP status. ## Your server The codes the SDK API answers your server with, on the endpoints in the [API reference](/sdk/api). | Code | Status | When | | - | - | - | | [`unauthenticated`](/sdk/errors/unauthenticated) | 401 | The token is missing, invalid or expired | | [`forbidden`](/sdk/errors/forbidden) | 403 | The token's client has no active SDK integration | | [`scope-missing`](/sdk/errors/scope-missing) | 403 | Working on your user's charger without `charger:control` in your grant, or reading its transactions without `sessions:read` | | [`sdk-access-required`](/sdk/errors/sdk-access-required) | 403 | The integration's team has no access to the Plugchoice SDK | | [`not-found`](/sdk/errors/not-found) | 404 | A link session, charger or site that doesn't exist or isn't yours, also in a client session's `scope` | | [`validation-failed`](/sdk/errors/validation-failed) | 422 | The body or query doesn't pass validation | | [`scope-required`](/sdk/errors/scope-required) | 422 | A client session without a scope | | [`unsupported-device-type`](/sdk/errors/unsupported-device-type) | 422 | A `device_type` other than `charger` or `meter` | | [`unknown-version`](/sdk/errors/unknown-version) | 400 | A `Plugchoice-Version` the API doesn't know | | [`rate-limited`](/sdk/errors/rate-limited) | 429 | More than 120 requests a minute | | [`bad-request`](/sdk/errors/bad-request) | 4xx | Another client error, such as a wrong method | | [`server-error`](/sdk/errors/server-error) | 5xx | Something went wrong on Plugchoice's side | ## Your app's result When the hosted flow can't start, it shows an error screen. When your user closes it, Link closes with the status `error`, and `error.code` is the problem's code: | Code | When | | - | - | | [`not-found`](/sdk/errors/not-found) | The client secret is unknown; the action's charger or site is outside the client session's scope; or `add` was opened with a scope of chargers only | | [`site-required`](/sdk/errors/site-required) | `add` without a site, while the scope has several sites | | [`client-session-expired`](/sdk/errors/client-session-expired) | Every secret your app gave was expired, after the hosted flow asked three times | | [`profile-incomplete`](/sdk/errors/profile-incomplete) | The link session is for a customer, and Plugchoice hasn't reviewed your partner profile yet | | [`validation-failed`](/sdk/errors/validation-failed) | The action's ids are wrong: not a UUID, a missing charger, or a site with an action other than `add` | | [`rate-limited`](/sdk/errors/rate-limited) | More than 30 link sessions started in a minute from one IP address | | [`session-ended`](/sdk/errors/session-ended), [`unauthenticated`](/sdk/errors/unauthenticated) | The hosted flow reloaded after its link session ended | | [`server-error`](/sdk/errors/server-error) | Something went wrong on Plugchoice's side | ## Only inside the hosted flow These codes are answered to the hosted flow while your user goes through it. It handles them, mostly by telling your user what to do, so you don't need to handle them. They're here because every problem's `type` links to its page. | Code | Status | When | | - | - | - | | [`consent-required`](/sdk/errors/consent-required) | 409 | Adding a charger before your user agreed to the consent screen | | [`consent-not-needed`](/sdk/errors/consent-not-needed) | 409 | Recording consent in a link session that has no consent screen | | [`sign-in-required`](/sdk/errors/sign-in-required) | 409 | Picking a site, finishing a charger or sharing one before your user signed in to their account | | [`site-not-saved`](/sdk/errors/site-not-saved) | 409 | Finishing a charger before your user saved the held site to their account | | [`start-code-invalid`](/sdk/errors/start-code-invalid) | 404 | Someone opened a start link that was replaced or turned off, or whose integration can't start a setup | | [`sign-in-not-needed`](/sdk/errors/sign-in-not-needed) | 409 | This link session doesn't sign in, or already did | | [`sign-in-code-required`](/sdk/errors/sign-in-code-required) | 409 | Checking a code or creating the account before a code proved the address | | [`code-invalid`](/sdk/errors/code-invalid) | 422 | The sign-in code doesn't match, or it expired | | [`two-factor-not-needed`](/sdk/errors/two-factor-not-needed) | 409 | Checking a two-factor code while the link session isn't waiting for one | | [`two-factor-invalid`](/sdk/errors/two-factor-invalid) | 422 | The code from the authenticator app, or the recovery code, doesn't match | | [`two-factor-locked`](/sdk/errors/two-factor-locked) | 429 | Five wrong two-factor codes in one link session | | [`location-required`](/sdk/errors/location-required) | 409 | Adding a charger before the new site's address is set | | [`location-already-set`](/sdk/errors/location-already-set) | 409 | Setting an address when the link session already has a site | | [`method-not-allowed`](/sdk/errors/method-not-allowed) | 422 | A brand, model or method this link session doesn't offer | | [`identity-taken`](/sdk/errors/identity-taken) | 409 | The charger belongs to another account | | [`identity-not-taken`](/sdk/errors/identity-not-taken) | 409 | A claim on a charger nobody else uses | | [`meter-not-found`](/sdk/errors/meter-not-found) | 404 | A Chargee meter Plugchoice doesn't know yet | | [`charger-at-other-site`](/sdk/errors/charger-at-other-site) | 409 | The charger is at another site of the same account | | [`control-held`](/sdk/errors/control-held) | 409 | Another app controls the charger, and your integration needs control | | [`handover-not-offered`](/sdk/errors/handover-not-offered) | 409 | Waiting for a charger from the Plugchoice app in a link session without a handover | | [`pincode-invalid`](/sdk/errors/pincode-invalid) | 422 | The identity and pincode don't match | | [`claim-exists`](/sdk/errors/claim-exists) | 409 | There is already an open claim on the charger | | [`claim-limit`](/sdk/errors/claim-limit) | 429 | Two claims were already started in the last 24 hours | | [`claim-closed`](/sdk/errors/claim-closed) | 409 | Plugging in for a claim that is no longer open | | [`charger-offline`](/sdk/errors/charger-offline) | 409 | Plugging in for a claim while the charger is offline | | [`plug-in-not-available`](/sdk/errors/plug-in-not-available) | 409 | Plugging in can't prove this claim | | [`nothing-to-complete`](/sdk/errors/nothing-to-complete) | 409 | Completing a link session that finished no charger | | [`vendor-sign-in-failed`](/sdk/errors/vendor-sign-in-failed) | 422 | The brand's cloud (Easee or Zaptec) didn't accept the email address and password | | [`vendor-sign-in-required`](/sdk/errors/vendor-sign-in-required) | 409 | The sign-in to Easee or Zaptec expired | | [`vendor-not-permitted`](/sdk/errors/vendor-not-permitted) | 403 | The Easee or Zaptec account may not make the change | | [`vendor-charger-offline`](/sdk/errors/vendor-charger-offline) | 409 | Zaptec reports the charger as offline | | [`vendor-rate-limited`](/sdk/errors/vendor-rate-limited) | 429 | Easee's or Zaptec's cloud is busy | | [`vendor-unavailable`](/sdk/errors/vendor-unavailable) | 503 | Easee's or Zaptec's cloud couldn't be reached | | [`vendor-error`](/sdk/errors/vendor-error) | 502 | Easee's or Zaptec's cloud refused the request | ## The SDK's own result codes When Link closes with the status `error`, `LinkResult.error.code` says why. Besides the problem codes above, you can rely on these: | Code | When | | - | - | | `clientSecretUnavailable` | Your `fetchClientSecret` callback threw, returned an empty string or took longer than 30 seconds, and your user left the error screen instead of trying again | | `pageLoadFailed` | The hosted flow didn't load (no internet, or it couldn't be reached), and your user left the native "try again" screen. There is no `sessionId`. | | `internal` | The SDK couldn't run the hosted flow. On Android: there is no usable WebView, or its renderer stopped. There is no `sessionId`. | Any other code comes from the hosted flow, for example when setting up a charger failed. Those codes and `error.message` are for your logs; don't branch on them. Show your own message, and read the outcome on your server with `GET /link-sessions/{link_session_id}`: see [Link sessions](/sdk/concepts/link-sessions). In React Native, `openLink` also rejects when Link can't be shown at all, for example when a Link screen is already open: see [React Native](/sdk/react-native). # location-already-set Source: https://developer.plugchoice.com/sdk/errors/location-already-set The link session already has a site. | Status | Title | | - | - | | `409` | The session already has a site | ## Where you see it Only inside the hosted flow, which handles it. You don't need to handle it in your app or on your server. ## What it means An address can only be set while an `add` link session has no site yet. ## What to do Nothing. ## Example ```json theme={null} { "type": "https://developer.plugchoice.com/sdk/errors/location-already-set", "title": "The session already has a site", "status": 409, "code": "location-already-set" } ``` # location-required Source: https://developer.plugchoice.com/sdk/errors/location-required The new site's address is needed before a charger is added. | Status | Title | | - | - | | `409` | The address is needed first | ## Where you see it Only inside the hosted flow, which handles it. You don't need to handle it in your app or on your server. ## What it means With `scope.new_site`, an `add` link session has no site until your user enters the address. Adding a charger before that is refused. The hosted flow asks for the address first. ## What to do Nothing. If you already know the address, send it as `scope.location` and your user isn't asked. ## Example ```json theme={null} { "type": "https://developer.plugchoice.com/sdk/errors/location-required", "title": "The address is needed first", "status": 409, "code": "location-required", "detail": "Set the location before registering a charger." } ``` # meter-not-found Source: https://developer.plugchoice.com/sdk/errors/meter-not-found A Chargee meter Plugchoice doesn't know yet. | Status | Title | | - | - | | `404` | Meter not on Plugchoice yet | ## Where you see it Only inside the hosted flow, which handles it. You don't need to handle it in your app or on your server. ## What it means The code from the side of the Chargee meter matches no meter Plugchoice has. Plugchoice knows a Chargee meter once Chargee has shared it. Your user sees that the meter isn't on Plugchoice yet, is asked to check the code against the meter, and can try again. ## What to do Nothing. If your users add Chargee meters you expect to be there, ask Plugchoice support whether Chargee has shared them. ## Example ```json theme={null} { "type": "https://developer.plugchoice.com/sdk/errors/meter-not-found", "title": "Meter not on Plugchoice yet", "status": 404, "code": "meter-not-found", "detail": "Plugchoice does not know this code yet. Check it against the meter and try again. If it is right, the meter's provider has not shared it with Plugchoice yet." } ``` # method-not-allowed Source: https://developer.plugchoice.com/sdk/errors/method-not-allowed That brand, model and onboarding method are not offered in this link session. | Status | Title | | - | - | | `422` | Not available in this session | ## Where you see it Only inside the hosted flow, which handles it. You don't need to handle it in your app or on your server. ## What it means The hosted flow offers the brands, models and onboarding methods of the link session's catalog. Anything else is refused. The catalog follows the client session's `vendor` and `methods`, and the brands enabled for your integration. ## What to do Nothing. To offer fewer brands or methods, set `vendor` or `methods` on the client session. ## Example ```json theme={null} { "type": "https://developer.plugchoice.com/sdk/errors/method-not-allowed", "title": "Not available in this session", "status": 422, "code": "method-not-allowed", "detail": "This brand, model and method are not in this session's catalog." } ``` # not-found Source: https://developer.plugchoice.com/sdk/errors/not-found The resource doesn't exist, or it isn't one you may use. | Status | Title | | - | - | | `404` | Link session not found | | `404` | Charger not found | | `404` | Site not found | | `404` | Client session not found | | `404` | Nothing to add to | | `404` | Not found | ## Where you see it * **Your server**: * `GET /link-sessions/{link_session_id}` for a link session another caller opened; * `GET /chargers/{charger_id}` for a charger at a site you may not use; * `POST /client-sessions` when `scope.chargers` or `scope.sites` names a charger or site you may not use; * any path that doesn't exist, with the title `Not found`. * **Your app's result**, when the hosted flow can't start (`LinkResult.error.code`): * the client secret is unknown; * the action's charger or site is outside the client session's scope, or no longer one you may manage; * `add` was opened with a scope of chargers only (the title `Nothing to add to`). * **Inside the hosted flow**, which handles it: a charger or claim that isn't in the link session, or a Easee or Zaptec charger the account doesn't have. ## What it means The SDK API gives the same answer for an id that doesn't exist and for one you may not use, so it never tells you about someone else's chargers or sites. Which chargers and sites you may use: | Caller | Chargers and sites | | - | - | | Integration, for your user (`external_user_id`) | At that user's sites | | Integration, for its own chargers | At the sites its team owns | | Plugchoice user | At sites they have Sensitive access to | ## What to do * Use Plugchoice's ids (`id`, a UUID), not your own references. * Make the client session's `scope` cover the charger or site of the action your app opens. See [Client sessions and scopes](/sdk/concepts/client-sessions). * For `add`, the scope needs a site, a `location` or `new_site`. * For an integration acting for a user, send the same `external_user_id` you used when that user's chargers were added. ## Example ```json theme={null} { "type": "https://developer.plugchoice.com/sdk/errors/not-found", "title": "Charger not found", "status": 404, "code": "not-found", "detail": "No charger with this id at a site you may manage." } ``` # nothing-to-complete Source: https://developer.plugchoice.com/sdk/errors/nothing-to-complete A link session can only complete once a charger is finished. | Status | Title | | - | - | | `409` | No charger was finished | ## Where you see it Only inside the hosted flow, which handles it. You don't need to handle it in your app or on your server. ## What it means The hosted flow completes a link session after it finished at least one charger. Otherwise it abandons it. ## What to do Nothing. ## Example ```json theme={null} { "type": "https://developer.plugchoice.com/sdk/errors/nothing-to-complete", "title": "No charger was finished", "status": 409, "code": "nothing-to-complete", "detail": "Finalize a charger first, or abandon the session." } ``` # pincode-invalid Source: https://developer.plugchoice.com/sdk/errors/pincode-invalid The charger's identity and pincode don't match. | Status | Title | | - | - | | `422` | Identity and pincode do not match | ## Where you see it Only inside the hosted flow, which handles it. You don't need to handle it in your app or on your server. ## What it means Either the Chargepoint ID or the pincode is wrong. A Volt Time identity that doesn't exist is a typo, so it gets the same answer. After too many failed attempts every attempt gets this answer for a while. Your user sees "The identity and pincode do not match" and can change what they typed. ## What to do Nothing. ## Example ```json theme={null} { "type": "https://developer.plugchoice.com/sdk/errors/pincode-invalid", "title": "Identity and pincode do not match", "status": 422, "code": "pincode-invalid", "detail": "Check the identity and the pincode printed with the charger." } ``` # plug-in-not-available Source: https://developer.plugchoice.com/sdk/errors/plug-in-not-available Plugging in can't prove this claim. | Status | Title | | - | - | | `409` | Plugging in cannot prove this claim | ## Where you see it Only inside the hosted flow, which handles it. You don't need to handle it in your app or on your server. ## What it means Either the charger is open to the public, where anyone can plug in, or the claim has no plug-in tries left. The claim stays open until the owner answers. ## What to do Nothing. ## Example ```json theme={null} { "type": "https://developer.plugchoice.com/sdk/errors/plug-in-not-available", "title": "Plugging in cannot prove this claim", "status": 409, "code": "plug-in-not-available", "detail": "This charger is open to the public, or there are no tries left. Wait for the owner to answer." } ``` # profile-incomplete Source: https://developer.plugchoice.com/sdk/errors/profile-incomplete A link session that asks your customer to agree needs your partner profile, which Plugchoice hasn't reviewed yet. | Status | Title | | - | - | | `409` | The partner profile is not ready | ## Where you see it * **Your app's result**, when the hosted flow can't start. * Your user first sees "This page didn't open properly". ## What it means The link session is for one of your customers, so it asks them to agree to share their charger with you. That screen shows your partner profile: your name, legal name, privacy policy, terms and support details. Plugchoice reviews the profile before any customer sees it. Yours isn't reviewed yet. ## What to do * A team admin fills in your profile under **Settings > SDK > Profile** in Plugchoice: your name as your customers know it, your legal name, privacy policy URL and terms URL, and a support email or page. * Plugchoice reviews the profile once, when it gives your team access to the SDK. If yours is still waiting, email [support@plugchoice.com](mailto:support@plugchoice.com). ## Example ```json theme={null} { "type": "https://developer.plugchoice.com/sdk/errors/profile-incomplete", "title": "The partner profile is not ready", "status": 409, "code": "profile-incomplete", "detail": "Plugchoice hasn't reviewed the partner profile for this integration's consent screen yet. Ask Plugchoice support to set it up." } ``` # rate-limited Source: https://developer.plugchoice.com/sdk/errors/rate-limited Too many requests: wait, then try again. | Status | Title | | - | - | | `429` | Too many requests | | `429` | Too many claims | ## Where you see it * **Your server**: more than 120 requests a minute from one integration or Plugchoice user. * **Your app's result**: more than 30 link sessions started in a minute from one IP address. * **Inside the hosted flow**, which handles it: * more than 300 requests a minute in one link session; * too many sign-in attempts to Easee or Zaptec; * too many claims (the title `Too many claims`). ## What it means You hit a rate limit. The `Retry-After` header says how many seconds to wait, when the limit sets one. ## What to do * Wait `Retry-After` seconds before you retry. * Reuse your integration's token for its hour instead of requesting one per call. * Poll `GET /link-sessions/{link_session_id}` every few seconds at most. ## Example ```http theme={null} HTTP/1.1 429 Content-Type: application/problem+json Retry-After: 42 ``` ```json theme={null} { "type": "https://developer.plugchoice.com/sdk/errors/rate-limited", "title": "Too many requests", "status": 429, "code": "rate-limited", "detail": "Too Many Attempts." } ``` # scope-missing Source: https://developer.plugchoice.com/sdk/errors/scope-missing Your grant on your user's charger doesn't include what this call needs. | Status | Title | | - | - | | `403` | Control of this charger is needed | | `403` | Reading this charger's charging sessions is needed | ## Where you see it * When the SDK starts a link session (`setup`, `reconnect` or another action that isn't `add`) on a charger in your user's own Plugchoice account. * When you [get a transaction](/sdk/api/get-transaction) of a charger in your user's own Plugchoice account. ## What it means Your integration reaches that charger through the grant your user gave it, with the consent scopes they agreed to. Working on the charger changes it, which needs `charger:control`; reading its transactions needs `sessions:read`. Your grant doesn't include that scope: your user didn't give it to your app (they may have kept control with another app), or your client session didn't ask for it. `missing` lists the scopes that are needed. ## What to do Start an `add` link session for the same user with the scopes from `missing` in `consent_scopes`. Your user shares the charger again there and can give your app what it needs. Then try again. ## Example ```json theme={null} { "type": "https://developer.plugchoice.com/sdk/errors/scope-missing", "title": "Control of this charger is needed", "status": 403, "code": "scope-missing", "detail": "Your customer didn't give your integration control of this charger (`charger:control`), which `setup` needs. A new `add` link session can ask for it.", "missing": ["charger:control"] } ``` # scope-required Source: https://developer.plugchoice.com/sdk/errors/scope-required A client session needs a scope. | Status | Title | | - | - | | `422` | A scope is required | ## Where you see it **Your server**, on `POST /client-sessions`. ## What it means The body has no `scope`, or a scope that names nothing. A client session may only reach what its scope names, and there is no scope for "everything". Name at least one of: * `chargers` * `sites` * `location` * `new_site: true` ## What to do Build the scope from the action your app opens, which the SDK passes to your `fetchClientSecret` callback: | Action | Scope | | - | - | | `add` with a site | `{ "sites": [""] }` | | `add` at your user's address | `{ "location": { … } }` | | `add`, asking the address | `{ "new_site": true }` | | `setup`, `reconnect` | `{ "chargers": [""] }` | See [Client sessions and scopes](/sdk/concepts/client-sessions). ## Example ```json theme={null} { "type": "https://developer.plugchoice.com/sdk/errors/scope-required", "title": "A scope is required", "status": 422, "code": "scope-required", "detail": "Name the chargers, the sites, the address or a new site (`scope`) this client session may reach." } ``` # sdk-access-required Source: https://developer.plugchoice.com/sdk/errors/sdk-access-required The token's integration belongs to a team without access to the Plugchoice SDK. | Status | Title | | - | - | | `403` | No access to the Plugchoice SDK | ## Where you see it **Your server**, on any SDK API endpoint. ## What it means Your token and integration are valid, but your team has no access to the Plugchoice SDK. Plugchoice gives this access per team, so it was either never given or has been turned off. ## What to do Email [support@plugchoice.com](mailto:support@plugchoice.com) with your team's name. ## Example ```json theme={null} { "type": "https://developer.plugchoice.com/sdk/errors/sdk-access-required", "title": "No access to the Plugchoice SDK", "status": 403, "code": "sdk-access-required", "detail": "This integration's team has no access to the Plugchoice SDK. Ask Plugchoice support to turn it on." } ``` # server-error Source: https://developer.plugchoice.com/sdk/errors/server-error Something went wrong on Plugchoice's side. | Status | Title | | - | - | | `5xx` | Something went wrong on our side | ## Where you see it **Your server**, **your app's result**, or **inside the hosted flow**: anywhere. ## What it means An unexpected error on Plugchoice's side. `status` is `500`, or another `5xx` status when one applies. ## What to do * Retry after a short wait, with backoff. * Creating a client session again is safe: the unused one expires by itself. * If it keeps happening, email [support@plugchoice.com](mailto:support@plugchoice.com) with the time and the request. ## Example ```json theme={null} { "type": "https://developer.plugchoice.com/sdk/errors/server-error", "title": "Something went wrong on our side", "status": 500, "code": "server-error" } ``` # session-ended Source: https://developer.plugchoice.com/sdk/errors/session-ended The link session is completed, abandoned or expired. | Status | Title | | - | - | | `410` | This link session has ended | ## Where you see it * **Inside the hosted flow**, on a call made after its link session ended. * **Your app's result**, rarely: when the hosted flow reloads after its link session ended. ## What it means A link session ends when it is completed or abandoned, or 6 hours after it opened. Calls after that are refused. ## What to do Open Link again: your app opens a new link session. To see how the ended one went, read `GET /link-sessions/{link_session_id}` on your server. ## Example ```json theme={null} { "type": "https://developer.plugchoice.com/sdk/errors/session-ended", "title": "This link session has ended", "status": 410, "code": "session-ended", "detail": "Start a new session from the app." } ``` # sign-in-code-required Source: https://developer.plugchoice.com/sdk/errors/sign-in-code-required Checking a code or creating the account before a code proved the address. | Status | Title | | - | - | | `409` | Ask for a code first | ## Where you see it Only inside the hosted flow, which handles it. You don't need to handle it in your app or on your server. ## What it means The hosted flow mails a code to the address first (`POST /session/sign-in`). A code only counts for that address, and a new account must be created within 30 minutes of checking the code. ## What to do Nothing. ## Example ```json theme={null} { "type": "https://developer.plugchoice.com/sdk/errors/sign-in-code-required", "title": "Ask for a code first", "status": 409, "code": "sign-in-code-required", "detail": "Send the address a code before checking one." } ``` # sign-in-not-needed Source: https://developer.plugchoice.com/sdk/errors/sign-in-not-needed This link session doesn't sign in, or already did. | Status | Title | | - | - | | `409` | No sign-in needed | ## Where you see it Only inside the hosted flow, which handles it. You don't need to handle it in your app or on your server. ## What it means Only a link session for one of your users (`external_user_id`) signs in, and only once: your user signs in to their own Plugchoice account when your integration adds chargers to that account, or when your integration owns its users' chargers and offers the Plugchoice app after setup (`after_setup`). Other link sessions don't sign in. ## What to do Nothing. ## Example ```json theme={null} { "type": "https://developer.plugchoice.com/sdk/errors/sign-in-not-needed", "title": "No sign-in needed", "status": 409, "code": "sign-in-not-needed", "detail": "Only an integration's users sign in, once: when the chargers go to their own account, or when a partner offers an account after setup." } ``` # sign-in-required Source: https://developer.plugchoice.com/sdk/errors/sign-in-required Your user signs in to their Plugchoice account before a charger is saved there. | Status | Title | | - | - | | `409` | Sign in first | ## Where you see it Only inside the hosted flow, which handles it. You don't need to handle it in your app or on your server. ## What it means When your integration adds chargers to your users' own Plugchoice accounts, your user sets the charger up first and then signs in to their account (or creates one) to save it. Picking which of their sites it goes to, finishing the charger and sharing one they already have wait until they have. ## What to do Nothing. The hosted flow asks your user to sign in. ## Example ```json theme={null} { "type": "https://developer.plugchoice.com/sdk/errors/sign-in-required", "title": "Sign in first", "status": 409, "code": "sign-in-required", "detail": "The customer signs in to save the charger to their Plugchoice account before it is finished." } ``` # site-not-saved Source: https://developer.plugchoice.com/sdk/errors/site-not-saved Your user saves the site to their Plugchoice account before a charger there is finished. | Status | Title | | - | - | | `409` | Save the site first | ## Where you see it Only inside the hosted flow, which handles it. You don't need to handle it in your app or on your server. ## What it means When your integration adds chargers to your users' own Plugchoice accounts, your user sets the charger up before signing in. The hosted flow holds a site for it at the address they confirmed. After signing in, they save it to their account: they pick one of their own sites for the charger, or keep the held site as a new site of theirs. Finishing the charger waits until they have. ## What to do Nothing. The hosted flow asks your user where the charger goes. ## Example ```json theme={null} { "type": "https://developer.plugchoice.com/sdk/errors/site-not-saved", "title": "Save the site first", "status": 409, "code": "site-not-saved", "detail": "Save the held site to the account first: pick one of its sites, or keep it as a new one (`POST /session/site`)." } ``` # site-required Source: https://developer.plugchoice.com/sdk/errors/site-required An add needs a site, because the client session reaches several. | Status | Title | | - | - | | `422` | Pick a site | ## Where you see it * **Your app's result**, when the hosted flow can't start. * Your user first sees "This page didn't open properly". ## What it means Your app opened `add` without a site. The client session's scope names several `sites` and no `location` or `new_site`, so it's unclear where the charger should go. ## What to do Do one of these: * Open `add` with a site (`.addCharger(siteId:)`, `LinkAction.addCharger(siteId)`, `{ action: 'add', siteId }`). * Scope the client session to the one site. ## Example ```json theme={null} { "type": "https://developer.plugchoice.com/sdk/errors/site-required", "title": "Pick a site", "status": 422, "code": "site-required", "detail": "This client session reaches several sites: name one (`site_id`)." } ``` # start-code-invalid Source: https://developer.plugchoice.com/sdk/errors/start-code-invalid A start link that doesn't start a setup. | Status | Title | | - | - | | `404` | This start link does not work | ## Where you see it * **In a browser**, when someone opens your start link (`https://connect.plugchoice.com/start/`). They see that the link doesn't work and that they should ask you for a new one. ## What it means The code is unknown, or you made a new start link or turned it off on your SDK page, which stops the old one at once. It also happens when the integration can't start a setup right now: it was switched off, its team has no access to the Plugchoice SDK, or Plugchoice hasn't reviewed your partner profile. ## What to do * Check the link on your SDK page and hand out the one shown there. * After you make a new start link, replace the old one wherever you handed it out, including printed QR codes. * If the SDK page shows the right link and it still fails, contact Plugchoice support. ## Example ```json theme={null} { "type": "https://developer.plugchoice.com/sdk/errors/start-code-invalid", "title": "This start link does not work", "status": 404, "code": "start-code-invalid", "detail": "The code was replaced or turned off, or its partner cannot start a setup right now. Ask the partner for a new link." } ``` # two-factor-invalid Source: https://developer.plugchoice.com/sdk/errors/two-factor-invalid The code from the authenticator app, or the recovery code, doesn't match. | Status | Title | | - | - | | `422` | This two-factor code is wrong | ## Where you see it Only inside the hosted flow, which handles it. You don't need to handle it in your app or on your server. ## What it means Your user's account has two-factor authentication. The code comes from their authenticator app; a recovery code works once. ## What to do Nothing. ## Example ```json theme={null} { "type": "https://developer.plugchoice.com/sdk/errors/two-factor-invalid", "title": "This two-factor code is wrong", "status": 422, "code": "two-factor-invalid", "detail": "Check the code in your authenticator app, or use a recovery code." } ``` # two-factor-locked Source: https://developer.plugchoice.com/sdk/errors/two-factor-locked Five wrong two-factor codes in one link session. | Status | Title | | - | - | | `429` | Too many wrong two-factor codes | ## Where you see it Only inside the hosted flow, which handles it. You don't need to handle it in your app or on your server. ## What it means After five wrong two-factor codes, the link session takes no more two-factor codes for up to an hour, also after a new sign-in code. A new link session can sign in again. ## What to do Nothing. ## Example ```json theme={null} { "type": "https://developer.plugchoice.com/sdk/errors/two-factor-locked", "title": "Too many wrong two-factor codes", "status": 429, "code": "two-factor-locked", "detail": "Start a new link session from the app." } ``` # two-factor-not-needed Source: https://developer.plugchoice.com/sdk/errors/two-factor-not-needed Checking a two-factor code while the link session isn't waiting for one. | Status | Title | | - | - | | `409` | No two-factor code needed | ## Where you see it Only inside the hosted flow, which handles it. You don't need to handle it in your app or on your server. ## What it means The hosted flow asks for a two-factor code only when the account has two-factor authentication, right after the sign-in code. ## What to do Nothing. ## Example ```json theme={null} { "type": "https://developer.plugchoice.com/sdk/errors/two-factor-not-needed", "title": "No two-factor code needed", "status": 409, "code": "two-factor-not-needed", "detail": "This link session is not waiting for a two-factor code." } ``` # unauthenticated Source: https://developer.plugchoice.com/sdk/errors/unauthenticated The request has no valid credentials. | Status | Title | | - | - | | `401` | Missing, invalid or expired credentials | | `401` | Missing or invalid session credential | ## Where you see it * **Your server**, on any SDK API endpoint, with the first title. * **Your app's result**, rarely: when the hosted flow reloads and its link session's own credential is no longer valid, it ends and reports this code in `LinkResult.error.code`. The second title belongs to the hosted flow's own calls. ## What it means The `Authorization` header is missing, isn't a `Bearer` token, or the token is unknown, revoked or expired. An integration's token from the client credentials grant lasts one hour. ## What to do * Request a new token from `https://app.plugchoice.com/oauth/token` with your integration's client ID and secret (`grant_type=client_credentials`), then retry. * Cache the token on your server and renew it before its `expires_in` runs out, rather than requesting one per call. * Send it as `Authorization: Bearer `. See [Authentication](/sdk/api#authentication). ## Example ```json theme={null} { "type": "https://developer.plugchoice.com/sdk/errors/unauthenticated", "title": "Missing, invalid or expired credentials", "status": 401, "code": "unauthenticated" } ``` # unknown-version Source: https://developer.plugchoice.com/sdk/errors/unknown-version The Plugchoice-Version header names a version the SDK API doesn't know. | Status | Title | | - | - | | `400` | Unknown API version | ## Where you see it **Your server**, on any SDK API endpoint. ## What it means The `Plugchoice-Version` request header is set, but not to a version the SDK API speaks. `detail` lists the versions it does. ## What to do * Send one of the versions in `detail`; today that is `2026-10-07`. * Or leave the header out to get the newest version. Pinning is better: see [Versions](/sdk/versioning). ## Example ```json theme={null} { "type": "https://developer.plugchoice.com/sdk/errors/unknown-version", "title": "Unknown API version", "status": 400, "code": "unknown-version", "detail": "Plugchoice-Version must be one of: 2026-10-07." } ``` # unsupported-device-type Source: https://developer.plugchoice.com/sdk/errors/unsupported-device-type The client session asks for a device type the SDK API doesn't support yet. | Status | Title | | - | - | | `422` | Unsupported device type | ## Where you see it **Your server**, on `POST /client-sessions`. ## What it means `device_type` is something other than `charger` or `meter`. Link connects chargers and grid meters. ## What to do Send `"device_type": "charger"` or `"device_type": "meter"`, or leave the field out: `charger` is the default. ## Example ```json theme={null} { "type": "https://developer.plugchoice.com/sdk/errors/unsupported-device-type", "title": "Unsupported device type", "status": 422, "code": "unsupported-device-type", "detail": "Link connects chargers and meters (`device_type: charger` or `meter`)." } ``` # validation-failed Source: https://developer.plugchoice.com/sdk/errors/validation-failed The request body or query doesn't pass validation. | Status | Title | | - | - | | `422` | The request is invalid | ## 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 ```json theme={null} { "type": "https://developer.plugchoice.com/sdk/errors/validation-failed", "title": "The request is invalid", "status": 422, "code": "validation-failed", "detail": "The scope.chargers.0 field must be a valid UUID.", "errors": { "scope.chargers.0": [ "The scope.chargers.0 field must be a valid UUID." ] } } ``` # vendor-charger-offline Source: https://developer.plugchoice.com/sdk/errors/vendor-charger-offline Zaptec reports the charger as offline. | Status | Title | | - | - | | `409` | The charger is offline in Zaptec | ## Where you see it Only inside the hosted flow, which handles it. You don't need to handle it in your app or on your server. ## What it means A Zaptec charger switches over to Plugchoice through Zaptec's cloud, so it must be online there. Your user sees "Your charger is offline" and is asked to check its power and internet. ## What to do Nothing. ## Example ```json theme={null} { "type": "https://developer.plugchoice.com/sdk/errors/vendor-charger-offline", "title": "The charger is offline in Zaptec", "status": 409, "code": "vendor-charger-offline", "detail": "Make sure the charger is online in the Zaptec app, then try again." } ``` # vendor-error Source: https://developer.plugchoice.com/sdk/errors/vendor-error The brand's cloud refused the request or answered something unexpected. The title names the brand. | Status | Title | | - | - | | `502` | Zaptec refused the request | | `502` | Easee refused the request | ## Where you see it Only inside the hosted flow, which handles it. You don't need to handle it in your app or on your server. ## What it means Easee's or Zaptec's cloud refused the request, or answered something Plugchoice couldn't read. Your user sees "Something went wrong" and can try again. For Easee they can also connect it with the Easee app; for Zaptec, set the charger up by hand. ## What to do Nothing. If it keeps happening, the charger can still be added by hand: see [Other OCPP chargers](/sdk/chargers/other). ## Example ```json theme={null} { "type": "https://developer.plugchoice.com/sdk/errors/vendor-error", "title": "Zaptec refused the request", "status": 502, "code": "vendor-error", "detail": "Try again. If it keeps failing, set the charger up by hand." } ``` # vendor-not-permitted Source: https://developer.plugchoice.com/sdk/errors/vendor-not-permitted The brand's cloud doesn't let this account make the change. The title names the brand. | Status | Title | | - | - | | `403` | Zaptec does not allow this account to do that | | `403` | Easee does not allow this account to do that | | `403` | Not allowed to change this installation (a Zaptec installation) | ## Where you see it Only inside the hosted flow, which handles it. You don't need to handle it in your app or on your server. ## What it means * **Zaptec**: only an owner or maintainer of the Zaptec installation can connect it to Plugchoice. Your user is asked to sign in as the installation's owner, or to ask their installer. * **Easee**: Easee didn't let the account change the charger's operator. The charger may be on a site another operator manages. Your user can confirm Plugchoice in the Easee app instead. ## What to do Nothing. ## Example ```json theme={null} { "type": "https://developer.plugchoice.com/sdk/errors/vendor-not-permitted", "title": "Zaptec does not allow this account to do that", "status": 403, "code": "vendor-not-permitted", "detail": "Only an owner or maintainer of the Zaptec installation can connect it to Plugchoice." } ``` # vendor-rate-limited Source: https://developer.plugchoice.com/sdk/errors/vendor-rate-limited The brand's cloud is busy. The title names the brand. | Status | Title | | - | - | | `429` | Zaptec is busy | | `429` | Easee is busy | ## Where you see it Only inside the hosted flow, which handles it. You don't need to handle it in your app or on your server. ## What it means Easee's or Zaptec's cloud asked Plugchoice to slow down. Your user sees that the brand is busy and can try again in a minute. ## What to do Nothing. ## Example ```json theme={null} { "type": "https://developer.plugchoice.com/sdk/errors/vendor-rate-limited", "title": "Zaptec is busy", "status": 429, "code": "vendor-rate-limited", "detail": "Try again in a minute." } ``` # vendor-sign-in-failed Source: https://developer.plugchoice.com/sdk/errors/vendor-sign-in-failed The brand's cloud didn't accept the email address and password. The title names the brand. | Status | Title | | - | - | | `422` | Zaptec did not accept the email and password | | `422` | Easee did not accept the email and password | ## Where you see it Only inside the hosted flow, which handles it. You don't need to handle it in your app or on your server. ## What it means To connect a Easee or Zaptec charger, your user signs in with the brand's account that owns it, and the brand refused the email address or password. Your user sees "That did not work" and can try again. ## What to do Nothing. See [Easee](/sdk/chargers/easee) and [Zaptec](/sdk/chargers/zaptec). ## Example ```json theme={null} { "type": "https://developer.plugchoice.com/sdk/errors/vendor-sign-in-failed", "title": "Zaptec did not accept the email and password", "status": 422, "code": "vendor-sign-in-failed", "detail": "Check the email address and password of the Zaptec account." } ``` # vendor-sign-in-required Source: https://developer.plugchoice.com/sdk/errors/vendor-sign-in-required The sign-in to the brand's cloud expired, or was never made. The title names the brand. | Status | Title | | - | - | | `409` | Sign in to Zaptec first | | `409` | Sign in to Easee first | ## Where you see it Only inside the hosted flow, which handles it. You don't need to handle it in your app or on your server. ## What it means Connecting a Easee or Zaptec charger needs your user's sign-in to that brand from earlier in the link session. That sign-in has expired, or the brand no longer accepts it. Your user sees that their sign-in expired and signs in again. ## What to do Nothing. ## Example ```json theme={null} { "type": "https://developer.plugchoice.com/sdk/errors/vendor-sign-in-required", "title": "Sign in to Zaptec first", "status": 409, "code": "vendor-sign-in-required", "detail": "The Zaptec sign-in has expired or was never made. Sign in again." } ``` # vendor-unavailable Source: https://developer.plugchoice.com/sdk/errors/vendor-unavailable The brand's cloud couldn't be reached. The title names the brand. | Status | Title | | - | - | | `503` | Zaptec is unavailable | | `503` | Easee is unavailable | ## Where you see it Only inside the hosted flow, which handles it. You don't need to handle it in your app or on your server. ## What it means Easee's or Zaptec's cloud couldn't be reached, timed out or failed. Your user sees that the brand can't be reached and can try again in a few minutes. ## What to do Nothing. ## Example ```json theme={null} { "type": "https://developer.plugchoice.com/sdk/errors/vendor-unavailable", "title": "Zaptec is unavailable", "status": 503, "code": "vendor-unavailable", "detail": "Zaptec could not be reached. Try again in a few minutes." } ``` # Get started Source: https://developer.plugchoice.com/sdk/get-started Add a charger from your app: one endpoint on your server, a few lines in your app, and a check on your server afterwards. > [!NOTE] > > The Plugchoice SDK is in beta. Until version 1.0, a minor version may change the SDK or the SDK API. Pin the SDK version in your app and the `Plugchoice-Version` header on your server. This guide adds a charger end to end, in test mode. You write one endpoint on your server, open Link from your app, and confirm the outcome on your server. ## Before you start * **Test credentials** for the SDK API: a client ID and secret. Email [support@plugchoice.com](mailto:support@plugchoice.com) to get them; see [Test and live](/sdk/concepts/test-and-live). * **The SDK in your app**: follow [Installation](/sdk/install) and the configuration on your platform's page ([iOS](/sdk/ios), [Android](/sdk/android), [React Native](/sdk/react-native)). * **A charger to add**: an Alfen, Charge Amps, Easee, Enovates, go-e, Peblar, Ratio, SolarEdge, Teltonika, Volt Time, Wallbox, Webasto or Zaptec charger, or any other OCPP 1.6 charger. Test mode works with real chargers; see [Test and live](/sdk/concepts/test-and-live). * **A phone**: Wi-Fi hotspots, the local network and Bluetooth don't work in a simulator. ## 1. Get an access token Your server exchanges its client ID and secret for an access token, which lasts an hour: ```bash theme={null} curl -X POST https://app.plugchoice.com/oauth/token \ -d grant_type=client_credentials \ -d client_id=YOUR_CLIENT_ID \ -d client_secret=YOUR_CLIENT_SECRET ``` Reuse the token until it expires. In Node: ```ts plugchoice.ts theme={null} const API = 'https://api.plugchoice.com/sdk/v1'; const VERSION = '2026-10-07'; let token: { value: string; expiresAt: number } | null = null; export async function plugchoiceToken(): Promise { if (token && token.expiresAt > Date.now() + 60_000) return token.value; const response = await fetch('https://app.plugchoice.com/oauth/token', { method: 'POST', body: new URLSearchParams({ grant_type: 'client_credentials', client_id: process.env.PLUGCHOICE_CLIENT_ID!, client_secret: process.env.PLUGCHOICE_CLIENT_SECRET!, }), }); if (!response.ok) throw new Error(`Plugchoice token: ${response.status}`); const body = await response.json(); token = { value: body.access_token, expiresAt: Date.now() + body.expires_in * 1000 }; return token.value; } export async function plugchoice(path: string, init: RequestInit = {}) { return fetch(`${API}${path}`, { ...init, headers: { Authorization: `Bearer ${await plugchoiceToken()}`, 'Content-Type': 'application/json', 'Plugchoice-Version': VERSION, ...init.headers, }, }); } ``` ## 2. Write your endpoint Your app asks your server for a client secret whenever Link needs one. It sends the action Link opens for, so your server can scope the client session to that action alone: the charger to work on, or where to add one. ```ts server.ts theme={null} import { plugchoice } from './plugchoice'; type LinkAction = { action: string; chargerId?: string; siteId?: string }; // What the client secret may reach: only what this action is about. function scopeFor(action: LinkAction) { if (action.action === 'add') { // Your user picks one of their own sites after signing in, or makes one at an address Link asks for. return { new_site: true }; } if (!action.chargerId) throw new Error(`${action.action} needs a charger`); return { chargers: [action.chargerId] }; } app.post('/plugchoice/client-secret', requireSignedInUser, async (req, res) => { const response = await plugchoice('/client-sessions', { method: 'POST', body: JSON.stringify({ external_user_id: req.user.id, email: req.user.email, // prefills signing in to their Plugchoice account scope: scopeFor(req.body), language: req.user.language, }), }); if (!response.ok) return res.status(502).json(await response.json()); const session = await response.json(); res.json({ clientSecret: session.client_secret }); }); ``` * `external_user_id` is your own id for the signed-in user. The first client session for it creates that user at Plugchoice. * The charger goes to your user's own Plugchoice account, and you get access to it. That's the default; Plugchoice can set your integration up so the chargers go to your team instead, and then an `add` with a `siteId` scopes to `{ sites: [siteId] }`. See [Client sessions and scopes](/sdk/concepts/client-sessions). * The SDK API checks every id in the scope against that user: a charger that isn't theirs, or that they didn't give you access to, is [`404 not-found`](/sdk/errors/not-found). * The client secret works for an hour. Link asks for a new one by itself when it runs out. > [!TIP] > > Do you already know your user's address? Send `scope: { location: { reference, address, timezone } }` instead of `new_site`, as the address of the charger's site. When the charger goes to your user's own account, it's a hint for the site they pick. See [Client sessions and scopes](/sdk/concepts/client-sessions). The same request with curl: ```bash theme={null} curl -X POST https://api.plugchoice.com/sdk/v1/client-sessions \ -H "Authorization: Bearer YOUR_ACCESS_TOKEN" \ -H "Plugchoice-Version: 2026-10-07" \ -H "Content-Type: application/json" \ -d '{ "external_user_id": "user-123", "scope": { "new_site": true } }' ``` ```json theme={null} { "id": "5b0c2f8e-4d1a-4c3b-9e7f-2a6d8c1b0e94", "client_secret": "cs_test_Hq3k9d0mR2xYw7pLf8sVb1nC4eTgJ6aZuQ5iKoXyM0w", "expires_at": "2026-10-07T13:00:00Z", "web_url": "https://connect.plugchoice.com/#cs=cs_test_Hq3k9d0mR2xYw7pLf8sVb1nC4eTgJ6aZuQ5iKoXyM0w" } ``` ## 3. Give the SDK your endpoint Create one SDK instance when your app starts. Its `fetchClientSecret` calls your endpoint with the action and returns the client secret. > [tab] iOS > > ```swift theme={null} > import PlugchoiceSDK > > // One instance for your app's lifetime. > let plugchoice = Plugchoice(fetchClientSecret: { action in > // action.action ("add", "network", …), action.chargerId, action.siteId > try await backend.plugchoiceClientSecret(for: action) > }) > ``` > [tab] Android > > ```kotlin theme={null} > // One instance for your app's lifetime. The callback runs on the main thread: > // call your server with a suspending client. > val plugchoice = Plugchoice(fetchClientSecret = { action -> > // action.name ("add", "network", …), action.chargerId, action.siteId > backend.plugchoiceClientSecret(action) > }) > ``` > [tab] React Native > > ```ts theme={null} > import { configurePlugchoice } from '@plugchoice/react-native'; > > // Once, when your app starts. > configurePlugchoice({ > // action: { action: 'add' | 'reconnect' | …, chargerId?, siteId? } > fetchClientSecret: (action) => backend.plugchoiceClientSecret(action), > }); > ``` `backend.plugchoiceClientSecret` stands for your own code: it posts the action's name, `chargerId` and `siteId` to your endpoint, with your user's session, and returns `clientSecret`. If it fails or takes longer than 30 seconds, Link shows an error screen with **Try again**. ## 4. Open Link Open Link with the `add` action, for example from an **Add charger** button: > [tab] iOS > > ```swift theme={null} > plugchoice.link.present(.addCharger(), from: viewController) { result in > handle(result) > } > ``` > [tab] Android > > ```kotlin theme={null} > private val openLink = registerForActivityResult(plugchoice.link.contract()) { result -> > handle(result) > } > > openLink.launch(LinkAction.addCharger()) > ``` > [tab] React Native > > ```ts theme={null} > import { openLink } from '@plugchoice/react-native'; > > const result = await openLink({ action: 'add' }); > handle(result); > ``` Your user agrees to share their charger with you, picks the brand and model, and Link sets the charger up. Then your user signs in to their Plugchoice account, or creates one, with a code by email, Google or Apple, and picks the site it goes to. ![Link's consent screen: connect your charger to Acme Energy](/images/sdk/consent-light.webp) Consent, the first time ![Link setting up a charger, step by step](/images/sdk/run-list-light.webp) Setting up the charger ![Link showing that the charger is connected](/images/sdk/done-light.webp) Done ## 5. Handle the result Link closes with a result. On success, send its `sessionId` to your server. > [tab] iOS > > ```swift theme={null} > func handle(_ result: LinkResult) { > switch result.status { > case .success: > if let sessionId = result.sessionId { > Task { try await backend.linkSessionFinished(sessionId) } > } > case .cancelled: > break // Your user left; nothing changed. > case .error: > print("Link failed:", result.error?.code ?? "unknown") > } > } > ``` > [tab] Android > > ```kotlin theme={null} > fun handle(result: LinkResult) { > when (result.status) { > LinkResult.Status.SUCCESS -> result.sessionId?.let { backend.linkSessionFinished(it) } > LinkResult.Status.CANCELLED -> Unit // Your user left; nothing changed. > LinkResult.Status.ERROR -> Log.w("Link", "Link failed: ${result.error?.code}") > } > } > ``` > [tab] React Native > > ```ts theme={null} > function handle(result: LinkResult) { > if (result.status === 'success' && result.sessionId) { > backend.linkSessionFinished(result.sessionId); > } else if (result.status === 'error') { > console.warn('Link failed:', result.error?.code); > } > // 'cancelled': your user left; nothing changed. > } > ``` The result also lists the `devices` Link finished, `{ type: "charger", id }`. Use it to update your screen, but let your server decide what's true. ## 6. Confirm on your server Read the link session with [Get a link session](/sdk/api/get-link-session), check it belongs to the signed-in user, and store its chargers: ```ts server.ts theme={null} app.post('/plugchoice/link-sessions/:id', requireSignedInUser, async (req, res) => { const response = await plugchoice(`/link-sessions/${encodeURIComponent(req.params.id)}`); if (!response.ok) return res.sendStatus(404); const linkSession = await response.json(); if (linkSession.external_user_id !== req.user.id) return res.sendStatus(404); if (linkSession.status === 'completed') { for (const device of linkSession.devices) { if (device.type === 'charger') await saveCharger(req.user, device.id); } } res.json({ status: linkSession.status }); }); ``` ```json theme={null} { "id": "0b8a6f3e-1c2d-4e5f-8a9b-0c1d2e3f4a5b", "started_by": "integration", "external_user_id": "user-123", "site_id": "7d0f6f3e-2b0b-4c55-9b1e-3c6b8f0a9e21", "action": "add", "device_type": "charger", "charger_id": null, "status": "completed", "charger_ids": ["2f1c8e47-5a4b-4c3d-9e2f-1a0b9c8d7e6f"], "devices": [{ "type": "charger", "id": "2f1c8e47-5a4b-4c3d-9e2f-1a0b9c8d7e6f" }], "claims": [], "abandon_reason": null, "error": null, "created_at": "2026-10-07T12:00:00Z", "opened_at": "2026-10-07T12:00:01Z", "ended_at": "2026-10-07T12:06:40Z", "expires_at": "2026-10-07T18:00:01Z" } ``` You can list all of a user's chargers at any time with `GET /sdk/v1/chargers?external_user_id=user-123`, and their charging sessions with `GET /sdk/v1/transactions?external_user_id=user-123` when they let you read them (`sessions:read`). See [Link sessions](/sdk/concepts/link-sessions) for what each status means, and [List transactions](/sdk/api/list-transactions). ## 7. Offer the next actions Once a charger is added, your app can open Link for it again: to set it up (`setup`), or to bring it back online or change its network (`reconnect`). Show each only where it works: the charger's `capabilities` from [Get a charger](/sdk/api/get-charger) say what Plugchoice can do for it, and the SDK's `transports()` says what this phone can do. See [Devices and capabilities](/sdk/concepts/capabilities). > [tab] iOS > > ```swift theme={null} > plugchoice.link.present(.reconnect(chargerId: chargerId), from: viewController) { result in > handle(result) > } > ``` > [tab] Android > > ```kotlin theme={null} > openLink.launch(LinkAction.reconnect(chargerId)) > ``` > [tab] React Native > > ```ts theme={null} > const result = await openLink({ action: 'reconnect', chargerId }); > ``` Your endpoint from step 2 already scopes these to the one charger. ## 8. Go live When your integration works in test mode, email [support@plugchoice.com](mailto:support@plugchoice.com) to go live. Plugchoice switches your integration to live: its client secrets then start with `cs_live_`, and nothing in your code changes. Check your profile and accent colour under **Settings > SDK** first, for the consent screen; see [Consent and branding](/sdk/concepts/consent-and-branding). # How Link works Source: https://developer.plugchoice.com/sdk/how-link-works The few ideas behind the Plugchoice SDK, in plain words. Link is a set of screens that guides your user through connecting their charger. Three parties work together to show it: your app, your server and Plugchoice. This page walks through one charger being added, and the ideas you meet along the way. ## One charger, start to finish **1. Your user taps Connect charger** Your app opens Link for an **action**: what your user wants to do. Here that's `add`, to add a charger. **2. The SDK asks your server for a client secret** The SDK calls your app's callback, which asks your server. Your server asks Plugchoice for a **client session** for this user, and passes its secret back. Your own API credentials never leave your server. **3. Your user agrees to share their charger** The first time, Link asks your user to agree to the scopes you ask for, such as seeing their charging sessions or controlling their charger. It asks again only when you ask for more. See [Consent and branding](/sdk/concepts/consent-and-branding). ![The consent screen: Connect your charger to Acme Energy](/images/sdk/consent-light.webp) **4. Link sets up the charger** Your user picks their charger's brand and follows the steps for it. Link does the technical work, such as joining the charger's own Wi-Fi or talking to it over Bluetooth, and shows its progress as a checklist. ![Setting up your charger: a checklist with the steps done so far](/images/sdk/run-list-light.webp) **5. Your user signs in to Plugchoice** The charger goes to your user's own Plugchoice account, and you get access to it with the scopes they agreed to. Your user signs in, or creates an account, with a code by email, Google or Apple, and picks the site it goes to. When Plugchoice set your integration up so the chargers go to your team, there's no sign-in. **6. Your user checks what's saved** Link shows what it saves with the charger: the settings it read or asked for, the cards and charging history it found on the charger, and the operator it keeps. When the charger had no other operator, Link first asks whether your user uses one, such as a platform that bills charging sessions to an employer. **7. Link closes and tells your app** Your app gets the result: whether it worked, and which chargers were added. Your server confirms it with Plugchoice, and the charger is ready to use in your app. ## The ideas behind it > [accordion] Actions: what your user wants to do > > Your app opens Link for one action at a time: > > | Action | What your user does | > | - | - | > | `add` | Adds a new charger | > | `setup` | Tells Plugchoice how the charger is wired, such as its maximum current | > | `reconnect` | Brings a charger back online, or moves it to another network | > > Everything except `add` is about one charger, so you pass its id. [Actions](/sdk/concepts/actions) > [accordion] Client sessions: a short-lived pass for one user > > A client session is like a visitor's pass. Your server creates one for the signed-in user, and it says which chargers and sites that user may touch: its **scope**. It's valid for an hour. > > Its **client secret** is what your app hands to the SDK. Because the scope is in the client session, a secret can't reach the rest of your chargers, even if someone copies it. [Client sessions](/sdk/concepts/client-sessions) > [accordion] Link sessions: one time through Link > > Each time your user goes through Link, Plugchoice keeps a record of it: a link session. It says how it ended (finished, left or failed) and which chargers it finished. > > Your app gets the link session's id when Link closes and passes it to your server. Your server reads the link session from Plugchoice before it relies on the result, and checks it's for the signed-in user. If your app never reports back, for example because it was closed, the link session is still there. [Link sessions](/sdk/concepts/link-sessions) > [accordion] Capabilities: which buttons to show > > Not every charger supports every action. Each charger in the SDK API lists its capabilities: whether Link can set it up, reconnect it and change its network, and what the phone needs for it, such as Bluetooth. > > Show a button only when the charger supports the action and the phone can do it. [Capabilities](/sdk/concepts/capabilities) > [accordion] Test and live: try it without risk > > You get test credentials first. Test mode works with real chargers, so you can try everything with your own. When your integration works, Plugchoice switches it to live. [Test and live](/sdk/concepts/test-and-live) ## Who does what | | Does | | - | - | | **Your app** | Shows the button, opens Link, and handles the result | | **Your server** | Creates client sessions and confirms the result. It keeps your API credentials. | | **The SDK** | Shows Link full screen, and gives it what only a phone can do: Wi-Fi, the local network, Bluetooth and the camera | | **Plugchoice** | Runs Link's screens, keeps them up to date for new brands, and connects the charger | ## Next > [card] [Get started](/sdk/get-started) > > Build the three pieces and add a charger, end to end. > [card] [Installation](/sdk/install) > > Add the SDK to your iOS, Android or React Native app. # Plugchoice SDK Source: https://developer.plugchoice.com/sdk/index Let the people using your app connect their EV charger to Plugchoice, without leaving your app. > [!NOTE] > > The Plugchoice SDK is in beta. Until version 1.0, a minor version may change the SDK or the SDK API. Pin the SDK version in your app and the `Plugchoice-Version` header on your server. With the Plugchoice SDK, your app gets a **Connect charger** button that does the hard part for you. Your user taps it, and Link guides them through the rest: finding the charger, connecting it to Wi-Fi and pointing it at Plugchoice. When they're done, the charger is in your app, ready to use. ![An energy app with a Connect charger button, then the consent screen, then the charger being set up](/images/sdk/flow-light.webp) ## What your users can do > [card] Add a charger > > Connect a new charger to Plugchoice and to your app. > [card] Change its Wi-Fi > > Move a charger to another Wi-Fi network, for example after a new router. > [card] Set it up > > Tell Plugchoice how the charger is wired, such as its maximum current. > [card] Reconnect it > > Bring a charger back online when it lost its connection to Plugchoice. ## What you build Three small pieces, and Link does the rest: **1. An endpoint on your server** It asks Plugchoice for a **client secret**: a short-lived pass that says who your user is and which chargers they may touch. **2. A button in your app** It opens Link. The SDK gets the client secret from your endpoint when it needs one. **3. A check when Link closes** Your app hears how it went, and your server confirms it with Plugchoice. [How Link works](/sdk/how-link-works) explains each piece, and [Get started](/sdk/get-started) builds them. ## What your server reads The [SDK API](/sdk/api) lists your users' chargers, with what Link can do for each, and their charging sessions (transactions). By default the charger stays in your user's own Plugchoice account, and you get the scopes they agreed to: reading the charger, and when you ask for them, its charging sessions, its address and control of it. Plugchoice can also set your integration up so the chargers go to your team. See [Client sessions and scopes](/sdk/concepts/client-sessions). ## Why Link * **Many brands, one button.** Alfen, Charge Amps, Easee, Enovates, go-e, Peblar, Ratio, SolarEdge, Teltonika, Volt Time, Wallbox, Webasto, Zaptec, and any other OCPP charger. Plugchoice keeps Link up to date, so new brands and fixes reach your users without an update of your app. * **What only a phone can do.** Link joins a charger's own Wi-Fi, finds it on the home network and talks to it over Bluetooth, behind the phone's usual permission prompts. * **Your look.** Your name, logo and colour, in light and dark, in seven languages. ## Platforms | Platform | Package | Works on | | - | - | - | | iOS | `PlugchoiceSDK` (Swift Package Manager) | iOS 16 and later | | Android | `com.plugchoice:plugchoice` (Maven Central) | Android 10 and later | | React Native and Expo | `@plugchoice/react-native` (npm) | Expo SDK 57 and later | | A web page | No package: open a link | Any browser | | No app or server | A start link or QR code you hand out | Any browser | A [start link](/sdk/web#without-an-app-or-a-server) needs no code at all: you make it under **Settings > SDK** in Plugchoice. The SDK is open source: [github.com/plugchoice/mobile-sdk](https://github.com/plugchoice/mobile-sdk). ## Get access Email [support@plugchoice.com](mailto:support@plugchoice.com) for test credentials. Test mode works with real chargers; see [Test and live](/sdk/concepts/test-and-live). ## Next > [card] [How Link works](/sdk/how-link-works) > > The few ideas behind the SDK, in plain words. > [card] [Get started](/sdk/get-started) > > Add a charger from your app, end to end. > [card] [Installation](/sdk/install) > > Add the SDK to your iOS, Android or React Native app. > [card] [Supported chargers](/sdk/chargers) > > What Link can do for each brand. # Installation Source: https://developer.plugchoice.com/sdk/install Add the Plugchoice SDK to your iOS, Android or React Native app. > [!NOTE] > > The Plugchoice SDK is in beta. Until version 1.0, a minor version may change the SDK or the SDK API. Pin the SDK version in your app and the `Plugchoice-Version` header on your server. The SDK has the same version on every platform. The source is on GitHub at [plugchoice/mobile-sdk](https://github.com/plugchoice/mobile-sdk). | Platform | Package | Requirements | | - | - | - | | iOS | `PlugchoiceSDK` with Swift Package Manager | iOS 16+, Xcode 16+ | | Android | `com.plugchoice:plugchoice` from Maven Central | Android 10 (API 29)+, `compileSdk 36` | | React Native and Expo | `@plugchoice/react-native` from npm | Expo SDK 57+, a development or release build | > [tab] iOS > > **Requirements**: iOS 16 or later, and Xcode 16 or later. On iOS 18 and later the SDK joins a charger's Wi-Fi through AccessorySetupKit; on iOS 16 and 17 it uses the classic join prompt. > > Add the package with Swift Package Manager. In Xcode, choose **File › Add Package Dependencies…**, enter `https://github.com/plugchoice/mobile-sdk`, pick **Up to Next Minor Version** from `0.4.0`, and add the `PlugchoiceSDK` library to your app target. > > In a `Package.swift`: > > ```swift Package.swift theme={null} > dependencies: [ > .package(url: "https://github.com/plugchoice/mobile-sdk", .upToNextMinor(from: "0.4.0")), > ], > targets: [ > .target(name: "YourApp", dependencies: [ > .product(name: "PlugchoiceSDK", package: "mobile-sdk"), > ]), > ] > ``` > > Then import it where you use it: > > ```swift theme={null} > import PlugchoiceSDK > ``` > [tab] Android > > **Requirements**: Android 10 (API 29) or later (`minSdk 29`), `compileSdk 36`, and JDK 17. Bluetooth on Android 12 and later needs your app to target API 31 or later. Scanning a charger's QR code uses Google Play services; on a device without them, the user types the code instead. > > The library is `com.plugchoice:plugchoice` on Maven Central. Make sure `mavenCentral()` is in your repositories (it usually is), then add the dependency to your app module: > > ```kotlin build.gradle.kts theme={null} > dependencies { > implementation("com.plugchoice:plugchoice:0.4.0") > } > ``` > > ```groovy build.gradle theme={null} > dependencies { > implementation 'com.plugchoice:plugchoice:0.4.0' > } > ``` > > The public API is in the package `com.plugchoice`. > [tab] React Native > > **Requirements**: Expo SDK 57 or later (React Native 0.86), in a development or release build of your app. Expo Go doesn't include the SDK's native code. iOS 16.4 or later, and Android 10 (API 29) or later. > > Install the package: > > ```bash theme={null} > npx expo install @plugchoice/react-native > ``` > > Add its config plugin to your app config. On every `npx expo prebuild` it adds what the SDK needs on iOS and Android: > > ```json app.json theme={null} > { > "expo": { > "plugins": ["@plugchoice/react-native"] > } > } > ``` > > Then rebuild the native app: `npx expo prebuild` and `npx expo run:ios` or `npx expo run:android`, or an EAS build. > > > [!NOTE] > > > > The package is an Expo module. A React Native app without Expo needs Expo modules first (`npx install-expo-modules@latest`), and then makes the native changes by hand, as on the [iOS](/sdk/ios#configure-your-app) and [Android](/sdk/android#configure-your-app) pages. ## Next steps Your app needs a few more settings before the SDK can join a charger's Wi-Fi, reach it on the local network or talk Bluetooth to it. Each platform page lists them: > [card] [iOS](/sdk/ios#configure-your-app) > > Entitlements and Info.plist keys. > [card] [Android](/sdk/android#configure-your-app) > > Permissions and plain HTTP to chargers. > [card] [React Native](/sdk/react-native#the-config-plugin) > > The config plugin and its options. The SDK also needs a client secret from your server. [Get started](/sdk/get-started) walks through the server endpoint and the app together. # iOS Source: https://developer.plugchoice.com/sdk/ios Add the Plugchoice SDK to an iOS app, open Link and handle the result. The iOS SDK is the Swift package `PlugchoiceSDK`. It shows Link, the hosted flow at `connect.plugchoice.com`, in a sheet, and does what a web page can't: join a charger's Wi-Fi, find and reach chargers on the local network, talk Bluetooth to them and scan a QR code. It works with UIKit and SwiftUI. ## Install **Requirements**: iOS 16 or later, and Xcode 16 or later. On iOS 18 and later the SDK joins a charger's Wi-Fi through AccessorySetupKit; on iOS 16 and 17 it uses the classic join prompt. Add the package with Swift Package Manager. In Xcode, choose **File › Add Package Dependencies…**, enter `https://github.com/plugchoice/mobile-sdk`, pick **Up to Next Minor Version** from `0.4.0`, and add the `PlugchoiceSDK` library to your app target. In a `Package.swift`: ```swift Package.swift theme={null} dependencies: [ .package(url: "https://github.com/plugchoice/mobile-sdk", .upToNextMinor(from: "0.4.0")), ], targets: [ .target(name: "YourApp", dependencies: [ .product(name: "PlugchoiceSDK", package: "mobile-sdk"), ]), ] ``` Then import it where you use it: ```swift theme={null} import PlugchoiceSDK ``` ## Configure your app ### Capabilities In Xcode, open your app target's **Signing & Capabilities** and add: | Capability | Entitlement | Why | | - | - | - | | **Hotspot Configuration** | `com.apple.developer.networking.HotspotConfiguration` | Joining a charger's own Wi-Fi | | **Access Wi-Fi Information** | `com.apple.developer.networking.wifi-info` | Reading the current network name, to confirm the join | Your App ID needs the same capabilities in the Apple Developer portal. ### Info.plist | Key | Why | Required | | - | - | - | | `NSLocalNetworkUsageDescription` | Talking to chargers on the local network: a charger's own Wi-Fi, or the home Wi-Fi | Yes | | `NSAppTransportSecurity` › `NSAllowsLocalNetworking` (`true`) | Plain HTTP to chargers on the local network | Yes | | `NSBluetoothAlwaysUsageDescription` | Setting chargers up over Bluetooth. App Store Connect asks for it anyway, because the SDK links CoreBluetooth. Without it the SDK doesn't use Bluetooth. | Yes | | `NSBonjourServices` | Finding chargers on the home Wi-Fi. iOS only looks for the service types an app declares. Declare at least `_alfen._tcp`, `_http._tcp` and `_https._tcp`. | Recommended | | `NSLocationWhenInUseUsageDescription` | Reading the network name after joining a charger's Wi-Fi | Recommended | | `NSCameraUsageDescription` | Scanning the QR code on a charger. Without it, the user types the code. | Recommended | | `NSAccessorySetupKitSupports` (`[WiFi]`) | On iOS 18 and later, one prompt per charger instead of a "Join network?" prompt on every join | Recommended | ```xml Info.plist theme={null} NSLocalNetworkUsageDescription Connect to your charger on your local network. NSBluetoothAlwaysUsageDescription Use Bluetooth to set up your charger. NSLocationWhenInUseUsageDescription Confirm that your phone joined your charger's Wi-Fi. NSCameraUsageDescription Scan the QR code on your charger. NSAppTransportSecurity NSAllowsLocalNetworking NSBonjourServices _alfen._tcp _http._tcp _https._tcp NSAccessorySetupKitSupports WiFi ``` Write the usage strings for your users: iOS shows them in its permission prompts. The SDK asks for each permission only when the flow needs it. > [!WARNING] > > Don't add `Bluetooth` to `NSAccessorySetupKitSupports`. It would limit CoreBluetooth in your whole app to accessories set up through AccessorySetupKit, and the SDK's Bluetooth would stop working. ## Create the SDK Create one `Plugchoice` instance for your app's lifetime. Give it a callback that fetches a client secret from your server: ```swift theme={null} import PlugchoiceSDK let plugchoice = Plugchoice(fetchClientSecret: { action in // action.action ("add", "network", …), action.chargerId, action.siteId try await backend.plugchoiceClientSecret(for: action) }) ``` The callback calls your own endpoint, which creates a client session scoped to the action and returns its secret. [Get started](/sdk/get-started) shows that endpoint. In the app, it can look like this: ```swift theme={null} struct Backend { let baseURL: URL func plugchoiceClientSecret(for action: LinkAction) async throws -> String { var request = URLRequest(url: baseURL.appending(path: "plugchoice/client-secret")) request.httpMethod = "POST" request.setValue("application/json", forHTTPHeaderField: "Content-Type") // Add your own authentication: your server needs to know who is signed in. request.httpBody = try JSONEncoder().encode([ "action": action.action, "chargerId": action.chargerId, "siteId": action.siteId, ]) let (data, response) = try await URLSession.shared.data(for: request) guard (response as? HTTPURLResponse)?.statusCode == 200 else { throw URLError(.badServerResponse) } struct Answer: Decodable { let clientSecret: String } return try JSONDecoder().decode(Answer.self, from: data).clientSecret } } ``` The SDK calls `fetchClientSecret` when Link opens, while the hosted flow loads. It calls it again, with the same action, whenever the secret expires (after 60 minutes), so a user can take as long as they need. The secret never goes into a URL, and the SDK never logs it. ## Open Link Open Link with an action, from a view controller: ```swift theme={null} plugchoice.link.present(.addCharger(), from: viewController) { result in // Called once, on the main thread, after the sheet is dismissed. } ``` In SwiftUI, use the `plugchoiceLink` modifier. Setting `isPresented` to `false` closes Link with `cancelled`. ```swift theme={null} struct ChargerView: View { let plugchoice: Plugchoice let chargerId: String @State private var showLink = false var body: some View { Button("Network settings") { showLink = true } .plugchoiceLink(isPresented: $showLink, plugchoice: plugchoice, action: .reconnect(chargerId: chargerId)) { result in // Handle the result. } } } ``` The actions: | Action | Helper | | - | - | | Add a charger, optionally at one of your user's sites | `.addCharger()`, `.addCharger(siteId:)` | | Set a charger up | `.setup(chargerId:)` | | Reconnect a charger to Plugchoice | `.reconnect(chargerId:)` | | An action this SDK version has no helper for yet | `.custom(_:chargerId:)` | The SDK passes the action to the hosted flow without reading it, so a new action works through `.custom` before it gets a helper. Your client session's scope must cover the action's charger or site. [Actions](/sdk/concepts/actions) explains each one. Link is a sheet the user can't swipe away. It keeps the screen awake while it's open, because a charger's Wi-Fi connection drops when the phone locks. ## Handle the result The completion gets a `LinkResult`: **status** `LinkResult.Status` `.success`, `.cancelled` or `.error`. **action** `String` The action the link session did. The user may have picked another one from the list of what a charger can do; otherwise it's the action you opened. **sessionId** `String?` The link session, when the hosted flow started one. `nil` when Link closed before that. **devices** `[Device]` The devices the link session reported, each `{ type, id }`. On `.success`, the devices it finished. `type` is `"charger"` today; ignore types you don't know. **error** `LinkError?` On `.error`: a `code`, and a `message` for your logs. ```swift theme={null} plugchoice.link.present(.addCharger(), from: viewController) { result in switch result.status { case .success: let chargerIds = result.devices.filter { $0.type == "charger" }.map(\.id) // Tell your server about result.sessionId; it confirms the outcome. case .cancelled: break // The user left. Nothing changed. case .error: log(result.error?.description ?? "unknown") } } ``` The result is for your app's UI. Before you rely on it, your server confirms it with [Get a link session](/sdk/api/get-link-session) (`GET /sdk/v1/link-sessions/{id}`). [Link sessions](/sdk/concepts/link-sessions) explains why. ## Errors On `.error`, `result.error?.code` says why. The SDK sets two codes itself: | Code | When | | - | - | | `pageLoadFailed` | The hosted flow didn't load (no internet, server unreachable). The SDK showed a "The page did not load" screen with **Try again**, and the user closed it. | | `internal` | The SDK couldn't run the hosted flow. | Every other code comes from the hosted flow. The one to know is `clientSecretUnavailable`: your `fetchClientSecret` threw, returned an empty string or took longer than 30 seconds. The user then sees this screen, with **Try again**, and the result reports `clientSecretUnavailable` if they close it. ![The hosted flow's error screen when the app couldn't get a client secret, with a Try again button](/images/sdk/secret-unavailable-light.webp) What the user sees when fetchClientSecret fails Other codes are for your logs; don't branch on them. [Errors](/sdk/errors) lists them. ## Show actions where they work Not every charger can do every action, and not every phone has what an action needs. Show a button only when both are true: * The charger's [capability](/sdk/concepts/capabilities) for it is `capable`. Your server reads it with [Get a charger](/sdk/api/get-charger). * Every transport in the capability's `needs` is in `Plugchoice.transports()`. ```swift theme={null} // A capability as your server passed it on from the SDK API: // { "capable": true, "needs": ["ble"] } struct Capability: Decodable { let capable: Bool let needs: [String] } func canOffer(_ capability: Capability) -> Bool { capability.capable && Set(capability.needs).isSubset(of: Plugchoice.transports()) } ``` `Plugchoice.transports()` asks for no permission. It returns: * `wifi`, `http` and `socket`: always. * `lan`: when your Info.plist declares at least one type in `NSBonjourServices`. * `ble`: on a device with Bluetooth LE (not the simulator), when your Info.plist has `NSBluetoothAlwaysUsageDescription`. ## Test on a real device The simulator can open Link and run the flow up to the charger, but it can't reach one. Use an iPhone for: * joining a charger's Wi-Fi, and the AccessorySetupKit prompt on iOS 18 and later * the Local Network prompt, and finding chargers on the home Wi-Fi * everything Bluetooth (the simulator has no Bluetooth) * scanning a QR code with the camera The [example app](https://github.com/plugchoice/mobile-sdk/tree/main/ios/Example) opens Link with a client secret you paste, for any action. # Chargee Source: https://developer.plugchoice.com/sdk/meters/chargee Add a Chargee Sparky or Flint by the code on its side: Plugchoice reads it through Chargee's cloud. Chargee meter readers are added through Chargee's cloud. Your user scans the code on the side of the reader, and Plugchoice reads the meter through Chargee. Nothing runs on the phone, so this works the same in your app and in a browser. | | | | - | - | | Models | Sparky, Flint | | Onboarding method | `vendor_cloud` | | What the phone needs | Nothing | | In a browser | Yes | ## Adding a meter reader **1. The code** The QR code is on the side of the reader. Your user scans it with the phone's camera, or types the code on the sticker. In a browser, they type it. ![Scan the code on the meter: the button to scan the QR code](/images/sdk/chargee-scan-light.webp) ![Scan the code on the meter: the scanned code, ready to continue](/images/sdk/chargee-code-light.webp) **2. The first readings** Link waits until Chargee has a reading from the meter. When there is none, it says why, for example that the reader isn't in the P1 port. Then it asks for the main fuse when the site has no load balancing yet. ![Waiting for the first readings: Chargee sends the meter's readings to Plugchoice](/images/sdk/chargee-waiting-light.webp) What to know: * **Chargee shares the meter first.** Plugchoice knows a Chargee reader once Chargee has shared it. A code Plugchoice doesn't know yet says so ([`meter-not-found`](/sdk/errors/meter-not-found)), and your user can check the code and try again. ![Meter not on Plugchoice yet: check the code against the meter and try again](/images/sdk/chargee-not-found-light.webp) * **One account per meter.** A reader that's already connected to another account stays there ([`identity-taken`](/sdk/errors/identity-taken)). * **The reader's own setup** (its Wi-Fi, its place on the P1 port) happens in the Chargee app, before or after Link. # Meters Source: https://developer.plugchoice.com/sdk/meters/index Add a grid meter for load balancing: a reader on the smart meter tells Plugchoice what the house draws. Link also adds grid meters. A meter reader on the smart meter's P1 port tells Plugchoice how much the house draws from the grid, and load balancing uses that to keep the chargers at the site under the main fuse. Link adds meter readers from Chargee and Reduxi, each with a setup made for the brand. ![Add a meter reader to Home: it reads your smart meter, so your chargers never draw more than the main fuse allows](/images/sdk/meter-intro-light.webp) ## Open Link for a meter Create the [client session](/sdk/api/create-client-session) with `device_type: "meter"` and the site the meter is for, then open Link with the `add` action as you would for a charger. ```bash curl theme={null} curl https://api.plugchoice.com/sdk/v1/client-sessions \ -u "$PLUGCHOICE_CLIENT_ID:$PLUGCHOICE_CLIENT_SECRET" \ -H "Plugchoice-Version: 2026-10-07" \ -H "Content-Type: application/json" \ -d '{ "external_user_id": "user_42", "device_type": "meter", "scope": { "sites": ["8f6e2c1a-4b7d-4e2f-9a3c-5d1b7e9f0a2c"] } }' ``` ```ts Node theme={null} const response = await fetch('https://api.plugchoice.com/sdk/v1/client-sessions', { method: 'POST', headers: { Authorization: `Basic ${btoa(`${clientId}:${clientSecret}`)}`, 'Plugchoice-Version': '2026-10-07', 'Content-Type': 'application/json', }, body: JSON.stringify({ external_user_id: 'user_42', device_type: 'meter', scope: { sites: ['8f6e2c1a-4b7d-4e2f-9a3c-5d1b7e9f0a2c'] }, }), }); const { client_secret } = await response.json(); ``` A link session adds one kind of device: a meter session offers meter readers only, never chargers. A meter needs a site; without one in the scope or a `location`, Link asks for the address first. When you already know the brand, set `vendor` to `chargee` or `reduxi`; `methods` takes `vendor_cloud` (Chargee) and `local_hotspot` (Reduxi). ## What each brand can do ![Which meter reader do you have: Chargee and Reduxi](/images/sdk/meter-brands-light.webp) | Brand | Models | Onboarding method | Phone needs | In a browser | | - | - | - | - | - | | [Chargee](/sdk/meters/chargee) | Sparky, Flint | `vendor_cloud` | - | | | [Reduxi](/sdk/meters/reduxi) | P1 Ultra | `local_hotspot` | `wifi`, `tcp` | | Where the phone or browser can't do a brand's setup, Link leaves the brand out. ## After the setup Link waits until the meter's first readings arrive, for at most three minutes. When the site has no load balancing yet, your user then gives the main fuse and the grid type, and load balancing starts with the chargers at the site. ![Your main fuse: the main fuse per phase in amps, and the grid type](/images/sdk/meter-fuse-light.webp) The result's `devices` hold `{ "type": "meter", "id": "…" }`, as the [link session](/sdk/concepts/link-sessions) does in `devices` and `meter_ids`. The readings start without your app: they go straight from the meter to Plugchoice. ![Your meter reader is connected](/images/sdk/meter-done-light.webp) Load balancing needs the Smart license on the chargers. Without it, the meter is added and measures nothing until they have it; your user is told so. ## New brands Support for a meter brand lives in the hosted flow, not in the SDK. A new brand reaches your users without a new release of your app. # Reduxi Source: https://developer.plugchoice.com/sdk/meters/reduxi Add a Reduxi P1 Ultra from its label: the phone joins the reader's own hotspot and points it at Plugchoice. Link sets up a Reduxi P1 Ultra from the label on it. The phone joins the reader's own Wi-Fi hotspot, points it at Plugchoice, and gives it the home Wi-Fi. Your user stays near the meter cupboard while it's set up. | | | | - | - | | Models | P1 Ultra (firmware 1.0.24 or later) | | Onboarding method | `local_hotspot` | | What the phone needs | `wifi`, `tcp` | | In a browser | No | ## Adding a meter reader **1. The label** The label has a QR code with the reader's unit ID and password. Your user scans it, or types both. Link registers the meter reader with Plugchoice while the phone still has internet. ![Find the meter reader's label: scan the QR code, or type the details](/images/sdk/reduxi-label-light.webp) **2. The setup** The phone joins the reader's hotspot (`P1WiFi` and the last four characters of the unit ID); your user taps **Join** when the phone asks. Link checks that the reader is the one on the label, finds which smart meter it's on, and points it at Plugchoice. ![Setting up the meter reader: connect, choose your smart meter, connect to Plugchoice, set up its Wi-Fi](/images/sdk/reduxi-run-light.webp) **3. Its Wi-Fi** Link lists the networks the reader can see, and your user picks theirs and types its password. The reader uses 2.4 GHz Wi-Fi only. It restarts onto that network, and the phone returns to its own. ![Choose a Wi-Fi network: the networks the meter reader can see](/images/sdk/reduxi-wifi-light.webp) **4. The first readings** Link waits until the reader's readings reach Plugchoice, then asks for the main fuse when the site has no load balancing yet. ![Waiting for the first readings](/images/sdk/meter-waiting-light.webp) What to know: * **A sign-in page may open.** On iPhones, joining the reader's hotspot can open the reader's own sign-in page. Your user closes it; Link does the setup. * **No internet during the setup.** The phone is on the reader's hotspot for part of it, which has no internet. The SDK keeps the hosted flow working, and keeps the screen awake. * **A reader set up before** is set up again the same way, for example after a new router. Every setup gives it a new login to Plugchoice, so the old one stops working. ## What your app needs * **iOS**: the Hotspot Configuration and Access Wi-Fi Information entitlements, and `NSLocalNetworkUsageDescription`. See [iOS](/sdk/ios). * **Android**: nothing extra. The reader's setup is plain HTTP, which Link sends over the SDK's own TCP connection, so your network security configuration doesn't need to allow it. See [Android](/sdk/android). * **React Native**: the config plugin sets up iOS. See [React Native](/sdk/react-native). # React Native Source: https://developer.plugchoice.com/sdk/react-native Add the Plugchoice SDK to a React Native or Expo app, open Link and handle the result. The React Native package brings Link to your Expo or React Native app, on iOS and Android. Its config plugin makes the native changes for you, so you only write TypeScript. ## Install **Requirements**: Expo SDK 57 or later (React Native 0.86), in a development or release build of your app. Expo Go doesn't include the SDK's native code. iOS 16.4 or later, and Android 10 (API 29) or later. Install the package: ```bash theme={null} npx expo install @plugchoice/react-native ``` Add its config plugin to your app config. On every `npx expo prebuild` it adds what the SDK needs on iOS and Android: ```json app.json theme={null} { "expo": { "plugins": ["@plugchoice/react-native"] } } ``` Then rebuild the native app: `npx expo prebuild` and `npx expo run:ios` or `npx expo run:android`, or an EAS build. > [!NOTE] > > The package is an Expo module. A React Native app without Expo needs Expo modules first (`npx install-expo-modules@latest`), and then makes the native changes by hand, as on the [iOS](/sdk/ios#configure-your-app) and [Android](/sdk/android#configure-your-app) pages. > [accordion] What the config plugin adds > > On every `npx expo prebuild`, the plugin adds what the SDK needs and keeps what your app already has. > > | Platform | What | Why | > | - | - | - | > | iOS | Permission texts for the local network, Bluetooth, location and the camera | iOS shows them when Link first needs each one | > | iOS | The Hotspot Configuration and Access Wi-Fi Information entitlements | To join a charger's own Wi-Fi, and confirm the phone joined it | > | iOS | AccessorySetupKit for Wi-Fi | On iOS 18 and later, one prompt per charger instead of one on every join | > | iOS | Bonjour service types | To find chargers on the home Wi-Fi | > | iOS | Local networking in App Transport Security | To reach chargers over plain HTTP on the local network | > | Android | Android 10 (API 29) as the minimum | The SDK needs it | > > The SDK's Android permissions come with the package. Your App ID needs the matching capabilities; EAS Build syncs them from the entitlements. The [iOS](/sdk/ios#configure-your-app) and [Android](/sdk/android#permissions) pages say more about each. > > > [!WARNING] > > > > Don't add `Bluetooth` to AccessorySetupKit yourself. It would limit Bluetooth in your whole app to accessories set up that way, and Link's Bluetooth would stop working. > [accordion] Use your own permission texts > > Pass your texts as options to the plugin: > > ```json app.json theme={null} > { > "expo": { > "plugins": [ > ["@plugchoice/react-native", { "cameraPermission": "Scan the QR code on your charger." }] > ] > } > } > ``` > > | Option | What it does | > | - | - | > | `cameraPermission` | The camera text. `false` leaves the camera out: your user types the charger's code instead of scanning it. | > | `locationWhenInUsePermission` | The location text. iOS asks for it to read the Wi-Fi network's name. `false` leaves it out. | > | `localNetworkPermission` | The local network text. | > | `bluetoothPermission` | The Bluetooth text. `false` leaves Bluetooth out on iOS. | > | `accessorySetupKit` | `false` leaves AccessorySetupKit alone. | > | `bonjourServices` | More service types to look for, such as `"_myvendor._tcp"`. | > > An option wins over a text your app already has, which wins over the plugin's default. > [accordion] Peblar chargers on Android > > Peblar chargers are set up over plain HTTP on their own Wi-Fi, at `http://172.16.0.1`. Android blocks plain HTTP in release builds, and the plugin doesn't change that. Allow it for that one address with a small config plugin of your own: > > ```js plugins/with-charger-cleartext.js theme={null} > const fs = require('fs'); > const path = require('path'); > const { withAndroidManifest, withDangerousMod } = require('expo/config-plugins'); > > const MAIN = ` > > > 172.16.0.1 > > > `; > > // Debug builds load JavaScript from Metro over plain HTTP. > const DEBUG = ` > > > > `; > > function write(root, sourceSet, contents) { > const dir = path.join(root, 'app', 'src', sourceSet, 'res', 'xml'); > fs.mkdirSync(dir, { recursive: true }); > fs.writeFileSync(path.join(dir, 'network_security_config.xml'), contents); > } > > module.exports = function withChargerCleartext(config) { > config = withAndroidManifest(config, (config) => { > const app = config.modResults.manifest.application?.[0]; > if (app) { > app.$ = app.$ ?? {}; > app.$['android:networkSecurityConfig'] = '@xml/network_security_config'; > } > return config; > }); > return withDangerousMod(config, [ > 'android', > (config) => { > write(config.modRequest.platformProjectRoot, 'main', MAIN); > write(config.modRequest.platformProjectRoot, 'debug', DEBUG); > return config; > }, > ]); > }; > ``` > > Then add it after the SDK's plugin: > > ```json app.json theme={null} > { > "expo": { > "plugins": ["@plugchoice/react-native", "./plugins/with-charger-cleartext"] > } > } > ``` ## Configure the SDK Tell the SDK how to get a client secret from your server. Do this once, when your app starts: ```ts theme={null} import { configurePlugchoice } from '@plugchoice/react-native'; configurePlugchoice({ fetchClientSecret: async (action) => { const response = await fetch('https://api.example.com/plugchoice/client-secret', { method: 'POST', // Add your own authentication: your server needs to know who is signed in. headers: { 'Content-Type': 'application/json' }, body: JSON.stringify(action), }); if (!response.ok) throw new Error(`client secret: HTTP ${response.status}`); const { clientSecret } = await response.json(); return clientSecret; }, }); ``` Your server creates a client session for the signed-in user and returns its secret. [Get started](/sdk/get-started) shows that endpoint. > [accordion] When the SDK calls fetchClientSecret > > The SDK calls it when Link opens, and again with the same action whenever the secret expires (after an hour), so your user can take as long as they need. > > If it throws, returns an empty string or takes longer than 30 seconds, Link shows an error screen with **Try again**. Log the error in your callback if you need it: only its name reaches the native side. The SDK never logs the secret or puts it in a URL. ## Open Link Open Link with what your user wants to do. It shows full screen, and resolves once your user is done: ```ts theme={null} import { openLink } from '@plugchoice/react-native'; const result = await openLink({ action: 'add' }); ``` | To | Call | | - | - | | Add a charger | `openLink({ action: 'add' })` | | Set a charger up | `openLink({ action: 'setup', chargerId })` | | Reconnect a charger | `openLink({ action: 'reconnect', chargerId })` | To add a charger at one of your user's sites, pass its `siteId` too. [Actions](/sdk/concepts/actions) explains each one. ## Handle the result When Link closes, you get what happened: ```ts theme={null} const result = await openLink({ action: 'add' }); if (result.status === 'success') { // The chargers your user added. Tell your server, which confirms it with Plugchoice. const chargerIds = result.devices.filter((device) => device.type === 'charger').map((device) => device.id); } else if (result.status === 'error') { // Show your own message, and log result.error. } // 'cancelled': your user closed Link. Nothing changed. ``` The result is for your app's screen. Before you rely on it, your server confirms it with Plugchoice: see [Link sessions](/sdk/concepts/link-sessions). > [accordion] Every field of the result > > **status** `'success' | 'cancelled' | 'error'` > > How Link ended. > > **action** `string` > > The action your user did: usually the one you opened, or another they picked from what the charger can do. > > **sessionId** `string | null` > > The link session, for your server to confirm. `null` when Link closed before it started one. > > **devices** `\{ type: string; id: string \}[]` > > On `success`, the devices Link finished. `type` is `'charger'` today; ignore types you don't know. > > **error** `\{ code: string; message?: string \}` > > On `error`: a `code`, and a `message` for your logs. ## Show actions where they work Not every charger supports every action, and not every phone can do what an action needs. Show a button only when both can: ```ts theme={null} import { getTransports } from '@plugchoice/react-native'; // A charger's capability, as your server got it from the SDK API: // { capable: true, needs: ['ble'] } async function canOffer(capability: { capable: boolean; needs: string[] }) { if (!capability.capable) return false; const transports = await getTransports(); return capability.needs.every((need) => transports.includes(need)); } ``` [Capabilities](/sdk/concepts/capabilities) explains both halves. ## Errors Things can go wrong in two places: * **Before Link opens**, `openLink` rejects. That only happens when Link can't be shown at all, for example before `configurePlugchoice`, or while another Link screen is open. * **Inside Link**, your user sees an error screen. When they close it, the result has `status: 'error'`. Show your own message, and log `result.error`. > [accordion] Why openLink rejects > > | `error.code` | When | > | - | - | > | `ERR_PLUGCHOICE_NOT_CONFIGURED` | `openLink` was called before `configurePlugchoice`. | > | `ERR_LINK_ALREADY_OPEN` | A Link screen is already open. | > | `ERR_LINK_CANNOT_PRESENT` | There's no screen to show Link from, for example when your app is in the background. | > | `ERR_PLUGCHOICE_UNAVAILABLE` | The native code isn't in this build: Expo Go, web, or an app not rebuilt after installing the package. | > | `ERR_PLUGCHOICE_INTERNAL` | The native code answered with something unexpected. | > > It throws a `TypeError` for an action that isn't `{ action, chargerId?, siteId? }`. > [accordion] Error codes in the result > > | `result.error.code` | When | > | - | - | > | `clientSecretUnavailable` | Your `fetchClientSecret` failed, and your user closed the error screen instead of trying again. | > | `pageLoadFailed` | Link didn't load (no internet), and your user closed the **Try again** screen. | > | `internal` | The SDK couldn't run Link. On Android: no usable WebView. | > > ![The error screen when the app couldn't get a client secret, with a Try again button](/images/sdk/secret-unavailable-light.webp) > > What your user sees when fetchClientSecret fails > > Other codes are for your logs; don't branch on them. [Errors](/sdk/errors) lists them all. ## Test your integration * **On a phone.** A simulator can open Link, but it can't reach a charger: joining a charger's Wi-Fi, finding it on the home Wi-Fi, Bluetooth and scanning a QR code all need a real device. * **In Jest.** Mock the package with `jest.mock('@plugchoice/react-native')`. # Security Source: https://developer.plugchoice.com/sdk/security What the SDK can and can't do on your users' phones, how secrets travel, and what the hosted flow runs. For your security review. The SDK is a native shell around the hosted flow at `https://connect.plugchoice.com`. The hosted flow runs the setup; the shell gives it a small, fixed set of native tools for what a web page can't do: join a charger's Wi-Fi, talk to devices on the local network, use Bluetooth, scan a QR code, ask your app for a client secret, and close with a result. The full contract between the two is the bridge protocol: [`bridge/PROTOCOL.md`](https://github.com/plugchoice/mobile-sdk/blob/main/bridge/PROTOCOL.md). This page sums up what matters for a review. ## Credentials and secrets | What | Where it lives | Lifetime | | - | - | - | | Your integration's client ID and secret | Your server only. Never ship them in your app. | Until you rotate them | | An access token for the SDK API | Your server, from the client credentials | 1 hour | | A client secret (`cs_live_…`, `cs_test_…`) | Created by your server, handed to the SDK by your app's callback | 60 minutes to open link sessions | | A link session | Plugchoice, one per time through Link | At most 6 hours | * **Scoped.** A client secret reaches only the chargers, sites or address your server named in its `scope`. There's no "everything". See [Client sessions](/sdk/concepts/client-sessions). * **Random and stored hashed.** A client secret is 32 random bytes. Plugchoice stores only its SHA-256 hash. * **Never in a URL from the SDK.** The SDK opens the hosted flow with the action in the URL fragment, never the secret. The hosted flow asks the SDK for the secret, and the SDK calls your callback. It never logs the secret and keeps no copy after handing it over. * **In a browser,** the secret travels in the URL fragment (`#cs=…`), which browsers never send to a server. The hosted flow reads it, then removes it from the address bar, and sends no referrer. ## The hosted flow * **One origin.** Only pages from `https://connect.plugchoice.com` can use the SDK's native tools. * **Its own code only.** The page's Content Security Policy allows scripts from its own origin only: no inline or third-party scripts. It sends requests only to its own origin and `api.plugchoice.com`. * **Never framed.** The page can't be embedded in another site (`frame-ancestors 'none'`, `X-Frame-Options: DENY`). * **No analytics or telemetry,** in the SDK or in the hosted flow. ## What the native tools can do > [accordion] Navigation > > The web view's main frame stays on `https://connect.plugchoice.com`. A link to anywhere else opens in the browser or another app (`http`, `https`, `mailto`, `tel`); any other navigation off the origin is dropped. Subframes load, but can't use the native tools. A reload or a new page cancels everything the previous one started. > [accordion] Local network only > > HTTP, WebSocket, TCP and UDP reach only devices on the local network: > > * IPv4 addresses in `10.0.0.0/8`, `172.16.0.0/12`, `192.168.0.0/16`, `169.254.0.0/16` (link-local) and `127.0.0.0/8` (loopback); > * `::1` and `localhost`; > * `*.local` names. > > Anything else is refused, so the SDK is never a proxy to the internet. On Android, host names must also resolve to local addresses. HTTP goes without a proxy or a cookie jar, and redirects aren't followed. UDP is unicast only: no multicast or broadcast. > [accordion] TLS to devices > > A device's HTTPS is checked against the system's trust, or against what the hosted flow passes for that device: its maker's certificate authority, or its key's fingerprint. Such a trust can forgive a device certificate's expiry and host name, which some makers let lapse; there's no "accept anything", and the local-network rule still applies. > [accordion] Wi-Fi > > The SDK joins a charger's own setup network, which has no internet, while the setup runs. It never moves your whole app onto that network: your app and the web view keep their internet. The hosted flow has the phone leave the charger's network when that part of the setup is done. > [accordion] Bluetooth > > The SDK talks Bluetooth LE as a client, to devices found by a scan from the same page. At most 8 connections at once; all of them end when the page changes or the screen closes. > [accordion] Camera > > A native scanner reads one QR code, such as a setup code on a charger's card. The SDK never logs what it read. > [accordion] Limits > > One local-network search, one Bluetooth scan and one QR scan at a time; at most 64 HTTP sessions, 16 TCP sockets and 8 Bluetooth connections. Every call has a timeout. The protocol lists them all. The SDK has no other native tools: the hosted flow can't read files, contacts, photos or your app's data. The SDK knows no charger brands either; everything brand-specific lives in the hosted flow. ## Permissions * The SDK asks for a permission when the setup needs it, not when your app starts: Wi-Fi, the local network, Bluetooth, the camera, and location (to read the name of the Wi-Fi network). * On iOS, the prompts use the usage strings in your app's Info.plist. Without the camera or Bluetooth string, the SDK leaves that feature out: the hosted flow offers typing instead of scanning, and doesn't use Bluetooth. * On Android, the library's manifest declares the permissions; removing the Bluetooth ones turns Bluetooth off. QR scanning uses Google's code scanner from Play services, which sends usage data to Google: mention it in your Play data safety form. Your platform guide lists every entry: [iOS](/sdk/ios), [Android](/sdk/android), [React Native](/sdk/react-native). ## Dependencies * **iOS**: none beyond Apple's frameworks. * **Android**: AndroidX (Activity, Core, WebKit), OkHttp, Kotlin coroutines, and the Google code scanner (Play services). * **React Native**: the iOS and Android SDKs, through Expo modules. The SDK is open source: [github.com/plugchoice/mobile-sdk](https://github.com/plugchoice/mobile-sdk). ## Reporting a problem Email security issues to [security@plugchoice.com](mailto:security@plugchoice.com), not a public GitHub issue. The SDK's [security policy](https://github.com/plugchoice/mobile-sdk/security/policy) says what to include. # Versions Source: https://developer.plugchoice.com/sdk/versioning How the SDK, the hosted flow and the SDK API are versioned, and what to pin. > [!NOTE] > > The Plugchoice SDK is in beta. Until version 1.0, a minor version may change the SDK or the SDK API. Pin the SDK version in your app and the `Plugchoice-Version` header on your server. Three parts move at their own pace: the SDK in your app, the hosted flow it shows, and the SDK API your server calls. ## The SDK The iOS, Android and React Native SDKs share one version number and are released together. | Platform | Package | Where | | - | - | - | | iOS | `PlugchoiceSDK` | Swift Package Manager, tag `X.Y.Z` of `https://github.com/plugchoice/mobile-sdk` | | Android | `com.plugchoice:plugchoice:X.Y.Z` | Maven Central | | React Native | `@plugchoice/react-native@X.Y.Z` | npm | * Versions follow [semantic versioning](https://semver.org). Releases are made with release-please from the repository's conventional commits; each one has an entry in the [changelog](/sdk/changelog) and on [GitHub](https://github.com/plugchoice/mobile-sdk/releases). * **During the beta (0.x)**, a minor version (0.4 to 0.5) may change the SDK's API. A patch version (0.4.0 to 0.4.1) only fixes. Pin the minor version: `.upToNextMinor(from: "0.4.0")` in Swift Package Manager, `~0.4.0` in npm, an exact version in Gradle. * From 1.0, a breaking change needs a new major version. ## The hosted flow The hosted flow at `connect.plugchoice.com` is always the newest version. It supports every SDK version still in use: it asks the SDK what it can do when it opens, and uses only what that SDK has. So without a new release of your app: * new charger brands and models, and fixes for them, reach your users; * a new [action](/sdk/concepts/actions) works through the SDK's custom action before the SDK has a helper for it. An SDK update brings new native tools (a new way to reach chargers, for example) and fixes in the SDK itself. ## The SDK API The SDK API is versioned by date. Send the version you built against in the `Plugchoice-Version` header: ```bash theme={null} curl https://api.plugchoice.com/sdk/v1/chargers \ -H "Authorization: Bearer $TOKEN" \ -H "Plugchoice-Version: 2026-10-07" ``` * Every response says which version answered, in the same header. * Without the header you get the newest version, which can change under you. Always send it. * An unknown version is [`400 unknown-version`](/sdk/errors/unknown-version). * The only version is `2026-10-07`. Within a version, Plugchoice may add fields, capabilities, actions and error codes. Ignore the ones you don't know. Support periods for older SDK and API versions will be published before version 1.0. # In a browser Source: https://developer.plugchoice.com/sdk/web Open Link from a web page, without the mobile SDK. Link also runs in a browser, on a phone or a computer. Use it from your web app or customer portal. There's no SDK to install: your server creates a client session and sends the browser to its `web_url`. ![Link's consent screen in a desktop browser](/images/sdk/web-consent-light.webp) Link in a desktop browser ## Open Link **1. Create a client session** Your server creates a client session for your user, as in [Get started](/sdk/get-started), scoped to what the user is about to do. Add a `redirect_uri` to send the user back when they're done. **2. Send the browser to web\_url** The answer's `web_url` already holds the client secret. For an action other than `add`, append the action and its charger. For `add` at one of the scope's sites, append `site_id`. **3. Confirm the outcome** When the user comes back, your server confirms the link session with [Get a link session](/sdk/api/get-link-session). ```ts server.ts theme={null} app.get('/chargers/:chargerId/network', requireUser, async (req, res) => { const { chargerId } = req.params; const response = await fetch('https://api.plugchoice.com/sdk/v1/client-sessions', { method: 'POST', headers: { // Your integration's access token, as in Get started. Authorization: `Bearer ${await plugchoiceToken()}`, 'Content-Type': 'application/json', 'Plugchoice-Version': '2026-10-07', }, body: JSON.stringify({ external_user_id: req.user.id, scope: { chargers: [chargerId] }, redirect_uri: 'https://app.example.com/plugchoice/done', }), }); if (!response.ok) throw new Error(`Plugchoice: HTTP ${response.status}`); const { web_url } = await response.json(); res.redirect(`${web_url}&action=network&charger_id=${encodeURIComponent(chargerId)}`); }); ``` The parameters go in the URL's fragment, after `#`: | Parameter | | | - | - | | `cs` | The client secret. `web_url` has it already. | | `action` | `add` (the default), `setup`, `reconnect`, or a later one. See [Actions](/sdk/concepts/actions). | | `charger_id` | The charger, for every action but `add`. | | `site_id` | For `add`: one of the scope's sites. | ## The client secret in the URL Browsers never send a URL's fragment to a server, so the secret doesn't reach server logs or a `Referer` header. The hosted flow reads it and removes it from the address bar at once. If the user reloads the page, the link session carries on. In a browser, Link can't ask your app for a new secret, as the mobile SDK does. Open `web_url` within 60 minutes of creating the client session, or the user sees an error. Create a new client session for every visit rather than storing the URL. Once open, a link session lasts up to 6 hours. ## When the user is done With a `redirect_uri`, the hosted flow sends the browser there, with two query parameters added: | Parameter | | | - | - | | `status` | `success`, `cancelled` or `error` | | `session_id` | The link session | ``` https://app.example.com/plugchoice/done?status=success&session_id=0b8a6f3e-1c2d-4e5f-8a9b-0c1d2e3f4a5b ``` Anyone can type these parameters, so don't trust them. Read the outcome with [Get a link session](/sdk/api/get-link-session), and show what it says. Without a `redirect_uri`, the hosted flow tells the user they can close the page. > [!NOTE] > > A `redirect_uri` must be one of your integration's **Return URLs**. A team admin adds them under **Settings > SDK** in Plugchoice, in the integration's settings, one per line. ## Without an app or a server A **start link** opens Link with no code of yours: hand it out in installation papers, an email or on your website. It looks like `https://connect.plugchoice.com/start/7K2Q-9MXD`, with a QR code to download. * A team admin makes it under **Settings > SDK** in Plugchoice, in the integration. Only an integration whose chargers stay in your users' own Plugchoice accounts can have one. Plugchoice support can make one for you too. * **New link** replaces the link at once: the old one and its QR code stop working. **Turn off** stops it. Anyone who already started can finish. * Anyone who opens it sets up a charger in their browser, signs in to their own Plugchoice account or creates one, and agrees on your consent screen. The charger stays in their account, and you get a grant on it, as with a client session. * Each person starts as a new customer of yours, with an `external_user_id` of `start:` and a UUID. When they sign in to an account you already have a customer for, they join that customer. * When your team is a Plugchoice reseller, new chargers get your team as their reseller. * A link that no longer works shows its own page ([`start-code-invalid`](/sdk/errors/start-code-invalid)). The hosted flow calls `POST /sdk/v1/start/{code}` to open the link. You don't call it. ## What works in a browser A browser can't join a charger's Wi-Fi or reach chargers on the local network, so some setups need the mobile SDK. In a browser, the hosted flow only offers what it can do there. | Charger | In a browser | In your app with the SDK | | - | - | - | | [Alfen](/sdk/chargers/alfen) | By hand, or in the Plugchoice app when the charger goes to your user's own account | Guided setup on the home Wi-Fi | | [Charge Amps](/sdk/chargers/charge-amps) | By hand, or in the Plugchoice app when the charger goes to your user's own account | Guided setup over the charger's own Wi-Fi | | [Easee](/sdk/chargers/easee) | Yes: the owner signs in with their Easee account, or confirms Plugchoice in the Easee app | Yes | | [Enovates](/sdk/chargers/enovates) | By hand, or in the Plugchoice app when the charger goes to your user's own account | Guided setup over the charger's own Wi-Fi | | [go-e](/sdk/chargers/go-e) | By hand, or in the Plugchoice app when the charger goes to your user's own account | Guided setup over the charger's own Wi-Fi | | [Peblar](/sdk/chargers/peblar) | By hand, or in the Plugchoice app when the charger goes to your user's own account | Guided setup over the charger's own Wi-Fi | | [Ratio](/sdk/chargers/ratio) | By hand, or in the Plugchoice app when the charger goes to your user's own account (a browser can't pair with it) | Guided setup over Bluetooth | | [SolarEdge](/sdk/chargers/solaredge) | Guided setup over Bluetooth in Chrome and Edge, else by hand | Guided setup over Bluetooth | | [Teltonika](/sdk/chargers/teltonika) | By hand, or in the Plugchoice app when the charger goes to your user's own account (a browser can't pair with it) | Guided setup over Bluetooth | | [Volt Time](/sdk/chargers/volt-time) | Added by serial number and pincode. Wi-Fi over Bluetooth in Chrome and Edge. The Source, Source 2 and ENO one for business by hand, or in the Plugchoice app | Everything, including Wi-Fi over Bluetooth, the Source and Source 2 through their web app, and the ENO one for business over its own Wi-Fi | | [Wallbox](/sdk/chargers/wallbox) | By hand, or in the Plugchoice app when the charger goes to your user's own account (a browser can't pair with it) | Guided setup over Bluetooth | | [Webasto](/sdk/chargers/webasto) | By hand, or in the Plugchoice app when the charger goes to your user's own account | Guided setup over the charger's own Wi-Fi | | [Zaptec](/sdk/chargers/zaptec) | Yes: the owner signs in with their Zaptec account | Yes | | [Other OCPP chargers](/sdk/chargers/other) | Set up by hand | Set up by hand | Bluetooth in a browser works in Chrome and Edge on Android, Windows, macOS and ChromeOS. It doesn't work in Safari, so not in any browser on an iPhone, nor in Firefox. There, the hosted flow skips the Wi-Fi step and waits for the charger to come online another way, such as a network cable or a SIM. In Chrome or Edge, the browser asks which device to use: the user taps **Connect**, then picks the charger, which is named after its Chargepoint ID (a SolarEdge after its serial number, such as `S61234345678`, which ends in the Chargepoint ID's last 6 digits). ![The hosted flow in a desktop browser, asking the user to connect to the charger over Bluetooth](/images/sdk/web-start-light.webp) Connecting to a charger over Bluetooth in Chrome