What is StopTransactionOnInvalidId in OCPP and how do I use it?

The OCPP configuration parameter StopTransactionOnInvalidId determines how zappi should behave if the third-party platform indicates that the current transaction is invalid.

An invalid transaction can occur for various reasons:

  1. The TAGID sent to the provider is not valid or recognized.
  2. There is an issue with the customer's account.
  3. Too much time has elapsed between authorizing the session and starting the charging.
  4. The station has initiated a free vend charge, which is not allowed.

In such cases, the platform will notify zappi that the session is invalid. You can choose how zappi responds to this information:

  1. Continue charging.
  2. Stop charging.

By default, zappi will continue charging. However, if you are using zappi in a public charging scenario, you may not want this behaviour. To make the charger stop charging when an invalid response is received from the platform, set StopTransactionOnInvalidId to True in the OCPP configuration. When set to True, zappi will automatically switch the charger to stop mode, preventing further energy consumption.

Note: If you notice your charger starting and stopping rapidly while StopTransactionOnInvalidId is active, it means the platform is rejecting your charging session. It is recommended to contact them to determine the cause of this issue.

 

Was this article helpful?

Have more questions? Submit a request