Skip to content

EDI - Tradacoms Invoice specifications

Updated 

Supplier Actions


Envelope header

SegFieldDescriptionReqData LengthValueNotes
STX
Start of transmissionM



STDS1Syntax rules identifierMan4ANAAAlthough we can accept ANA if no RSG message is being sent

:STDS2VersionMn11

+FROM2Transmission sender's codeMan14
Supplier's ANA number

:FROM2Transmission sender's namen

not used

+UNTO1Transmission recipient codeMan145023949000004JL ANA number

:UNTO2Transmission recipient namen

not used

+TRDT1Date of transmissionMn6
format YYMMDD

:TRDT2Time of transmissonMn6
format HHMMSS

+SNRFSender's transmission ref.Man14
Unique ref. no. for
each transmission from your mailbox

+RCRFRecipient's transmission refMan14Network passord

+APRFApplication refMan14INVTESFor test transmision





INVFILFor live transmission

+PRCDPriority coden

Not used


Invoice Header

SegFieldDescriptionReqData LengthValueNotes
MHD
Message headerM



MSRFMessage refMn12
Message count seq

+TYPE1 TypeMan6 INVFIL

:TYPE2VersionMn19
TYP
Transaction typeM



TCDETransaction codeMn40700

+TTYPTransaction typeMn12INVOICES
SDT
Supplier's detailsM



SIDN1Supplier's IDMn13Supplier's identityANA no. to ID the supplier

:SIDN2Customer's ref for suppliern

Not used

+SNAMSupplier's nameMan40Supplier's nameLegal name as printed on invoices

+SADD1Supplier's address 1O

Optional

:SADD2Supplier's address 2O

Optional

:SADD3Supplier's address 3O

Optional

:SADD4Supplier's address 4O

Optional

:SADD5Supplier's postcodeO

Optional

+VATN1Supplier's VAT numberMn9Your VAT reg. no.Supplier's numeric VAT registration

:VATN2Supplier's VAT no.Man17Your VAT reg. no.Alphanumeric (non-UK)
CDT
Customer DetailsM



CIDN1Customer's IdentityMn135023949000004JL ANA number

:CIDN2Customer's ref for supliern

Not used

+CNAMCustomer's nameO

Optional

+CADDCustomer's addressO

Optional

+VATRCustomer's VAT no.O

Optional


File details

SegFieldDescriptionReqData LengthValueNotes
FIL
File DetailsM



FLGNFile generation no.Mn4
Sequence no. unique to supplier's ANA and this INVFIL doc. We check this no. and will reject any files that are out of sequence.

+FLVNFile versionMn41

+FLDTFile dateMan6Date file createdFormat YYMMDD

+FLIDFile Identificationn

Not used
MTR
Message trailerM



NOSGNo. of segmentsMn10No. of segments in messageIncluding MHD/MTR
MHD
Message HeaderM



MSRFMessage ref.Mn12
Message count sequence

+TYPE1TypeMan6INVOIC

:TYPE2VersionMn19

Customer's location

SegFieldDescriptionReqData LengthValueNotes
CLO
Customer's locationM



CLOC1Cuastomer's EAN locationMn13JL Delivery locationThis field is mandatory

:CLOC2Customer's own locationno.Man17Branch name Or branch no. Can be ommited if location code is sent in CLOC1

:CLOC3Supplier's ID of customer locationn

Not used

+CNAMCustomer's name

Not used

+CADDCustomer's addressn

Not used
IRF
Invoice ReferenceM



INVNInvoice numberMan17Your invoice no.

+IVDTInvoice dateMan6Invoice dateFormat YYMMDD

+TXDTTax dateMan6Tax point dateFormat YYMMDD
DNA






SEQAFirst level seq. no.Mn10


+DNACData narritive coden

Not used

+RTEX1Register code 1Man3
Optional

:RTEX2Registered text 1Man40
Optional

:RTEX3Registered code 2Man3
Optional

:RTEX4Registered text 2Man40
Optional

:RTEX5Registered code 3Man3
Optional

:RTEX6Registered text 3Man40
Optional

:RTEX7Registered code 4Man3022=carriage charges





280= Misc. charges

:RTEX8Registered text 4Man40C= carriage charge (VAT liable)





D= delivery charges





T= RetailEye / Tradeplace

+GNAR1General narrative 1 Man40
General text

:GNAR2General narrative 2Man40
General text

:GNAR3General narrative 3Man40
General text

:GNAR4General narrative 4Man40
General text


Order and Delivery References

SegFieldDescriptionReqData LengthValueNotes
ODD
Order and delivery refsM










SEQAFirst level seq. no.Mn10
Start at 2 and is incremented by 1 for each segment of this type in message

+ORNO1Customer's order numberMan17123456/789JL 6 digit order no. & dept. no.

:ORNO2Supplier's order numberO

Optional

:ORNO3Date placedO

Optional

:ORNO4Date receivedO

Optional

+DELN1Delivery note no.Man17Supplier's del. note no.Delivery note no. as allocated by the supplier

:DELN2Delivey note dateMn6
Date of despatch, format YYMMDD

+NODUNo. of delivery unitsn

Not used

+DEWTDelivery weightsn

Not used

+PODN1Proof of delivery ref. Oan17
Optional

:PODN2Proof of delivery dateOn6
Format YYMMDD

+SCARName of carrierOan40
Optional

+DLOCDespatch locationn

Not used

+TLOC Transshipment locationn

Not used

+JORFJourney ref.n

Not used

+SCRFSpecification no.n

Not used


Invoice Line Details

SegFieldDescriptionReqData LengthValueNotes
ILD
Invoice Line DetailsM



SEQAFirst seq no.Mn10=ODD SEQATakes the same value as in the corresponding order and delivery references segment

+SEQBSecond seq. no.Mn10
Starts at 1 and is successively incremented by 1 for each second level nested sequence of this segment

+SPRO1EAN-13 no.Mn13
EAN13 Traded Unit Code

:SPRO2Supplier's codeMan30
UPC12, EAN8, DUN14 or supplier's code

:SPRO3DUN14 no.On14
Optional

+SACUCustomer's unit codeOn15
Optional

+CPROCustomer's product numberO

Optional

+UNOR1Customer's units in traded unitMn15pack sizeNumber of consumer units making up the supplier's traded unit





1For measured & metred stock

:UNOR2Order measureMn10.3Piece lengthFor measured sq metred stock only

:UNOR3Measure indicatorMan6MIf UNOR2 sent 

+QTY1Invoiced quantityMn15No of traded units invoicedFor measured and sq metred stock, thisis the no. of pieced invoiced

:QTY2Invoice measure totalMn10.3Total piece lengthFor measured & sq metred stock only

:QTY3Measure indicatorMan6MIf QTY1 2 sent. For measured stock only





M2If QTY1 2 sent. For measured stock only

+AUCT1Unit cost priceMn10.4Net line of discount before VATCost of order unit having applied line discount

:AUCT2Measure indicatorMan6
For measured stock

+LEXCExtended line costMn10.4AUCT X
QTY1 X
UNOR2 X
width
For sq metred stock





AUCT X
QTY1 X
UNOR2 X
width
For sq metred stock

+VATCVAT category codeMan1S= Standard rate





Z= Zero value





= Exempt





L= Lower rate

+VATPVAT percentageMn3.3Se.g. 20.00% 

+MIXIMixed VAT indicatorn

Not used

+CRLICredit line indicatorn

Not used

+TDES1Product descriptionMan40
Traded unit description

:TDES2Product descriptionn

Not used

+MSPRSelling-on pricen

Not used

+SRSPStatutory retail selling pricen

Not used

+BUCTUnit cost price before discountMn10.4
Before applying line discount, before VAT

+DSCV Discount valueOn10.4Line discount valueOptional

+DSCPDiscount percentagen

Not used

+SUBA Subsidiary amountn

Not used

+PRNDSpecial price indicatorn

Not used

+IGPIItem group indicatorn

Not used

+CSDICash supplement discount indicatorn

Not used

+TSUPVAT type of supplyn

Not used

+SCRFSpecification/contract referencesn

Not used


Data Narrative

SegFieldDescriptionReqData LengthValueNotes
DNC
Data NarrativeM



SEQAFirst level seq, no.Mn10


+SEQBSecond level seq. no.Mn10


+SEQCThird level seq. no.Mn10


+DNACData narrative coden

Not used

+RTEXRegistered textn

Not used

+GNAR1General narrative oneMan40
General text

+GNAR2General narrative twoMan40
General text

+GNAR3General narrative threeMan40
General text

:GNAR4General narrative fourMan40
General text


VAT Rate Sub-trailer

SegFieldDescriptionReqData LengthValueNotes
STL
VAT rate sub-trailerM

One for each VAT rate used on this invoice

SEQAFirst level seq. no.mn10
Start at 1 and is incremented by 1 for each segment of this type in the message

+VATCVAT categorey codeMan1S= Standard rate





Z=Zero value





X= Exempt





L= Lower rate

+VATPVAT percentageMn3.3
e.g. 20.00%

+NRILNo. of item linesMn10
Number of ILD segs with this VAT category code

+LVLALine sub-total amountMn10.2Sum of LEXCBefore VAT has been applied

+QYDADiscount amount for invoice qtyn

Not used

+VLDADiscount amount for invoice valuen

Not used

+SURASurcharge amountMn10.2
Freight, carriage charges etc

+SSUBSubtotal subsidyn

Not used

+EVLAExtended subtotal amountMn10.2LVLA + SURABefore VAT has been applied

+SEDASubtotal settlement discount amountOn10.2
Optional

+ASDAExtended subtotal amount(after settlement discount)Mn10.2EVLA - SEDA

+VATAVAT amount payableMn10.2EVLA - SEDA

+APSEPayable subtotal amount(before settlement discount)Mn10.2EVLA + VAT rate

+APSIPayable subtotal amount (after settlement discount)Mn10.2ASDA + VATA


Invoice Trailer

SegFieldDescriptionReqData LengthValueNotes
TLR
Invoice Trailer




NSTLNo. of VAT segmentsMn10No. of STL segments

+LVLTLine total amountMn10.2Sum of LVLALine total amount before settlement discount has been applied

+QYDTDiscount amount for invoice quantityn

Not used

+LVDTDiscount amount for invoice filen

Not used

+SURTSurcharge amountMn10.2Sum of SURA

+TSUBSubtotal subsidyn

Not used

+EVLTExtended total amountMn10.2Sun of EVLATotal extended amount before discount has been applied

+SEDTTotal settlement discount amountMn10.2Sum of SEDA

+ASDTExtended total amountMn10.2Sum of ASDATotal amount after settlement discount has been applied

+TVATVAT amount payableMn10.2Sum of VATA

+TPSEPayable total amountMn10.2Sum of APSETotal payable before settlement discount has been applied

+TPSIPayable total amountn10.2Sum of APSITotal payable after settlement discount has been applied


Message Trailer

SegFieldDescriptionReqData LengthValueNotes
MTR
Message TrailerM



NOSGNumber of segmentsMn10
No. of segments in message inc. MHD/MTR


VAT Trailer

SegFieldDescriptionReqData LengthValueNotes
MHD
Message HeaderM



MSRFMessage referenceMn12
Message count seq

+TYPE1TypeMan6VATTLR

:TYPE2Version numberMn19Version of message
VRS
VAT Rate SummaryM

One for each VAT rate used in this file of invoices

SEQAFirst level seq. no.Mn10


+VATCVAT category codeMan1S= Standard rate





Z= Zero value 





X= Exempt 





L= Lower rate

+VATPVAT percentage Mn3.320.00eg 20.00

+VSDEExtended summary amountMn10.2Sum of EVLA

+VSDIExtended summary amount (after discount applied)Mn10.2Sum of ASDA

+VVATVAT amount payableMn10.2Sum of VATA

+VPSEPayable summary amount (before settlement discount)Mn10.2Sum of APSE

+VPSIPayable summary amount (after settlement discount)Mn10.2Sum of APSI
MTR
Message TrailerM



NOSGNo. of segmentsMn10No. of segments in messageIncluding MHD/MTR (-3 for this message)


Invoice Trailer

SegFieldDescriptionReqData LengthValueNotes
MHD
Message headerM



MSRFMessage ref.Mn12
Message count seq

+TYPE1TypeMan6INVTLR

:TYPE2Version Mn19Message version
TOT
Invoice file totalsM



FASEExtended total amountMn10.2Sum of VSDEFile total amount before VAT and settlement discount

+FASE1Extended total amount (after settlement discount)Mn10.2Sum of VSDI

+FVAT VAT amount payable Mn10.2Sum of VVAT

+FPSEPayable total amount (before settlement discount)Mn10.2Sum of VPSEOptional

+FPSIPayable total (after settlement discount)Mn10.2Sum of VPSI

+FTNINo. of invoicesMn10
File total number of invoices
MTR
Message Trailer M



NOSGNo. of segmentsMn10no. of segments in messageIncluding MHD/MTR (=3 for this message)


Reconciliation Message

SegFieldDescriptionReqData LengthValueNotes
MHD
Message HeaderM



MSRFMessage referenceMn12
Message

+TYPE1TypeMan6RSGRSG

:TYPE2VersionMn12
RSG
ReconciliationM



RSGASTX SNRFMan14=SNRF in STXReference no. in STX

+RSGBSTX UNTO reconciliationMan14= UNTO1 in STXJohn Lewis ANA no.
MTR
Message TrailerMn10No. of segments in messageIncluding MHD/MTR (=3 for this message)


End Transmission

SegFieldDescriptionReqData LengthValueNotes
END
End of TransmissionM



NMSTNo. of messagesMn5No. of messages in transmissionNo. of invoices