Skip to main content
POST
/
v3
/
chargers
/
{charger}
/
settings
/
public-charging
Set Public Charging Settings
curl --request POST \
  --url https://app.plugchoice.com/api/v3/chargers/{charger}/settings/public-charging \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "enabled": true,
  "price_per_kwh": 123,
  "start_fee": 123,
  "billing_plan": "<string>"
}
'
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. A charger cannot run public charging and reimbursement at the same time. Requires a verified email address. Returns the updated public charging settings on success, in the same shape as Get Public Charging Settings.
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.