Integration work around US customs usually assumes a broker stands somewhere in the middle and a message bus behind them. The postal channel described in 19 CFR part 145 has no such figure. It defines a document set, a transmission event, a payment date, and an upstream feed owned by a third party, and your system has to model all four before the first label prints.
Documents attach to a shipment, evidence attaches to each piece
Part 145 defines its own unit broadly. Under 19 CFR 145.1(a) a mail article is any posted parcel, packet, envelope, letter, aerogramme, box or card, along with whatever is inside it, whenever the item moves through mail subject to customs examination. Letter class and sealed letter class get separate definitions because documents are handled differently from merchandise.
Two artifacts then travel with a consignment. Paragraph 145.11(a) asks for one filled-out customs declaration per shipment, printed on whatever form the sending country's postal administration supplies, stating contents and worth in words accurate enough to classify. It must be fastened securely to at least one piece, and the same paragraph notes that examination runs faster when every piece carries its own copy even though one is legally enough.
The second artifact is an invoice or bill of sale showing description and purchase price, enclosed or fixed outside. When goods were not purchased or consigned for resale, a fair-retail-value statement from the shipping country stands in. Multi-piece consignments need either a duplicate in each parcel or the invoice with the declared parcel, that parcel then marked to reveal an invoice is inside.
So the shipment record needs a per-article document map rather than a boolean on the order header.
A missing paper is an enforcement event, not a validation error
19 CFR 145.4(a) treats dutiable contents arriving without the required declaration and invoice as exposed to seizure and forfeiture. 145.4(b) opens a petition route under 19 CFR part 171, mitigation following published guidelines. 145.4(c) handles collection for consignments at or below $2,500 by way of a mail fine entry on Form 3419 or 3419A, Form 368 or 368A in a serially numbered series, or CBP Form 7501. 145.4(d) sends the petition to the FP&F officer covering the port that issued the fine entry.
The routing detail is an engineering lesson as much as a legal one. The address is derived from the issuing port record, not from geography, so your data model has to keep the issuing port next to the fine entry.
Fourteen elements and one calendar boundary
For eligible consignments the Postal Service will deliver at $2,500 or under, the duty to send the entry and pay falls on whoever holds entry rights under § 143.26(a), per 19 CFR 145.12(b)(1). That is a partner capability, not something your own platform can grant itself.
145.12(b)(3) names fourteen elements due to CBP by email: filer code, bond number, merchandise description, country of origin, every applicable ten-digit HTSUS classification, quantity or weight when a specific rate applies, the rate itself, declared value, resulting duty owed, carrier reference, conveyance or flight identifier, the tracking number the foreign postal operator generated, arrival port and arrival date.
Then the two timing rules that break naive implementations. 145.12(b)(2) makes goods dutiable at the rates in force when preparation of the entry is complete, and completion is defined as proper transmission to CBP. Rates are therefore a function of your send event. Payment via Pay.gov is due no later than the seventh day of the month following arrival, a boundary the fourteen elements share.
A retry that lands a few days after arrival and a retry that lands on the sixth of the following month are not the same operation. Model transmission as an idempotent, dated event with its own terminal state, and store the payment deadline as a property computed from arrival date so later mutations of the shipment cannot move it.
Thresholds, and the rule about splitting orders
19 CFR 145.12(a)(2)(i) requires a formal entry above $2,500, with carve-outs for the special classes subpart D releases without entry and for procedures in subparts B and C of part 143 and 19 CFR 10.1. Value stops mattering in five other situations: merchandise in a quota class, open or shut. Goods under a Commerce antidumping or countervailing determination or instruction, or otherwise barred from informal handling. Alcohol and tobacco. Shipments needing another agency. And anything under HTSUS Chapter 98 or 99, or claiming agreement-based relief. 145.12(a)(1) keeps a general override for revenue protection.
Order splitting gets answered by 145.12(a)(3): separate consignments under $2,500 mailed abroad at different times, evidenced by the declaration or other mailing indicia, cannot be merged into a formal-entry obligation because they happen to arrive together against one order above that amount. The exception is splitting done to avoid paying duty. If your warehouse batches by buyer, persist each parcel's originating mailing timestamp, because those indicia are the evidence a human will later ask you for.
Undeliverable is a state, and the upstream feed is not yours
Under 19 CFR 145.5 a refused or undeliverable article, unless a mail fine entry was already issued for it, gets marked by the postmaster with the reason and travels back toward its origin country through the exchange office, with entry papers stripped out and sent to Customs for cancellation. Anything dutiable that neither returns nor moves on under postal rules is handed to Customs for treatment as seized or unclaimed.
19 CFR 145.59 covers prohibited contents and goods imported contrary to law, seized or detained and held by Customs officers apart from two categories the Postal Service manages itself under §§ 145.51 and 145.52, and 145.59(b) requires notifying the addressee of the action, the reason, and where relevant the right to petition.
Upstream of all of it, 19 CFR 145.74 turns advance electronic data into a CBP obligation to extract from USPS, covering inbound international mail that moves as Express Mail Service, as parcel post, or as letter class mail carrying goods. Documents are out, as are aid materials for blind recipients up to 7 kilograms, empty parcels and EMS without merchandise, returning US-origin goods, sealed transshipments and mail treated as domestic. That feed must arrive as soon as practicable and before the consignment is loaded onto the conveyance, with corrections flowing until the mail reaches the port of arrival. Your system cannot backfill it, so model absent AED as an external dependency failure rather than a local data bug.
What the operator controls
FulfillNexa by SBT (fulfillnexa.com) handles the physical side of postal programs in China for sellers, and the Suzhou building alone contributes 13,000 square meters. Our engineering surface is the document map, the retained declared description and value per parcel, and mailing timestamps. Entry transmission, the Pay.gov settlement and the fourteen-element payload belong to the party holding § 143.26(a) rights, and we do not file entries or speak for a postal network.
Top comments (1)
The point about modeling the document set per article instead of a boolean on the order header is the one I'd underline. A "has_invoice" flag looks fine until a multi-piece consignment ships with one invoice inside parcel 2, and nothing downstream can say which pieces are actually covered.
I'd also treat the 145.12(b)(3) elements as a completeness check that runs before label purchase, not at transmission time. Fourteen fields assembled from different systems (HTS from catalog, bond from the partner, tracking from the foreign postal operator) will have gaps, and a gap found after the parcel is in the mail stream is far more expensive than one found at pack-out. A per-field "source + last verified" stamp makes the monthly reconciliation much less painful.
Curious how you handle the tracking number arriving late from the foreign operator: hold the entry, or send partial and amend?