Target
/
Retail Invoice
  • Specification
  • EDI Inspector
Stedi maintains this guide based on public documentation from Target. Contact Target for official EDI specifications. To report any errors in this guide, please contact us.
Go to Stedi Network
Target logo

X12 810 Retail Invoice

X12 Release 4010

This Draft Standard for Trial Use contains the format and establishes the data contents of the Invoice Transaction Set (810) for use within the context of an Electronic Data Interchange (EDI) environment. The transaction set can be used to provide for customary and established business and industry practice relative to the billing for goods and services provided.

Delimiters
  • ~ Segment
  • * Element
  • > Component
EDI sample
  • Sample 810
View the latest version of this implementation guide as an interactive webpage
https://www.stedi.com/app/guides/view/target/retail-invoice/01HBRP4ZG6BFDN4P15PT9NVWVY
Powered by
Build EDI implementation guides at stedi.com
Overview
ISA
-
Interchange Control Header
Max use 1
Required
GS
-
Functional Group Header
Max use 1
Required
heading
ST
010
Transaction Set Header
Max use 1
Required
BIG
020
Beginning Segment for Invoice
Max use 1
Required
NTE
030
Note/Special Instruction
Max use 100
Optional
REF
050
Department Number
Max use 12
Required
REF
050
Internal Vendor Number
Max use 12
Required
REF
050
Promotion/Deal Number
Max use 12
Optional
N1 Loop
ITD
130
Terms of Sale/Deferred Terms of Sale
Max use 1
Required
DTM
140
Date/Time Reference
Max use 10
Required
N9 Loop
GE
-
Functional Group Trailer
Max use 1
Required
IEA
-
Interchange Control Trailer
Max use 1
Required
ISA

Interchange Control Header

RequiredMax use 1

To start and identify an interchange of zero or more functional groups and interchange-related control segments

Example
ISA-01
I01
Authorization Information Qualifier
Required
Identifier (ID)

Code to identify the type of information in the Authorization Information

00
No Authorization Information Present (No Meaningful Information in I02)
ISA-02
I02
Authorization Information
Required
String (AN)
Min 10Max 10

Information used for additional identification or authorization of the interchange sender or the data in the interchange; the type of information is set by the Authorization Information Qualifier (I01)

ISA-03
I03
Security Information Qualifier
Required
Identifier (ID)

Code to identify the type of information in the Security Information

00
No Security Information Present (No Meaningful Information in I04)
ISA-04
I04
Security Information
Required
String (AN)
Min 10Max 10

This is used for identifying the security information about the interchange sender or the data in the interchange; the type of information is set by the Security Information Qualifier (I03)

ISA-05
I05
Interchange ID Qualifier
Required
Identifier (ID)
Min 2Max 2

Qualifier to designate the system/method of code structure used to designate the sender or receiver ID element being qualified

Codes
ISA-06
I06
Interchange Sender ID
Required
String (AN)
Min 15Max 15

Identification code published by the sender for other parties to use as the receiver ID to route data to them; the sender always codes this value in the sender ID element

ISA-07
I05
Interchange ID Qualifier
Required
Identifier (ID)
Min 2Max 2

Qualifier to designate the system/method of code structure used to designate the sender or receiver ID element being qualified

Codes
ISA-08
I07
Interchange Receiver ID
Required
String (AN)
Min 15Max 15

Identification code published by the receiver of the data; When sending, it is used by the sender as their sending ID, thus other parties sending to them will use this as a receiving ID to route data to them

ISA-09
I08
Interchange Date
Required
Date (DT)
YYMMDD format

Date of the interchange

ISA-10
I09
Interchange Time
Required
Time (TM)
HHMM format

Time of the interchange

ISA-11
I10
Interchange Control Standards Identifier
Required
Identifier (ID)

Code to identify the agency responsible for the control standard used by the message that is enclosed by the interchange header and trailer

U
U.S. EDI Community of ASC X12, TDCC, and UCS
ISA-12
I11
Interchange Control Version Number
Required
Identifier (ID)

This version number covers the interchange control segments

00401
Draft Standards for Trial Use Approved for Publication by ASC X12 Procedures Review Board through October 1997
ISA-13
I12
Interchange Control Number
Required
Numeric (N0)
Min 9Max 9

A control number assigned by the interchange sender

ISA-14
I13
Acknowledgment Requested
Required
Identifier (ID)
Min 1Max 1

Code sent by the sender to request an interchange acknowledgment (TA1)

0
No Acknowledgment Requested
1
Interchange Acknowledgment Requested
ISA-15
I14
Usage Indicator
Required
Identifier (ID)
Min 1Max 1

Code to indicate whether data enclosed by this interchange envelope is test, production or information

I
Information
P
Production Data
T
Test Data
ISA-16
I15
Component Element Separator
Required
String (AN)
Min 1Max 1

Type is not applicable; the component element separator is a delimiter and not a data element; this field provides the delimiter used to separate component data elements within a composite data structure; this value must be different than the data element separator and the segment terminator

>
Component Element Separator

Functional Group Header

RequiredMax use 1

To indicate the beginning of a functional group and to provide control information

Example
GS-01
479
Functional Identifier Code
Required
Identifier (ID)

Code identifying a group of application related transaction sets

IN
Invoice Information (810,819)
GS-02
142
Application Sender's Code
Required
String (AN)
Min 2Max 15

Code identifying party sending transmission; codes agreed to by trading partners

GS-03
124
Application Receiver's Code
Required
String (AN)
Min 2Max 15

Code identifying party receiving transmission. Codes agreed to by trading partners

Required
Date (DT)
CCYYMMDD format

Date expressed as CCYYMMDD

Required
Time (TM)
HHMM, HHMMSS, HHMMSSD, or HHMMSSDD format

Time expressed in 24-hour clock time as follows: HHMM, or HHMMSS, or HHMMSSD, or HHMMSSDD, where H = hours (00-23), M = minutes (00-59), S = integer seconds (00-59) and DD = decimal seconds; decimal seconds are expressed as follows: D = tenths (0-9) and DD = hundredths (00-99)

GS-06
28
Group Control Number
Required
Numeric (N0)
Min 1Max 9

Assigned number originated and maintained by the sender

GS-07
455
Responsible Agency Code
Required
Identifier (ID)
Min 1Max 2

Code used in conjunction with Data Element 480 to identify the issuer of the standard

T
Transportation Data Coordinating Committee (TDCC)
X
Accredited Standards Committee X12
GS-08
480
Version / Release / Industry Identifier Code
Required
String (AN)

Code indicating the version, release, subrelease, and industry identifier of the EDI standard being used, including the GS and GE segments; if code in DE455 in GS segment is X, then in DE 480 positions 1-3 are the version number; positions 4-6 are the release and subrelease, level of the version; and positions 7-12 are the industry or trade association identifiers (optionally assigned by user); if code in DE455 in GS segment is T, then other formats are allowed

004010
Draft Standards Approved for Publication by ASC X12 Procedures Review Board through October 1997

Heading

ST
010
Heading > ST

Transaction Set Header

RequiredMax use 1

To indicate the start of a transaction set and to assign a control number

Example
ST-01
143
Transaction Set Identifier Code
Required
Identifier (ID)

Code uniquely identifying a Transaction Set

  • The transaction set identifier (ST01) used by the translation routines of the interchange partners to select the appropriate transaction set definition (e.g., 810 selects the Invoice Transaction Set).
810
Invoice
ST-02
329
Transaction Set Control Number
Required
Numeric (N)
Min 4Max 9

Identifying control number that must be unique within the transaction set functional group assigned by the originator for a transaction set

BIG
020
Heading > BIG

Beginning Segment for Invoice

RequiredMax use 1

To indicate the beginning of an invoice transaction set and transmit identifying numbers and dates

Usage notes

NOTE: Starting in Dec 2017, Target will start phasing in a new PO format. The new format removes the 4 digit department number prefix and the purchase order number will be moving from 7 digits to 11 digits. No changes are being made to the location number. During this transition, your company needs to be able to receive both PO formats, as both may be received during transition. The same PO format received from Target will need to be returned on all EDI related documents for that PO to ensure no business interruption.

New PO Format:
12345678909-1234

Sample BIG Segment

---

BIG200103061234567**0123-1234567-1234

NOTE: DSD vendors should add leading zeroes to the PO number to make it 7 digits.

New Purchase Order Number Format:
BIG200103061234567**12345678909-1234

Example
Required
Date (DT)
CCYYMMDD format

Date expressed as CCYYMMDD

  • BIG01 is the invoice issue date.
Usage notes

Invoice issue date.

BIG-02
76
Invoice Number
Required
String (AN)
Min 1Max 22

Identifying number assigned by issuer

Usage notes

Note: Invoice numbers must not be more than 19 characters long. Invoice numbers may contain alphas but no special characters. Alpha characters must be in upper case.

BIG-04
324
Purchase Order Number
Required
String (AN)
Min 1Max 22

Identifying number for Purchase Order assigned by the orderer/purchaser

Usage notes

Send the same number here that was received on the 850 PO in element
BEG03.

The purchase order number will be formatted either as SSSS-PPPPPPP-LLLL (17 characters) or SSSS-PPPPPPP (12 characters).

SSSS = Source code, PPPPPPP = PO number, LLLL = Location ID Code
New Purchase Order Number Format:
12345678901-1234

BIG-07
640
Transaction Type Code
Optional
Identifier (ID)

Code specifying the type of transaction

  • BIG07 is used only to further define the type of invoice when needed.
Usage notes

The "DO" code is required for Drop Ship to Guest Home. N1, N3 and N4 are also required for this situation.

**All other invoices (credit, display, samples, freight only, pallets, etc.) must be on paper and mailed to the appropriate area.

DO
Drop Shipment Invoice
NTE
030
Heading > NTE

Note/Special Instruction

OptionalMax use 100

To transmit information in a free-form format, if necessary, for comment or special instruction

Usage notes

NTECERFree Form Text

Example
NTE-01
363
Note Reference Code
Optional
Identifier (ID)

Code identifying the functional area or purpose for which the note applies

CER
Certification Narrative

Any notes associated with the certification involved

NTE-02
352
Description
Required
String (AN)
Min 1Max 80

A free-form description to clarify the related data elements and their content

REF
050
Heading > REF

Department Number

RequiredMax use 12

To specify identifying information

Usage notes

REFDP023

Example
Variants (all may be used)
REFInternal Vendor NumberREFPromotion/Deal Number
REF-01
128
Reference Identification Qualifier
Required
Identifier (ID)

Code qualifying the Reference Identification

DP
Department Number
REF-02
127
Reference Identification
Required
String (AN)
Min 1Max 3

Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier

Usage notes

DP = Department
Note: Department must be 3 digits. Add leading zero(s) to make 3 digits.

REF
050
Heading > REF

Internal Vendor Number

RequiredMax use 12

To specify identifying information

Usage notes

REFIA1234567

Example
REF-01
128
Reference Identification Qualifier
Required
Identifier (ID)

Code qualifying the Reference Identification

IA
Internal Vendor Number
REF-02
127
Reference Identification
Required
String (AN)
Min 1Max 7

Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier

Usage notes

IA = Vendor Number. Vendor number must be 7 digits. Add leading zeroes to make 7 digits.

REF
050
Heading > REF

Promotion/Deal Number

OptionalMax use 12

To specify identifying information

Usage notes

REFPD9876543210 (Send only if received on the PO)

Example
REF-01
128
Reference Identification Qualifier
Required
Identifier (ID)

Code qualifying the Reference Identification

PD
Promotion/Deal Number
REF-02
127
Reference Identification
Required
String (AN)
Min 1Max 30

Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier

Usage notes

PD = Promotion/Deal Number

N1 Loop
RequiredMax >1
N1
070
Heading > N1 Loop > N1

Name

RequiredMax use 1

To identify a party by type of organization, name, and code

Usage notes

One occurrence of the N1 must be sent, where N101 = BY or BS (Common Predistro).

ST used for Drop Ship to Guest Home or when CAD01 = C.

Sample N1 Segment

---

N1BY**920551
N1BY**921001 (Bill To)
N1ST**929998 (Direct Ship to Guest)
N1BS**923902 (Predistro - packed and marked for store, but shipped to DC)

Example
If either Identification Code Qualifier (N1-03) or Identification Code (N1-04) is present, then the other is required
N1-01
98
Entity Identifier Code
Required
Identifier (ID)

Code identifying an organizational entity, a physical location, property or an individual

BS
Bill and Ship To
BY
Buying Party (Purchaser)
SF
Ship From
ST
Ship To
N1-03
66
Identification Code Qualifier
Optional
Identifier (ID)

Code designating the system/method of code structure used for Identification Code (67)

91
Assigned by Seller or Seller's Agent

Used when N101 = SF.

92
Assigned by Buyer or Buyer's Agent
N1-04
67
Identification Code
Optional
String (AN)
Min 2Max 80

Code identifying a party or other code

  • This segment, used alone, provides the most efficient method of providing organizational identification. To obtain this efficiency the "ID Code" (N104) must provide a key to the table maintained by the transaction processing party.
Usage notes

A list of Target location codes may be found on the Partners Online website

N3
090
Heading > N1 Loop > N3

Address Information

OptionalMax use 2

To specify the location of the named party

Usage notes

Send this segment when the invoice is for a Drop Ship to the Guest's home.

Sample N3 Segment

---

N3*Main St.

Example
N3-01
166
Address Information
Required
String (AN)
Min 1Max 55

Address information

N3-02
166
Address Information
Optional
String (AN)
Min 1Max 55

Address information

N4
100
Heading > N1 Loop > N4

Geographic Location

OptionalMax use 1

To specify the geographic place of the named party

Usage notes

Send this segment when the invoice is for a Drop Ship to the Guest's home.

Send only if sending the N3.

Sample N4 Segment

---

N4HometownMN*55402

Example
N4-01
19
City Name
Optional
String (AN)
Min 2Max 30

Free-form text for city name

  • A combination of either N401 through N404, or N405 and N406 may be adequate to specify a location.
N4-02
156
State or Province Code
Optional
Identifier (ID)
Min 2Max 2

Code (Standard State/Province) as defined by appropriate government agency

  • N402 is required only if city name (N401) is in the U.S. or Canada.
N4-03
116
Postal Code
Optional
Identifier (ID)
Min 3Max 15

Code defining international postal zone code excluding punctuation and blanks (zip code for United States)

N1 Loop end
ITD
130
Heading > ITD

Terms of Sale/Deferred Terms of Sale

RequiredMax use >1

To specify terms of sale

Usage notes

For Target Store only:
ITD012***30 (with no discount, use elements 01, 02 and 07)
ITD
02*2
8**34 (with discount, use elements 01, 02, 03 and 05)

Example
ITD-01
336
Terms Type Code
Required
Identifier (ID)

Code identifying type of payment terms

  • If the code in ITD01 is "04", then ITD07 or ITD09 is required and either ITD10 or ITD11 is required; if the code in ITD01 is "05", then ITD06 or ITD07 is required.
01
Basic
02
End of Month (EOM)

When this code is used, ITD07 should NOT be sent.

14
Previously agreed upon

Not used by Target at this time.

ITD-02
333
Terms Basis Date Code
Required
Identifier (ID)

Code identifying the beginning of the terms period

2
Delivery Date
3
Invoice Date
ITD-03
338
Terms Discount Percent
Optional
Decimal number (R)
Min 1Max 6

Terms discount percentage, expressed as a percent, available to the purchaser if an invoice is paid on or before the Terms Discount Due Date

ITD-05
351
Terms Discount Days Due
Optional
Numeric (N0)
Min 1Max 3

Number of days in the terms discount period by which payment is due if terms discount is earned

ITD-06
446
Terms Net Due Date
Optional
Date (DT)
CCYYMMDD format

Date when total invoice amount becomes due expressed in format CCYYMMDD

ITD-07
386
Terms Net Days
Optional
Numeric (N0)
Min 1Max 3

Number of days until total invoice amount is due (discount not applicable)

ITD-08
362
Terms Discount Amount
Optional
Numeric (N2)
Min 1Max 10

Total amount of terms discount

DTM
140
Heading > DTM

Date/Time Reference

RequiredMax use 10

To specify pertinent dates and times

Usage notes

DTM01120020205

Example
DTM-01
374
Date/Time Qualifier
Required
Identifier (ID)

Code specifying type of date or time, or both date and time

011
Shipped
Required
Date (DT)
CCYYMMDD format

Date expressed as CCYYMMDD

Usage notes

Date Merchandise was shipped.

N9 Loop
OptionalMax >1
N9
240
Heading > N9 Loop > N9

Reference Identification

RequiredMax use 1

To transmit identifying information as specified by the Reference Identification Qualifier

Usage notes

This segment used only when the MSG segment is present.

Sample N9 segment

---

N9ZZPACA

Example
N9-01
128
Reference Identification Qualifier
Required
Identifier (ID)

Code qualifying the Reference Identification

ZZ
Mutually Defined
N9-02
127
Reference Identification
Optional
String (AN)
Min 1Max 30

Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier

Usage notes

PACA

MSG
250
Heading > N9 Loop > MSG

Message Text

RequiredMax use 10

To provide a free-form format that allows the transmission of text information

Usage notes

NOTE: This segment is NOT required by Target. If the N9 loop is included, then this segment must be sent.

The MSG segment is used to send the Perishable Agricultural Commodities Act (PACA) "trust statement". One MSG segment will be sent for each line of text as follows:

MSGThe perishable agricultural commodities listed on this
MSG
invoice are sold subject to the statutory trust authorized
MSGby Section 5(c) of the Perishable Agricultural Commodities
MSG
Act, 1930 (7 U.S.C. 4993(c)). The seller of these
MSGcommodities retains a trust claim over these commodities,
MSG
all inventories of food or other products derived from
MGSthese commodities, and any receivables or proceeds from
MSG
the sale of these commodities until full payment is
MSG*received.

Example
MSG-01
933
Free-Form Message Text
Required
String (AN)
Min 1Max 264

Free-form message text

Usage notes

MSGThe perishable agricultural commodities listed on this
MSG
invoice are sold subject to the statutory trust authorized
MSGby Section 5(c) of the Perishable Agricultural Commodities
MSG
Act, 1930 (7 U.S.C. 4993(c)). The seller of these
MSGcommodities retains a trust claim over these commodities,
MSG
all inventories of food or other products derived from
MGSthese commodities, and any receivables or proceeds from
MSG
the sale of these commodities until full payment is
MSG*received.

N9 Loop end
Heading end

Detail

IT1 Loop
RequiredMax >1
IT1
010
Detail > IT1 Loop > IT1

Baseline Item Data (Invoice)

RequiredMax use 1

To specify the basic and most frequently used line item data for the invoice and related transactions

Usage notes

Note: IN will be used as an item identifier for Target in the future. When this item identifier is sent by Target, your system must be capable of sending it back on inbound EDI documents.

Sample IT1 Segment

---

IT150EA1.49CB058020714UP*123456789012

When sending a substitution (must be pre-approved by the Buyer) please follow these instructions:

Send the substitute item info in the IT1 segment. The original item should not be included in the 810.

Example
If either Product/Service ID Qualifier (IT1-10) or Product/Service ID (IT1-11) is present, then the other is required
If either Product/Service ID Qualifier (IT1-08) or Product/Service ID (IT1-09) is present, then the other is required
IT1-01
350
Assigned Identification
Optional
String (AN)
Min 1Max 20

Alphanumeric characters assigned for differentiation within a transaction set

  • IT101 is the purchase order line item identification.
IT1-02
358
Quantity Invoiced
Required
Decimal number (R)
Min 1Max 10

Number of units invoiced (supplier units)

IT1-03
355
Unit or Basis for Measurement Code
Required
Identifier (ID)

Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken

Usage notes

The UOM should match the UOM received on the PO. The value in the ISS02 must be the same as this value.

CA
Case
EA
Each
LB
Pound
IT1-04
212
Unit Price
Required
Decimal number (R)
Min 1Max 15

Price per unit of product, service, commodity, etc.

Usage notes

Target only reads out five places after the decimal point, sending more than 5 places can result in a fatal error.

IT1-06
235
Product/Service ID Qualifier
Required
Identifier (ID)

Code identifying the type/source of the descriptive number used in Product/Service ID (234)

  • IT106 through IT125 provide for ten different product/service IDs for each item. For example: Case, Color, Drawing No., U.P.C. No., ISBN No., Model No., or SKU.
Usage notes

Either a CB or UP or UI or EN must be sent.

CB
Buyer's Catalog Number
EN
European Article Number (EAN) (2-5-5-1)
EO
EAN/UCC - 8
IN
Buyer's Item Number

Target Corporation Item Number (TCIN)

UI
U.P.C. Consumer Package Code (1-5-5)

To be used by direct to store delivery beverage vendors only.

UP
U.P.C. Consumer Package Code (1-5-5-1)
IT1-07
234
Product/Service ID
Required
String (AN)
Min 1Max 48

Identifying number for a product or service

IT1-08
235
Product/Service ID Qualifier
Optional
Identifier (ID)

Code identifying the type/source of the descriptive number used in Product/Service ID (234)

CB
Buyer's Catalog Number
EN
European Article Number (EAN) (2-5-5-1)
EO
EAN/UCC - 8
IN
Buyer's Item Number

Target Corporation Item Number (TCIN)

UI
U.P.C. Consumer Package Code (1-5-5)

To be used by direct to store delivery beverage vendors only.

UP
U.P.C. Consumer Package Code (1-5-5-1)
IT1-09
234
Product/Service ID
Optional
String (AN)
Min 1Max 48

Identifying number for a product or service

IT1-10
235
Product/Service ID Qualifier
Optional
Identifier (ID)

Code identifying the type/source of the descriptive number used in Product/Service ID (234)

CB
Buyer's Catalog Number
EN
European Article Number (EAN) (2-5-5-1)
EO
EAN/UCC - 8
IN
Buyer's Item Number

Target Corporation Item Number (TCIN)

UI
U.P.C. Consumer Package Code (1-5-5)

To be used by direct to store delivery beverage vendors only.

UP
U.P.C. Consumer Package Code (1-5-5-1)
IT1-11
234
Product/Service ID
Optional
String (AN)
Min 1Max 48

Identifying number for a product or service

PID Loop
OptionalMax >1
PID
060
Detail > IT1 Loop > PID Loop > PID

Product/Item Description

RequiredMax use 1

To describe a product or process in coded or free-form format

Usage notes

Description of Item. This helps better define your product. Please send this segment if DPCI/TCIN doesn't fully describe your product.

Sample PID Segment

---

PIDF08***BLUE XL

Example
PID-01
349
Item Description Type
Required
Identifier (ID)

Code indicating the format of a description

  • If PID01 equals "F", then PID05 is used. If PID01 equals "S", then PID04 is used. If PID01 equals "X", then both PID04 and PID05 are used.
F
Free-form
PID-02
750
Product/Process Characteristic Code
Optional
Identifier (ID)

Code identifying the general class of a product or process characteristic

08
Product
PID-05
352
Description
Required
String (AN)
Min 1Max 80

A free-form description to clarify the related data elements and their content

PID Loop end
PO4
100
Detail > IT1 Loop > PO4

Item Physical Details

OptionalMax use 1

To specify the physical qualities, packaging, weights, and dimensions relating to the item

Usage notes

PO412 (no inner packs)
PO4
6*******************4 (inner packs)

Example
Required
Numeric (N0)
Min 1Max 6

The number of inner containers, or number of eaches if there are no inner containers, per outer container

PO4-14
810
Inner Pack
Optional
Numeric (N0)
Min 1Max 6

The number of eaches per inner container

SAC Loop
OptionalMax >1
SAC
180
Detail > IT1 Loop > SAC Loop > SAC

Service, Promotion, Allowance, or Charge Information

RequiredMax use 1

To request or identify a service, promotion, allowance, or charge; to specify the amount or percentage for the service, promotion, allowance, or charge

Usage notes

SACAC310***1542

Example
If either Agency Qualifier Code (SAC-03) or Agency Service, Promotion, Allowance, or Charge Code (SAC-04) is present, then the other is required
If either Allowance/Charge Percent Qualifier (SAC-06) or Percent (SAC-07) is present, then the other is required
If either Unit or Basis for Measurement Code (SAC-09) or Quantity (SAC-10) is present, then the other is required
SAC-01
248
Allowance or Charge Indicator
Required
Identifier (ID)

Code which indicates an allowance or charge for the service specified

  • If SAC01 is "A" or "C", then at least one of SAC05, SAC07, or SAC08 is required.
A
Allowance
C
Charge
SAC-02
1300
Service, Promotion, Allowance, or Charge Code
Required
Identifier (ID)

Code identifying the service, promotion, allowance, or charge

Usage notes

A list of the most common codes.

B950
Damaged Merchandise
C310
Discount
D170
Free Goods
D270
Fuel Surcharge
F800
Promotional Allowance
H000
Special Allowance
H090
Special Handling
H700
Tax - Local Tax
H750
Tax - Sales Tax (State and Local)
SAC-03
559
Agency Qualifier Code
Optional
Identifier (ID)

Code identifying the agency assigning the code values

VI
Voluntary Inter-Industry Commerce Standard (VICS) EDI
SAC-04
1301
Agency Service, Promotion, Allowance, or Charge Code
Optional
String (AN)

Agency maintained code identifying the service, promotion, allowance, or charge

  • SAC04 may be used to uniquely identify the service, promotion, allowance, or charge. In addition, it may be used in conjunction to further the code in SAC02.
HA
Hanger Service
SAC-05
610
Amount
Required
Numeric (N2)
Min 1Max 15

Monetary amount

  • SAC05 is the total amount for the service, promotion, allowance, or charge.
  • If SAC05 is present with SAC07 or SAC08, then SAC05 takes precedence.
Usage notes

Monetary amount must be 10 cents or greater. Anything less than 10 cents will be rejected and will not feed into Target's application system. Two decimal places are implied, do not send a decimal point.

SAC-06
378
Allowance/Charge Percent Qualifier
Optional
Identifier (ID)
Min 1Max 1

Code indicating on what basis allowance or charge percent is calculated

SAC-07
332
Percent
Optional
Decimal number (R)
Min 1Max 6

Percent expressed as a percent

SAC-09
355
Unit or Basis for Measurement Code
Optional
Identifier (ID)

Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken

EA
Each
SAC-10
380
Quantity
Optional
Decimal number (R)
Min 1Max 15

Numeric value of quantity

  • SAC10 and SAC11 is the quantity basis when the allowance or charge quantity is different from the purchase order or invoice quantity.
  • SAC10 and SAC11 used together indicate a quantity range, which could be a dollar amount, that is applicable to service, promotion, allowance, or charge.
  • In some business applications, it is necessary to advise the trading partner of the actual dollar amount that a particular allowance, charge, or promotion was based on to reduce ambiguity. This amount is commonly referred to as "Dollar Basis Amount". It is represented in the SAC segment in SAC10 using the qualifier "DO" - Dollars in SAC09.
Usage notes

When SAC02 = D170, this data element is required and should contain the quantity of free goods. SAC09 should contain the unit of measure of the free goods.

SAC-12
331
Allowance or Charge Method of Handling Code
Optional
Identifier (ID)

Code indicating method of handling for an allowance or charge

02
Off Invoice
06
Charge to be Paid by Customer
SAC-15
352
Description
Optional
String (AN)
Min 1Max 80

A free-form description to clarify the related data elements and their content

SAC Loop end
IT1 Loop end
Detail end

Summary

TDS
010
Summary > TDS

Total Monetary Value Summary

RequiredMax use 1

To specify the total invoice discounts and amounts

Usage notes

2 Decimal places implied - do NOT send a decimal point in the TDS01 or 02

Sample TDS Segment

---

TDS*53000

Example
TDS-01
610
Amount
Required
Numeric (N2)
Min 1Max 15

Monetary amount

  • TDS01 is the total amount of invoice (including charges, less allowances) before terms discount (if discount is applicable).
Usage notes

Total amount of invoice (including charges, less allowances) before terms discount.

TDS-02
610
Amount
Optional
Numeric (N2)
Min 1Max 15

Monetary amount

  • TDS02 indicates the amount upon which the terms discount amount is calculated.
  • TDS02 is required if the dollar value subject to discount is not equal to the dollar value of TDS01.
Usage notes

Total amount of merchandise. If you offer a discount on gross amount before allowances, this field is required. Otherwise it is not needed.

CAD
030
Summary > CAD

Carrier Detail

RequiredMax use 1

To specify transportation details for the transaction

Usage notes

Transportation Method Type

  • Consolidation:
    CAD01 = C
    CAD07 = BM (Bill of Lading #)

  • TL or LTL
    CAD01 = M
    CAD07 = BM (Bill of Lading #)

  • Private Parcel
    CAD01 = U
    CAD07 = CN (Carrier Ref.#)

  • Direct Store Delivery
    CAD01 = P
    CAD07 = CN (Carrier Ref.#)

Sample CAD Segment

---

CADMRDWYBM12345678901234567
CADUUPSN*UPSCN123456
CAD
PSELFCN*123456 (Direct Store Delivery vendors may use "SELF" in the CAD04, if the vendor does not have a SCAC code assigned by the National Freight Traffic Association (NFTA))

Example
If Reference Identification Qualifier (CAD-07) is present, then Reference Identification (CAD-08) is required
CAD-01
91
Transportation Method/Type Code
Required
Identifier (ID)

Code specifying the method or type of transportation for the shipment

C
Consolidation

Used for domestic consolidation

M
Motor (Common Carrier)

Used for larger quantity shipments

P
Private Carrier

Used for Direct Store Delivery (DSD)

U
Private Parcel Service

Used for small package or small quantities. ONLY UPSN or FDEG may use this.

CAD-04
140
Standard Carrier Alpha Code
Required
Identifier (ID)
Min 2Max 4

Standard Carrier Alpha Code

CAD-05
387
Routing
Optional
String (AN)
Min 1Max 35

Free-form description of the routing or requested routing for shipment, or the originating carrier's identity

CAD-07
128
Reference Identification Qualifier
Optional
Identifier (ID)

Code qualifying the Reference Identification

Usage notes

A value is not required in the CAD07 for DSD vendors.

BM
Bill of Lading Number

Required when shipping via motor carrier or consolidation.

CN
Carrier's Reference Number (PRO/Invoice)

Required when shipping parcel package shipments.

CAD-08
127
Reference Identification
Optional
String (AN)
Min 1Max 30

Reference information as defined for a particular Transaction Set or as specified by the Reference Identification Qualifier

Usage notes

A value is not required in the CAD07 for DSD vendors.

SAC Loop
OptionalMax >1
SAC
040
Summary > SAC Loop > SAC

Service, Promotion, Allowance, or Charge Information

RequiredMax use 1

To request or identify a service, promotion, allowance, or charge; to specify the amount or percentage for the service, promotion, allowance, or charge

Usage notes

SACCD2401500*02Freight Charge

Example
If either Agency Qualifier Code (SAC-03) or Agency Service, Promotion, Allowance, or Charge Code (SAC-04) is present, then the other is required
If either Allowance/Charge Percent Qualifier (SAC-06) or Percent (SAC-07) is present, then the other is required
If Quantity (SAC-11) is present, then Quantity (SAC-10) is required
SAC-01
248
Allowance or Charge Indicator
Required
Identifier (ID)

Code which indicates an allowance or charge for the service specified

  • If SAC01 is "A" or "C", then at least one of SAC05, SAC07, or SAC08 is required.
A
Allowance
C
Charge
SAC-02
1300
Service, Promotion, Allowance, or Charge Code
Required
Identifier (ID)

Code identifying the service, promotion, allowance, or charge

B950
Damaged Merchandise
C310
Discount
D170
Free Goods
D270
Fuel Surcharge
F800
Promotional Allowance
H000
Special Allowance
H090
Special Handling
H700
Tax - Local Tax
H750
Tax - Sales Tax (State and Local)
SAC-03
559
Agency Qualifier Code
Optional
Identifier (ID)

Code identifying the agency assigning the code values

VI
Voluntary Inter-Industry Commerce Standard (VICS) EDI
SAC-04
1301
Agency Service, Promotion, Allowance, or Charge Code
Optional
String (AN)

Agency maintained code identifying the service, promotion, allowance, or charge

  • SAC04 may be used to uniquely identify the service, promotion, allowance, or charge. In addition, it may be used in conjunction to further the code in SAC02.
HA
Hanger Service
SAC-05
610
Amount
Required
Numeric (N2)
Min 1Max 15

Monetary amount

  • SAC05 is the total amount for the service, promotion, allowance, or charge.
  • If SAC05 is present with SAC07 or SAC08, then SAC05 takes precedence.
Usage notes

Monetary amount must be 10 cents or greater. Anything less than 10 cents will be rejected and will not feed into Target's application system. Two decimal places are implied, do not send a decimal point.

SAC-06
378
Allowance/Charge Percent Qualifier
Optional
Identifier (ID)

Code indicating on what basis allowance or charge percent is calculated

3
Discount/Gross
SAC-07
332
Percent
Optional
Decimal number (R)
Min 1Max 6

Percent expressed as a percent

SAC-10
380
Quantity
Optional
Decimal number (R)
Min 1Max 15

Numeric value of quantity

  • SAC10 and SAC11 is the quantity basis when the allowance or charge quantity is different from the purchase order or invoice quantity.
  • SAC10 and SAC11 used together indicate a quantity range, which could be a dollar amount, that is applicable to service, promotion, allowance, or charge.
  • In some business applications, it is necessary to advise the trading partner of the actual dollar amount that a particular allowance, charge, or promotion was based on to reduce ambiguity. This amount is commonly referred to as "Dollar Basis Amount". It is represented in the SAC segment in SAC10 using the qualifier "DO" - Dollars in SAC09.
SAC-11
380
Quantity
Optional
Decimal number (R)
Min 1Max 15

Numeric value of quantity

SAC-12
331
Allowance or Charge Method of Handling Code
Optional
Identifier (ID)

Code indicating method of handling for an allowance or charge

02
Off Invoice
06
Charge to be Paid by Customer
SAC-15
352
Description
Required
String (AN)
Min 1Max 80

A free-form description to clarify the related data elements and their content

SAC Loop end
ISS Loop
RequiredMax >1
ISS
060
Summary > ISS Loop > ISS

Invoice Shipment Summary

RequiredMax use 1

To specify summary details of total items shipped in terms of quantity, weight, and volume

Usage notes

Target requires at least one occurrence of the ISS with the total number of eaches, pounds or cases (same UOM as found on the PO). If there are multiple units of measure in the invoice, an ISS should be sent with the total number of each unit of measure.

Sample ISS Segment

---

ISS45EA
ISS60EA3LB

When multiple units of measure occur in the invoice, send multiple ISS segments as in the following example:
ISS40EA
ISS10CA

Only ISS01 & ISS02 are mandatory. ISS03 & ISS04 may be sent.

Example
If either Weight (ISS-03) or Unit or Basis for Measurement Code (ISS-04) is present, then the other is required
ISS-01
382
Number of Units Shipped
Required
Decimal number (R)
Min 1Max 10

Numeric value of units shipped in manufacturer's shipping units for a line item or transaction set

ISS-02
355
Unit or Basis for Measurement Code
Required
Identifier (ID)

Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken

CA
Case
CT
Carton
EA
Each
LB
Pound
ISS-03
81
Weight
Optional
Decimal number (R)
Min 1Max 10

Numeric value of weight

ISS-04
355
Unit or Basis for Measurement Code
Optional
Identifier (ID)

Code specifying the units in which a value is being expressed, or manner in which a measurement has been taken

LB
Pound
ISS Loop end
CTT
070
Summary > CTT

Transaction Totals

RequiredMax use 1

To transmit a hash total for a specific element in the transaction set

  • Number of line items (CTT01) is the accumulation of the number of IT1 segments.
    If used, hash total (CTT02) is the sum of the value of quantities invoiced (IT102) for each IT1 segment.
Usage notes

CTT*25

Example
CTT-01
354
Number of Line Items
Required
Numeric (N0)
Min 1Max 6

Total number of line items in the transaction set

SE
080
Summary > SE

Transaction Set Trailer

RequiredMax use 1

To indicate the end of the transaction set and provide the count of the transmitted segments (including the beginning (ST) and ending (SE) segments)

Example
SE-01
96
Number of Included Segments
Required
Numeric (N0)
Min 1Max 10

Total number of segments included in a transaction set including ST and SE segments

SE-02
329
Transaction Set Control Number
Required
Numeric (N)
Min 4Max 9

Identifying control number that must be unique within the transaction set functional group assigned by the originator for a transaction set

Summary end

Functional Group Trailer

RequiredMax use 1

To indicate the end of a functional group and to provide control information

Example
GE-01
97
Number of Transaction Sets Included
Required
Numeric (N0)
Min 1Max 6

Total number of transaction sets included in the functional group or interchange (transmission) group terminated by the trailer containing this data element

GE-02
28
Group Control Number
Required
Numeric (N0)
Min 1Max 9

Assigned number originated and maintained by the sender

Interchange Control Trailer

RequiredMax use 1

To define the end of an interchange of zero or more functional groups and interchange-related control segments

Example
IEA-01
I16
Number of Included Functional Groups
Required
Numeric (N0)
Min 1Max 5

A count of the number of functional groups included in an interchange

IEA-02
I12
Interchange Control Number
Required
Numeric (N0)
Min 9Max 9

A control number assigned by the interchange sender

EDI Samples

Sample 810

ISA*00* *00* *ZZ*1111991111 *08*1111471111 *230703*0542*U*00401*100000111*0*P*>~
GS*IN*1111991111*1111471111*20230703*0542*1288*X*004010~
ST*810*1288~
BIG*20230702*112233445566**1111-2222222-3333~
REF*IA*1234567~
REF*DP*123~
N1*BY**92*4321~
ITD*01*2*2**65*20230702~
DTM*011*20230702~
IT1*1*6*EA*75.5**CB*111111*UP*222222~
TDS*45300*45300~
CAD*U***ABCD*ABC Carrier**CN*9423784092734~
ISS*6*EA~
CTT*1~
SE*13*1288~
GE*1*1288~
IEA*1*100000111~

Stedi is a registered trademark of Stedi, Inc. All names, logos, and brands of third parties listed on this page are trademarks of their respective owners (including “X12”, which is a trademark of X12 Incorporated). Stedi, Inc. and its products and services are not endorsed by, sponsored by, or affiliated with these third parties. Use of these names, logos, and brands is for identification purposes only, and does not imply any such endorsement, sponsorship, or affiliation.