Entry Number Check Digit Validation
The check digit algorithm is defined in the CATAIR specification as follows. The formula operates on a
10-position Numeric Base Value (3-position Entry Filer Code + 7-position transaction/sequence number), with alphabetic characters converted to numeric equivalents first.
Alphabetic-to-Numeric Conversion Table
Per [S1] p.1-3 and [S3] p.53-57:
A = 1 J = 1 S = 2
B = 2 K = 2 T = 3
C = 3 L = 3 U = 4
D = 4 M = 4 V = 5
E = 5 N = 5 W = 6
F = 6 O = 6 X = 7
G = 7 P = 7 Y = 8
H = 8 Q = 8 Z = 9
I = 9 R = 9
Algorithm (Six Steps)
From [S3] p.53-57 (Duty Deferral) and [S4] p.73-76 (Reconciliation), the formal steps are:
Step ONE – "Derive a 'Numeric Base Value' by converting EACH and EVERY alphabetic value in the alphabetic portion(s) of the 'number' to a numeric value" using the table above. "The result is a 10-position number." [S3]
Step TWO – "Multiply positions 2, 4, 6, 8, and 10 of the 'Numeric Base Value' each by +2. For each, if the product (P) is greater than +9, add +1 to adjust the product (AP)." [S3]
Step THREE – "Disregarding the 'tens' positions for each product (or adjusted product), compute the 'Adjusted Even Sum Value' by adding the five products (or adjusted products) together." [S3]
Step FOUR – "Compute the 'Odd Sum Value' by adding positions 1, 3, 5, 7, and 9 of the 'Numeric Base' together." [S3]
Step FIVE – "Compute a 'Check Digit Base Value' by adding the 'Adjusted Even Sum Value' and the 'Odd Sum Value' together." [S3]
Step SIX – "Determine the 'Computed Check Digit' by subtracting the 'ones' position of the 'Check Digit Base Value' from +10." [S3]
+10
- Check Digit Base Value (ones position ONLY) NN
--
N = Computed Check Digit
Per [S2] p.4: *"If the result of the subtraction is zero, the check digit is zero."*
Worked Example (from [S1]/[S5]/[S2])
For entry filer code
B76 (transforms to
276) and transaction number
0324527, giving Numeric Base
2760324527:
1. Multiply odd positions (from the units/right) by 2 — "Start with the units position (right-most digit or, in this case, 7) and multiply every other position by 2… If the result of multiplication is greater than 9, add 1 to the units digit and disregard the tens digit." [S5]
7 5 2 0 7
x2 x2 x2 x2
14 10 4 0 14
+1 +1 +0 +1
5 1 4 0 5
2. "Add the results together." →
5 + 1 + 4 + 0 + 5 = 15 [S5]
3. "Total all the even positions in the entry number, starting with the position next to the units position." →
2 + 4 + 3 + 6 + 2 = 17 [S5]
4. "Add the two sums (15 and 17) together for a total of 32." →
15 + 17 = 32 [S2]
5. "Subtract the units digit (in this case 2) from 10. The result is the check digit." →
10 − 2 = 8 [S2]
So entry number
2760324527 has check digit
8.
Modulus
The spec does not use the word "modulus" explicitly; it specifies subtracting
the 'ones' position ONLY of the Check Digit Base Value from
+10, with the clarification that "If the result of the subtraction is zero, the check digit is zero" [S2]. This is effectively a mod-10 operation on the final subtraction.
Note also from [S2] p.4: filers nearing exhaustion of their ten million entry numbers may be authorized to use "either the check digit as calculated in step 5, or that check digit +1 (mod 10, so that 9+1=0)," extendable up to "+9 (mod 10)."
Validation
To
validate an existing entry number, recompute the check digit using the 10-position Numeric Base Value (Filer Code + 7-position Sequence Number) via Steps ONE–SIX and compare it to the check digit on the entry number. Per [S3]/[S4], the Filer Identifier "may be both alphabetic and numeric" while the Sequence Number "is required to be ALL numeric."
Sources retrieved
ACE CATAIR Appendix E Valid Entry Numbers - May 2012 pp.1-3 · sim 0.873
ACE CATAIR Appendix E Valid Entry Numbers - May 2012 — 4. Add the two sums (15 and 17) together for a total of 32. p.4 · sim 0.872
ACE-CATAIR-Duty-Deferral June 2025.v6 (508) (1) — 1. Wait a few minutes and retry/retransmit the transaction. It is possible that a system resource was temporarily unavai pp.53-57 · sim 0.861
ACE CATAIR Recon Create Update V12 2025-06-30 — 1. Wait a few minutes and retry/retransmit the transaction. It is possible that a system resource was temporarily unavai pp.73-76 · sim 0.861
ACE CATAIR Appendix E Valid Entry Numbers - May 2012 — 1. Start with the units position (right-most digit or, in this case, 7) and multiply every other position by 2. In other pp.3-4 · sim 0.859
ACE CATAIR AS AQ DRAFT V6 02272018 — **Record Identifier T2/Q2 (Output)** pp.16-17 · sim 0.859
ACE Cargo Release Implementation Guide V40 July 1 2025 — **Record Identifier SE10 (Input)** pp.33-35 · sim 0.856
ACE CATAIR AS AQ DRAFT V6 02272018 — **Record Identifier T1/Q1 (Output)** p.14 · sim 0.854