More Symbologies
Australia Post 4-state Barcode
Aztec Code Barcode
Codabar
Code 11
Code 128
Code 16K
Code 32
Code 39
Code 93
Compact PDF417
Danish Postal 39
Data Matrix
Deutsche Post Identcode Barcode
Deutsche Post Leitcode Barcode
EAN/UPC Add On 2
EAN/UPC Add On 5
EAN-13
EAN-8
EAN-99
EAN-Velocity
FedEx Ground 96
French Postal 39 A/R
GS1-128
GS1 DataBar-14 Stacked
GS1 DataBar-14 Stacked Omnidirectional
GS1 DataBar-14 Truncated
GS1 DataBar Expanded
GS1 DataBar Expanded Stacked
GS1 DataBar Limited
GS1 DataBar Omnidirectional/GS1 DataBar-14
HIBC LIC 128
HIBC LIC 39
HIBC PAS 128
HIBC PAS 39
IATA 2 of 5 Barcode
Industrial 2 of 5
Interleaved 2 of 5
ISBN
ISBT 128
ISMN
ISSN
Italian Post 25
ITF-14
JAN-13
JAN-8
Macro PDF417
Matrix 2 of 5
Micro PDF417
Micro QR Code
MSI
Numly Number
OPC
PDF417
Pharmacode
PLANET
POSTNET
PZN
QR Code
British Royal Mail 4-State Customer Barcode
Royal TPG Post KIX 4-State Barcode
SCC-14
Semacode
Singapore 4-State Postal Code Barcode
SSCC-18
Swiss PostParcel Barcode
Telepen
UCC/EAN-128
UPC-A
UPC-E
UPS MaxiCode
USPS Facing Identification Marks
USPS Horizontal Bars
USPS Intelligent Mail / OneCode 4-State Customer Barcode
USPS Package Identification Code (UCC/EAN-128 GS1-128)
USPS Package Identification Code (USS Code 128)
USPS Sack Label Barcode
USPS Tray Label Barcode
VICS BOL Barcode
VICS SCAC PRO Barcode

USPS OneCode 4-State Customer Barcode - ASP.NET

This Symbology is also known as Intelligent Mail, OneCode 4CB, USPS 4CB, 4-CB, 4-State Customer Barcode, USPS OneCode Solution Barcode, USPS IM

Overview
Intelligent Mail Barcode (formerly OneCode 4-State Customer Barcode 4-CB) is the next generation in the evolution of USPS barcode technology. It does not replace existing barcodes - it offers a more effective alternative. Partnering with the Mailing Industry, the Postal Service developed the Intelligent Mail which increases the amount of information carried on letter and flats mail pieces and allows for expanded tracking capability, creating greater visibility into the mailstream.

Intelligent Mail is a height-modulated barcode using four distinct, vertical bar types. It encodes a 31-digit string into 65 vertical bars each representing one of four possible states: full bar, ascender, tracker, and descender.

4-State Barcode Bars
Intelligent Mail carries a payload 31 digits comprised of the following elements.
Type Field Digits
Tracking Code Barcode Identifier 2 (2nd digit must be 0–4)
Service Type Identifier 3
Mailer Identifier 6 or 9
Serial Number 9 (when used with 6 digit Mailer ID)
6 (when used with 9 digit Mailer ID)
Routing Code Delivery Point ZIP Code 0, 5, 9, or 11
Table 1 – USPS Intelligent Mail Barcode Data Fields
For each of the fields in Table 1, except the Routing Code, leading or trailing zeros shall be provided to achieve the correct size. Spaces and nulls are not acceptable characters for padding. For ZIP Codes, which have one of four lengths, encoding shall provide padding beyond the digits to be encoded. No error detection and correction, such as a checksum with POSTNET or PLANET, shall be included as part of the data fields. The Intelligent Mail Barcode Data Fields are described as follows:
  • The Barcode Identifier is assigned by USPS for encoding the presort identification that is currently printed in human readable form on the optional endorsement line (OEL) as well as for future USPS use. This is two digits, with the second digit in the range of 0-4.
  • The Service Type Identifier is assigned by USPS for any combination of services requested on the mailpiece. The allowable encoding range is 000-999.
  • The Mailer or Customer Identifier is assigned by USPS as a unique identifier for each business entity. The allowable encoding range for the 6 digit Mailer ID is 000000-899999, while the allowable encoding range for the 9 digit Mailer ID is 900000000-999999999.
  • The Serial or Sequence Number is assigned by the mailer for tracking mailpieces. The allowable encoding range is 000000000-999999999 when used with a 6 digit Mailer ID and 000000-999999 when used with a 9 digit Mailer ID.
  • The Delivery Point ZIP Code is assigned by the mailer for routing the mailpiece. This replaces POSTNET for routing the mailpiece to its final delivery point. The length may be 0, 5, 9, or 11 digits. The allowable encoding ranges are no ZIP Code, 00000-99999, 000000000-999999999, and 00000000000-99999999999.

Sample of a USPS Intelligent Mail barcode

How to create USPS Intelligent Mail barcodes using Barcode Professional

ASP.NET/Windows Forms/Reporting Services/Compact Framework WPF  
Note: Please refer to the Class Reference documentation for more information about the properties and methods stated in this document.
In order to get a USPS Intelligent Mail barcode image, please follow these steps:
  • Set the Symbology property to IntelligentMail or UspsOneCode4CB
  • Setting up dimensions and quiet zones:
    • Set the Postal4StateTrackerBarWidth property to a value ranging from 0.015 to 0.025 (Values are expressed in Inches)
    • Set the Postal4StateTrackerBarHeight property to a value ranging from 0.04 to 0.08 (Values are expressed in Inches)
    • Set the Postal4StateBarsSpacing property to a value ranging from 0.012 to 0.040 (Values are expressed in Inches)
    • Set the QuietZoneWidth property to 0.125 (Value is expressed in Inches)
    • Set the TopMargin and BottomMargin properties to 0.04 (Value is expressed in Inches)
  • Setting up the value to encode:
    • Set the Code property with a value with the following structure:
      • 20 digits for Tracking Code which is composed of Barcode Identifier (2 digits and 2nd digit must be 0-4), Service Type Identifier (3 digits), Mailer or Customer Identifier (6 or 9 digits), and Serial or Sequence Number (9 or 6 digits depending on Mailer ID length)
      • (Optional) Routing Code (Delivery Point ZIP Code) which can be composed of 0, 5, 9, or 11 digits.
    • Examples of values that can be set to the Code property based on the stated in the previous rules:
      • 34160265194042788110
      • 9002580053457430457568477
      • 91562578054046449955601201455
      • 0445031376985619365776725552439
  • Set the CodeAlignment property to AboveLeft
  • Set the Text property to an Empty string
USPS OneCode 4-State Customer barcode images generated based on the values of point 3
Code property = 34160265194042788110 will produce the following barcode image:
Code property = 9002580053457430457568477 will produce the following barcode image:
Code property = 91562578054046449955601201455 will produce the following barcode image:
Code property = 0445031376985619365776725552439 will produce the following barcode image:
 Copyright © 2003 - 2009 Neodynamic S.R.L. All rights reserved.