What Is STS Prepaid Electricity Vending?

A complete guide to the Standard Transfer Specification — how prepaid electricity tokens work, why the standard exists, and how municipalities benefit from certified vending systems.

Published: June 10, 2026 · Category: STS Vending · Reading time: 8 minutes

You've used the STS standard every time you bought prepaid electricity in South Africa. The 20-digit number you receive by SMS, receipt, or app is an STS-compliant token your meter converts into kilowatt-hours. This international standard powers prepaid vending in over 80 countries.

Whether you're a municipal official evaluating vending systems, a consultant advising on utility digitisation, or someone who just wants to understand how prepaid electricity actually works, this guide explains the STS standard in practical terms.

Contents

  1. What Is STS?
  2. Why the Standard Exists
  3. How STS Tokens Work
  4. The 20-Digit Token Structure
  5. The End-to-End Vending Process
  6. STS Editions: What You Need to Know
  7. Why Municipalities Need Certified Systems
  8. Ivend: Inovosystems' STS Vending Platform

1. What Is STS?

STS stands for Standard Transfer Specification, an international standard (IEC 62055-41 and IEC 62055-51) that defines how prepaid electricity tokens are generated, encrypted, transferred, and decoded by meters. The International Electrotechnical Commission (IEC) developed it, and it is the globally accepted standard for prepaid metering.

Every STS-compliant meter and vending system speaks the same language — regardless of manufacturer. A token generated by one vendor's software will work on another's meter. That interoperability is the entire point.

The STS Association, an independent body, certifies meters and vending systems, and manages manufacturer codes and key generation codes to keep the ecosystem secure.

2. Why the Standard Exists

Before STS, each meter manufacturer used its own proprietary token format. A token generated by one vendor's system would only work with that vendor's meters. This created several serious problems:

The STS standard solved all of these by defining an open, audited, and internationally recognised specification that any manufacturer or software vendor can implement. Today, STS is used in over 80 countries, with billions of tokens generated annually.

3. How STS Tokens Work

An STS token encodes three pieces of information:

  1. The amount of electricity purchased (in currency or kWh)
  2. The meter identifier (a unique number assigned to the specific meter)
  3. A cryptographic signature (proving the token was generated by an authorised vending system)

Step three is where the cryptography kicks in. The vending system uses a secret key (known as the Key Generation Code or KGC) to encrypt the token data. The meter, which has been loaded with the matching decryption key, can verify that the token is authentic. This is a symmetric encryption system — the same key is used to generate and verify tokens, but the key itself is never transmitted with the token.

Without the municipality's KGC, no one can produce a valid token. The STS Association assigns a unique KGC to each utility.

Key Terminology

  • KGC (Key Generation Code): The secret cryptographic key assigned to a utility by the STS Association. Used by the vending system to encrypt tokens.
  • Vending System: The software that generates STS tokens based on payment received. This is what Inovosystems' Ivend platform provides.
  • Meter: The hardware device installed at the consumer's premises that decrypts and accepts STS tokens.
  • TID (Token Identifier): A unique, time-based number embedded in each token to prevent replay attacks (using the same token twice).

4. The 20-Digit Token Structure

An STS token is a 20-digit decimal number. While it looks random to the consumer, every digit is meaningful:

When the consumer enters these 20 digits into their meter, the meter:

  1. Decrypts the token using its stored KGC
  2. Verifies the TID is newer than the last token accepted (prevents reuse)
  3. Validates the checksum
  4. Adds the purchased kWh to the meter's credit balance

The entire process takes less than a second on modern meters.

5. The End-to-End Vending Process

An STS transaction moves from payment to power in seven steps:

  1. Consumer pays at a vending point — over-the-counter, mobile app, kiosk, online portal, or agent.
  2. Vending system verifies payment and calculates the kWh equivalent (based on the current tariff block structure).
  3. Vending system generates an STS token using the utility's KGC and the consumer's meter number.
  4. Token is delivered to the consumer via SMS, receipt, mobile app notification, or printed slip.
  5. Consumer enters the 20-digit token on their meter keypad.
  6. Meter validates and accepts the token, adding credit to the balance.
  7. Electricity flows. The meter deducts credit as the consumer uses power, and automatically disconnects when credit reaches zero.

A vending system like Ivend handles all of this automatically — tariff management, multi-vendor token generation, payment gateway integration, and reporting.

6. STS Editions: What You Need to Know

STS has evolved over time. The two editions relevant today are:

The STS Association has mandated that all vending systems and meters must be Edition 2 compliant by a specific deadline (which has been extended in some regions). Municipalities operating Edition 1 systems should plan their migration to Edition 2 to ensure continued compliance and interoperability.

Ivend supports both Edition 1 and Edition 2 token generation, making the transition seamless for municipalities that need to upgrade.

7. Why Municipalities Need Certified Systems

Running a prepaid electricity vending system without STS certification carries real risks:

A certified STS vending system like Ivend ensures compliance, security, and full interoperability with any STS-compliant meter on the market.

8. Ivend: Inovosystems' STS Vending Platform

Ivend is Inovosystems' STS-compliant prepaid electricity vending platform. We built it for South African municipalities. It provides:

Deploy Ivend in Your Municipality

Ivend has processed over 2 million STS token transactions across South African municipalities. Talk to our team about deploying it in yours.

View Ivend Product Page →

Related Articles

Ready to Upgrade Your Vending System?

STS-certified, multi-channel, AI-powered. Let's talk about what Ivend can do for your municipality.

Start a Project →