The USPS Forgot Who It's For
The USPS is a state actor, captured by enterprise requirements, marketed as “for the individual.” But if you want to track your mail beyond “delivered,” you hit their gate: an Intelligent Mail Barcode (IMb).
The Barrier
To generate IMb’s, one must sign up for the Business Customer Gateway (BCG), and get a Mailer ID (MID). Are we to assume that the only people that would ever want to generate IMb’s are businesses? Fine, I can accept that it is “intended” for businesses.
I signed up for an EIN as a sole proprietor, and registered for a BCG account. Then I wanted to play around with the USPS Informed Visibility Mail Tracking & Reporting (IV-MTR) API. It is free. Using it is free. However, gaining access to it, is the most asinine, ass-backwards API access model, I have ever seen.
In order to gain access to the USPS API, you must have a BCG account, and have a valid Enterprise Payment Account (EPA). On top of that, the EPA has to be approved. Without a valid EPA, you cannot access any USPS API.
In order to get an approved EPA, you can go one of two routes. The first route—the most convenient route—is to add a major credit or debit card, and you are off to the races. But there is one catch to adding a credit or debit card as the payment method for the EPA: the USPS requires a $500 preauthorization hold to be placed on your card at all times, released at the end of each day, minus any API costs incurred during the timeframe. So, while you will always have the $500 preauthorization hold released, if you did not incur any API costs, it is effectively $500 to use the USPS API.
The other option is to connect a bank account. That is free. However: the bank account must be a business bank account.
So then one must find a bank that has a business bank account without minimum balance requirements or monthly fees. Luckily, my bank, Dollar Bank, has just that. So I said, “Fine, USPS. Two can play at this game”, and drove my happy ass to Dollar Bank, opened a business bank account as a sole proprietor, and threw the minimum amount to open the account in it: $50.
Then I took the account information to the USPS BCG EPA creation, put it in, and waited for the micro-deposit verification process to commence.
I thought I was done with all the songs and dances. I was wrong.
The next day, I woke up to an email from the USPS stating that my EPA was suspended, after an internal audit. I was confused. So I contacted them. After some back-and-forth, it turns out that the USPS’s automated anti-fraud system noticed that the name on my business account was my name, and thought I was trying to thwart their requirements. After ironing that out with USPS support, I got an approved EPA.
The whole process took weeks. Weeks. Weeks to access an API that is free.
The Queue Bullshit
Without an approved EPA, I pivoted to other options. The IV-MTR web dashboard lets you request scan data for your barcoded mail—the events, the locations, the timestamps. The USPS offers three ways to get that data: manual CSV download, a JSON webhook, or SFTP.
The webhook seemed simple. The IV-MTR dashboard lets you set up a job that executes on a schedule, and sends scan data to your specified endpoint. POST requests are easy with which to work, and I was using N8N to bridge the gap between the USPS and my DB.
However, the USPS IV-MTR dashboard does not allow one to test webhook endpoints. The only way to “test” it is by setting up a job to fire, then capture the job’s output. So I set up a little webhook in N8N, put in the webhook endpoint in the IV-MTR dashboard, set up a job to run in the next couple minutes, then waited for the POST request from the USPS. I waited. And I waited. Nothing. Ran the job multiple times. Nothing.
Turns out, the USPS will only send a POST request if there is scan data. As I was still testing things out, and I had not sent very many barcoded letters, there were no scans.
So I gave up on the JSON webhook, and pivoted towards the other option: SFTP. Yeah. SFTP. The USPS will send scan data in a CSV to an SFTP server to which you give it access.
I spun up an SFTP LXC, put the creds in the IV-MTR dashboard, set up a job to fire in the next couple minutes, then waited. And waited.
As suspected, just like with the POST requests, the USPS will only send scan data to an SFTP server, if there were scans. However, the USPS is nice enough to allow you to resend the data from past jobs, even if there was no scan data.
So I clicked the resend button on the job log, and waited.
Oh, boy did I wait.
Who knows why, but when you request empty scan data to be resent, the USPS says fuck you. You go to the bottom of the request list, and I will send the CSV whenever I feel like it.
I waited 31 hours for an empty CSV. While I was waiting for that empty CSV, real scans came in. Did those get sent? No. Because my request for empty scan data was still fucking sitting in the queue, and the USPS refuses to diverge from the queue.
A system that prioritizes empty data over real data, just because it was requested first, is not fit for production deployment.
Eventually the CSV arrived, and I built an N8N workflow that parses the CSV’s received from the USPS and populates them in a database that feeds a gallery-style view of all of my letters, their current scan, their first scan, where they are, and what their scan code means. It is beautiful.
What It Should Be
The experience should be: you send a letter, as you normally do, and you get nothing special. You send a letter, and go the extra mile of adding the barcodes, yourself, then the USPS gives you the scan data for that letter by allowing you to type your FTAD/IMb digits into the tracking field on the USPS website, and you can track your letter.
Signing up for the ability to generate barcodes? Make it so every USPS account gets one by default, when they sign up for Informed Delivery. That verifies an address. Just give everyone an API key.
The alternative to this class barrier is a USPS that is run by the people, for the people. Just as it was intended to be. It was never intended to be a profit-generator for the US Government. It was intended to serve as the primary means of communication, in the country. The founders understood that communication was crucial to any functioning republic. So they created the USPS. And it opened the floodgates to the spread of ideas, through letters.
The USPS errantly believes that focusing on the enterprise customer will ensure its survival. However, ignoring the individual customer has effectively made the USPS less appealing to probably 90% of their customer-base.
Now, it’s a gated community.