Skip to content
un-tariff / IEEPA Refund
Guide · How-to

The complete CAPE filing guide

From ACE Entry Summary export to validated CAPE CSV to ACE Portal upload. Every CBP rule the filing has to pass, in order.

Published
Read
15 min

Overview

A CAPE filing looks deceptively simple — the deliverable is a one-column CSV of entry numbers. The work is in knowing which entries belong in the file and defending the answer with an audit trail. This guide walks through the nine steps in the order CBP's validation runs them.

The free calculator gives you the refund band before you commit to the full filing workflow. Once you're ready to file, the paid tool runs all of step 2 through step 7 automatically from your ACE export.

1. Export the ACE Entry Summary

Log in to the ACE Portal. Open Reports → Entry Summary. Filter for the date range Feb 1, 2025 – Feb 7, 2026 (the IEEPA window). Include the Paid Duty breakdown (so Section 232 / 301 amounts are visible per line) and the Liquidation Date column. Export to CSV.

The full mechanics — which screens, which filters, which fields — are in Exporting your ACE Entry Summary.

2. Classify each line against the IEEPA HTS registry

For every entry line, check the HTS subheading and the entry filing date against the Chapter 99 IEEPA registry. The registry is a versioned table that lists which HTS codes were in scope of an IEEPA executive order, with effective_from and effective_to dates keyed to the executive orders. A line qualifies only when the filing date falls inside an IEEPA-in-scope window for that HTS subheading.

Lines that were Section 232, Section 301, or ordinary column-1 duty only are dropped — they are not refundable via CAPE. They may be refundable by a different channel (court-ordered Section 301 refunds for the HMTX litigation, for example), but that is a separate process.

3. Separate stacked tariffs

Where the same entry line paid both IEEPA and Section 232 (or Section 301), the paid duty stacks — the importer paid, say, 25% Section 232 plus 10% IEEPA on the same line. Only the IEEPA portion refunds. CBP's CAPE validation will reject a filing that claims the full stacked amount.

The canonical rule is IEEPA-005 (stacking). It splits the paid duty into three buckets — IEEPA principal, non-IEEPA principal, and the applied rate — and only the IEEPA bucket flows into the refund computation.

4. Drop entries past the 80-day cliff

For each entry, compute liquidation_date + 80 days. If that date is in the past, the entry is ineligible for CAPE. Mark it for protest (out of scope for Phase 1 un-tariff; see the 80-day cliff guide) and drop it from the CSV.

Entries whose liquidation date is within 80 days of today are eligible. Entries that have not yet liquidated are also eligible, but they have a window that opens at liquidation and closes 80 days later — file them earlier to leave room for a re-submission if CBP returns a validation error on the declaration.

5. Compute principal and interest

Principal is the IEEPA-bucket amount from step 3. Interest is the CBP quarterly overpayment rate at 19 CFR 24.3a, compounded daily from the payment date of the entry to the refund-issue date. Quarterly rates are published by CBP via CSMS messages; as of Q2 2026 the rate is 8% annualized.

This is the step where spreadsheet math usually produces the wrong answer. Interest walking across quarter boundaries with rate changes is not hard, but it is fiddly, and CBP's final reconciliation runs the exact walk — so guessing produces variances that trigger review.

6. Validate against CBP CAPE rules

CBP publishes three validation rule families:

  • VAL-F (file-level) — encoding, line endings, row count (≤ 9,999), no duplicate entry numbers.
  • VAL-E (entry-level) — each entry exists in CBP's records, is in the IEEPA window, has a liquidation date, and has not already been refunded.
  • VAL-I (identity) — the IOR, filer code, and ACH payer ID attached to the declaration match a valid, active CBP registration.

Run these locally before generating the CSV. A file that fails on upload costs you a day in the ACE Portal queue — running the same rules locally takes milliseconds.

7. Generate the CAPE CSV

Format spec (per CBP CSMS April 13, 2026 and the CAPE Upload Template):

  • Single column.
  • Header row matching CBP's CAPE Upload Template (verify against the current Excel template in the ACE Portal).
  • 11-character CBP entry numbers: 3-char filer code + 7-digit serial + 1 check digit, matching ^[A-Z0-9]{3}[0-9]{7}[0-9A-Z]$.
  • One entry per data row.
  • UTF-8 encoding, no BOM.
  • LF (\n) line endings.
  • ≤ 9,999 data rows (excluding header).

This is the deliverable. Everything else — the principal computation, the interest walk, the stacking separation — lives in your records as documentation you can produce if CBP asks during reconciliation. The CSV itself is just the pointer.

8. Upload to the ACE Portal

In the ACE Portal, open CAPE Submission. Select the CSV. Provide your IOR number, filer code, and ACH payer ID. Submit. CBP returns an acknowledgement within 48 hours with either an accepted declaration ID or a validation error list keyed to VAL-F / VAL-E / VAL-I rules.

9. Track and reconcile

CBP targets 30–60 days from accepted declaration to ACH deposit. When the ACH arrives, compare the paid amount against your computed expected refund. Small variances (under 1%) are typically interest-day rounding differences. Larger variances warrant a reconciliation request — keep the audit trail from step 5.

Common questions

Can I file more than 9,999 entries at once?

No. CBP's VAL-F-004 rule caps a CAPE declaration at 9,999 entry numbers. If you have more, split across multiple files — there is no limit on how many declarations you can submit.

What encoding and line endings does the CSV need?

UTF-8 encoding, LF (\n) line endings, no BOM, the required header row from CBP's CAPE Upload Template, one 11-character entry number per data row. CBP's validator is strict on encoding and header text — some spreadsheet exports corrupt UTF-8 or alter the header text.

Do I need to include the paid duty amounts in the CSV?

No. CBP already has the entry data on its side. The CAPE CSV is a pointer — entry numbers only. CBP's back office does the principal calculation and the interest walk.

Can I file CAPE for entries where I also paid Section 232 or 301?

Yes, if at least part of the duty was IEEPA-classified. The refund covers only the IEEPA portion — Section 232 and Section 301 stay collected. un-tariff's stacking rule IEEPA-005 handles this separation per-line.

What happens if my CSV fails validation at CBP?

CBP returns a validation error list keyed to the specific rule (VAL-F, VAL-E, or VAL-I). Fix the offending rows and resubmit. un-tariff runs CBP's validation locally before you download, so the Portal rejections tend to be environmental (wrong ACH payer ID, expired filer code) rather than content errors.

How long does CBP take to pay?

CBP's posted service level is 30–60 days from accepted declaration to ACH deposit, but the first wave of CAPE declarations in Q2 2026 is expected to run longer due to volume. Track status in the ACE Portal.

Not legal advice. CAPE mechanics are administrative. Where classification is disputed — for example, whether a line qualifies as a USMCA exclusion under rule IEEPA-006 — talk to a trade lawyer. un-tariff Phase 1 models the common stacking (IEEPA-005) and exclusion (IEEPA-006) edge cases; anything outside those is out of scope.
Next step

See what you can recover before you do anything else.

Run the calculator

Browse the rest of the IEEPA refund guides.

Keep reading