100% Offline Reference
X12 810 Invoice
ASC X12 810 Commercial Invoice & TDS Implied-Decimal Balancing
The single most notorious bug in X12 supply-chain engineering is formatting TDS-01 with a decimal point or forgetting its N2 implied-cents scale while summing explicit-decimal IT1 lines.
Explicit Decimals (IT1-04) vs. Implied Two-Decimal Cents (TDS-01)
N2 Data Type Trap in TDS & SAC-05
IT1-02 (Quantity) and IT1-04 (Unit Price) are type R (Real — explicit decimal point, e.g. 48.50). By contrast, TDS-01 (Total Monetary Value Summary) and SAC-05 (Allowance/Charge Amount) are type N2 (Implied 2 decimal places — no decimal point allowed, so $1,139.00 MUST be encoded as 113900!).
ST*810*0001~
BIG*20261115*INV-55012*20261112*PO-884920~
N1*BT*MIDWEST RETAIL AP*92*0099~
ITD*01*3*2**10**30~ <-- 2% 10 Net 30 Terms
IT1*1*24*CA*48.50*PE*UP*012345678905~ <-- 24 * 48.50 = $1,164.00
SAC*A*D240***2500**********PROMO ALLOWANCE~ <-- SAC-01=A (Allowance), 2500 = -$25.00
TDS*113900~ <-- $1,164.00 - $25.00 = $1,139.00 -> 113900 (N2 cents)
CTT*1~
SE*9*0001~

Frequently Asked Engineering Questions
Which SAC-01 codes add or subtract from the 810 invoice total?
SAC-01 = C (Charge) adds SAC-05 to the invoice total, SAC-01 = A (Allowance) subtracts SAC-05 from the invoice total, and SAC-01 = N (No Allowance or Charge / Informational off-invoice) has zero impact on TDS-01.
Inspect, Diff, Validate & Scrub This Payload Offline in Your JetBrains IDE
Never paste regulated healthcare PHI (837/835/271) or supply-chain payloads (850/ORDERS) into browser parsers. EdiPrism X12 EDIFACT runs 100% air-gapped inside IntelliJ IDEA, PyCharm, DataGrip, Rider, GoLand, and WebStorm with a free core tier and a 14-day [Pro] trial.