Validating FIRMS Codes Before You File

Reviewed by Gustavo Melendez · Last reviewed 2026-10-27. Dates given for CBP's FIRMS list in this guide are data dates, not review dates.

To validate a FIRMS code before filing, check that it is on CBP’s FIRMS list, that it is active, that it is registered under the port on your filing, and that its facility type fits how you are using it. Then confirm what the list cannot show, namely bond status, FTZ zone ID, direct delivery approval and port clusters, in ACE or with the port.

Why validate before filing?

ACE validates FIRMS codes itself. Since August 10, 2024, it checks that the FIRMS code on a non-air in-bond arrival is provided, valid, active and within the arrival port, and an arrival that fails is not transmitted to CBP (CBP trade notice). Under 19 CFR 18.1(j), the arrival and its FIRMS code are due within two business days. Catching a bad code before you transmit saves a reject, a correction and time against that deadline.

Which checks matter, and in what order?

These are the checks FIRMSapi runs, in order. When a check fails, the checks that depend on it are skipped.

Check Passes when ACE reject it helps you avoid
Format The code is four letters or digits
Exists The code is on CBP’s FIRMS list 158, FIRMS CODE NOT ON FILE; 028 for FTZ admission
Active The code is not deleted 159, FIRM NOT ACTIVE
Port The code is registered under the port on your filing 164, FIRM NOT ON FILE FOR DDPP
Type for use The facility type fits the intended use 211 for FTZ admission
Not junk The code is not a “DO NOT USE” placeholder or a CBP test record

158, 159 and 164 are the truck in-bond arrival rejects listed in CBP’s August 2024 notice; ocean and rail arrivals list 157, FIRMS CODE REQUIRED. 028, FIRMS CODE NOT ON FILE, is the FTZ reject in the same notice, and CBP’s FTZ error list has 211, FIRMS CODE IS NOT AN FTZ SITE, for a code that is not type 02. ACE rejects for FIRMS codes explains what each reject means and what usually causes it. CBP keeps the current versions of its error lists on its ACE ABI CATAIR page.

Format

The only safe format rule is ^[A-Z0-9]{4}$. About 31% of real codes are not a letter followed by three digits, and 1060 starts with a digit. Do not reject or “fix” a code because it looks unusual.

Exists and active

Look the code up in the current list. A code that is not there is usually a typo. A code that is there but deleted is a stale code, often from a template or an old document. About 36% of the published list is deleted, so this check catches more than you might expect. See deleted and inactive FIRMS codes.

Registered at the stated port

Compare the code’s registered CBP port with the port on your filing, not with the facility’s city. LBCT LLC in Long Beach (WAC8) is registered under 2704, Los Angeles, and Everport in Oakland (WBA5) under 2809, San Francisco.

A mismatch is a reason to investigate, not always an error. First confirm the exact facility and operation for your shipment; do not substitute another facility’s code simply to make the ports match. Some ports accept FIRMS codes registered under a neighboring port. ACE Cargo Release returns error 321, FIRMS location not in the same port cluster, when a code falls outside the cluster (CSMS #66026456), but CBP does not publish clusters in the FIRMS list.

Facility type fits the use

Use Passes when the type is
Warehouse entry 04 bonded warehouse
FTZ admission 02 FTZ
Exam site 09 centralized examination station
Location of goods Anything except 07 DP site and 08 CBP administrative

A record with no type fails the first three. FIRMS facility types explained describes each type.

Not a placeholder or test record

CBP’s list contains rows marked “DO NOT USE” and CBP test facilities. They look like codes and should never go on a filing.

What can’t the FIRMS list tell you?

Some conditions that ACE checks are not in the published list. Confirm them in ACE, with the facility or with the port:

Condition Why it matters Source
Bond status For locations that require a bond, ACE verifies that the correct bond type is in place for the FIRMS code. FTZ errors include 051, FIRMS NOT BONDED, and 213 for a terminated Type 4 FTZ bond CBP trade notice, Appendix P
FTZ zone ID FTZ admissions carry a 9-character zone ID (error 233 rejects a 7-character one on new admissions), and the FIRMS list does not map codes to zone IDs Appendix P
Direct delivery Error 238, FIRMS CODE NOT APPROVED FOR DIRECT DELIVERY, was scheduled for e214 FTZ admissions in ACE production on September 17, 2026 CSMS #69902241
Port clusters ACE accepts some codes from neighboring ports, and rejects others with 321 in cargo release or 052 in FTZ admissions CSMS #66026456, Appendix P

A code that passes every check on the list can still be rejected for one of these. Treat a clean result as “no known problem”, and keep the final confirmation in ACE.

What does a validation call look like?

FIRMSapi’s validation endpoint runs these checks in one call. Pass the port and use from your filing:

curl https://api.firmsapi.com/v1/validate \
  -H "x-api-key: $FIRMSAPI_KEY" \
  -H "content-type: application/json" \
  -d '{"code":"E430","port":"4601","use":"warehouse_entry"}'

E430 is MAHER TERMINAL, an active pier or terminal registered under 4601. It passes format, exists, active, port and not junk, and fails type for use, because a warehouse entry needs a bonded warehouse. The response returns valid: false with checks_passed, checks_failed, checks_skipped and checks_not_possible as separate lists, plus a note to confirm in ACE. With "use":"location_of_goods" the same code passes.

How should my software use the result?

  • Validate twice. Once when the user picks the facility, and again just before transmission, since status can change in between.
  • Show outcomes separately. A failed check, a skipped check and a check that is not possible mean different things. Do not collapse them into one “valid” flag.
  • Never auto-correct. If a code fails, show the record and the other codes at the same address, and let a person choose and confirm.
  • Separate API errors from failed checks. A timeout or quota error is not “this code is invalid”.
  • Validate in bulk when you need to. On Pro and Enterprise, batch runs up to 100 validations in one request.

How to add FIRMS code lookup to a TMS covers the wider integration. FIRMSapi checks CBP’s published list only; it does not submit filings, and a passing check does not guarantee acceptance. Confirm the code and the filing details in ACE or with your customs broker.

Quickstart · API reference · Pricing · Contact