Actions

Charger Actions

Change Availability

POST https://sdk.viriciti.com/api/v1/chargestations/:identity/actions/change-availability

The POST body corresponds to the OCPP1.6 payload for ChangeAvailabilityRequest. As OCPP describes, the type is used to set a connector status to UnAvailable (Inoperative) or make it Available again (Operative).

{
    "connectorId" : 1, // position of the connector
    "type"        : "Inoperative" // or Operative
}

The HTTP response corresponds to the OCPP1.6 payload for ChangeAvailabilityResponse. When it's connector status is not Available, the charger is suppoed to respond with Scheduled to report it will go into UnAvailable after the current charge session has finished.

{
    "status": "Accepted" // or Rejected or Scheduled
}

Reset

POST https://sdk.viriciti.com/api/v1/chargestations/:identity/actions/reset

The POST body corresponds to the OCPP1.6 payload for Reset. As OCPP describes, for a soft reset the chargestation will return to a state that behaves as just having been booted. At receipt of a hard reset the chargestation will attempt to terminate any transaction in progress.

{
    "type" : "Hard", // or "Soft"
}

The HTTP response corresponds to the OCPP1.6 payload for ResetResponse.

{
    "status": "Accepted" // or Rejected
}

StopTransaction

POST https://sdk.viriciti.com/api/v1/chargestations/:identity/actions/remote-stop-transaction

The POST body corresponds to the OCPP1.6 payload for RemoteStopTransaction. The transactionId needs to match up with the current ongoing transaction.

{
    "transactionId" : 1001 // ID of the ongoing transaction
}

The HTTP response corresponds to the OCPP1.6 payload for RemoteStopTransaction.

{
    "status": "Accepted"
}

StartTransaction

POST https://sdk.viriciti.com/api/v1/chargestations/:identity/actions/remote-start-transaction

The POST body corresponds to the OCPP1.6 payload for RemoteStartTransaction.

{
  "idTag": "ABCDE1234",
  "connectorId": 1
}

The HTTP response corresponds to the OCPP1.6 payload for RemoteStartTransaction.

{
    "idTagInfo": {
        "status": "Accepted"
    }
}