liveBook · Manning

Addenda type code

As explained in Build Financial Software with Generative AI (From Scratch)

An addenda type code is a code that identifies the specific subtype and field layout of an ACH addenda record.

An addenda type code identifies the subtype and field layout of an ACH addenda record. In an IAT entry, record type code 7 marks the line as an addenda record, while the next two positions identify its subtype. section 11.2.1

IAT mandatory addenda type codes map to these data groups:

Reading type 712

A line beginning with 712 is an addenda record whose fields contain the originator’s city, state, country, and postal code. A corresponding table can store those parsed fields and default addenda_type_code to 12. section 11.3.1

Listing 11.4 Table for IAT addenda type 12
CREATE TABLE ach_iat_addenda_712_records
(
    ach_records_type_7_id        UUID UNIQUE NOT NULL 
            REFERENCES ach_records_type_7 (ach_records_type_7_id) 
            ON DELETE CASCADE ON UPDATE CASCADE,
    record_type_code             VARCHAR(1)  NOT NULL,
    addenda_type_code            NUMERIC(2)  NOT NULL DEFAULT 12, #1
    originator_city              VARCHAR(35), #2
    originator_state             VARCHAR(35),  #2
    originator_country           VARCHAR(35),  #2
    originator_postal_code       VARCHAR(35),  #2
    entry_detail_sequence_number NUMERIC(7)  NOT NULL
);

Inspect the SQL table that connects a type 712 addenda record to its parsed address fields. section 11.3.1

How Build Financial Software with Generative AI (From Scratch) covers it

How deep it goes
Defines the two-position subtype and maps codes 710–716 to fields, then demonstrates a type-specific SQL table.
Examples
Uses mandatory IAT codes 710–716 and a type 712 originator-address table as concrete examples.
What you can do after
Evaluate IAT addenda lines by recognizing their subtype codes and associating each code with the appropriate parsed fields.
How it connects
Connects ACH addenda records with IAT entries, record type codes, parsed database tables, and field layouts.

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Build Financial Software with Generative AI (From Scratch). The section links point to the parts of the book it draws on.