Skip to main content
Version: v0.0.2

Variable: TA1_NOTE_CODES

const TA1_NOTE_CODES: object

TA1-05 interchange note code (ASC X12 code list I18). Codes 000028 are defined by the standard; values past 028 exist in some standard revisions and are accepted on parse (Postel's Law) but not enumerated here - the parsed model carries the raw string for verbatim preservation.

000 is the canonical "no error" note paired with a TA1-04 == 'A' acceptance. The build-time safety guard refuses a fabricated A paired with any non-000 note (see "./errors.js".AckBuildError).

Standard-issued values:

  • 000 - No error.
  • 001 - Interchange Control Number in the Header and Trailer do not match.
  • 002 - Standard as noted in the Control Standards Identifier is not supported.
  • 003 - Version of the controls is not supported.
  • 004 - Segment Terminator is invalid.
  • 005 - Invalid Interchange ID Qualifier for Sender.
  • 006 - Invalid Interchange Sender ID.
  • 007 - Invalid Interchange ID Qualifier for Receiver.
  • 008 - Invalid Interchange Receiver ID.
  • 009 - Unknown Interchange Receiver ID.
  • 010 - Invalid Authorization Information Qualifier value.
  • 011 - Invalid Authorization Information value.
  • 012 - Invalid Security Information Qualifier value.
  • 013 - Invalid Security Information value.
  • 014 - Invalid Interchange Date value.
  • 015 - Invalid Interchange Time value.
  • 016 - Invalid Interchange Standards Identifier value.
  • 017 - Invalid Interchange Version ID value.
  • 018 - Invalid Interchange Control Number value.
  • 019 - Invalid Acknowledgment Requested value.
  • 020 - Invalid Test Indicator value.
  • 021 - Invalid Number of Included Groups value.
  • 022 - Invalid Control Structure.
  • 023 - Improper (premature) end-of-file (transmission).
  • 024 - Invalid Interchange Content (e.g., invalid GS segment).
  • 025 - Duplicate Interchange Control Number.
  • 026 - Invalid Data Element Separator.
  • 027 - Invalid Component Element Separator.
  • 028 - Invalid Delivery Date in Deferred Delivery Request.

Type Declaration

000

readonly 000: "000" = "000"

001

readonly 001: "001" = "001"

002

readonly 002: "002" = "002"

003

readonly 003: "003" = "003"

004

readonly 004: "004" = "004"

005

readonly 005: "005" = "005"

006

readonly 006: "006" = "006"

007

readonly 007: "007" = "007"

008

readonly 008: "008" = "008"

009

readonly 009: "009" = "009"

010

readonly 010: "010" = "010"

011

readonly 011: "011" = "011"

012

readonly 012: "012" = "012"

013

readonly 013: "013" = "013"

014

readonly 014: "014" = "014"

015

readonly 015: "015" = "015"

016

readonly 016: "016" = "016"

017

readonly 017: "017" = "017"

018

readonly 018: "018" = "018"

019

readonly 019: "019" = "019"

020

readonly 020: "020" = "020"

021

readonly 021: "021" = "021"

022

readonly 022: "022" = "022"

023

readonly 023: "023" = "023"

024

readonly 024: "024" = "024"

025

readonly 025: "025" = "025"

026

readonly 026: "026" = "026"

027

readonly 027: "027" = "027"

028

readonly 028: "028" = "028"

Example

import { TA1_NOTE_CODES, type Ta1NoteCode } from "@cosyte/x12";
const noError: Ta1NoteCode = TA1_NOTE_CODES["000"];