EDI - EANCOM specifications
Supplier Actions

Interchange Header

SeqElementElement DescriptionReqData LengthExample DataNotes
UNB
Interchange HeaderM



0001Syntax identifierMan4UNOA

:0002Syntax versionMn13

+0004Sender identificationMan35
Supplier's mailbox ANA no.

:0007QualifierMan4ZZ,01,08,12,14Supplier's qualifier

:0008Address for reversen

Not used

+0010Recipient identificationMan355023949000004John Lewis ANA number

:0007QualifierMan414John Lewis qualifier

:0014Routing addressn

Not used

+0017DateMn620130326Format YYMMDD

:0019TimeMn41139Format HHMM

+0020Interchange control ref.Man143408Unique number

+0022PasswordMan14Network password

:0025Qualifiern

Not used

+0026Application ref.Man14INVOIC

+0029Processing priorityn

Not used

+0031Acknowledgment req.n

Not used

+0032Communications agreementn

Not used

+0035Test indicatorn

Not used


Message Header

SegElementElement DescriptionReqData LengthExample DataNotes
UNH
Message HeaderM



0062Message reference numberMan..143652Sequential no. unique to your supplier's ANA no. and this INVOIC doc. We check this no. and will reject any files
which are out of sequence. DE0062 in UNT will have the same value

+0065Message type identifierMan..6INVOICES

:0052Message type version numberMan3DD = draft directory

:0054Message type releaseMan396AVersion

:0051Controlling agencyMan2UN

0057Association assigned codeMan6EAN008Version control number

+0068Common access ref

Not used

+S010Status of the transfern

Not used


Beginning of Message

Note: This segment is used to indicate the type and function of a message and to transmit the identifying number.

SegElementElement DescriptionReqData LengthExample DataNotes
BGMC002Beginning of MessageM



1001Document message nameMan3380= Commercial Invoice





384= Corrected Invoice

:1131Code list qualifiern

Not used

:3055Code list agencyn

Not used

:1000Doc / message namen

Not used

+1004Doc / message no.Man35Your invoice numberInvoice no. assigned by document sender

+1225Message function Man3 9= Original





7= Duplicate





43= Additional

+4343Response typen

Not used


Date/Time Period

Note: This segment is used to specify the date or period of the invoice. It may also be used to specify the date on which the goods were despatched, delivered or received.

SegElementElement DescriptionReqData LengthExampleNotes
DTM
Date/ Time periodM



2005Date/ Time period qualifierMan320130331137 = document date/time






325 = tax date






11 = despatch time






35 = delivery date/time






50 = recipient date/time

:2380Date timeMan35


:2379Date/time format qualifierMan3
102 = CCYYMMDD






203 = CCYYMMDDHHMM


Additional Information

Note: This segment is used to specify any special conditions which apply to the goods being invoiced. The country of origin of all the products ( if it is the same) may be specified here in the header section.

SegElementElement DescriptionReqData LengthExample DataNotes
ALI
Additional informationM

For non-UK invoices. Used to specify any special conditions which may apply to the goods being invoiced.

3239Country of originMan3ALI+GBIDO3103166 country code two alpha country code

+9213Type of dutyn

Not used

+4183Special conditionsn

Not used


Free Text

Note: This segment is used to provider free form or coded text information which applies to the complete invoice message.

SegElementElement DescriptionReqData LengthExample DataNotes
FTX
Free TextM



4451Text subject qualifierMan3PUR= Purchasing information

+4453Text functionn

Not used

+C107Text referencen

Not used

+4440Free textOan70Free textNarrative - up to 28 characters, optional

:4440Free textOan70Free textNarrative - up to 28 characters, all :4440 fields are optional narrative fields

+3453LanguageOan3
ISO 639 two alpha code


Reference

Note: This segment is used to specify references which relate to the whole invoice, for example Purchase Order Numbers, Delivery Numbers, etc.

SegElementElement DescritpionReqData LengthExample Data Notes
RFF
ReferenceM



1153Reference qualifierMan3ON=JL order number. You must send this seg. Any messages without a valid 6 digit number are rejected.





ALL= Invoice batch number. Must match the TAXCON batch sent with the invoice





DQ= Delivery note number, optional

:1154Ref. numberMan356 digit order numberJL order number

:1156Line numbern

Not used

:4000Ref. versionn

Not used


Name & Address

Note: This segment is used to identity the Trading Parties involved in the invoice process - Identification of the Buyer and Supplier of goods and services in mandatory in the invoice.

SegElementElement DescriptionReqData LengthExample DataNotes
NAD
Name & addressM



3035Party qualifierMan35023949000004BY = Buyer. JL ANA no. - always sent






SR = Supplier's agent. OPD only - overseas suppliers etc





1234567891231SU = Supplier. Supplier's ANA no.





1234567891231DP = Delivery party






VN = Supplier's ANA no. Optional, not sent if SU used

+3039Party identifierMan35
ANA number for party specified in 3035

:1131Code list qualifiern

Not used

:3035Code list agencyMan39=EAN

+C058Name & address freeformn

Not used

+3036Party nameMan35Name

:3036Party namen



:3036Party namen

Not used

:3036Party namen

Not used

:3036Party namen

Not used

:3045Party name formatn

Not used

+C059Streetn

Not used

+3164City namen

Not used

+3229Countryn

Not used

+3251Postcoden

Not used


Reference

SegElementElement DescriptionReqData LengthExample DataNotes
RFF
ReferenceM

Mandatory for all UK suppliers paying VAT and for non-UK suppliers

1153Reference qualifierMan3VA= VAT reg. no.

:1154Reference no.Man35VAT re. no.Supplier's VAT reg

:1156Line numbern

Not used

:4000Reference versionn

Not used


Contact information

SegElementElement DescriptionReqData LengthExample DataNotes
CTA
Contact informationO

Optional

3139Contact functionOan3AD=Accounts contact





AP= Accounts payable





AR= Accounts receivable

+3413Employee identificationn

Not used

:3412Employeenan35
Not used
COM
Communication contactO

Optional

3148Communication numberOan512
Tel or fax number

:3155Communication channelOan3EM= Email





FX= Fax





TE= Telephone


Currency

Notes:  This segment is used to specify currency information for the complete invoice.

SegElementElement DescriptionReqData LengthExample DataNotes
CUX
CurrencyM

Optional

6347Currency detail qualifierMan3CUX+22 = Reference currency

:6345CurrencyMan3GBPISO4217 currency code

:6343Currency qualifierMan34= invoicing currency

:6348Currency raten

Not used

+C504Currency details 2n

Not used

+5402Rate of exchangen

Not used

+6341Currency market exchangen

Not used


Payment Terms

SegElementElement DescriptionReqData LengthExample DataNotes
PAT
Payment Terms


Mandatory for all non-UK invoices. Not used for nUK invoices

4279Payment terms type qualifierMan31= Basic

+4277Terms of payment IDMan1722= Discount

:1131Code list qualifiern

Not used

:3055Code list agencyn

Not used

:4276Terms of payment text 1Man35


:4276Terms of payment text 2Man35


+2475Payment terms refMan35= invoice date

:2009Time relationNan33= after reference

:2151Type of periodMan3D= Day





M= Month

:2152No of periodsMn3
Number of periods for payment


Date/Time Period

Notes: This segment is used to specify any dates associated with the payment terms for the invoice.

SegElementElement DescriptionReqData lengthExample DataNotes
DTM
Date / Time periodM



2005Date / time period qualifierMan37= Effective date/time

:2380Date / timeMan35


:2379Date / time format qualifierMan3102=CCYYMMDD


Monetary Amount

Note: This segment is used to specify monetary values which will be allowed or charged if the Invoices pays (does not pay) to terms.

SegElementElement DescriptionReqData LengthExample DataNotes
MOA
Monetary Amount


Settlement discount before VAT - Optional

5025Monetary amount qualifierMan321= cash discount

:5004Monetary amountMn18


:6345Currencyn

Not used

:6343Currency qualifiern

Not used

:4005Satusn

Not used


Transport Details

Note: This segment is used to specify transport services provided for the delivery of the invoiced line items, such as express transport services.

SegElementElement DescriptionReqData LengthExample DataNotes
TDT
Transport details


Mandatory for non-UK suppliers. This segment is used to specify transport services provided for the delivery of the invoice line items, such as express transport service.

8051Transport stagean320= Main carriage

+8028Reference numberM



C220

+8067

Mode of transport codedMan310 =Maritime





20= Rail





30= Road





40= Air

:8066Mode of transportn

Not used

C228

+8179

Transport meansC

23

25

31

= Rails

= Rail express

= Truck


+C400Carriern

Not used

+C401Excess transportn

Not used

+C222Transport IDn

Not used

+8281Transport ownershipn

Not used


Terms of Delivery

Note: This segment is used to specify the terms of delivery for the complete invoice. When specifying terms of delivery it is required in EANCOM to use incoterms.

SegElementElement DescriptionReqData LengthExample DataNotes
TOD
Terms of delivery


Mandatory for non-UK
suppliers. This segment is used to specify the terms of delivery for the complete invoice.

4055Terms of delivery functionMan36= Delivery condition

+4215Method of paymentM



+4043Terms of deliveryMan3
Use INCOTERMS 1990

:1131Code list qualifern

Not used

:3055Code list agencyn

Not used

:4052Terms of deliveryn

Not used

:4052Terms of deliveryn

Not used


Allowance or Charge

Note: This segment is used to indicate any Allowances or Charges to the total invoice, e. g. packaging costs.

SegElementElement DescriptionReqData LengthExample DataNotes
ALC
Allowance or chargeM

Sent to add a surcharge/carriage ti the cost of goods on the order

5463Allowance qualifierMan3C= Charge / carriage

+C552Allowance informationn

Not used

+4471Settlement codedM
6Charged to be paid by customer

+1227Calculation sequencen

Not used

+7161Special services codesMan3FC= Freight charge/carriage





HD= Handling





IN= Insurance

:1131Code list qualifiern

Not used

:3055Code list agencyn

Not used

:7160Sepcial servicen

Not used

:7160Special servicen

Not used
MOA
Monetary Amount


Surcharge/carriage before VAT

5025Monetary amount qualifierMan323= charge amount

:5004Monetary amountMn18
Not used

:6345Currencyn

Not used

:6345Currency qualifiern

Not used

:4405Statusn

Not used


Line Details

Note: This segment is used to indicate the beginning of the details sections of the Invoice message. The detail section is formed by a repeating group of segments, always starting with a LIN segment.

SegElementElement DescriptionReqData LengthExample DataNotes
LIN
Line ItemM



1082Line item numberMn6
Invoice line item number from PO

+1229Action requestn



+7140Item numberMan35
EAN8, UPC12 or EAN13 code. Must be the same item number sent by JL on EDI order

:7143Item number typeMan3EN=EAN





UP= UPC12

:1131Code list qualifiern

Not used

:3055Code list agencyn

Not used

+C829Sub line infoN

Not used

+1222Configuration leveln

Not used

+7083Configurationn

Not used


Additional Product ID

Notes: This segment is used to specify additional or substitutional item identification codes such as buyer’s or supplier’s item number.

SegElementElement DescriptionReqData LengthExample DataNotes
PIA
Additional Product IDM



4347Prodict ID functionMan35= Product information





1= Additional info -commodity group for EC Intrastats imports. Supplemental ID
which provides more
info complementary
to the main global trade no. (provided in LIN segment) e.g. a batch no., promo
variant no., product group no.

+7140Item numberMan35Supplier's item numberIf not EAN/UPC. If 5 sent in 4374





EC Intrastats commodity groupIf 1 sent in 4374

:7143Item number typeMan3SA= Supplier's article number





HS= Harmonised system





CG= EC Intrastats

:1131Code list qulifiern

Not used

:3055Code list agencyn

Not used

+C212Item number IDn

Not used

+C212Item number ID


Not used

+C212Item number ID


Not used

+C212
Item number ID


Not used


Item Description

SegElementElement DescriptionReqData LengthExample DataNotes
IMD
Item DescriptionM



7077Item description typeMan3
Must be A, E or F (free-form text)

:7081item characteristicn

Not used

+7009Item description coden

Not used

:1131Code list qualifiern

Not used

:3055Code list agencyn

Not used

:7008Item descriptionn

Not used

:3453Languagen

Not used

+7383Surface/layer indicatorn

Not used


Measurements

SegElementElement DescriptionReqData LengthExample DataNotes
MEA
Measurements


For measured sq metre stock only

6311Measurement qualifierMan3PD= Physical dimensions

+6313Measurement qualifierMan3LN= Length





WD= Width - sq metred only

:6321Measurement significancen

Not used

:6155Measurement attribute, codedn

Not used

:6154Measurement attributen

Not used

+6411Meaure unit qualifierMan3MTR= Metre

:6314Measurement valueMn18Piece lengthMeasured & sq metred stock. Up to 3 decimal places





Piece widthFor sq metred stock. Up to 3 decimal places

:6162Range minuimumn

Not used

:6152Range maximumn

Not used

:6432Significant digitsn

Not used

+7383Surface/layer indicatorn

Not used


Quantity

SegElementElement DescriptionReqData LengthExample DataNotes
QTY
Quantity




6063Quantity qualifierMan347= Invoice quantity - no. of traded units





59= Pack size - no. of consumer units in traded unit

:6060QuantityMn15


:6411Measure unit qualifierMan3MTR= Metres. Measured& sq metre stock only





MTK= Sq metres. For measured & sq metred stock only


Free Text

Note: This segment is used to provide free form or coded text information that applies to the complete invoice message.

SegElementElement DescriptionReqData LengthExample DataNotes
FTX
Free TextM



4451Text subject qualifierMan3PUR= Purchasing information

+4453Text functionn

not used

+C107Text ref.n

not used

+4440Free textOan70Free textNarrative (up to 28 characters, optional).

:4440Free textOan70Free textNarrative (up to 28 characters, optional).

:4440Free textOan70Free textNarrative (up to 28 characters, optional).

:4440Free textOan70Free textNarrative (up to 28 characters, optional).

:4440Free textOan70Free textNarrative (up to 28 characters, optional).

+3453Languagen

Not used


Monetary Amount

SegElementElement descriptionReqData lengthExample dateNotes
MOA
Monetary AmountM



5025Monetar amount qualifierMan366= goods item total





203= Line item amount. (If 66 is
also sent, 203 will take preference.)

:5004Monetary amountMn18


:6345Currencyn

Not used

:6343Currency qualifiern

Not used

:4405Statusn

Not used


Price

SegElementElement descriptionReqData lengthExample dataNotes
PRI
PriceM



5125Price qualifierMan3AAA-Traded unit price of net line of discounts





AAB- Price gross of line discounts

:5118PriceMn15
Up to 4 decimal points

:5375Price typen

Not used

:5387Price type qualifiern

Not used

:5284Unit price basisn

Not used

:6411Measure unit qualifierMan3MTR=Per metre. For measured and sq-metred stock only





MTK=Per sq-metre. For measured and sq-metred stock only.

+5213Sub-line pricen

Not used


Reference

SegElementElement descriptionReqData LengthExample dataNotes
RFF
ReferenceM

Each line must have an RFF segment with the line number.

1153Reference qualifierMan3ON or LI= Order and line number

:1154Reference numberMan35Order number

:1156Line numberMan6Line number

:4000Reference versionn

Not used


Tax

SegElementElement descriptionReqData LengthExample dataNotes
TAX
Tax


If a product has more than one VAT rate, then two of these segments may be
sent.

5283Tax qualifierMan37= Tax

+5153Tax type codedMan3VATValue Added Tax

:1131Code list qualifiern

Not used

:3055Code list agencyn

Not used

:5152Tax typen

Not used

+C533Tax account detailsn

Not used

+5286Tax assesment basisn

Not used

+5279Tax rate IDn

Not used

:1131 Code list qualifiern

Not used

:3055Code list agencyn

Not used

:5278Tax rateMan17 17.50 
In format nn.nn%

:5273Tax rate basis identificationn

Not used

:1131Code list qualifiern

Not used

:3055Code list agencyn

Not used

+5305Tax category coded Man3Z





L= lower rate





E= exempt





A= mixed rate





S= standard rate tax

+3446Tax identificationn

not used


Allowance or Charge

SegElementElement descriptionReqData legthExample dataNotes
ALC
Allowance or charge


This segment should be sent if there are any line
discounts on this invoice.

5463Allowance qualifierMan3A= Allowance

+C552Allowance informationn

Not used

+4471Settlementn

Not used

+1227 Calculation sequenceMan31= First step





2= Second step

+7161Special services codedMan3TD= Trade discount





QD=Quantity discount

:1131Code list qualifiern

Not used

:3055Code list agencyn

Not used

:7160Special servicen

Not used

:7160Special servicen

Not used


Monetary amount

SegElementDescriptionReqData lengthExample dataNotes
MOA
Monetary AmountM

This segment is the discount value for the line allowance in the previous ALC segment.

5025Monetary amount qualifierMan3204= Allowance amount

:5004Monetary amountMn18


:6345Currencyn

Not used

:6343Currency qualifiern

Not used

:4405Statusn

Not used


Section Control

SegElementElement DescriptionReqData lengthExample dataNotes
UNS
Section control




0081Section identificationMa1S= detail / summary separation
CNT
Control total




6069Control qualifierMan32= No. of line items in message. must always be sent





29= Total net weight of the consignment. Must be sent for non-uk EC suppliers





10consignments no. of deliveries. Must be sent ffor non UK EC suppliers





11No. of packages. Must be sent ffor non UK EC suppliers





15 or 26= cube or total measure of the consignment. Must be sent ffor non UK EC suppliers

:6066Control valueMn18 Count of LIN items, or measure value

:6411Measure unit qualifierM
KGM= Kilogram. For type 15,26 or 29





MTR= Meters. For type 15,26 or 29





MTK= Sq meters. For type 15,26 or 29





MTQ= Cubic meters. For type 15,26 or 29





TNE= Metric ton. For type 15,26 or 29


Monetary amount

SegElementElement DescriptionReqData LengthExample DataNotes
MOA
Monetary amountM



5025Monetary amount qualifierMan386 or 9 or 39 or 77= Total monetary amount (ie including surcharges settlement discount and VAT) Mandatory for all invoices



M
124 or 176= Total VAT (send 0 for goods coming from outside UK) Mandatory for all invoices



M
129 = Goods inc surcharge (ie inc surcharges but before settlement discount and VAT) Mandatory for all invoices



M
125=Taxable amount (ie inc surcharges and settlement discount but before VAT). Mandatory for all invoices.



M
79= Total line items amount (ie goods excluding surcharges settlement discount and VAT

:5004Monetary amountMn18


:6345Currency Man3GBP

:6343Currency qualifiern

Not used

:4405Statusn

Not used


Tax

SegElementElement descriptionReqData lengthExample dataNotes
TAX
Tax


This is mandatory on all
invoices from UK suppliers who pay VAT.

5283Tax qualifierMan3= Tax

+5153Tax type codedMan3VAT=Value added tax

:1131Code list qualifiern

Not used

:3055Code list agencyn

Not used

:5152Tax typen

Not used

+C533Tax account detailsn

Not used

+5286Tax assesment basisn

Not used

+5279Tax rate identificationn

Not used

:1131Code list qualifiern

Not used

:3055Code list agencyn

Not used

:5278Tax rateMan1720.00In format nn.nn%

:5273Tax rate basis identificationn

Not used

:1131Code list qualifiern

Not used

:3055Code list agencyn

Not used

+5305Tax category, codedMan3Z= Zero rated tax





L= lower rate





E= Exempt





A= Mixed rate





S= Standard rate tax

+3446Tax identificationn

Not used


Monetary Amount

SegElementElement DesciptionReqData LengthExample dataNotes
MOA
Monetary amountM



5025Monetary amount qualifierMan3124 or 176= Total VAT/ mandatory for all invoices from UK suppliers who pay VAT.



M
125= Taxable amount (ie inc surcharges and settlement discount, but before VAT). Mandatory for all invoices from UK suppliers who pay VAT

:5004Monetary amountMn18


:6345 CurrencyMan3GBP

:6343Currency qualifiern

Not used

:4405Statusn

Not used


Message Trailer

SegElementElement DescriptionReqData lengthExample dataNotes
UNT
Message trailer




0074Number of segmentsMn6
Number of segments in a message

+0062Message ref. numberMan14
=UNH segment
UNZ
Interchange trailerM



0036Interchange control countMn6
Number of messages in interchange

+0200Interchange control refMan14
=UNB segment