On this page
- What the Intelligent Mail barcode encodes for API mail, field by field
- Mailer IDs and the 45-day rule for API mail
- How IMb scans become API tracking statuses
- Where the IMb goes on a postcard or letter mailed by API
- Informed Delivery, the IMb and API mail
- Intelligent Mail barcode questions from API senders
What the Intelligent Mail barcode encodes for API mail, field by field
Each of the 65 bars is in one of four states: full, ascender, descender or tracker. Read together, they carry up to 31 digits in five fields:
| Field | Digits | What it holds |
|---|---|---|
| Barcode Identifier | 2 | A presort identifier; the second digit is 0 to 4 |
| Service Type Identifier | 3 | The mail class and the services requested |
| Mailer ID | 6 or 9 | The mailer, assigned by USPS |
| Serial Number | 9 or 6 | The piece, numbered by the mailer |
| Routing code | 0, 5, 9 or 11 | The ZIP, ZIP+4, or ZIP+4 plus a delivery point |
The first four fields make the 20-digit tracking code. A 6-digit Mailer ID leaves room for a 9-digit serial number and a 9-digit Mailer ID for 6, so the total stays 20. The IMb replaced USPS’s older POSTNET and PLANET barcodes, and it has been required for automation letters since January 27, 2013. What the ZIP+4 and delivery point digits mean is in ZIP+4 lookup.
Mailer IDs and the 45-day rule for API mail
USPS assigns Mailer IDs by volume. A mailer sending more than 10 million pieces a year gets a 6-digit ID; smaller mailers get 9 digits, assigned when they register on USPS’s Business Customer Gateway. For Full-Service mail, each barcode has to stay unique for at least 45 days, so a mailer can’t reuse a serial number on two pieces mailed weeks apart. What else mailing on your own permit takes is in USPS direct mail.
When you send through a mail API, all of this sits on the other side of the request. You send an address and a design; the barcode, its Mailer ID and its serial number are printed on the piece for you. The presort markings printed next to the postage are explained in presorted standard mail.
How IMb scans become API tracking statuses
USPS collects the scans in Informed Visibility. It covers letter and flat pieces as well as the bundles and containers they travel in, with the handling events machines record and delivery events USPS works out from its own rules. Letters and cards don’t get a physical “delivered” scan: USPS infers delivery from carrier data instead.
Mailr follows each piece through six statuses: queued, rendered, printed, mailed, in transit and processed for delivery. The last two come from USPS scans of the barcode. Each one is also a webhook event, postcard.in_transit or flat.processed_for_delivery for example, so your app hears about it without polling. The full list is in the API reference.
Where the IMb goes on a postcard or letter mailed by API
On cards and letter-size pieces, USPS keeps a barcode clear zone in the lower right of the address side: 4-3/4 inches wide and 5/8 inch tall. An automation letter can carry its IMb there or inside the address block. Mailr prints it inside the blank address block of each design, next to the address and postage, so the artwork never has to leave room for it. The sizes of that block are in USPS postcard size requirements.
Informed Delivery, the IMb and API mail
USPS Informed Delivery emails people grayscale images of the address side of their incoming letter-size mail, free. The barcode’s delivery point code is what ties a scanned piece to a household. Mailers can attach an interactive campaign to their pieces, a clickable image with an HTTPS link shown next to the scan, registered with USPS against a Mailer ID.
Intelligent Mail barcode questions from API senders
Do I need my own Mailer ID to mail through an API?
Not with Mailr. The Intelligent Mail barcode is printed on every piece for you, in the block your design leaves blank for the address.
Does the IMb show when a postcard is delivered?
Not with a scan. Letters and cards get no physical delivered scan; USPS's Informed Visibility can add delivery events it works out from carrier data. Mailr reports the scans USPS makes: in transit and processed for delivery.
Is the IMb the same as POSTNET?
No. The IMb replaced the POSTNET and PLANET barcodes, combining what both carried, and USPS has required it for automation letters since January 27, 2013.
What do the bars mean?
Each of the 65 bars is in one of four states: full, ascender, descender or tracker. Together they encode up to 31 digits.
Can people see my mail before it arrives?
Yes, if they use USPS Informed Delivery: it emails grayscale images of the address side of incoming letter-size mail, matched to their address through the barcode.