MOTOR FUELS FLAT (FLT) FILE and EDI FILING GUIDE
EDI

An EDI transmission is made up of one or more data sets. Data Set is the term used to describe the online equivalent of a paper document (tax return, information report, etc.). X12-formatted EDI files are the foundation of motor fuels online filing. For the purpose of this guide, EDI and FLT data will be referred to as a data set.

Data Set

The data included in an FLT or EDI data set conveys the same information as the conventional paper document. Within each data set, there are sections that correspond directly to the format of the paper document:

The header section contains information that pertains to the entire document, such as the filing date, company name, company address, filing period, account number, contact information, etc.

The return section contains information describing which return is present in the data set.

The summary item section contains information that cannot be derived from the detail, such as other exempt removals, etc.

The transaction detail section includes the same information found on the paper schedules, such as bill of lading, carrier information, origin and destination information, gallons, etc.

To gain the maximum benefits of an EDI data set, a company s system must have the following two characteristics:

1. The flow of information must be integrated. In other words, the data must flow between automated business management systems using EDI software without being re-keyed.

2. The automated business management systems must be intelligent. These systems must be able to automatically process routine transactions according to those limits defined by the businesses conducting trade.

EDI Standards

The group responsible for developing and maintaining X12 standards is the Accredited Standard Committee X12 (ASC X12) of the American National Standards Institute (ANSI). These standards are utilized to develop the EDI map that the customers will follow to create their data set for the CDTFA.

Standards are defined as the technical documentation approved by the ANSI Accredited Standard Committee (ASC) X12 that includes:

Code set TIA01 Code list (see Tax Information and Amount [TIA] Codes below)

Data elements TIA01 is the first element of the TIA segment

Interchange control structure ISA/GS/GE/IEA

Segments TIA, Tax Information and Amount Segment

Transaction sets TS813

Standards prescribe the framework for how a specific EDI message is formatted.

ANSI ASC X12 standards, usually referred to as X12, are the most commonly used EDI standards in North America. ANSI is the clearinghouse and coordinator for standards in all areas of trade and commerce.

Tax Information and Amount (TIA) Codes

TIA Codes are the segment that is used by EDI filers to specify the tax information and/or amount and is to be used for reporting tax information as established by taxing authorities.

Code Description
5000 Version of Taxing Authority s Implementation Guide
5001 Total Net Reported
5002 Ending Physical Inventory
5003 Total Due
5004 Total Net Transported
5005 Net
5006 Gross
5007 Billed (Gallons and/or Tax)
5008 Interest
5009 Penalty
5024 Tax Rate
5026 Excess Tax Collected

CDTFA EDI v. 4030 Specifications

General

You will follow the ANSI ASC X12 Electronic Filing of Return Data Transaction Set (TS813), as defined in Version 4 Release 3 (CDTFA map). The CDTFA requires that all schedules reflect the detailed information needed to perform tracking of monthly fuel transactions.

The CDTFA requires that both gallon and dollar information be reported as whole numbers. All gallon and dollar fractions should be rounded to the nearest whole number.

This section provides the information you need to generate motor fuels tax returns or reports in an EDI format. It covers all the necessary specifications in detail for the filing of these returns or reports. The topics covered are as follows:

Attribute Conventions

EDI Requirements

Transaction Set 813 (TS813)

TS813 Motor Fuels Structure Overview

TS813 Motor Fuels Map Flow

TS813 Motor Fuels Reporting Map

TS997 Functional Acknowledgement

TS997 Acknowledgement Example

Version of EDI Section

The CDTFA s EDI Section version control number for this publication is 3.1. The version control number will change when the CDTFA publishes updates to the EDI map. This number is used by the CDTFA to manage changes between versions in EDI files. Report the version control number in the Tax Information and Amount (TIA) Segment Version of Taxing Authority s Implementation Guide found in the EDI map of this chapter.

Keys to Interpreting the CDTFA Map

The CDTFA map is designed based on the FTA Motor Fuel Uniformity EDI map. Key tables, similar to the one appearing below, have been added to the map flow diagrams and the EDI map to assist the reader in understanding how to implement the electronic filing requirements.

Key:
Not Used in FTA Map Not used: no data to transmit
Notes Note: important to read all notes
Not Used by California Segments, Elements and Codes not used by California that are part of the Standard FTA Map
Syntax Notes Translation Syntax Requirements The California translator will enforce these rules.

Attribute Conventions

Table 6 EDI v. 4030 List of Attribute Conventions from ANSI ASC X12

Attribute Definition
Data Element Type Nn Numeric Numeric type data element is symbolized by the two-position representation (Nn). "N" indicates a numeric, and "n" indicates the decimal places to the right of a fixed, implied decimal point. N0 (N Zero) is a numeric with no decimal places.
R Decimal (Real) The decimal point is optional for integer values, but is required for fractional values. For negative values, the leading minus (-) sign is used. Absence of this sign indicates a positive value. The plus (+) sign should not be transmitted.
ID Identifier An identifier data element must always contain a value from a predefined list of values that is maintained by ASC X12 or by other bodies that are recognized by ASC X12.
AN String A string (alphanumeric) is a sequence of any characters from the basic or extended character sets. It must contain at least one non-space character. The significant characters must be left justified. Leading spaces, if any, are assumed to be significant. Trailing spaces should be suppressed.
DT Date Format for the date type is CCYYMMDD. CC is the century digits of the year (ex. 19, 20). YY is the last two digits of the year (00-99), MM is the numeric value of the month (01-12), and DD for the day (01-31).
TM Time Format for the time type is HHMMSS, expressed in 24-hour clock format. HH is the numeric value for hour (00-23), MM for minute (00-59), and SS for second (00-59).
Requirement Designator Defines how the data element is used in a segment.
M Mandatory This element must appear in the segment.
O Optional The appearance of this data element is at the option of the sending party or is based on a mutual agreement of the interchange parties.
X Relational Relational conditions may exist between two or more data elements. If one is present the other(s) is (are) required. The relational condition is displayed under the Syntax Noted of the X12 Standards.
Data Element Length x / x Minimum and Maximum lengths The number of character positions assigned to a data element. Example: Data element length of 2/10. You must have at least 2 characters but no more than 10 characters for this element (minimum of 2/ maximum of 10).
Semantic Note Designator Z Designator A data element within a segment may have a designator (Z) that indicates the existence of a semantic note. Semantic notes are considered part of the standard. If a condition designator and a semantic note both affect a single data element, the condition will appear first, separated from the semantic note designator by a vertical bar (|). The number 00 to the left of the comment identifies semantic notes that are general in nature.

EDI Requirements

Table 2 EDI v. 4030 Separator Requirements

Type ASCII Value EBCDIC Value Character Character Name
Repetition Separator 7C 4F | Pipe
Segment Terminator 5C E0 \ Back Slash
Element Separator 7E A1 ~ Tilde
Sub-element Separator 5E 5F ^ Caret
Padding Character 20 40 Space Space

X12 Transaction Set 813 (TS813)

Electronic Filing of Tax Return Data

FUNCTIONAL GROUP TF

This Draft Standard for Trial Use contains the format and establishes the data contents of the Electronic filing of Tax Return Data Transaction Set (813) for use within the context of an Electronic Data Interchange (EDI) environment. This transaction set can be used by tax filers to electronically file tax returns with a federal, state, or local taxing authority and which may initiate payments related to the tax return.

Table 1

  • POS. No. SEG.ID NAME REQ.DES. MAX USE
    0100 ST Transaction Set Header M 1
    0200 BTI Beginning Tax Information M 1
    0300 DTM Date/Time Reference M 10
    0400 TIA Tax Information Amount O 1,000
    0430 REF Reference Identification O 10
    0450 TRN Trace O 1,000
    0470 BPR Beginning Segment for Payment Order/Remittance Advice O 1,000
    • Loop Repeat >1
      LOOP ID – N1
      POS. No. SEG.ID NAME REQ.DES. MAX USE
      0500 N1 Name O 1
      0600 N2 Additional Name Information O 2
      0700 IN2 Individual Name Structure Components O 10
      0800 N3 Address Information O 2
      0900 N4 Geographic Location O 1
      1000 PER Administrative Communications Contact O 2

Table 2

  • Loop Repeat 100,000
    LOOP ID – TFS
    POS. No. SEG.ID NAME REQ.DES. MAX USE
    0100 TFS Tax Form O 1
    0200 REF Reference Identification O 10
    0300 DTM Date/Time Reference O 10
    0400 MSG Message Text O 1,000
    • Loop Repeat >1
      LOOP ID – N1
      POS. No. SEG.ID NAME REQ.DES. MAX USE
      0500 N1 Name O 1
      0600 N2 Additional Name Information O 2
      0700 IN2 Individual Name Structure Components O 10
      0800 N3 Address Information O 2
      0900 N4 Geographic Location O 1
    • Loop Repeat 10,000
      LOOP ID – TIA
      POS. No. SEG.ID NAME REQ.DES. MAX USE
      0920 TIA Tax Information and Amount O 1
      0940 DTM Date/Time Reference O 10
      0960 MSG Message Text O 1,000
    • Loop Repeat 100,000
      LOOP ID FGS
      POS. No. SEG.ID NAME REQ.DES. MAX USE
      1000 FGS Form Group O 1
      1100 DTM Date/Time Reference O 10
      1200 DTM Date/Time Reference O 10
      • Loop Repeat >1
        LOOP ID – N1
        POS. No. SEG.ID NAME REQ.DES. MAX USE
        1300 N1 Name O 1
        1400 N2 Additional Name Information O 2
        1500 IN2 Individual Name Structure Components O 10
        1600 N3 Address Information O 2
        1700 N4 Geographic Location O 1
      • Loop Repeat 10,000
        LOOP ID – TIA
        POS. No. SEG.ID NAME REQ.DES. MAX USE
        1800 TIA Tax Information and Amount O 1
        1900 DTM Date/Time Reference O 10
        2000 MSG Message Text O 1,000

Table 3

  • POS. No. SEG.ID NAME REQ.DES. MAX USE
    0100 SE Transaction Set Trailer M 1

Notes

  1. 0400 - The TIA segment allows for tax information and amounts associated with the entire filing. At least one occurrence of the TIA segment must be present in the transaction set, either in Table 1 or Table 2.
  2. 0500 - This N1 loop reflects names and addresses associated with the entire filing.
  3. 0500 - This N1 loop reflects names and addresses associated with a particular tax form (TFS).
  4. 0920 - at least one occurrence of the TIA segment must be present in the transaction set, either in Table 1 or Table 2.
  5. 1300 - This N1 loop reflects names and addresses associated with a particular subset of a tax form.
  6. 1800 - At least one occurrence of the TIA segment must be present in the transaction set, either in Table 1 or Table 2.

X12 TS813 Motor Fuels Structure Terminal Operator Overview

Key:
Not Used by California Segments not used by California that are part of the Standard FTA Map

Table 3

Pos No Uniform 813 Map Header
0100 ST Transaction Set Header
0200 BTI Identify Tax Agency Information
0300 DTM Tax Filing Period
0400 TIA Version of Taxing Authority's Implementation Guide
0400 TIA Confidential Information
0400 TIA Total Net Reported
0430 REF Sequence Error ID Number
0500 N1 Taxpayer Name Detail
0600 N2 Additional Taxpayer Name Detail
0800 N3 Address Detail
0900 N4 City, State, Zip Code Detail
1000 PER General Contact Person
1000 PER EDI Contact Person
0500 N1 Mailing Name Detail
0600 N2 Additional Mailing Name Detail
0800 N3 Mailing Address Detail
0900 N4 Mailing City State Zip Code Detail

Table 4

Pos No Uniform 813 Map TOR SCH
0100 TFS Terminal Operator Report Schedules
0200 REF Relationship to the Transaction Relationship to the Transaction
0200 REF Sequence Error ID Number Sequence Error ID Number
0200 REF No Activity  
0300 DTM Ending Inventory Date  
0500 N1   Point of Origin
0500 N1   Seller Information
0500 N1   Position Holder Information
0500 N1   Person Hiring Carrier (Consignor)
0500 N1   Carrier Information
0500 N1   Buyer/Consignee Information
0500 N1   Point of Destination
0920 TIA    
1000 FGS Physical Inventory by Product Bill of Lading
1100 REF Sequence Error ID Number Sequence Error ID Number
1200 DTM   Bill of Lading Date
1800 TIA Physical Inventory Bill of Lading Net
1800 TIA   Bill of Lading Gross
1800 TIA   Bill of Lading Billed

Table 5

Pos No Uniform 813 Map Trailer
0100 SE Transaction Set Trailer

X12 TS813 Motor Fuels Structure Supplier Overview

Key:
Not Used by California Segments not used by California that are part of the Standard FTA Map

Table 6

Pos No Uniform 813 Map Header
0100 ST Transaction Set Header
0200 BTI Identify Tax Agency Information
0300 DTM Tax Filing Period
0470 BPR Payment Order/Remittance Advice
0400 TIA Version of Taxing Authority s Implementation Guide
0400 TIA Confidential Information
0400 TIA Total Net Reported
0430 REF Sequence Error ID Number
0500 N1 Taxpayer Name Detail
0600 N2 Additional Taxpayer Name Detail
0800 N3 Address Detail
0900 N4 City, State, Zip Code Detail
1000 PER General Contact Person
1000 PER EDI Contact Person
0500 N1 Mailing Name Detail
0600 N2 Additional Mailing Name Detail
0800 N3 Mailing Address Detail
0900 N4 Mailing City State Zip Code Detail

Table 7

Pos No Uniform 813 Map SDR SUM SCH
0100 TFS Supplier/Distributor Report Summary Information Schedules
0200 REF Relationship to the Transaction Relationship to the Transaction Relationship to the Transaction
0200 REF Sequence Error ID Number Sequence Error ID Number Sequence Error ID Number
0200 REF No Activity    
0300 DTM Ending Inventory Date    
0500 N1     Point of Origin
0500 N1     Seller Information
0500 N1     Position Holder Information
0500 N1     Person Hiring Carrier (Consignor)
0500 N1     Carrier Information
0500 N1     Buyer/Consignee Information
0500 N1     Point of Destination
0920 TIA Total Due    
1000 FGS Physical Inventory by Product Summary Data Bill of Lading
1100 REF Sequence Error ID Number Sequence Error ID Number Sequence Error ID Number
1200 DTM     Bill of Lading Date
1800 TIA Physical Inventory Tax Information Bill of Lading Net
1800 TIA   Interest Bill of Lading Gross
1800 TIA   Penalty Bill of Lading Billed

Table 8

Pos No Uniform 813 Map Trailer
0100 SE Transaction Set Trailer

X12 TS813 Motor Fuels Structure Aircraft Jet Fuel Dealer Overview

Key:
Not Used by California Segments not used by California that are part of the Standard FTA Map

Table 9

Pos No Uniform 813 Map Header
0100 ST Transaction Set Header
0200 BTI Identify Tax Agency Information
0300 DTM Tax Filing Period
0470 BPR Payment Order/Remittance Advice
0400 TIA Version of Taxing Authority s Implementation Guide
0400 TIA Confidential Information
0400 TIA Total Net Reported
0430 REF Sequence Error ID Number
0500 N1 Taxpayer Name Detail
0600 N2 Additional Taxpayer Name Detail
0800 N3 Address Detail
0900 N4 City, State, Zip Code Detail
1000 PER General Contact Person
1000 PER EDI Contact Person
0500 N1 Mailing Name Detail
0600 N2 Additional Mailing Name Detail
0800 N3 Mailing Address Detail
0900 N4 Mailing City State Zip Code Detail

Table 10

Pos No Uniform 813 Map DLR SUM SCH
0100 TFS Aircraft Jet Fuel Dealer Report Summary Information Schedules
0200 REF Relationship to the Transaction Relationship to the Transaction Relationship to the Transaction
0200 REF Sequence Error ID Number Sequence Error ID Number Sequence Error ID Number
0200 REF No Activity    
0300 DTM Ending Inventory Date    
0500 N1     Point of Origin
0500 N1     Seller Information
0500 N1     Position Holder Information
0500 N1     Person Hiring Carrier (Consignor)
0500 N1     Carrier Information
0500 N1     Buyer/Consignee Information
0500 N1     Point of Destination
0920 TIA Total Due    
1000 FGS Physical Inventory by Product Summary Data Bill of Lading
1100 REF Sequence Error ID Number Sequence Error ID Number Sequence Error ID Number
1200 DTM     Bill of Lading Date
1800 TIA Physical Inventory Tax Information Bill of Lading Net
1800 TIA   Interest Bill of Lading Gross
1800 TIA   Penalty Bill of Lading Billed

Table 11

Pos No Uniform 813 Map Trailer
0100 SE Transaction Set Trailer

X12 TS813 Motor Fuels Structure Petroleum Carrier Overview

Key:
Not Used by California Segments not used by California that are part of the Standard FTA Map

Table 12

Pos No Uniform 813 Map Header
0100 ST Transaction Set Header
0200 BTI Identify Tax Agency Information
0300 DTM Tax Filing Period
0400 TIA Version of Taxing Authority's Implementation Guide
0400 TIA Confidential Information
0400 TIA Total Net Reported
0430 REF Sequence Error ID Number
0500 N1 Taxpayer Name Detail
0600 N2 Additional Taxpayer Name Detail
0800 N3 Address Detail
0900 N4 City, State, Zip Code Detail
1000 PER General Contact Person
1000 PER EDI Contact Person
0500 N1 Mailing Name Detail
0600 N2 Additional Mailing Name Detail
0800 N3 Mailing Address Detail
0900 N4 Mailing City State Zip Code Detail

Table 13

Pos No Uniform 813 Map CCR SCH
0100 TFS Common Carrier Report Schedules
0200 REF Relationship to the Transaction Relationship to the Transaction
0200 REF Sequence Error ID Number Sequence Error ID Number
0200 REF No Activity  
0300 DTM    
0500 N1   Point of Origin
0500 N1   Seller Information
0500 N1   Position Holder Information
0500 N1   Person Hiring Carrier (Consignor)
0500 N1   Carrier Information
0500 N1   Buyer/Consignee Information
0500 N1   Point of Destination
0920 TIA Total Delivered  
1000 FGS   Bill of Lading
1100 REF Sequence Error ID Number
1200 DTM   Bill of Lading Date
1800 TIA   Bill of Lading Net
1800 TIA   Bill of Lading Gross
1800 TIA   Bill of Lading Billed

Table 14

Pos No Uniform 813 Map Trailer
0100 SE Transaction Set Trailer

X12 TS813 Motor Fuels Map Flow

  • Max 1
    • 0100 ST Transaction Set Header (TS813)
      • 0200 BTI Identify Tax Agency Information
      • 0300 DTM Tax Filing Period
      • 0470 BPR Payment Order/Remittance Advice
      • 0400 TIA Version of Taxing Authority's Implementation Guide
      • 0400 TIA Confidential Information
      • 0400 TIA Total Net Reported
      • 0430 REF Sequence Error ID Number
      • Max 1
        • 0500 N1 Loop Taxpayer Name Detail
          • 0600 N2 Additional Taxpayer Name Detail
          • 0800 N3 Address Detail
          • 0900 N4 City, State, ZIP Code Detail
          • 1000 PER General Contact Person
          • 1000 PER EDI Contact Person
      • Max 1
        • N1 Loop Mailing Name Detail
          • 0600 N2 Additional Taxpayer Name Detail
          • 0800 N3 Address Detail
          • 0900 N4 City, State, ZIP Code Detail
      • Maximum Number of TFS Loops = 100,000
        • TFS Loop Terminal Operator Report (TOR)
          • 0200 REF Relationship to the Transaction Information
          • 0200 REF Sequence Error ID Number
          • 0200 REF No Activity
          • 0300 DTM Ending Inventory Date
          • Max 100,000
            • 1000 FGS Loop Physical Inventory by Product
              • 1100 REF Sequence Error ID Number
              • 1800 TIA Physical Inventory
        • 0100 TFS Loop Supplier/Distributor Report (SDR)
          • 0200 REF Relationship to the Transaction Information
          • 0200 REF Sequence Error ID Number
          • 0200 REF No Activity
          • 0300 DTM Ending Inventory Date
          • 0920 TIA Total Due
          • Max 100,000
            • 1000 FGS Loop Line Items from Face of Return Not Derived from Schedules
              • 1100 REF Sequence Error ID Number
              • 1800 TIA Line Item Detail
        • 0100 TFS Loop Petroleum Carrier Report (CCR)
          • 0200 REF Relationship to the Transaction Information
          • 0200 REF Sequence Error ID Number
          • 0200 REF No Activity
          • 0920 TIA Total Delivered
        • 0100 TFS Loop Aircraft Jet Fuel Dealer Report (DLR)
          • 0200 REF Relationship to the Transaction Information
          • 0200 REF Sequence Error ID Number
          • 0200 REF No Activity
          • 0300 DTM Ending Inventory Date
          • 0920 TIA Total Due
          • Max 100,000
            • 1000 FGS Loop Line Items from Face of Return Not Derived from Schedules
              • 1100 REF Sequence Error ID Number
              • 1800 TIA Line Item Detail
          • Max 100,000
            • 1000 FGS Loop Physical Inventory by Product
              • 1100 REF Sequence Error ID Number
              • 1800 TIA Physical Inventory
        • 0100 TFS Loop Summary Information
          • 0200 REF Relationship to the Transaction Information
          • 0200 REF Sequence Error ID Number
          • Max 100,000
            • 1000 FGS Loop Summary Data
              • 1100 REF Sequence Error ID Number
              • 1800 TIA Information
              • 1800 TIA Interest
              • 1800 TIA Penalty
        • 0100 TFS Loop Schedules
          • 0200 REF Relationship to the Transaction Information
          • 0200 REF Sequence Error ID Number
          • 0500 N1 Point of Origin
          • 0500 N1 Seller Information
          • 0500 N1 Position Holder Information
          • 0500 N1 Person Hiring Carrier (Consignor)
          • 0500 N1 Carrier Information
          • 0500 N1 Buyer/Consignee Information
          • 0500 N1 Point of Destination
          • Max 100,000
            • 1000 FGS Loop Bill Lading
              • 1100 REF Sequence Error ID Number
              • 1200 DTM Bill of Lading Date
              • 1800 TIA Bill of Lading Net
              • 1800 TIA Bill of Lading Gross
              • 1800 TIA Bill of Lading Billed
      • 0100 SE Transaction Set Trailer

X12 TS813 Motor Fuels Reporting Map

Key:
Not Used in FTA Map Not used: no data to transmit
Notes Note: important to read all notes
Not Used by California Segments, Elements and Codes not used by California that are part of the Standard FTA Map
Syntax Notes Translation Syntax Requirements The California translator will enforce these rules.

Table 15 EDI v. 4030 Interchange Segment

Interchange Segment (Required)
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Name Field Type Length Field Description
Min. Max.
ISA01 I01   M Authorization Information Qualifier ID 2 2 00 = No Authorization Information Present (No Meaningful Information In Isa02) 03 = Additional Data Identification
ISA02 I02   M Authorization Information AN 10 10 Enter the 10-character Authorization Code provided to the filer by the CDTFA or 0000000000 .
ISA03 I03   M Security Information Qualifier ID 2 2 00 = No Security Information Present (No Meaningful Information In ISA 04) 01 = Password
ISA04 I04   M Security Information AN 10 10 Enter the 10-character Password provided by the filer to the CDTFA in the filer s Trading Partner Agreement or 0000000000 .
ISA05 I05   M Interchange ID Qualifier ID 2 2 01 = DUNS Number 32 = the Interchange Sender ID Qualifier for the sender's FEIN ZZ = ID qualifier published by the sender used to designate the sender ID element being qualified.
ISA06 I06   M Interchange Sender ID AN 15 15 Sender's FEIN plus 6 spaces [xxxxxxxxx      ]
ISA07 I05   M Interchange ID Qualifier ID 2 2 01 = DUNS 32 = the Interchange Sender ID Qualifier for the sender's FEIN ZZ = ID qualifier published by the sender used to designate the sender ID element being qualified.
ISA08 I07   M Interchange Receiver ID AN 15 15 [116725470      ] = CDTFA DUNS number plus 6 trailing spaces. The spaces are required.
ISA09 I08   M Interchange Date DT 6 6 YYMMDD = Date Of The Interchange
ISA10 I09   M Interchange Time TM 4 4 HHMM = Time Of The Interchange
ISA11 I65   M Repetition Separator   1 1 | (Pipe) = EBCDIC 4F HEX or
ASCII 7C HEX
ISA12 I11   M Interchange Control Version Number ID 5 5 00403 = Draft standards for trial use approved for publication by ASC X12 procedures review board through 10/99.
ISA13 I12   M Interchange Control Number N0 9 9 Filer defined unique control number for this filing. This control number should never be reused for any future filings. This number should also be entered in IEA02.
ISA14 I13   M Acknowledgement Requested ID 1 1 0 = No ISA Acknowledgement Required 1 = ISA Acknowledgement Required
ISA15 I14   M Usage Indicator ID 1 1 P = Production Data T = Test Data
ISA16 I15   M Component Sub-Element Separator   1 1 ^ (Caret) = EBCDIC 5F HEX or
ASCII 5E HEX
ISA~03~T5ZXM54W23~01~CA67MFFILE~32~757654321       ~01~116725470       ~010630~ 0931~|~00403~000001001~0~P~^\
SYNTAX NOTES: ISA05 Value 32 (FEIN Qualifier) is required. ISA06 Sender FEIN is required.
ISA09 does not include the century based on the ANSI ASC X.12 Standard.

Table 16 EDI v. 4030 Functional Group Segment

Functional Group Segment (Required)
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Name Field Type Length Field Description
Min. Max.
GS01 479   M Functional Identifier Code ID 2 2 TF = Electronic Filing Of Tax Return Data (TS813)
GS02 142   M Application Sender's Code AN 2 15 Code identifying party sending transmission. Code assigned by sender and agreed to by trading partner.
GS03 124   M Application Receiver s Code AN 2 15 116725470050 = CDTFA DUNS Number plus 050 for Data Analysis Section.
GS04 373   M/Z Date DT 8 8 CCYYMMDD = Date
GS05 337   M/Z Time TM 4 8 HHMMSSDD = Time
GS06 28   M/Z Group Control Number N0 1 9 Filer defined unique control number for this filing. This control number should never be reused for any future filings. This number should also be entered in GE02.
GS07 455   M Responsible Agency Code ID 1 2 X = ASC X12
GS08 480   M Version/ Release / Industry Identifier Code AN 1 12 004030/CDTFA = Draft standards approved for publication by ASC X12 procedures review board through 10/99 and indicator that the map used is the CDTFA map.
GS~TF~COMPANYROUTING ~116725470050~20010630~0931~1101~X~004030/CDTFA\
SYNTAX NOTES: None

Table 17 EDI v. 4030 Beginning of Transaction Set Segment

Beginning of Transaction Set (Required) Header Segment Pos. No. 0100
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Name Field Type Length Field Description
Min. Max.
ST01 143   M Transaction Set Code ID 3 3 813 = Transaction Set Type
ST02 329   M Transaction Set Control Number AN 4 9 Filer defined unique control number for this filing. This control number should never be reused for any future filings. This number should also be entered in SE02.
ST03 1705   O/Z Implementation Convention Reference AN 1 4 Reference assigned to identify Implementation Convention. 0300 = Version 3, Release 00.
ST~813~12345~0300\
SYNTAX NOTES: None

Table 18 EDI v. 4030 Return Header Segments

Identify Tax Agency Information (Required) Begin Tax Information Segment Pos. No. 0200
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Name Field Type Length Field Description
Min. Max.
BTI01 128   M Reference Number Qualifier ID 2 2 T6 = Defines as Tax Filing
BTI02 127   M Reference Number AN 3 3 050 = All Fuels Tax Filings
BTI03 66   M ID Code Qualifier ID 2 2 47 = Tax Authority
BTI04 67   M ID Code AN 2 20 116725470050 = CDTFA DUNS Number plus 050 for Data Analysis Section
BTI05 373   O Transaction Create Date DT 8 8 CCYYMMDD = Transmission Date
BTI06 818 O Name Control ID AN 1 4 First 4 positions of Taxpayer s Legal Business Name. If business name is less than 4 characters, left justify name control and pad with * .
BTI07 66   X ID Code Qualifier ID 2 2 24 = FEIN Federal Employer Identification Number 34 = Social Security Number 50 = BN Canadian Business Number
BTI08 67   X ID Code AN 9 18 Taxpayer s FEIN or SSN
BTI09 66   X ID Code Qualifier ID 2 2 49 = State (assigned) Identification Number
BTI10 67   X ID Code AN 9 20 CDTFA Account Number
BTI11 66 X ID Code Qualifier ID 2 2 48 = IRS Electronic Filer ID Number
BTI12 67 X ID Code AN 9 15 637 Permit Number
BTI13 353   O Transaction Set Purpose Code ID 2 2 Options: 00 = Original
BTI14 640   O Transaction Type Code ID 2 2 Options: 6R = Replacement 6S = Supplemental
BTI~T6~050~47~116725470050~20010630~~24~987654321~49~99999999~~~00\
SYNTAX NOTES: 07 P0708 - If either BTI07 or BTI08 is present, then the other is required. 09 P0910 - If either BTI09 or BTI10 is present, then the other is required. 11 P1112 - If either BTI11 or BTI12 is present, then the other is required.
BTI07 must be the FEIN if the taxpayer has one. Submit a SSN only for sole proprietorships that have not been issued a FEIN.
The application of BTI13 and BTI14 are as follows: BTI13 should be used when the taxpayer transmits its initial return or report (BTI13 should be used without BTI14); BTI14 should be used when the taxpayer transmits modifications to the return or report (BTI14 should be used without BTI13).
Element ID Application
BTI13 [Initial Return]  
00 = Original Use Original when you first attempt to transmit your return to the Department, whether or not the Department receives your return.
Element ID Application
BTI14 [Amended Return]  
6R = Replacement Use Replacement when replacing the original filing or the first attempt to transmit amended return was not received by the Department.
6S = Supplemental Use Supplemental when transmitting new or additional data not included in original or amended return.
Tax Filing Period (Required) Date/Time Reference Segment Pos. No. 0300
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Name Field Type Length Field Description
Min Max
DTM01 374   M Date/Time Qualifier ID 3 3 194 = Tax Period End Date 683 = Filing Period
DTM02 373 X Date DT 8 8 CCYYMMDD = Tax Filing Period End
DTM03 and DTM04 are not used.
DTM05 1250   X Date Time Period Format Qualifier ID 3 3 RD8 = Range of Dates
DTM06 1251   X Date Time Period AN 17 17 CCYYMMDD-CCYYMMDD = Tax Filing Period Beginning and Ending Dates
DTM~683~~~~RD8~20010501-20010531\
SYNTAX NOTES: 02 DTM05 is required. 05 P0506 - If either DTM05 or DTM06 is present, then the other is required.
02 If qualifier 194 is used in DTM01, then DTM05 and DTM06 are not used.
If qualifier 683 is used in DTM01, DTM05 and DTM06 are required.
Line Item Control Number Reference Number Segment Pos. No. 0430
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Name Field Type Length Field Description
Min Max
REF01 128 M Reference Identification Qualifier ID 2 2 FJ = Line Item Control Number
REF02 127 X Reference Identification AN 4 9 Control Number
REF~FJ~0001234\
Syntax Notes: REF02 is required.
FTA Note: This segment is used to identify information for error processing. This segment can be generated by the filer when first filling to assist in identifying information or when responding to an error reported. REF02 is always required.

+ The payment order remittance advice is included as a convenience for industry if a taxing authority accepts a BPR segment. The recommendation is not to mandate this as the only method of payment a taxing authority accepts.

Payment Order/Remittance Advice (Optional) Beginning Segment Pos. No. 0470
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Name Field Type Length Field Description
Min Max
DTM01 374   M Date/Time Qualifier ID 3 3 194 = Tax Period End Date 683 = Filing Period
DTM02 373 X Date DT 8 8 CCYYMMDD = Tax Filing Period End
DTM03 and DTM04 are not used.
DTM05 1250   X Date Time Period Format Qualifier ID 3 3 RD8 = Range of Dates
DTM06 1251   X Date Time Period AN 17 17 CCYYMMDD-CCYYMMDD = Tax Filing Period Beginning and Ending Dates
DTM~683~~~~RD8~20010501-20010531\
SYNTAX NOTES: 02 DTM05 is required. 05 P0506 - If either DTM05 or DTM06 is present, then the other is required.
03 If qualifier 194 is used in DTM01, then DTM05 and DTM06 are not used.
If qualifier 683 is used in DTM01, DTM05 and DTM06 are required.
Payment Order Remittance Advice (Optional) Beginning Segment Pos. No. 0470
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Ref # Field Type Length Field Description
Min Max
BPR01 305   M Transaction Handling Code ID 1 2 S = Single Debit Authorization P = Pre-notification
BPR02 782   M Monetary Amount R 1 11 Amount of tax payment. Remit whole dollars.
BPR03 478   M Credit/Debit Flag Code ID 1 1 D = Debit
BPR04 591   M Payment Method Code ID 3 3 ACH = Automated Clearing House
BPR05 812   M Payment Format Code ID 3 3 CCD = Cash Concentration/Disbursement CCP = Cash Concentration/Disbursement plus Addenda (CCD+)
BPR06 through BPR11 are not used.
BPR12 506   M (RDFI) ID Number Qualifier ID 2 2 01 = ABA Transit Routing Number and Check Digits
BPR13 507   M (RDFI) Identification Number AN 3 12 Taxpayer s Bank Routing and Transit Number
BPR14 569   M (RDFI) Account Number Qualifier ID 1 3 DA = Demand Deposit SG = Savings
BPR15 508   M (RDFI) Account Number AN 1 35 Taxpayer s Bank Accounted to be Debited
BPR16 373   M Date DT 8 8 The intended payment effective date (CCYYMMDD)
BPR17 1048   M Business Function Code ID 1 3 TAX = Tax Payment
BPR~S~5874~D~ACH~CCD~~~~~~~01~123456789~DA~6543~20110930~TAX\
Syntax Notes: 02 Monetary Amount is the payment amount remitted for the period. It may include payment for applicable interest and penalties. The payment amount must be rounded to the nearest whole dollar. Do not report a decimal or cents.
BPR02 field-length requirements differ from industry standards. The BPR02 maximum is reduced from 18 to 11.

02

Total Net Reported (Required) Tax Information and Amount Segment Pos. No. 0400
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Ref # Field Type Length Field Description
Min Max
TIA01 817   M Tax Information Code AN 4 4 TIA Code 5001 = Total Net Reported or 5007 = Billed
TIA02 and TIA03 are not used.
TIA04 380   X Quantity R 1 15 Total Number of Gallons in Tax Filing
TIA05 355   M Unit of Measurement Code ID 2 2 GA = Gallons LT = Liters
TIA~5001~~~7940294~GA\
SYNTAX NOTES: 01 Use TIA Code 5001 when filing the Terminal Operator Information Report or Petroleum Carrier Report. Use TIA Code 5007 when filing the Supplier Returns. 02 R0203040607 - TIA04 is required. 04 Enter the Total Number of Gallons in the reporting, rounded to the nearest whole gallon. 04 Compute the gallons for this check value as follows: Petroleum Carrier Report Add the total net gallons from Schedules 14D and 14E to Total Net Transported gallons reported in the CCR section. Terminal Operator Information Report Add the total net gallons from Schedules 15A and 15B to Ending Inventory gallons reported on Schedule 15C in the TOR section. Supplier Returns Add the total billed gallons from the SUM (Summary) section and the various Receipt and Disbursement detail schedules. Aircraft Jet Fuel Dealer Return Add the total billed gallons from the various Receipt and Disbursement detail schedules to Ending Inventory gallons reported on Schedule 15C in the DLR section. 05 C0504 - If TIA05 is present, then TIA04 is required.
Even though the total gallons in the tax filing can be calculated, it must be provided as a control figure to verify that the amount calculated by the Tax Authority is the same as what the information provider calculated.
Sequence Error ID Number (Required) Reference Number Segment Pos. No. 0430
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Name Field Type Length Field Description
Min Max
REF01 128 M Reference Identification Qualifier ID 2 2 06 = Sequence Error ID Number
REF02 127 X Reference Identification AN 1 7 Sequence Error ID Number
Name Detail (Required) Name Segment Pos. No. 0500
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Ref # Field Type Length Field Description
Min Max
N101 98   M Entity Identification Code ID 2 2 TP = Primary Taxpayer or L9 = Information Provider 31 = Postal Mailing Address A second 1/N1 loop using this code value must be provided containing, at a minimum, an N1, N3 and N4 segment if the mailing address is different than the physical address. If you wish to provide a different mailing address, provide a second N1 loop using 31 .
N102 93   X Name AN 1 35 Name
N1~TP~ABC Supplier Company\ or N1~TP~ABC Jet Fuel Dealer Company\ or N1~L9~ABC Terminal Company\ or N1~L9~ABC Petroleum Carrier Company\
SYNTAX NOTES: 02 R0203 - N102 is required.
N101: Use TP for a Supplier or Aircraft Jet Fuel Dealer filing. Use L9 for a Terminal Operator or Petroleum Carrier filing.

03

Additional Taxpayer Name Detail (Optional) Additional Name Segment Pos. No. 0600
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Ref # Field Type Length Field Description
Min Max
N201 93   M Name AN 1 35 Name
N202 93   O Name AN 1 35 Name
N2~A Terminal Company\ or N2~Alpha Terminal Company~Alpha Seaport Terminal\
SYNTAX NOTES: None
N201 and N202: Use these elements to provide additional name detail such as a DBA, etc.
Address Detail (Required) Address Information Segment Pos. No. 0800
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Ref # Field Type Length Field Description
Min Max
N301 166   M Address Information AN 1 35 First Line Street Address
N302 166   O Address Information AN 1 35 Second Line Street Address
N3~48 Washington St\ or N3~48 Washington St~120 Trinity St\
SYNTAX NOTES: None
City, State, Zip Code Detail (Required) Location Geographic Segment Pos. No. 0900
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Ref # Field Type Length Field Description
Min Max
N401 19   O City Name AN 2 30 Name of City
N402 156   X State code or Province ID 2 2 State or Province Abbreviation
N403 116   O Postal (Zip) Code ID 3 11 ZIP Code, ZIP Plus 4 Code or Foreign Postal code
N404 26   X Country ID 2 3 Country Abbreviation (United States = USA)
N4~Any Town~CA~25421-5555~US\
SYNTAX NOTES: None

04

General Contact Person (Required) Administrative Communications Contact Segment Pos. No. 1000
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Ref # Field Type Length Field Description
Min Max
PER01 366   M Contact Function Code ID 2 2 CN = General Contact
PER02 93   O Name AN 1 35 Contact Name
PER03 365   X Communications Number Qualifier ID 2 2 TE = Telephone Number
PER04 364   X Communications Number AN 10 14 Voice Telephone Number
PER05 365   X Communications Number Qualifier ID 2 2 FX = FAX Number
PER06 364   X Communications Number AN 10 10 FAX Telephone Number
PER07 365   X Communications Number Qualifier ID 2 2 EM = Electronic Mail
PER08 364   X Communications Number AN 1 80 Email Address
PER~CN~Jon J. Doe~TE~91655599991234~FX~9165559990~EM~jjdoe@abcterminal.com\
SYNTAX NOTES: 03 P0304 - If either PER03 or PER04 is present, then the other is required. 05 P0506 - If either PER05 or PER06 is present, then the other is required. 07 P0708 - If either PER07 or PER08 is present, then the other is required.
EDI Contact Person (Required) Administrative Communications Contact Segment Pos. No. 1000
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Ref # Field Type Length Field Description
Min Max
PER01 366   M Contact Function Code ID 2 2 EA = EDI Coordinator
PER02 93   O Name AN 1 35 Contact Name
PER03 365   X Communications Number Qualifier ID 2 2 TE = Telephone Number
PER04 364   X Communications Number AN 10 14 Voice Telephone Number
PER05 365   X Communications Number Qualifier ID 2 2 FX = FAX Number
PER06 364   X Communications Number AN 10 10 FAX Telephone Number
PER07 365   X Communications Number Qualifier ID 2 2 EM = Electronic Mail
PER08 364   X Communications Number AN 1 80 Email Address
PER~EA~Bob T. Doe~TE~91655599991235~FX~9165559990~EM~btdoe@abcterminal.com\
SYNTAX NOTES: 03 P0304 - If either PER03 or PER04 is present, then the other is required. 05 P0506 - If either PER05 or PER06 is present, then the other is required. 07 P0708 - If either PER07 or PER08 is present, then the other is required.

The following segments are required if the mailing address is different than the physical address.

Mailing Name Detail (Optional) Name Segment Pos. No. 0500
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Name Field Type Length Field Description
Min Max
N101 98 M Entity Identification Code ID 2 2 31 = Postal Mailing
N102 93 X Name AN 1 35 Mailing Name
Mailing Additional Name Detail (Optional) Additional Name Segment Pos. No. 0600
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Name Field Type Length Field Description
Min Max
N201 93 M Name AN 1 35 Mailing Name
N202 93 O Name AN 1 35 Mailing Name

05

Mailing Address Detail (Optional) Address Information Segment Pos. No. 0800
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Name Field Type Length Field Description
Min Max
N301 166 M Address Information AN 1 35 First Line Street Address
N302 166 O Address Information AN 1 35 Second Line Street Address
Mailing City, State, Zip Code Detail (Optional) Location Geographic Segment Pos. No. 0900
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Name Field Type Length Field Description
Min Max
N401 19 O City Name AN 2 30 Name of City
N402 156 X State code or Province ID 2 2 State or Province Abbreviation
N403 116 O Postal (Zip) Code ID 3 11 ZIP Code, ZIP Plus 4 Code or Foreign Postal code
N404 26 X Country ID 2 3 Country Abbreviation (United States = USA)
End of Transaction Set Header

Table 19 EDI v. 4030 Terminal Operator Report (TOR) Segments

The TOR loop contains the Ending Inventory for the Terminal reported in this filing. Detailed transactions associated with the TOR are located in the schedule loops of this map. Repeat the FGS loop for each reportable product, thereby reporting inventory by product code.

Beginning of Terminal Operator Report (Required) Tax Form Segment Pos. No. 0100
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Name Field Type Length Field Description
Min. Max.
TFS01 128   M Reference Identification Qualifier ID 2 2 T2 = Tax Form Code
TFS02 127   M Reference Identification AN 3 3 TOR = Terminal Operator Report
TFS03 and TFS04 are not used
TFS05 66   X ID Code Qualifier ID 2 2 TC = IRS Terminal Code
TFS06 67   X ID Code AN 9 9 IRS Terminal Control Number (TCN)
TFS~T2~TOR~~~TC~T33CA1111\
SYNTAX NOTES: 05 P0506 - If either TFS05 or TFS06 is present, then the other is required.
Relationship to the Transaction Information (Required) Reference Segment Pos. No. 0200
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Ref # Field Type Length Field Description
Min Max
REF01 128   M Reference Identification Qualifier ID 2 2 SU = Special Processing
REF02 127   X Reference Identification AN 3 3 IRS = IRS Data N/A = If not applicable to the IRS
REF03 Not used
REF04 C040   O Reference Identifier        
REF05 C040 128 M Reference Identification Qualifier ID 2 2 S0 = Special Approval (S Zero)
REF06 C040 127 M Reference Identification AN 2 2 State Abbreviation to which the data belongs.
REF07 C040 128 X Reference Identification Qualifier ID 2 2 S0 = Special Approval (S Zero)
REF08 C040 127 X Reference Identification AN 2 2 State Abbreviation to which the data belongs
REF~SU~N/A~~S0^CA\
SYNTAX NOTES: 02 R0203 - REF02 is required.
REF02, REF05 and REF07 represent the taxing authorities and its relationship to the information in this TFS loop. REF05 REF07 use the sub-element separator. Example: REF~SU~N/A~~S0^CA^S0^NV\
Sequence Number Reference Number Segment Pos. No. 0200
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Name Field Type Length Field Description
Min Max
REF01 128 M Reference Identification Qualifier ID 2 2 55 = Sequence Number
REF02 127 X Reference Identification AN 1 9 Sequence Number
REF03 352 X Description AN 1 5 Error Response Code (See Appendix on page Error! Bookmark not defined.)
REF~55~0001234\
Syntax Notes: At least one of REF02 or REF03 is required.
FTA Note: This segment is used to identify information for error processing. This segment can be generated by the filer when first filling to assist in identifying information or when responding to an error reported. REF02 is always required. REF03 is used for responding to an error.

06

Condition 1 - If account has no activity this segment is required. The Condition 2 DTM and FGS are not used.

No Activity (Conditional) Reference Number Segment Pos. No. 0200
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Ref # Field Type Length Field Description
Min Max
REF01 128   M Entity Identification Code ID 2 2 BE = Business Activity
REF02 127   X Name AN 1 20 1 = No Activity
REF~BE~1\
SYNTAX NOTES: 02 R0203 - REF02 is required.
Sold/Acquired Date (Conditional) Date/Time Reference Segment Pos. No. 0300
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Name Field Type Length Field Description
Min Max
DTM01 374 M Date/Time Qualifier ID 3 3 572 = Date Property Sold 631 = Date Property Acquired
DTM02 373 X Date DT 8 8 CCYYMMDD
DTM~572~20010520\
Syntax Notes: DTM02 is required.
FTA Note: This segment is used once when you purchase or sell a terminal.

Condition 2 - If account has activity the DTM and FGS segments are required. The Condition 1REF is not used. This FGS loop contains inventory information. The FGS loop repeated when the product code value changes.

Ending Inventory Date (Conditional) Date/Time Reference Segment Pos. No. 0300
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Name Field Type Length Field Description
Min Max
DTM01 374   M Date/Time Qualifier ID 3 3 184 = Inventory Date
DTM02 373   X Date DT 8 8 CCYYMMDD
DTM~184~20010531\
SYNTAX NOTES: 02 R020305 - DTM02 is required.
Physical Inventory by Product (Conditional) Form Group Segment Pos. No. 1000
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Ref # Field Type Length Field Description
Min Max
FGS01 350   M Assigned Identification AN 2 2 BI = Beginning Inventory (First Filing) EI = Ending Inventory GL = Gains and Losses
FGS02 128   X Reference Identification Qualifier ID 2 2 "PG" = Product Group
FGS03 127   X Reference Identification AN 3 3 Product Code See Product Codes list in CDTFA-810-FTA "Product Code Table - Sorted By Product Code Number" or CDTFA-810-FTB "Product Code Table - Sorted By Product Type"
FGS~EI~PG~065\
SYNTAX NOTES: 02 P0203 - If either FGS02 or FGS03 is present, then the other is required.

07

08

Sequence Number Reference Number Segment Pos. No. 1100
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Name Field Type Length Field Description
Min Max
REF01 128 M Reference Identification Qualifier ID 2 2 55 = Sequence Number
REF02 127 X Reference Identification AN 1 9 Sequence Number
REF03 352 X Description AN 1 5 Error Response Code (See Appendix on page Error! Bookmark not defined.)
REF~55~0001234\
Syntax Notes: This segment is used to identify information for error processing. This segment can be generated by the filer when first filling to assist in identifying information or when responding to an error reported. At least one of REF02 or REF03 is required.
FTA Note: REF02 is always required. REF03 is used for responding to an error.
Inventory (Required if FGS is Used) Tax Information and Amount Segment Pos. No. 1800
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Ref # Field Type Length Field Description
Min Max
TIA01 817   M Tax Information ID Number AN 4 4 TIA Code 5002 = Ending Physical Inventory
TIA02 and TIA03 are not used.
TIA04 380   X Quantity R 1 15 Quantity Gains should always be entered as a positive amount. Losses must always be entered as negative values (i.e., -5000) Ending Inventory should never fall below zero (0) for a filing period. Initial submission of Ending Inventory should always be a positive value. Any change to Ending Inventory will always be treated as an adjustment to the original submission.
TIA05 355   M Unit of Measurement Code ID 2 2 GA = Gallons LT = Liters
TIA~5002~~~3500000~GA\
SYNTAX NOTES: 02 R0203040607 - TIA04 is required. 04 Enter Ending Net Physical Inventory rounded to the nearest whole gallon. 05 C0504 - If TIA04 is present, then TIA05 is required.
Ending Physical Inventory is the only value reported. All other information is derivable from schedules.
End of FGS loop (Line item detail) End of TFS loop (TOR detail)

Table 20 EDI v. 4030 Supplier/Distributor Report (SDR) Segments

The TFS loop contains information for the Supplier Fuel Tax Return. Details associated with this filing are located in the summary and schedule loops.

Beginning of Supplier/Distributor Report Detail (Required) Tax Form Segment Pos. No. 0100
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Name Field Type Length Field Description
Min. Max.
TFS01 128   M Reference Identification Qualifier ID 2 2 T2 = Tax Form Code
TFS02 127   M Reference Identification AN 3 3 SDR = Supplier/Distributor Report
TFS~T2~SDR\
SYNTAX NOTES: None
Relationship to the Transaction Information (Required) Reference Segment Pos. No. 0200
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Ref # Field Type Length Field Description
Min Max
REF01 128   M Reference Identification Qualifier ID 2 2 SU = Special Processing
REF02 127   X Reference Identification AN 3 3 IRS = IRS Data N/A = If not applicable to the IRS
REF03 Not used
REF04 C040   O Reference Identifier        
REF05 C040 128 M Reference Identification Qualifier ID 2 2 S0 = Special Approval (S Zero)
REF06 C040 127 M Reference Identification AN 2 2 State Abbreviation to which the data belongs
REF07 C040 128 X Reference Identification Qualifier ID 2 2 S0 = Special Approval (S Zero)
REF08 C040 127 X Reference Identification AN 2 2 State Abbreviation to which the data belongs
REF~SU~N/A~~S0^CA\
SYNTAX NOTES: 02 R0203 - REF02 is required.
REF02, REF05 and REF07 represent the taxing authorities and its relationship to the information in this TFS loop. REF05 REF07 use the sub-element separator. Example: REF~SU~N/A~~S0^CA^S0^NV\
Sequence Number Reference Number Segment Pos. No. 0200
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Name Field Type Length Field Description
Min Max
REF01 128 M Reference Identification Qualifier ID 2 2 55 = Sequence Number
REF02 127 X Reference Identification AN 1 9 Sequence Number
REF03 352 X Description AN 1 5 Error Response Code (See Appendix on page Error! Bookmark not defined.)
REF~55~0001234\
Syntax Notes: At least one of REF02 or REF03 is required.
FTA Note: This segment is used to identify information for error processing. This segment can be generated by the filer when first filling to assist in identifying information or when responding to an error reported. REF02 is always required. REF03 is used for responding to an error.

Condition 1 - If account has no activity the REF is required. The Condition 2 TIA is not used.

No Activity (Conditional) Reference Number Segment Pos. No. 0200
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Ref # Field Type Length Field Description
Min Max
REF01 128   M Entity Identification Code ID 2 2 BE = Business Activity
REF02 127   X Name AN 1 20 1 = No Activity
REF~BE~1\
SYNTAX NOTES: 02 R0203 - REF02 is required.

Condition 2 - If account has activity the TIA is required. The Condition 1 REF is not used.

Ending Inventory Date (Conditional) Date/Time Reference Segment Pos. No. 0300
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Name Field Type Length Field Description
Min Max
DTM01 374 M Date/Time Qualifier ID 3 3 184 = Inventory Date
DTM02 373 X Date DT 8 8 CCYYMMDD
Use this segment when reporting ending inventory in the FGS Loop for the supplier/distributor.
Total Due (Conditional) Tax Information and amount Segment Pos. No. 0920
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Ref # Field Type Length Field Description
Min Max
TIA01 817   M Tax Information ID Number AN 4 4 TIA Code 5003 = Total Due
TIA02 782   X Monetary Amount R 1 15 Whole Dollar Amount
TIA03 is not used.
TIA04 380 X Quantity R 1 15 Quantity
TIA05 355 M Unit of Measurement Code ID 2 2 GA = Gallons LT = Liters
TIA~5003~1000000\
SYNTAX NOTES: 02 R0203040607 - TIA02 is required. 02 Total Due is the sum of total tax owed for the period, plus applicable interest and penalties, in whole dollars.
Physical Inventory by Product (Conditional) Form Group Segment Pos. No. 1000
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Name Field Type Length Field Description
Min Max
FGS01 350 M Assigned Identification AN 2 2 BI = Beginning Inventory EI = Ending Inventory
FGS02 128 X Reference Identification Qualifier ID 2 2 PG = Product Group
FGS03 127 X Reference Identification AN 2 3 Product Code
This FGS allows looping to report Inventory by product. Repeat this loop (a single TIA per FGS) as many times as needed to complete reporting requirements.
Sequence Number Reference Number Segment Pos. No. 1100
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Name Field Type Length Field Description
Min Max
REF01 128 M Reference Identification Qualifier ID 2 2 55 = Sequence Number
REF02 127 X Reference Identification AN 1 9 Sequence Number
REF03 352 X Description AN 1 5 Error Response Code (See Appendix on page Error! Bookmark not defined.)
REF~55~0001234\
Syntax Notes: This segment is used to identify information for error processing. This segment can be generated by the filer when first filling to assist in identifying information or when responding to an error reported. At least one of REF02 or REF03 is required.
FTA Note: REF02 is always required. REF03 is used for responding to an error.
Inventory (Required if FGS is Used) Tax Information and Amount Segment Pos. No. 1800
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Name Field Type Length Field Description
Min Max
TIA01 817 M Tax Information ID Number AN 4 4 5002 = Physical Inventory
TIA02 - TIA03 are not used.
TIA04 380 X Quantity R 1 15 Quantity
TIA05 355 M Unit of Measurement Code ID 2 2 GA = Gallons LT = Liter
Physical Inventory is the only value passed in this loop. All other information is derivable from schedules.
End of FGS loop (Line item detail) End of TFS loop (SDR detail)

Table 21 EDI v. 4030 Common Carrier Report (CCR) (Petroleum Carrier Report) Segments

The CCR loop contains the total gallons transported by a Petroleum Carrier for this filing. Detailed transactions associated with the CCR are located in the schedule loops of this map.

Beginning of Common Carrier Report (Required) Tax Form Segment Pos. No. 0100
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Name Field Type Length Field Description
Min. Max.
TFS01 128   M Reference Identification Qualifier ID 2 2 "T2" = Tax Form Code
TFS02 127   M Reference Identification AN 3 3 "CCR" = Petroleum Carrier Report
TFS~T2~CCR\
SYNTAX NOTES: None
Relationship to the Transaction Information (Required) Reference Segment Pos. No. 0200
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Ref # Field Type Length Field Description
Min Max
REF01 128   M Reference Identification Qualifier ID 2 2 SU = Special Processing
REF02 127   X Reference Identification AN 3 3 IRS = IRS Data N/A = If not applicable to the IRS
REF03 Not used
REF04 C040   O Reference Identifier        
REF05 C040 128 M Reference Identification Qualifier ID 2 2 S0 = Special Approval (S Zero)
REF06 C040 127 M Reference Identification AN 2 2 State Abbreviation to which the data belongs
REF07 C040 128 X Reference Identification Qualifier ID 2 2 S0 = Special Approval (S Zero)
REF08 C040 127 X Reference Identification AN 2 2 State Abbreviation to which the data belongs
REF~SU~N/A~~S0^CA\
SYNTAX NOTES: 02 R0203 - REF02 is required.
REF02, REF05 and REF07 represent the taxing authorities and their relationship to the information in this TFS loop. REF05 REF07 use the sub-element separator. Example: REF~SU~N/A~~S0^CA^S0^NV\
Sequence Number Reference Number Segment Pos. No. 0200
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Name Field Type Length Field Description
Min Max
REF01 128 M Reference Identification Qualifier ID 2 2 55 = Sequence Number
REF02 127 X Reference Identification AN 1 9 Sequence Number
REF03 352 X Description AN 1 5 Error Response Code (See Appendix on page Error! Bookmark not defined.)
REF~55~0001234\
Syntax Notes: At least one of REF02 or REF03 is required.
FTA Note: This segment is used to identify information for error processing. This segment can be generated by the filer when first filling to assist in identifying information or when responding to an error reported. REF02 is always required. REF03 is used for responding to an error.

Condition 1 - If account has no activity the REF is required. The Condition 2 TIA is not used.

No Activity (Conditional) Reference Number Segment Pos. No. 0200
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Ref # Field Type Length Field Description
Min Max
REF01 128   M Entity Identification Code ID 2 2 BE = Business Activity
REF02 127   X Name AN 1 20 1 = No Activity
REF~BE~1\
SYNTAX NOTES: 02 R0203 - At least one of REF02 or REF03 is required.

Condition 2 - If account has activity the TIA is required. The Condition 1 REF is not used.

Total Delivered (Conditional) Tax Information and Amount Segment Pos. No. 0920
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Ref # Field Type Length Field Description
Min Max
TIA01 817   M Tax Information ID Number AN 4 4 TIA Code 5004 = Total Net Transported
TIA02 and TIA03 are not used.
TIA04 380   X Quantity R 1 15 Quantity
TIA05 355   M Unit of Measurement Code ID 2 2 "GA" = Gallons LT = Liters
TIA~5004~~~10000000~GA\
SYNTAX NOTES: 02 R0203040607 - TIA04 is required. 04 Enter Total Net Gallons Transported rounded to the nearest whole gallons. 05 C0504 - If TIA04 is present, then TIA05 is required.
End of TFS loop (CCR detail)

Table 22 EDI v. 4030 Aircraft Jet Fuel Dealer Return (DLR) Segments

The TFS loop contains information for the Aircraft Jet Fuel Dealer Tax Return. Details associated with this filing are located in the summary and schedule loops.

Beginning of Aircraft Jet Fuel Dealer Return Detail (Required) Tax Form Segment Pos. No. 0100
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Name Field Type Length Field Description
Min. Max.
TFS01 128   M Reference Identification Qualifier ID 2 2 T2 = Tax Form Code
TFS02 127   M Reference Identification AN 3 3 DLR = Aircraft Jet Fuel Dealer Report
TFS~T2~DLR\
SYNTAX NOTES: None
Relationship to the Transaction Information (Required) Reference Segment Pos. No. 0200
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Ref # Field Type Length Field Description
Min Max
REF01 128   M Reference Identification Qualifier ID 2 2 SU = Special Processing
REF02 127   X Reference Identification AN 3 3 IRS = IRS Data N/A = If not applicable to the IRS
REF03 Not used
REF04 C040   O Reference Identifier        
REF05 C040 128 M Reference Identification Qualifier ID 2 2 S0 = Special Approval (S Zero)
REF06 C040 127 M Reference Identification AN 2 2 State Abbreviation to which the data belongs
REF07 C040 128 X Reference Identification Qualifier ID 2 2 S0 = Special Approval (S Zero)
REF08 C040 127 X Reference Identification AN 2 2 State Abbreviation to which the data belongs
REF~SU~N/A~~S0^CA\
SYNTAX NOTES: 02 R0203 - REF02 is required.
REF02, REF05 and REF07 represent the taxing authorities and its relationship to the information in this TFS loop. REF05 REF07 use the sub-element separator. Example: REF~SU~N/A~~S0^CA^S0^NV\
Sequence Number Reference Number Segment Pos. No. 0200
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Name Field Type Length Field Description
Min Max
REF01 128 M Reference Identification Qualifier ID 2 2 55 = Sequence Number
REF02 127 X Reference Identification AN 1 9 Sequence Number
REF03 352 X Description AN 1 5 Error Response Code (See Appendix on page Error! Bookmark not defined.)
REF~55~0001234\
Syntax Notes: At least one of REF02 or REF03 is required.
FTA Note: This segment is used to identify information for error processing. This segment can be generated by the filer when first filling to assist in identifying information or when responding to an error reported. REF02 is always required. REF03 is used for responding to an error.

Condition 1 - If account has no activity the REF is required. The Condition 2 TIA is not used.

No Activity (Conditional) Reference Number Segment Pos. No. 0200
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Ref # Field Type Length Field Description
Min Max
REF01 128   M Entity Identification Code ID 2 2 BE = Business Activity
REF02 127   X Name AN 1 20 1 = No Activity
REF~BE~1\
SYNTAX NOTES: 02 R0203 - REF02 is required.

Condition 2 - If account has activity the TIA is required. The Condition 1 REF is not used.

Ending Inventory Date (Conditional) Date/Time Reference Segment Pos. No. 0300
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Name Field Type Length Field Description
Min Max
DTM01 374 M Date/Time Qualifier ID 3 3 184 = Inventory Date
DTM02 373 X Date DT 8 8 CCYYMMDD
Use this segment when reporting ending inventory in the FGS Loop for the supplier/distributor.
Total Due (Conditional) Tax Information and amount Segment Pos. No. 0920
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Ref # Field Type Length Field Description
Min Max
TIA01 817   M Tax Information ID Number AN 4 4 TIA Code 5003 = Total Due
TIA02 782   X Monetary Amount R 1 15 Whole Dollar Amount
TIA03 is not used.
TIA04 380 X Quantity R 1 15 Quantity
TIA05 355 M Unit of Measurement Code ID 2 2 GA = Gallons LT = Liters
TIA~5003~1000000\
SYNTAX NOTES: 03 R0203040607 - TIA02 is required. 02 Total Due is the sum of total tax owed for the period, plus applicable interest and penalties, in whole dollars.
This FGS loop contains inventory information. The FGS loop repeated when the product code value changes.
Ending Inventory Date (Conditional) Date/Time Reference Segment Pos. No. 0300
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Name Field Type Length Field Description
Min Max
DTM01 374   M Date/Time Qualifier ID 3 3 184 = Inventory Date
DTM02 373   X Date DT 8 8 CCYYMMDD
DTM~184~20010531\
SYNTAX NOTES: 02 R020305 - DTM02 is required.
Physical Inventory by Product (Conditional) Form Group Segment Pos. No. 1000
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Ref # Field Type Length Field Description
Min Max
FGS01 350   M Assigned Identification AN 2 2 BI = Beginning Inventory (First Filing) EI = Ending Inventory GL = Gains and Losses
FGS02 128   X Reference Identification Qualifier ID 2 2 "PG" = Product Group
FGS03 127   X Reference Identification AN 3 3 Product Code See Product Codes list in CDTFA-810-FTA "Product Code Table - Sorted By Product Code Number" or CDTFA-810-FTB "Product Code Table - Sorted By Product Type"
FGS~EI~PG~130\
SYNTAX NOTES: 02 P0203 - If either FGS02 or FGS03 is present, then the other is required.
Sequence Number Reference Number Segment Pos. No. 1100
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Name Field Type Length Field Description
Min Max
REF01 128 M Reference Identification Qualifier ID 2 2 55 = Sequence Number
REF02 127 X Reference Identification AN 1 9 Sequence Number
REF03 352 X Description AN 1 5 Error Response Code (See Appendix on page Error! Bookmark not defined.)
REF~55~0001234\
Syntax Notes: This segment is used to identify information for error processing. This segment can be generated by the filer when first filling to assist in identifying information or when responding to an error reported. At least one of REF02 or REF03 is required.
FTA Note: REF02 is always required. REF03 is used for responding to an error.
Inventory (Required if FGS is Used) Tax Information and Amount Segment Pos. No. 1800
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Ref # Field Type Length Field Description
Min Max
TIA01 817   M Tax Information ID Number AN 4 4 TIA Code 5002 = Ending Physical Inventory
TIA02 and TIA03 are not used.
TIA04 380   X Quantity R 1 15 Quantity Gains should always be entered as a positive amount. Losses must always be entered as negative values (i.e., -5000) Ending Inventory should never fall below zero (0) for a filing period. Initial submission of Ending Inventory should always be a positive value. Any change to Ending Inventory will always be treated as an adjustment to the original submission.
TIA05 355   M Unit of Measurement Code ID 2 2 GA = Gallons LT = Liters
TIA~5002~~~3500000~GA\
SYNTAX NOTES: 03 R0203040607 - TIA04 is required. 04 Enter Ending Net Physical Inventory rounded to the nearest whole gallon. 05 C0504 - If TIA04 is present, then TIA05 is required.
Ending Physical Inventory is the only value reported. All other information is derivable from schedules.
End of FGS loop (Line item detail) End of TFS loop (DLR detail)

Table 23 EDI v. 4030 Summary Information Segments

This TFS loop begins the summary information. This section is used to report information that cannot be derived from the transaction schedules. Three events are reported using summary information segments. They are: Total tax, interest, and penalty due with the tax return. When reporting this summary information segment, do not include the tax rate segment. Individual product tax rate, tax due, and taxable gallons due for the tax return. When reporting this summary information segment, do not include the interest or penalty segments. Summary schedule (gallons by product not reported at the transaction level). When reporting a summary schedule summary information segment, do not include the tax rate, interest, or penalty segments. The summary information segment is repeated when one of the following values change: TFS02 - Summary Code; TFS 04 - Product Code; TIA02 Tax Rate. If there are no transactions to report in this filing, it is not necessary to transmit a Summary Information Segment TFS loop.

Beginning of Summary Information (Conditional) Tax Form Segment Pos. No. 0100
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Name Field Type Length Field Description
Min. Max.
TFS01 128   M Reference Identification Qualifier ID 2 2 T3 = Tax Schedule Code
TFS02 127   M Reference Identification AN 1 6 TFS02 Summary Code See Schedule and Summary Codes list in CDTFA-810-FTE
TFS03 128   X Reference Identification Qualifier ID 2 2 PG = Product Group
TFS04 127   X Reference Identification AN 3 3 Product Code See Product Codes list in CDTFA-810-FTA "Product Code Table - Sorted By Product Code Number" or CDTFA-810-FTB "Product Code Table - Sorted By Product Type"
TFS05 66   X Identification Code Qualifier ID 2 2 94 = Mode
TFS06 67   X Identification Code AN 2 9 CE = Transaction Type Mode Code
TFS~T3~S02~PG~065~94~CE\
SYNTAX NOTES: 04 P0304 - If either TFS03 or TFS04 is present, then the other is required. 06 P0506 - If either TFS05 or TFS06 is present, then the other is required. THE FOLLOWING RULE APPLIES WHEN REPORTING TOTAL TAX, INTEREST AND PENALTY DUE SUMMARY INFORMATION SEGMENT 02 TFS01 and TFS02 are required. Report Summary Code S02 in TFS02. 04 TFS03 and TFS04 are not required. 06 TFS05 and TFS06 are required. Example: TFS~T3~S02~~~94~CE\ THE FOLLOWING RULE APPLIES WHEN REPORTING AN INDIVIDUAL PRODUCT TAX RATE, TAX DUE, AND TAXABLE GALLONS SUMMARY INFORMATION SEGMENT: 06 TFS01, TFS02, TFS03, TFS04, TFS05, and TFS06 are required. Report Summary Code S02 in TFS02. Example: TFS~T3~S02~PG~167~94~CE\ THE FOLLOWING RULE APPLIES WHEN REPORTING A SUMMARY SCHEDULE SUMMARY INFORMATION SEGMENT: 06 TFS01, TFS02, TFS03, TFS04, TFS05, and TFS06 are required. Report Summary Code S02A, S03A, S04, or S05I in TFS02. Example: TFS~T3~S02A~PG~167~94~CE\
Relationship to the Transaction Information (Conditional) Reference Segment Pos. No. 0200
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Ref # Field Type Length Field Description
Min Max
REF01 128   M Reference Identification Qualifier ID 2 2 SU = Special Processing
REF02 127   X Reference Identification AN 3 3 IRS = IRS Data N/A = If not applicable to the IRS
REF03 Not used
REF04 C040   O Reference Identifier        
REF05 C040 128 M Reference Identification Qualifier ID 2 2 S0 = Special Approval (S Zero)
REF06 C040 127 M Reference Identification AN 2 2 State Abbreviation to which the data belongs
REF07 C040 128 X Reference Identification Qualifier ID 2 2 S0 = Special Approval (S Zero)
REF08 C040 127 X Reference Identification AN 2 2 State Abbreviation to which the data belongs
REF~SU~N/A~~S0^CA\
SYNTAX NOTES: 02 R0203 - REF02 is required.
REF02, REF05, and REF07 represent the taxing authorities and their relationship to the information in this TFS loop. REF05 REF07 use the sub-element separator. Example: REF~SU~N/A~~S0^CA^S0^NV\
Sequence Number Reference Number Segment Pos. No. 0200
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Name Field Type Length Field Description
Min Max
REF01 128 M Reference Identification Qualifier ID 2 2 55 = Sequence Number
REF02 127 X Reference Identification AN 1 9 Sequence Number
REF03 352 X Description AN 1 5 Error Response Code (See Appendix on page Error! Bookmark not defined.)
REF~55~0001234\
Syntax Notes: At least one of REF02 or REF03 is required.
FTA Note: This segment is used to identify information for error processing. This segment can be generated by the filer when first filling to assist in identifying information or when responding to an error reported. REF02 is always required. REF03 is used for responding to an error.
Summary Data (Conditional) Forms Group Segment Pos. No. 1000
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Ref # Field Type Length Field Description
Min Max
FGS01 350   M Assigned Identification AN 1 1 "S" = Schedule Summary
SYNTAX NOTES: None
Sequence Number Reference Number Segment Pos. No. 0200
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Name Field Type Length Field Description
Min Max
REF01 128 M Reference Identification Qualifier ID 2 2 55 = Sequence Number
REF02 127 X Reference Identification AN 1 9 Sequence Number
REF03 352 X Description AN 1 5 Error Response Code (See Appendix on page Error! Bookmark not defined.)
REF~55~0001234\
Syntax Notes: At least one of REF02 or REF03 is required.
FTA Note: This segment is used to identify information for error processing. This segment can be generated by the filer when first filling to assist in identifying information or when responding to an error reported. REF02 is always required. REF03 is used for responding to an error.
Tax Rate (Conditional) Tax Information and Amount Segment Pos. No. 1800
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Ref # Field Type Length Field Description
Min Max
TIA01 817   M Tax Information ID Number AN 4 4 TIA Code 5024 = Tax Rate
TIA02 782   X Monetary Amount R 4 4 Rate in .nnn
TIA~5024~.353\
SYNTAX NOTES: 02 TIA02 is required when reporting tax rate. 02 Enter the amount of applicable tax rate as a dollar amount. 17 Report a tax rate of forty-seven and three-tenths cents per gallon ($0.473) as .473 02 The tax rate should be in an .nnn format. THIS SEGMENT IS USED WHEN REPORTING AN INDIVIDUAL PRODUCT TAX RATE, TAX DUE, AND TAXABLE GALLONS DUE FOR THE TAX RETURN SEGMENT
Information (Conditional) Tax Information and Amount Segment Pos. No. 1800
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Ref # Field Type Length Field Description
Min Max
TIA01 817   M Tax Information ID Number AN 4 4 TIA Code 5007 = Billed
TIA02 782   X Monetary Amount R 1 15 Whole Dollar Amount
TIA03 are not used.
TIA04 380   X Quantity R 1 15 Quantity
TIA05 355   M Unit of Measurement Code ID 2 2 "GA" = Gallons "LT" = Liters
TIA~5007~100180~~556556~GA\
SYNTAX NOTES: 02 R0203040607 - At least one of TIA02 or TIA04 is required. 05 C0504 - If TIA04 is present, then TIA05 is required. THE FOLLOWING RULE APPLIES WHEN REPORTING A TOTAL TAX, INTEREST, AND PENALTY DUE SUMMARY INFORMATION SEGMENT: 02 TIA02 is required. Enter total tax due for this filing rounded to the nearest whole dollar. 04 TIA04 is not required. Example: TIA~5007~100891\ THE FOLLOWING RULE APPLIES WHEN REPORTING AN INDIVIDUAL PRODUCT TAX RATE, TAX DUE, AND TAXABLE GALLONS SUMMARY INFORMATION SEGMENT: 02 TIA02 is required. Enter total tax due for this filing rounded to the nearest whole dollar. 04 TIA04 is required. Enter taxable gallons for this filing rounded to the nearest whole gallon. Example: TIA~5007~197858~~560504~GA\ THE FOLLOWING RULE APPLIES WHEN REPORTING A SUMMARY SCHEDULE SUMMARY INFORMATION SEGMENT: 02 TIA02 is not required. 04 TIA04 is required. Enter taxable gallons for this filing rounded to the nearest whole gallon. Example: TIA~5007~~~560504~GA\
Interest (Conditional) Tax Information and Amount Segment Pos. No. 1800
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Ref # Field Type Length Field Description
Min Max
TIA01 817   M Tax Information ID Number AN 4 4 TIA Code 5008 = Interest
TIA02 782   X Monetary Amount R 1 15 Whole Dollar Amount
TIA~5008~1002\
SYNTAX NOTES: 02 R0203040607 - TIA02 is required when reporting interest due. 02 Enter the computed Interest Due rounded to the nearest whole dollar. 02 Interest due on a late filing is computed as follows: Remaining Tax Due x Monthly Interest Factor x No. of Months Late = Interest Due (Remaining Tax Due is the total tax due less any amounts prepaid prior to the due date of the return.) (Monthly Interest Factor is the Annual Interest Rate 12. Contact the CDTFA to obtain the current factor. ) (No. of Months Late is the number of months computed from the due date of the return being filed. A partial month is rounded up to count as a whole month.)
Penalty (Conditional) Tax Information and Amount Segment Pos. No. 1800
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Ref # Field Type Length Field Description
Min Max
TIA01 817   M Tax Information ID Number AN 4 4 TIA Code 5009 = Penalty
TIA02 782   X Monetary Amount R 1 15 Whole Dollar Amount
TIA~5009~10018\
SYNTAX NOTES: 02 R0203040607 - TIA02 is required when reporting penalty due. 02 Enter the amount of applicable penalty, rounded to the nearest whole dollar. 02 10% Penalty Due on a late filing is computed as follows: Remaining Tax Due x 0.10 (10%) = Penalty Due
Excess Fees Collected (Optional) Tax Information and Amount Segment Pos. No. 1800
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Ref # Field Type Length Field Description
Min Max
TIA01 817   M Tax Information ID Number AN 4 4 TIA Code 5026 = Excess Tax Collected
TIA02 782   X Monetary Amount R 1 15 Whole Dollar Amount
TIA~5026~4044\
SYNTAX NOTES: 04 TIA02 is required when reporting excess tax collected. 02 Enter the amount of excess tax collected, rounded to the nearest whole dollar.
End of TFS loop (SUM Section)

Table 24 EDI v. 4030 Schedule Segments

This TFS loop begins the transaction detail. The TFS loop is repeated when one of the following values changes: Schedule Code, Product Code, Mode Code, Relationship, Origin, Seller, Position Holder, Consignor, Carrier, Buyer/Consignee, or Destination. If there are no transactions to report in this filing, it is not necessary to transmit a Schedule Segment TFS loop. It is implied that there is no activity in this filing.

Beginning of Schedules (Required) Tax Form Segment Pos. No. 0100
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Name Field Type Length Field Description
Min. Max.
TFS01 128   M Reference Identification Qualifier ID 2 2 T3 = Tax Schedule Code
TFS02 127   M Reference Identification AN 1 6 Schedule Type Code See Schedule and Summary Codes list in CDTFA-810-FTE "Instructions for Preparing Motor Fuels Schedules"
TFS03 128   X Reference Identification Qualifier ID 2 2 PG = Product Group
TFS04 127   X Reference Identification AN 3 3 Product Code See Product Codes list in CDTFA-810-FTA "Product Code Table - Sorted By Product Code Number" or CDTFA-810-FTB "Product Code Table - Sorted By Product Type"
TFS05 66   X Identification Code Qualifier ID 2 2 94 = Mode
TFS06 67   X Identification Code AN 2 9 Mode Code See Transaction Type Mode Codes list in CDTFA-810-FTE "Instructions for Preparing Motor Fuels Schedules"
TFS~T3~5~PG~065~94~J \
SYNTAX NOTES: 03 P0304 - If either TFS03 or TFS04 is present, then the other is required. 05 P0506 - If either TFS05 or TFS06 is present, then the other is required.
Relationship to the Transaction Information (Required) Reference Segment Pos. No. 0200
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Ref # Field Type Length Field Description
Min Max
REF01 128   M Reference Identification Qualifier ID 2 2 SU = Special Processing
REF02 127   X Reference Identification AN 3 3 IRS = IRS Data N/A = If not applicable to the IRS
REF03 Not used
REF04 C040   O Reference Identifier        
REF05 C040 128 M Reference Identification Qualifier ID 2 2 S0 = Special Approval (S Zero)
REF06 C040 127 M Reference Identification AN 2 2 State Abbreviation to which the data belongs
REF07 C040 128 X Reference Identification Qualifier ID 2 2 S0 = Special Approval (S Zero)
REF08 C040 127 X Reference Identification AN 2 2 State Abbreviation to which the data belongs
REF~SU~N/A~~S0^CA\
SYNTAX NOTES: 02 R0203 - REF02 is required.
REF02, REF05, and REF07 represent the taxing authorities and their relationship to the information in this TFS loop. REF05 REF07 use the sub-element separator. Example: REF~SU~N/A~~S0^CA^S0^NV\
Sequence Number Reference Number Segment Pos. No. 0200
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Name Field Type Length Field Description
Min Max
REF01 128 M Reference Identification Qualifier ID 2 2 55 = Sequence Number
REF02 127 X Reference Identification AN 1 9 Sequence Number
REF03 352 X Description AN 1 5 Error Response Code (See Appendix on page Error! Bookmark not defined.)
REF~55~0001234\
Syntax Notes: At least one of REF02 or REF03 is required.
FTA Note: This segment is used to identify information for error processing. This segment can be generated by the filer when first filling to assist in identifying information or when responding to an error reported. REF02 is always required. REF03 is used for responding to an error.

For Point of Origin/Terminal: (One of the following Options is Required)

Use Option 1 when the origin is a Terminal.

Use Option 2 when the origin is located inside or outside the State of California and is not an IRS approved terminal.

Use Option 3 when the origin is located in Your State and is a Non-Terminal and facility ID is used by state.

Option 1

Point of Origin (One of the two options is Required) Name Segment 1 Pos. No. 0500
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Ref # Field Type Length Field Description
Min Max
N101 98   M Entity Identification Code ID 2 2 OT = Origin Terminal
N102 is not used.
N103 66   X Identification Code Qualifier ID 2 2 TC = IRS Terminal Code
N104 67   X Identification Code AN 9 9 IRS Terminal Code (contact the IRS for a complete listing of approved terminals)
N1~OT~~TC~T33CA1111\
SYNTAX NOTES: (This segment is used if the origin is an IRS approved terminal.) 02 R0203 - N103 is required. 03 P0304 - If either N103 or N104 is present, then the other is required.

Option 2

Point of Origin (One of the two options is Required) Name Segment 1 Pos. No. 0500
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Ref # Field Type Length Field Description
Min Max
N101 98   M Entity Identification Code ID 2 2 SF = Ship From
N102 93   X Name AN 2 3 Postal Abbreviation See Postal Abbreviation list in CDTFA-810-FTC "Postal Abbreviations Table"
N1~SF~OR\
SYNTAX NOTES: (This segment is used if the origin is not an IRS approved terminal.) 02 R0203 - N102 is required.
Point of Origin (Optional) Name Segment 1 Pos. No. 0500
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Name Field Type Length Field Description
Min Max
N401 19 O City Name AN 2 30 Name of City
N402 156 X State or Province Code ID 2 2 State or Providence Abbreviation
N403 116 O Postal Code ID 3 11 ZIP or ZIP plus 4 Code
Point of Origin Name Segment 1 Pos. No. 0500
Element Elem Sub-Ele Field Field Name Field Length Field
ID Ref. # Ref. # Status Type Min Max Description
N401 19 O City Name AN 2 30 Name of City
N402 156 O State or Province Code ID 2 2 State or Province Abbreviation
N403 116 O Postal Code ID 3 11 ZIP or ZIP plus 4 Code
N404 26 X Country Code ID 2 3 Country (USA, CAN, MEX)
N405 309 X Location Qualifier ID 1 2 CY = County
N406 310 O Location Identifer AN 1 5 County
N4~Billings~MT~59401\
Syntax Notes: None
FTA Notes: N404 through N406 are optional. N406 is based on the federal county codes (see: http://www.itl.nist.gov/fipspubs/co-codes/states.htm) N405 and N406 are not in the IRS 4030 map.

Option 3

Point of Origin (One of the three options is Required) Name Segment 1 Pos. No. 0500
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Name Field Type Length Field Description
Min Max
N101 98 M Entity Identification Code ID 2 2 WO = Storage Facility at Origin
N102 is not used.
N103 66 X Identification Code Qualifier ID 2 2 "FA" = Facility Identification
N104 67 X Identification Code AN 2 20 Facility/License Number
Seller Information (Required) Name Segment 2 Pos. No. 0500
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Ref # Field Type Length Field Description
Min Max
N101 98   M Entity Identification Code ID 2 2 SE = Selling Party
N102 93   X Name AN 1 35 Seller's Name
N103 66   X Identification Code Qualifier ID 2 2 24 = FEIN 34 = SSN 49 = CDTFA Account Number 50 = BN Canadian Business Number
N104 67   X Identification Code AN 9 18 Seller's FEIN or SSN or CDTFA Account Number
N1~SE~ABC Oil Company~24~123456789\
SYNTAX NOTES: (This segment is used for reporting seller information on Schedules 1A, 2X, 3A, 3B, and 3X (receipts) of the Supplier Returns.) 02 R0203 - N102 and N103 are required. 03 P0304 - If either N103 or N104 is present, then the other is required. 04 If entering CDTFA Account Number, enter the number with a leading 0 (zero). Example: N1~SE~ABC OIL COMPANY~49~099999999\
Position Holder Information or Delivering Exchange Party Information (Required) Name Segment 3 Pos. No. 0500
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Ref # Field Type Length Field Description
Min Max
N101 98   M Entity Identification Code ID 2 2 ON = Position Holder
N102 93   X Name AN 1 35 Position Holder's Name
N103 66   X Identification Code Qualifier ID 2 2 24 = FEIN 34 = SSN 49 = CDTFA Account Number 50 = BN Canadian Business Number "FI" = Federal Taxpayer 637 ID Number
N104 67   X Identification Code AN 9 18 Position Holder's FEIN or SSN or CDTFA Account Number or IRS 637 Number
N1~ON~123 Position Holder Oil Co~24~234567891\
SYNTAX NOTES: (This segment is used for reporting position holder information on Schedule 15B of the Terminal Operator Report and the various disbursement schedules of the Supplier Returns.) 02 R0203 - N102 and N103 are required. 03 P0304 - If either N103 or N104 is present, then the other is required. 04 If entering CDTFA Account Number, enter the number with a leading 0 (zero). Example: N1~ON~123 Position Holder Oil Co~49~099999999\
Receiving Exchange Party Information Name Segment 4 Pos. No. 0500
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Ref # Field Type Length Field Description
Min Max
N101 98   M Entity Identification Code ID 2 2 EC = Exchanger
N102 93   X Name AN 1 35 Exchange Party Name or Control Name (First 4 position of taxpayer business name)
N103 66   X Identification Code Qualifier ID 2 2 24 = FEIN 34 = SSN 49 = CDTFA Account Number 50 = BN Canadian Business Number FI = Federal Taxpayer 637 ID Number
N104 67   X Identification Code AN 9 18 Exchange Party FEIN or SSN or IRS 637 Number
N1~EC~ABC Fuel~24~516888888\
SYNTAX NOTES: (This segment is used for reporting receiving party information on Schedule 15A of the Terminal Operator Report and the various disbursement schedules of the Supplier Returns.) 02 R0203 - N102 and N103 are required. 03 P0304 - If either N103 or N104 is present, then the other is required. 04 If entering CDTFA Account Number, enter the number with a leading 0 (zero). Example: N1~ON~123 Position Holder Oil Co~49~099999999\
If reporting 2-party exchange information, this segment is required; otherwise do not use this segment. N102, N103, and N104 are required.
Person Hiring Carrier (Consignor) (Required) Name Segment 4 Pos. No. 0500
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Ref # Field Type Length Field Description
Min Max
N101 98   M Entity Identification Code ID 2 2 CI = Consignor (Person Hiring the Carrier)
N102 93   X Name AN 1 35 Consignor Name
N103 66   X Identification Code Qualifier ID 2 2 24 = FEIN 34 = SSN 49 = CDTFA Account Number 50 = BN Canadian Business Number
N104 67   X Identification Code AN 9 18 Consignor's (Person Hiring the Carrier) FEIN or SSN or CDTFA Account Number
N1~CI~123 Position Holder Oil Co~24~234567891\
SYNTAX NOTES: (This segment is used for reporting consignor information on Schedules 14D and 14E of the Petroleum Carrier Report.) 02 R0203 - N102 and N103 are required. 03 P0304 - If either N103 or N104 is present, then the other is required. 04 If entering CDTFA Account Number, enter the number with a leading 0 (zero). Example: N1~CI~123 Position Holder Oil Co~49~099999999\
Carrier Information (Required) Name Segment 5 Pos. No. 0500
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Ref # Field Type Length Field Description
Min Max
N101 98   M Entity Identification Code ID 2 2 CA = Carrier Name
N102 93   X Name AN 1 35 Carrier Name
N103 66   X Identification Code Qualifier ID 2 2 24 = FEIN 34 = SSN 49 = CDTFA Account Number 50 = BN Canadian Business Number
N104 67   X Identification Code AN 9 18 Carrier s FEIN or SSN or CDTFA Account Number
N1~CA~DEF Carrier Company~24~345678912\
SYNTAX NOTES: (This segment is used on all reports and returns.) 02 R0203 - N102 is required. 03 N103 is required for bulk transactions and is requested for non-bulk transactions. 03 P0304 - If either N103 or N104 is present, then the other is required. 04 If entering CDTFA Account Number, enter the number with a leading 0 (zero). Example: N1~CA~DEF Carrier Company~49~099999999\
Buyer/Consignee Information (Required) Name Segment 6 Pos. No. 0500
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Ref # Field Type Length Field Description
Min Max
N101 98   M Entity Identification Code ID 2 2 BY = Buying Party (Purchaser/Consignee)
N102 93   X Name AN 1 35 Sold to Name (Purchaser/Consignee)
N103 66   X Identification Code Qualifier ID 2 2 24 = FEIN 34 = SSN 49 = CDTFA Account Number 50 = BN Canadian Business Number
N104 67   X Identification Code AN 9 18 Purchaser s FEIN or SSN or CDTFA Account Number
N1~BY~XYZ Gas Station~24~543219876\
SYNTAX NOTES: (This segment is used for reporting buyer information on various disbursement schedules of the Supplier Returns.) 02 R0203 - N102 and N103 are required. 03 P0304 - If either N103 or N104 is present, then the other is required. 04 If entering CDTFA Account Number, enter the number with a leading 0 (zero). Example: N1~BY~XYZ Gas Station~49~099999999\

For Point (Address) of Delivery/Destination: (One of the following Options is Required)

Use Option 1 when the Destination is a Terminal.

Use Option 2 when the Destination is located inside or outside Your State and is a Non-Terminal.

Use Option 3 when the Destination is located in Your State, but is a Non-Terminal and the state uses facility IDs.

Option 1

Point of Destination (One of the two options is Required) Name Segment 7 Pos. No. 0500
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Ref # Field Type Length Field Description
Min Max
N101 98   M Entity Identification Code ID 2 2 DT = Destination Terminal
N102 is not used.
N103 66   X Identification Code Qualifier ID 2 2 TC = IRS Terminal Code FA = Destination Airport
N104 67   X Identification Code AN 9 9 *IRS Terminal Code (contact the IRS for a complete listing of approved terminals) *Airport Code (contact the CDTFA for a complete listing of approved airport codes)
N1~DT~~TC~T33CA3333\ or N1~DT~~FA~LAX\
SYNTAX NOTES: (This segment is used if the destination is an IRS approved terminal or an airport. If the destination is an airport, report the TCN when reporting on a supplier return (SDR) or report the airport code when reporting on a dealer return (DLR).) 02 R0203 - N103 is required. 03 P0304 - If either N103 or N104 is present, then the other is required.

Option 2

Point of Destination (One of the two options is Required) Name Segment 7 Pos. No. 0500
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Ref # Field Type Length Field Description
Min Max
N101 98   M Entity Identification Code ID 2 2 ST = Ship To
N102 93   X Name AN 2 3 Postal Abbreviation See Postal Abbreviation list in CDTFA-810-FTC "Postal Abbreviations Table"
N1~ST~CA\
SYNTAX NOTES: (This segment is used if the destination is not an IRS approved terminal.) 02 R0203 - N102 is required.
Point of Destination Name Segment 8 Pos. No. 0500
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Name Field Type Length Field Description
Min Max
N401 19 19 O City Name AN 2 30 Name of City
N402 156 156 O State or Province Code ID 2 2 State or Province Abbreviation
N403 116 116 O Postal Code ID 3 11 ZIP or ZIP plus 4 Code
N404 26 X Country Code ID 2 3 Country (USA, CAN, MEX)
N405 309 X Location Qualifier ID 1 2 CY = County
N406 310 O Location Identifer AN 1 5 County
N4~Boise~ID~65079\
Syntax Notes: None
FTA Notes: N404 through N406 are optional. N406 is based on the federal county codes (see: http://www.itl.nist.gov/fipspubs/co-codes/states.htm) N405 and N406 are not in the IRS 4030 map.

Option 3

Point of Destination (One of the three options is Required) Name Segment 7 Pos. No. 0500
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Name Field Type Length Field Description
Min Max
N101 98 M Entity Identification Code ID 2 2 WD = Destination Facility
N102 is not used.
N103 66 X Identification Code Qualifier ID 2 2 "FA" = Facility Identification
N104 67 X Identification Code AN 2 20 Facility/License Number

This FGS loop contains transaction information for the individual shipments within the TFS loop. It is repeated when one of the following values changes: Bill of Lading (Document) Number, Bill of Lading Date (Date Shipped), or Gallons.

Bill of Lading (Required) Forms Group Segment Pos. No. 1000
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Ref # Field Type Length Field Description
Min Max
FGS01 350   M Assigned Identification AN 1 2 D = Schedule Detail
FGS02 128   X Reference Identification Qualifier ID 2 2 BM = Bill of Lading Number
FGS03 127   X Reference Identification AN 1 15 Bill of Lading Number
FGS~D~BM~1234\
SYNTAX NOTES: 02 P0203 - FGS02 and FGS03 are required unless the Mode Code in TFS06 is GS (Gas Station), then FGS02 and FGS03 are not used.
Sequence Number Reference Number Segment Pos. No. 0200
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Name Field Type Length Field Description
Min Max
REF01 128 M Reference Identification Qualifier ID 2 2 55 = Sequence Number
REF02 127 X Reference Identification AN 1 9 Sequence Number
REF03 352 X Description AN 1 5 Error Response Code (See Appendix on page Error! Bookmark not defined.)
REF~55~0001234\
Syntax Notes: At least one of REF02 or REF03 is required.
FTA Note: This segment is used to identify information for error processing. This segment can be generated by the filer when first filling to assist in identifying information or when responding to an error reported. REF02 is always required. REF03 is used for responding to an error.
Date Product was Purchased (Optional) Date/Time Reference Segment Pos. No. 1200
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Ref # Field Type Length Field Description
Min Max
DTM01 374   M Date/Time Qualifier ID 3 3 321 = Date Product Purchased
DTM02 373   X Date DT 8 8 Bill of Lading Date (CCYYMMDD)
DTM~321~20010515\
SYNTAX NOTES: 02 R020305 - DTM02 is required.
SEGMENT NOTES: 01 This segment is required when reporting any purchase or credit schedule transactions. It is optional for all other schedule transactions.
Bill of Lading Date (Required) Date/Time Reference Segment Pos. No. 1200
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Ref # Field Type Length Field Description
Min Max
DTM01 374   M Date/Time Qualifier ID 3 3 095 = Bill of Lading Date
DTM02 373   X Date DT 8 8 Bill of Lading Date (CCYYMMDD)
DTM~095~20010515\
SYNTAX NOTES: 02 R020305 - DTM02 is required.
Tax Rate (Optional) Tax Information and Amount Segment Pos. No. 1800
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Ref # Field Type Length Field Description
Min Max
TIA01 817   M Tax Information ID Number AN 4 4 TIA Code 5024 = Tax Rate
TIA02 782   X Monetary Amount R 4 4 Rate in .nnn
TIA~5024~.353\
SYNTAX NOTES: 02 TIA02 is required when reporting tax rate. 02 Enter the amount of applicable tax rate as a dollar amount. 02 Report a tax rate of forty-seven and three-tenths cents per gallon ($0.473) as .473 02 The tax rate should be in an .nnn format.
SEGMENT NOTES: 01 This segment is required when reporting any purchase or credit schedule transactions. It is optional for all other schedule transactions.
Bill of Lading Net (Required) Tax Information and Amount Segment Pos. No. 1800
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Ref # Field Type Length Field Description
Min Max
TIA01 817   M Tax Information ID Number AN 4 4 5005 = Net
TIA02 and TIA03 are not used.
TIA04 380   X Quantity R 1 15 Quantity
TIA05 355   M Unit of Measurement Code ID 2 2 GA = Gallons "LT"=Liters
TIA~5005~~~8015~GA\
SYNTAX NOTES: 02 R0203040607 - TIA04 is required. 04 Enter the net gallons rounded to the nearest whole gallon. 05 C0504 - If TIA04 is present, then TIA05 is required.
Bill of Lading Gross (Required) Tax Information and Amount Segment Pos. No. 1800
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Ref # Field Type Length Field Description
Min Max
TIA01 817   M Tax Information ID Number AN 4 4 5006 = Gross
TIA02 and TIA03 are not used.
TIA04 380   X Quantity R 1 15 Quantity
TIA05 355   M Unit of Measurement Code ID 2 2 GA = Gallons "LT" = Liters
TIA~5006~~~8000~GA\
SYNTAX NOTES: 02 R0203040607 - TIA04 is required. 04 Enter the gross gallons rounded to the nearest gallon. 05 C0504 - If TIA04 is present, then TIA05 is required.
Bill of Lading Billed (Required) Tax Information and Amount Segment Pos. No. 1800
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Ref # Field Type Length Field Description
Min Max
TIA01 817   M Tax Information ID Number AN 4 4 5007 = Billed
TIA02 and TIA03 are not used.
TIA04 380   X Quantity R 1 15 Quantity
TIA05 355   M Unit of Measurement Code ID 2 2 GA = Gallons "LT" = Liters
TIA~5007~~~8015~GA\
SYNTAX NOTES: 02 R0203040607 - TIA04 is required. 04 Enter the billed gallons rounded to the nearest gallon. 05 C0504 - If TIA04 is present, then TIA05 is required.

End of FGS loop for Individual shipments.

End of TFS loop for Schedule.

Table 25 EDI v. 4030 Transaction Set Trailer Description Segment

End of Transaction Set (Required) Trailer Segment Pos. No. 0100
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Name Field Type Length Field Description
Min. Max.
SE01 96   M Number of Included Segments N0 1 10 Number of segments. The SE needs to reflect the accurate count of all segments in the transmission including the ST and SE.
SE02 329   M Transaction Set Control Number AN 4 9 Filer defined unique control number (enter the same value as in ST02).
SE~15000~12345\
SYNTAX NOTES: None

Table 26 EDI v. 4030 Functional Group Trailer Description Segment

Functional Group Segment (Required)
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Name Field Type Length Field Description
Min. Max.
GE01 97   M Number Of Transaction Sets Included N0 1 6 Count of transaction sets within this GS/GE. The GE needs to reflect the accurate count of all Transaction Sets (ST) included in the transmission.
GE02 28   M/Z Group Control Number N0 1 9 Filer defined unique control number (enter the same value as in GS06).
GE~1~1101\
SYNTAX NOTES: None

Table 27 EDI v. 4030 Interchange Control Trailer Description Segment

Interchange Segment (Required)
Element ID Elem Ref # Sub-Ele Ref # Field Status Field Name Field Type Length Field Description
Min. Max.
IEA01 I16   M Number Of Included Functional Groups N0 1 5 Count Of Function Groups Within This ISA/IEA. The IEA needs to reflect the accurate count of all Functional Groups (GE) in the transmission.
IEA02 I12   M Interchange Control Number N0 9 9 The Interchange Number in the Trailer Must Be Identical to the Same Data Element in the Associated Interchange Header (ISA13).
IEA~1~000001001\
SYNTAX NOTES: None
03 End of Transaction Set.

Filing Results Example

To view the Online Filing Results:

1. Log in to the CDTFA s secure website at http://onlineservices.cdtfa.ca.gov.

2. Select the account for which you want to review an online filing or select File and/or View a Return.

3. A status of Filed or Processed indicates the upload file successfully processed.

An upload failure during submission will result with a message similar to the examples below.

EDI File Failure Example:

CDTFA Validation Error: Too few elements for segment DTM~95 at segment index position 248

Using this message as an example, we will illustrate how to fix the error.

The message tells us that the 248th segment in the EDI file does not include enough elements.

The EDI specifications require the date to be included in date segments when reporting disbursements. To correct the issue, add 20190805 (DTM~95~20190805) to the segment.

Contact the Data Analysis Unit if you need assistance resolving errors in an EDI file.