Skip to main content
POST
/
v3
/
public-charging
/
sessions
/
{token}
/
receipt-email
Set Receipt Email
curl --request POST \
  --url https://app.plugchoice.com/api/v3/public-charging/sessions/{token}/receipt-email \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "email": "<string>"
}
'
{
  "data": {
    "status": "<string>",
    "failure_reason": "<string>",
    "connector_id": 123,
    "connector_status": "<string>",
    "charger": {
      "public_code": "<string>",
      "name": "<string>",
      "online": true
    },
    "pricing": {
      "currency": "<string>",
      "price_per_kwh": 123,
      "start_fee": 123
    },
    "amount_authorized": 123,
    "energy_kwh": "<string>",
    "cost_amount": 123,
    "amount_captured": 123,
    "tax_amount": 123,
    "driver_email": "<string>",
    "created_at": "<string>",
    "authorized_at": "<string>",
    "charging_started_at": "<string>",
    "completed_at": "<string>",
    "captured_at": "<string>"
  }
}
Sets the email address Stripe uses to send the receipt when the session is captured. Set it before capture. This endpoint does not require authentication and is rate limited to 10 requests per minute. The session token is the credential. Returns 404 if the token is unknown or has expired, and 422 if the session has reached a terminal state.
token
string
required
The session token returned when the session was started.
email
string
required
The driver’s receipt email address. Must be a valid email, maximum 255 characters.

Response

data
object
The updated session details.