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.
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:
- Vendor lock-in: Municipalities that chose one meter brand were trapped with that vendor's vending system, even if competitors offered better pricing or features.
- No interoperability: Residents moving to a different municipality with a different meter brand could not use the same payment methods or apps.
- Security vulnerabilities: Proprietary encryption methods were inconsistent, poorly audited, and sometimes weak enough to allow token forgery.
- Limited innovation: New payment channels (mobile apps, kiosks, online portals) required custom integration with each vendor's proprietary system, slowing adoption.
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:
- The amount of electricity purchased (in currency or kWh)
- The meter identifier (a unique number assigned to the specific meter)
- 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:
- Digits 1-17: Encrypted data containing the amount, meter identifier, TID (Token Identifier), and other metadata.
- Digits 18-20: A checksum digit (calculated via a specific algorithm) plus manufacturer-specific flags.
When the consumer enters these 20 digits into their meter, the meter:
- Decrypts the token using its stored KGC
- Verifies the TID is newer than the last token accepted (prevents reuse)
- Validates the checksum
- 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:
- Consumer pays at a vending point — over-the-counter, mobile app, kiosk, online portal, or agent.
- Vending system verifies payment and calculates the kWh equivalent (based on the current tariff block structure).
- Vending system generates an STS token using the utility's KGC and the consumer's meter number.
- Token is delivered to the consumer via SMS, receipt, mobile app notification, or printed slip.
- Consumer enters the 20-digit token on their meter keypad.
- Meter validates and accepts the token, adding credit to the balance.
- 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:
- STS Edition 1 (IEC 62055-41:2005): The original standard, still in wide use. Uses a 20-digit token format with a single encryption layer.
- STS Edition 2 (IEC 62055-41:2018): An updated standard that introduces STS 6.7 — a new token format that supports multiple utilities per meter, higher security, and enhanced functionality like tamper detection and remote configuration. Edition 2 tokens are 20 to 22 digits depending on the use case.
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:
- Revenue leakage: Non-certified systems can be manipulated to generate under-valued tokens or to report incorrect sales data.
- Fraud vulnerability: Weak or non-standard encryption makes token forgery possible, directly impacting municipal revenue.
- Non-compliance: Energy regulators and auditors increasingly require STS certification as evidence of proper revenue management.
- Interoperability problems: Consumers with non-standard tokens may find their meters reject valid purchases, leading to complaints and support costs.
- Lock-in: Non-standard systems may only work with specific meters, limiting procurement options and competitive pricing.
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:
- Multi-vendor token generation — works with all major STS-compliant meter brands (Conlog, Landis+Gyr, Elster, Hexing, etc.)
- Multiple payment channels — mobile app, kiosk, over-the-counter, online portal, USSD, agent network
- Automated tariff management — supports inclining block tariffs, flat rates, and time-of-use pricing
- Payment gateway integration — credit card, EFT, cash, mobile money
- Usage prediction, fraud detection, revenue forecasting, and NLP chatbot — built into the platform
- Edition 1 and Edition 2 compliance — seamless transition support
- Real-time reporting — sales dashboards, reconciliation, audit trails, and regulatory reporting
- 24/7 availability — cloud or on-premise deployment with 98.5%+ uptime
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