S10 (UPU standard)

Last updated
The 13-character identifier for a package. It starts with the service indicator for registered mail ("RR"), followed by an 8-digit serial number (28704377), the check-digit (5) and the two-letter ISO country code for the issuing country, India ("IN") RegisteredMailBarcode (cropped).jpg
The 13-character identifier for a package. It starts with the service indicator for registered mail ("RR"), followed by an 8-digit serial number (28704377), the check-digit (5) and the two-letter ISO country code for the issuing country, India ("IN")

The UPU S10 standard defines a system for assigning 13-character identifiers to international postal items for the purpose of tracking and tracing them during shipping.

Contents

With increased liberalization and the possibility of multiple postal services operating in the same country, the use of country codes to designate the postal service is a problem. To solve this, each country has a designated postal service that controls all S10 identifiers from that country; any competing postal services will have to cooperate with the designated owner. The organization assigned by the UPU member country shall manage the issue and use of S10 identifiers, among all the operators under the authority of that UPU member country, in such a way as to ensure that no S10 identifier is reused within a period of 12 calendar months. A period of 24 calendar months, or longer, is recommended.

Format

The identifiers consist of a two-letter service indicator code, an eight-digit serial number (in the range 00000000 to 99999999), a single check-digit, and a two-letter ISO country code identifying the issuing postal administration's country. [1]

S10 format
1234
AA000000009BB
  1. Service indicator code (see below)
  2. Serial number
  3. Check-digit (see below)
  4. ISO 3166-1 alpha-2 country code

Service indicator codes

Service codes are generally assigned and administered within each issuing country, but certain types of service and code ranges are used for all countries as listed here.

CodeInterpretation [1]
AA–AUUnassigned [a]
AV–AZDomestic, bilateral, multilateral use only [b]
BA–BZDomestic, bilateral, multilateral use only
CA–CZ Parcel post
  • The use of CV is recommended (though not required) for insured parcels [c]
  • The use of CZ requires bilateral agreement
DA–DZDomestic, bilateral, multilateral use only
EA–EZ EMS
  • The use of EX–EZ requires bilateral agreement
FA–FZUnassigned [a]
GADomestic, bilateral, multilateral use only
GB–GCUnassigned [a]
GDDomestic, bilateral, multilateral use only
GE–GZUnassigned [a]
HA–HZE-commerce parcels
  • The use of HX–HY requires multilateral agreement
  • The use of HZ requires bilateral agreement
IA–IZUnassigned [a]
JA–JZReserved [d]
KA–KZReserved [d]
LA–LZLetter post tracked
  • The use of LZ requires bilateral agreement
MA–MZLetter post M bags
NA–NZDomestic, bilateral, multilateral use only
OA–OZUnassigned [a]
PA–PZDomestic, bilateral, multilateral use only
QA–QM International Business Reply Service
QN–QZUnassigned [a]
RA–RZ Letter post registered
  • The use of RZ requires bilateral agreement.
SA–SZReserved [d]
TA–TZReserved [d]
UA–UZLetter post items (when L, M, Q, R and V codes don't apply) [e]
  • The use of UZ requires bilateral agreement
VA–VZLetter post insured
  • The use of VZ requires bilateral agreement
WA–WZReserved [d]
XA–XZUnassigned [a]
YA–YZUnassigned [a]
ZA–ZZDomestic, bilateral, multilateral use only

Check-digit calculation

  1. Ignore the service indicator code and country code.
  2. Assign the weights 8, 6, 4, 2, 3, 5, 9, 7 to the 8 digits, from left to right.
  3. Calculate S, the sum of each digit multiplied by its weight.
    • For example, for the number 47312482: S = 4×8 + 7×6 + 3×4 + 1×2 + 2×3 + 4×5 + 8×9 + 2×7 = 200.
  4. Calculate the check digit C = 11 − (S mod 11).
    • If C = 10, change to C = 0.
    • If C = 11, change to C = 5.
    • For the example 47312482, C = 11 − (200 mod 11) = 11 − 2 = 9.

Python code for check-digit calculation

For Python 3.6 or later:

defget_check_digit(num:int)->int:"""Get S10 check digit."""weights=[8,6,4,2,3,5,9,7]sum=0fori,digitinenumerate(f"{num:08}"):sum+=weights[i]*int(digit)sum=11-(sum%11)ifsum==10:sum=0elifsum==11:sum=5returnsum

JavaScript code for check-digit calculation

functiongetCheckDigit(num){constweights=[8,6,4,2,3,5,9,7];constnumArr=Array.from(String(num),Number);letsum=0;numArr.forEach((n,i)=>sum=sum+(n*weights[i]));sum=11-(sum%11);if(sum==10)sum=0;elseif(sum==11)sum=5;returnsum;}

Haskell code for check-digit calculation

checkDigit::[Int]->IntcheckDigitns|c==11=5|c==10=0|otherwise=cwhereweights=[8,6,4,2,3,5,9,7]s=sum$zipWith(*)weightsnsc=11-(s`rem`11)

See also

Notes

  1. 1 2 3 4 5 6 7 8 9 "Any combinations of two alphabetic characters that are not yet assigned for universal use, nor allocated for exclusively domestic/bilateral/multilateral use, may be assigned under the authority of the UPU's Standards Board" (p.2) [1]
  2. "In principle, the use of code range AV–AZ is to identify RFID-tracked items." (p.4) [1]
  3. "Thus: a) insured parcels might have a service indicator other than CV; and b) service indicator CV does not necessarily imply that the parcel is an insured one." (p.4) [1]
  4. 1 2 3 4 5 "To reduce the risk of confusion between S10 identifier barcodes and barcodes which make use of ISO/IEC 15418 data identifiers, character combinations JA–JZ; KA–KZ; SA–SZ; TA–TZ and WA–WZ are reserved and cannot be assigned as valid service indicator values." (p.2) [1]
  5. "The use of code range UA–UZ is for letter-post items containing goods requiring an S10 identifier and without customer-oriented tracking. The identifier is used for visibility in the supply chain, for example in an ITMATT message for electronic advance data." (p.4) [1]

Related Research Articles

<span class="mw-page-title-main">ISBN</span> Unique numeric book identifier since 1970

The International Standard Book Number (ISBN) is a numeric commercial book identifier that is intended to be unique. Publishers purchase or receive ISBNs from an affiliate of the International ISBN Agency.

<span class="mw-page-title-main">Universal Product Code</span> Barcode symbology used for tracking trade items in stores

The Universal Product Code is a barcode symbology that is used worldwide for tracking trade items in stores.

Canada Post Corporation, trading as Canada Post, is a Canadian Crown corporation that functions as the primary postal operator in Canada.

<span class="mw-page-title-main">ISSN</span> Serial number used to identify a periodical publication

An International Standard Serial Number (ISSN) is an eight-digit serial number used to uniquely identify a serial publication (periodical), such as a magazine. The ISSN is especially helpful in distinguishing between serials with the same title. ISSNs are used in ordering, cataloging, interlibrary loans, and other practices in connection with serial literature.

<span class="mw-page-title-main">Code 39</span> Variable length, discrete barcode symbology

Code 39 is a variable length, discrete barcode symbology defined in ISO/IEC 16388:2007.

<span class="mw-page-title-main">Registered mail</span> Postal service

Registered mail is a postal service in many countries which allows the sender proof of mailing via a receipt and, upon request, electronic verification that an article was delivered or that a delivery attempt was made. Depending on the country, additional services may also be available, such as:

POSTNET is a barcode symbology used by the United States Postal Service to assist in directing mail. The ZIP Code or ZIP+4 code is encoded in half- and full-height bars. Most often, the delivery point is added, usually being the last two digits of the address or PO box number.

A check digit is a form of redundancy check used for error detection on identification numbers, such as bank account numbers, which are used in an application where they will at least sometimes be input manually. It is analogous to a binary parity bit used to check for errors in computer-generated data. It consists of one or more digits computed by an algorithm from the other digits in the sequence input.

In computer programming, a function object is a construct allowing an object to be invoked or called as if it were an ordinary function, usually with the same syntax. In some languages, particularly C++, function objects are often called functors.

<span class="mw-page-title-main">XTEA</span> Block cipher

In cryptography, XTEA is a block cipher designed to correct weaknesses in TEA. The cipher's designers were David Wheeler and Roger Needham of the Cambridge Computer Laboratory, and the algorithm was presented in an unpublished technical report in 1997. It is not subject to any patents.

SEDOL stands for Stock Exchange Daily Official List, a list of security identifiers used in the United Kingdom and Ireland for clearing purposes. The numbers are assigned by the London Stock Exchange, on request by the security issuer. SEDOLs serve as the National Securities Identifying Number for all securities issued in the United Kingdom and are therefore part of the security's International Securities Identification Number (ISIN) as well. The SEDOL Masterfile (SMF) provides reference data on millions of global multi-asset securities each uniquely identified at the market level using a universal SEDOL code.

<span class="mw-page-title-main">MaxiCode</span> Machine-readable symbol system

MaxiCode is a public domain, machine-readable symbol system originally created by the United Parcel Service (UPS) in 1992. Suitable for tracking and managing the shipment of packages, it resembles an Aztec Code or QR code, but uses dots arranged in a hexagonal grid instead of square grid. MaxiCode has been standardised under ISO/IEC 16023.

<span class="mw-page-title-main">Address</span> Collection of information that describes the location of a building, apartment, or other structure

An address is a collection of information, presented in a mostly fixed format, used to give the location of a building, apartment, or other structure or a plot of land, generally using political boundaries and street names as references, along with other identifiers such as house or apartment numbers and organization name. Some addresses also contain special codes, such as a postal code, to make identification easier and aid in the routing of mail.

In some programming languages, const is a type qualifier that indicates that the data is read-only. While this can be used to declare constants, const in the C family of languages differs from similar constructs in other languages in that it is part of the type, and thus has complicated behavior when combined with pointers, references, composite data types, and type-checking. In other languages, the data is not in a single memory location, but copied at compile time for each use. Languages which use it include C, C++, D, JavaScript, Julia, and Rust.

<span class="mw-page-title-main">Express mail</span> Accelerated mail delivery service

Express mail is an expedited mail delivery service for which the customer pays a premium for faster delivery. Express mail is a service for domestic and international mail, and is in most nations governed by the country's own postal administration. Since 1999, the international express delivery services are governed by the EMS Cooperative.

<span class="mw-page-title-main">International Article Number</span> Standard barcode system used in global trade

The International Article Number is a standard describing a barcode symbology and numbering system used in global trade to identify a specific retail product type, in a specific packaging configuration, from a specific manufacturer. The standard has been subsumed in the Global Trade Item Number standard from the GS1 organization; the same numbers can be referred to as GTINs and can be encoded in other barcode symbologies, defined by GS1. EAN barcodes are used worldwide for lookup at retail point of sale, but can also be used as numbers for other purposes such as wholesale ordering or accounting. These barcodes only represent the digits 0–9, unlike some other barcode symbologies which can represent additional characters.

In number theory, a narcissistic number in a given number base is a number that is the sum of its own digits each raised to the power of the number of digits.

A negative base may be used to construct a non-standard positional numeral system. Like other place-value systems, each position holds multiples of the appropriate power of the system's base; but that base is negative—that is to say, the base b is equal to −r for some natural number r.

<span class="mw-page-title-main">Intelligent Mail barcode</span> Barcode for use on U.S. mail

The Intelligent Mail Barcode (IMb) is a 65-bar barcode for use on mail in the United States. The term "Intelligent Mail" refers to services offered by the United States Postal Service for domestic mail delivery. The IM barcode is intended to provide greater information and functionality than its predecessors POSTNET and PLANET. An Intelligent Mail barcode has also been referred to as a One Code Solution and a 4-State Customer Barcode, abbreviated 4CB, 4-CB or USPS4CB. The complete specification can be found in USPS Document USPS-B-3200. It effectively incorporates the routing ZIP Code and tracking information included in previously used postal barcode standards.

Tracking numbers are numbers assigned to packages when they are shipped. Tracking numbers are useful for knowing the location of time sensitive deliveries. It is a unique ID number or code assigned to a package or parcel. The tracking number is typically printed on the shipping label as a bar code that can be scanned by anyone with a bar code reader or smartphone.

References

  1. 1 2 3 4 5 6 7 "S10 Identification of postal items – 13-character identifier" (PDF). UPU. 2017-10-17. Retrieved 2024-03-05.