The file headers in an IIF file tell the program how to import the type of data that follows (i.e. a customer list or a transaction). Each header specifically defines a field in the company file. The file headers are in rows that begin with an exclamation point. The first column in the header must contain a keyword.
Header placement
In a list import file, the file headers line is usually located in the first row. In the example below for a customer list, the file headers line starts with !CUST.
| |
A
|
B
|
C
|
D
|
|
1
|
!CUST |
New Cell |
BADDR1 |
BADDR2 |
|
2
|
New Cell |
Abercrombie, Kristy |
Kristy Abercrombie |
123 Placido Terrace |
|
3
|
CUST |
Courtney, Ed |
Courtney Tool Design |
5223 Hesse Drive |
In a transaction import file, there are usually three file header lines that occupy the first, second, and third rows (row 1, 2, and 3 in the example below). The example below shows a check transaction in an IIF file. The file headers lines begin with !TRNS, !SPL, and !ENDTRNS.
| |
A
|
B
|
C
|
D
|
E
|
F
|
G
|
|
1
|
!TRNS |
TRNSTYPE |
DATE |
ACCNT |
NAME |
CLASS |
AMOUNT |
|
2
|
!SPL |
TRNSTYPE |
DATE |
ACCNT |
NAME |
CLASS |
AMOUNT |
|
3
|
!ENDTRNS |
 |
 |
 |
 |
 |
 |
|
4
|
TRNS |
CHECK |
3/3/2010 |
Main Checking |
ArchCo Gas |
 |
-70
|
|
5
|
SPL |
CHECK |
3/3/2010 |
Fuel |
Courtney, Ed |
 |
10
|
|
6
|
SPL |
CHECK |
3/3/2010 |
Auto Repair |
 |
 |
60
|
|
7
|
ENDTRNS |
 |
 |
 |
 |
 |
 |
How to use IIF headers
Note: The correct spelling and placement of these file headers are required to prevent errors during import. Also, not all file headers are necessary in an IIF file in order to import transactions successfully into QuickBooks. Several examples are available in the IIF Import Kit. For more information:
- From the QuickBooks Help menu, choose QuickBooks Help.
- Click the Search tab
- Type IIF file format, and click the Start Search arrow.
- Select Reference guide to import files.
When you export a list from an existing company, QuickBooks creates an export file header:
| |
A
|
B
|
C
|
D
|
E
|
F
|
G
|
H
|
I
|
|
1
|
!HDR |
PROD |
VER |
REL |
IIFVER |
DATE |
TIME |
ACCTNT |
ACCNTNT
SPLITTIME
|
|
2
|
HDR |
QuickBooks Premier |
Version 20.0D
|
Release R6 |
1 |
1/1/2010 |
79423
6875
|
N |
 |