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

If you've ever bought prepaid electricity in South Africa, you've used the STS standard. The 20-digit number you receive via SMS, receipt, or mobile app is an STS-compliant token that your meter converts into kilowatt-hours of electricity. But what exactly is STS, why does it exist, and how does the entire system work from end to end?

This article explains the Standard Transfer Specification (STS) — the global standard behind prepaid electricity vending — in practical terms. Whether you're a municipal official evaluating vending systems, a consultant advising on utility digitisation, or simply curious about how prepaid electricity actually works, this guide covers everything you need to know.

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. It is an international standard (IEC 62055-41 and IEC 62055-51) that defines how prepaid electricity tokens are generated, encrypted, transferred, and decoded by electricity meters. Developed by the International Electrotechnical Commission (IEC), STS is the globally accepted standard for prepaid metering systems.

Think of STS as a language that all prepaid electricity meters and vending systems speak. Regardless of who manufactured the meter or which vending software generates the token, as long as both comply with the STS standard, the token will work. This interoperability is the core purpose of the standard.

STS is managed by the STS Association, an independent body that certifies meters, vending systems, and manages the allocation of manufacturer codes and key generation codes to ensure the integrity of the entire ecosystem.

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

At its core, an STS token encodes three essential 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)

The magic happens in step three. 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.

This cryptographic layer is what prevents counterfeit token generation. Without access to the municipality's KGC, no one can produce a valid token. The KGC is assigned by the STS Association and is unique 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

Here's how a typical STS transaction flows from payment to power:

  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 well-designed vending system like Ivend handles all of this automatically, including 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, designed 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 →