INVOIC: Invoice Details
The INVOIC message is part of the TRADACOMS Invoice file: invoices from supplier to customer.
The Invoice file contains: INVFIL → INVOIC → VATTLR → INVTLR.
Message structure
| Segment | Name | Usage |
|---|---|---|
MHD | Message Header | One message for each invoice |
CLO | Customer's Location | |
IRF | Invoice References | |
PYT | Settlement Terms | Repeatable |
DNA | Data Narrative | Repeat if necessary at invoice level |
ODD | Order and Delivery References | Repeat for each order in a multiple order invoice |
ILD | Invoice Line Details | Repeat for each item |
CIA | Complex Invoice Line Adjustments | Repeat for each adjustment |
DNC | Data Narrative | Repeat if necessary at line level |
STL | VAT Rate Invoice Sub Trailer | Repeat for each VAT rate in this message |
TLR | Invoice Trailer | |
MTR | Message Trailer |
Segments and data elements
| Element | Name | M/C | F/V | Format | Notes |
|---|---|---|---|---|---|
MSRF | Message Reference | M | V | 9(12) | Consecutive count of messages within the transmission |
TYPE | Type of Message composite | M | 'INVOIC' '9' for this version | ||
| Type | M | F | X(6) | ||
| Version Number | M | F | 9(1) |
| Element | Name | M/C | F/V | Format | Notes |
|---|---|---|---|---|---|
CLOC | Customer's Location composite | M | One of the following three customer's references must be present EAN location number identifying the customer's location Customer's own identity for the location to which the goods ordered are to be/have been delivered Supplier's reference for the customer's location | ||
| Customer's EAN Location Number | C | F | 9(13) | ||
| Customer's Own Location Code | C | V | X(17) | ||
| Supplier's Identification of Customer's Location | C | V | X(17) | ||
CNAM | Customer's name | C | V | X(40) | Customer's registered legal name |
CADD | Customer's address composite | C | A maximum of five lines to give the customer's address | ||
| Customer's address line 1 | C | V | X(35) | ||
| Customer's address line 2 | C | V | X(35) | ||
| Customer's address line 3 | C | V | X(35) | ||
| Customer's address line 4 | C | V | X(35) | ||
| Customer's Post Code | C | V | X(8) |
| Element | Name | M/C | F/V | Format | Notes |
|---|---|---|---|---|---|
INVN | Invoice Number | M | V | X(17) | As allocated by the supplier |
IVDT | Date of Invoice | M | F | 9(6) | Format: YYMMDD |
TXDT | Tax-point Date | M | F | 9(6) | Format: YYMMDD (May be the same as the date of invoice) |
| Element | Name | M/C | F/V | Format | Notes |
|---|---|---|---|---|---|
SEQA | First Level Sequence Number | M | V | 9(10) | Sequence number. Starts at 1 and increases for each occurrence of the PYT segment |
PAYT | Terms of Payment | C | V | X(40) | Textual description of the settlement terms |
PAYD | Payment Date and Terms composite | C | Settlement terms agreed between the buyer and seller, expressed in terms of payment due date and percentage Date that payment should be made available to the payee to obtain the specified discount Percentage discount applicable | ||
| Payment Date | M | F | 9(6) | ||
| Settlement Discount Percentage | M | V | 9(3)V9(3) | ||
PAYY | Settlement Terms composite | C | Settlement terms described using calendar days after a reference date and/or code Days until payment is due is defined as the number of calendar days after a reference date, commonly the date of invoice, that the payment is to be made available to the payee Percentage discount applicable Code for settlement terms. User defined | ||
| Number of days | M | V | 9(3) | ||
| Settlement Discount Percentage | C | V | 9(3)V9(3) | ||
| Settlement Code | C | V | X(3) |
| Element | Name | M/C | F/V | Format | Notes |
|---|---|---|---|---|---|
SEQA | First Level Sequence Number | M | V | 9(10) | Starts at 1 and is incremented by 1 for each 1st level repeat |
DNAC | Data Narrative Code composite | C | Standard data narrative previously defined and agreed by sender and receiver Number of relevant Code List Code Value from Code List · code list 22 | ||
| Code Table Number | C | V | 9(4) | ||
| Code Value | C | V | X(3) | ||
RTEX | Registered Text composite | C | Essential text, where not provided for by specific fields may be communicated using this element. Application codes to define the function of the text must be registered with ANA prior to use. The same application code may be repeated up to four times, or up to four different codes may be used · code list 24 | ||
| First Registered Application Code | C | V | X(3) | ||
| Application Text | C | V | X(40) | ||
| Second Registered Application Code | C | V | X(3) | ||
| Application Text | C | V | X(40) | ||
| Third Registered Application Code | C | V | X(3) | ||
| Application Text | C | V | X(40) | ||
| Fourth Registered Application Code | C | V | X(3) | ||
| Application Text | C | V | X(40) | ||
GNAR | General Narrative composite | C | Narrative covering information which cannot be sent in a coded form ie RTEX/DNAC. This is likely to preclude automatic processing | ||
| General Narrative Line 1 | C | V | X(40) | ||
| General Narrative Line 2 | C | V | X(40) | ||
| General Narrative Line 3 | C | V | X(40) | ||
| General Narrative Line 4 | C | V | X(40) |
| Element | Name | M/C | F/V | Format | Notes |
|---|---|---|---|---|---|
SEQA | First Level Sequence Number | M | V | 9(10) | Starts at 1 and is incremented by 1 for each segment of this type in this message |
ORNO | Order Number and Date composite | M | As allocated by the customer to identify the order As allocated by the supplier when processing orders on behalf of the customer File date can be issued instead if customer and supplier agree. Format YYMMDD Format YYMMDD | ||
| Customer's Order Number | C | V | X(17) | ||
| Supplier's Order Number | C | V | X(17) | ||
| Date Order Placed by Customer | C | F | 9(6) | ||
| Date Order Received by Supplier | C | F | 9(6) | ||
DELN | Delivery Note Details composite | M | Delivery note number as allocated by the supplier Date of despatch where appropriate. YYMMDD | ||
| Delivery Note Number | C | V | X(17) | ||
| Date of Document | C | F | 9(6) | ||
NODU | Number of Delivery or Uplift Units ?? | C | V | 9(15) | Number of cases, cartons, packages etc. transported |
DEWT | Delivery Weights composite | C | In kilos In kilos | ||
| Vehicle Tare Weight | C | V | 9(10)V9(3) | ||
| Total Goods Weight | C | V | 9(10)V9(3) | ||
PODN | Proof of Delivery Details composite | C | Customer's proof of delivery reference. Delivery vehicle Reg. No. may be used Format: YYMMDD | ||
| Proof of Delivery Number | C | V | X(17) | ||
| Date Goods Delivered to Customer | C | F | 9(6) | ||
SCAR | Name of Carrier | C | V | X(40) | If known to supplier |
DLOC | Despatch Location composite | C | Code for location from which goods were despatched EAN location number for the despatch location Supplier's own code for the despatch location | ||
| Supplier's Despatch EAN Location Number | C | F | 9(13) | ||
| Supplier's Own Location Code | C | V | X(17) | ||
TLOC | Trans-shipment Location composite | C | Secondary or trans-shipment location EAN location number for the trans-shipment location Supplier's own code for the location | ||
| Supplier's EAN Location Number | C | F | 9(13) | ||
| Supplier's Own Location Code | C | V | X(17) | ||
JORF | Journey Reference | C | V | X(17) | Reference number for journey |
SCRF | Specification/Contract References composite | C | Specification No. to which order relates Contract No. to which order relates | ||
| Specification Number | C | V | X(17) | ||
| Contract Number | C | V | X(17) |
| Element | Name | M/C | F/V | Format | Notes |
|---|---|---|---|---|---|
SEQA | First Level Sequence Number | M | V | 9(10) | Takes the same value as in the corresponding order and delivery references segment |
SEQB | Second Level Sequence Number | M | V | 9(10) | Starts at 1 and is successively incremented by 1 for each second-level nested sequence of this segment |
SPRO | Supplier's Product Number composite | M | Either the EAN traded unit code or the supplier's code must be quoted, otherwise special arrangements need to be negotiated EAN article number allocated to the unit of trade Supplier's internal reference (non-EAN) identifying the traded unit Code for the traded unit allocated under the alternative (DUN-14) EAN system | ||
| EAN-13 Article Number for Traded Unit | C | F | 9(13) | ||
| Supplier's Code for Traded Unit | C | V | X(30) | ||
| DUN-14 Code for Traded Unit | C | F | 9(14) | ||
SACU | Supplier's EAN Number for the Designated Consumer Unit | C | F | 9(13) | EAN number allocated to the retail (POS) unit. (Insert five leading zeros before eight digit codes) |
CPRO | Customer's Product Number composite | C | Can be used for 'own label' items allocated an in-store number in a general format. EAN prefix - 2 dig: customer's number - 5 dig: consumer unit number - 8 dig Customer's internal reference for the item, non-EAN format | ||
| Customer's Own Brand EAN Number | C | F | 9(15) | ||
| Customer's Item Code | C | V | X(30) | ||
UNOR | Unit of Ordering composite | C | At least one of the following sub-elements must be quoted. Measure Indicator must be quoted if the Ordering Measure is used Number of consumer units making up the supplier's traded unit Required when an item is ordered as a multiple of a defined measure Abbreviation for the ordering measure, see Code List 4. Mandatory if Ordering Measure used | ||
| Consumer Units in Traded Unit | C | V | 9(15) | ||
| Ordering Measure | C | V | 9(10)V9(3) | ||
| Measure Indicator | C | V | X(6) | ||
QTYI | Quantity Invoiced composite | M | At least one of the following sub-elements must be quoted. If the Total Measure Invoiced is quoted the Measure Indicator must be quoted too Number of supplier's traded units invoiced Total invoiced volume, size etc required when invoicing variable measure items Abbreviation for the ordering measure, see Code List 4. Mandatory if Ordering Measure used | ||
| Number of Traded Units Invoiced | C | V | 9(15) | ||
| Total Measure Invoiced | C | V | 9(10)V9(3) | ||
| Measure Indicator | C | V | X(6) | ||
AUCT | Unit Cost Price (excluding VAT) composite | M | Cost of order unit having applied line discount. In pounds Abbreviation for the measure. Mandatory for variable measure items. See Code List 4 | ||
| Cost Price (excluding VAT) | M | V | 9(10)V9(4) | ||
| Measure Indicator | C | V | X(6) | ||
LEXC | Extended Line Cost (excluding VAT) | M | V | 9(10)V9(4) | Having applied line discounts. In pounds. LEXC = AUCT X QTYI |
VATC | VAT Rate Category Code | M | F | X(1) | Code Values List 12 · code list 12 |
VATP | VAT Rate Percentage | M | V | 9(3)V9(3) | Percentage rate for VAT Category Code |
MIXI | Mixed VAT Rate Product Indicator | C | F | 9(1) | Value zero for the invoice item line for a composite product with component groups with different VAT rate codes. Starts at 1 and is incremented by 1 for each following invoice item line for the component groups |
CRLI | Credit Line Indicator | C | V | X(4) | Code Values List 9 · code list 9 |
TDES | Traded Unit Description composite | C | Full description of the item being traded. Consistent with Product Information data and any labels or packaging | ||
| Traded Unit Description Line 1 | C | V | X(40) | ||
| Traded Unit Description Line 2 | C | V | X(40) | ||
MSPR | Selling On Price composite | C | In pounds Price marked on unit. In pounds In pounds | ||
| Manufacturer's Recommended Selling Price | C | V | 9(10)V9(4) | ||
| Marked Price | C | V | 9(10)V9(4) | ||
| Split Pack Price | C | V | 9(10)V9(4) | ||
SRSP | Statutory Retail Selling Price (including VAT) | C | V | 9(10)V9(4) | Required for items such as drugs which must be sold at a regular price. In pounds |
BUCT | Unit Cost Price (excluding VAT) before discount | C | V | 9(10)V9(4) | Cost of order unit before applying line discount. In pounds |
DSCV | Discount Value | C | V | 9(10)V9(4) | Line discount value. In pounds |
DSCP | Discount Percentage | C | V | 9(3)V9(3) | Line item discount percentage |
SUBA | Subsidy Amount | C | V | 9(10)V9(4) | Subsidy value for this line |
PIND | Special Price Indicator | C | V | X(4) | Code Values List 5 · code list 5 |
IGPI | Item Group Identifier | C | V | X(4) | Code Values List 10 · code list 10 |
CSDI | Cash Settlement Discount Identifier | C | F | X(1) | Code Values List 11 · code list 11 |
TSUP | VAT - Type of Supply | C | F | X(1) | Code as defined by H M Customs & Excise. Mandatory unless code is A (ordinary sale), in which case this element is omitted. Code Values List 14 · code list 14 |
SCRF | Specification/Contract References composite | C | Specification No. to which invoice line relates Contract No. to which invoice line relates | ||
| Specification Number | C | V | X(17) | ||
| Contract Number | C | V | X(17) |
| Element | Name | M/C | F/V | Format | Notes |
|---|---|---|---|---|---|
SEQA | First Level Sequence Number | M | V | 9(10) | Takes the value of SEQA in the preceding segment with which this segment is nested |
SEQB | Second Level Sequence Number | M | V | 9(10) | Takes the value of SEQB in the preceding segment with which this segment is nested |
SEQC | Third Level Sequence Number | M | V | 9(10) | Starts at 1 and is incremented by 1 for each third level nesting |
DTYP | Discount Type | M | V | X(3) | Code Values List 32 · code list 32 |
AOCI | Allowance (Discount)/Charge Indicator | M | F | X(1) | A = Allowance, C = Charge |
ACCR | Accumulation Rules | M | F | X(1) | G = Gross, N = Nett |
AADJ | Actual Adjustment composite | M | Actual adjustment percentage Actual adjustment amount | ||
| Adjustment Percentage | C | V | 9(3)V9(3) | ||
| Adjustment Amount | C | V | 9(10)V9(4) |
| Element | Name | M/C | F/V | Format | Notes |
|---|---|---|---|---|---|
SEQA | First Level Sequence Number | M | V | 9(10) | Takes the value of SEQA in the corresponding ODD segment with which this segment is nested |
SEQB | Second Level Sequence Number | M | V | 9(10) | Takes the value of SEQB in the corresponding ILD segment with which this segment is nested |
DNAC | Data Narrative Code composite | C | Standard data narrative previously defined and agreed by sender and receiver Number of relevant code list Code Value from code list · code list 22 | ||
| Code Table Number | C | V | 9(4) | ||
| Code Value | C | V | X(3) | ||
RTEX | Registered Text composite | C | Essential text, where not provided for by specific fields may be communicated using this element. Application codes to define the function of the text must be registered with ANA prior to use. The same application code may be repeated up to four times, or up to four different codes may be used · code list 24 | ||
| First Registered Application Code | C | V | X(3) | ||
| Application Text | C | V | X(40) | ||
| Second Registered Application Code | C | V | X(3) | ||
| Application Text | C | V | X(40) | ||
| Third Registered Application Code | C | V | X(3) | ||
| Application Text | C | V | X(40) | ||
| Fourth Registered Application Code | C | V | X(3) | ||
| Application Text | C | V | X(40) | ||
GNAR | General Narrative composite | C | Narrative covering information which cannot be sent in a coded form ie RTEX/DNAC. This is likely to preclude automatic processing | ||
| General Narrative Line 1 | C | V | X(40) | ||
| General Narrative Line 2 | C | V | X(40) | ||
| General Narrative Line 3 | C | V | X(40) | ||
| General Narrative Line 4 | C | V | X(40) |
| Element | Name | M/C | F/V | Format | Notes |
|---|---|---|---|---|---|
SEQA | First Level Sequence Number | M | V | 9(10) | Starts at 1 and is incremented by 1 for each segment of this type in the message |
VATC | VAT Rate Category Code | M | F | X(1) | Code Values List 12 · code list 12 |
VATP | VAT Rate percentage | M | V | 9(3)V9(3) | Percentage rate for VAT Category Code |
NRIL | Number of Item Lines | M | V | 9(10) | Number of ILD segments with this VAT Category Code |
LVLA | Line Sub-Total Amount (before VAT) | M | V | 9(10)V9(2) | Before VAT has been applied. Total of Net Cost Values (LEXC) for this VAT Category Code |
QYDA | Discount Amount for Invoice Quantity | C | V | 9(10)V9(2) | Value of discount for total quantity for VAT Category Code |
VLDA | Discount Amount for Invoice Value | C | V | 9(10)V9(2) | Value of discount for total value for VAT Category Code |
SURA | Surcharge Amount | C | V | 9(10)V9(2) | Freight charges etc. for this VAT Category Code |
SSUB | Sub-Total Subsidy | C | V | 9(10)V9(2) | Sub-total of line subsidy values for this VAT Category Code |
EVLA | Extended Sub-Total Amount (before settlement discount has been applied) | M | V | 9(10)V9(2) | Before VAT has been applied. EVLA = LVLA - QYDA - VLDA + SURA - SSUB |
SEDA | Sub-Total Settlement Discount Amount | C | V | 9(10)V9(2) | For this VAT Category Code |
ASDA | Extended Sub-Total Amount (after settlement discount has been applied) | M | V | 9(10)V9(2) | Before VAT has been applied. ASDA = EVLA - SEDA |
VATA | VAT Amount Payable | M | V | 9(10)V9(2) | VAT amount at quoted VAT rate |
APSE | Payable Sub-Total Amount (before settlement discount) | C | V | 9(10)V9(2) | After VAT has been applied. APSE = EVLA + VATA |
APSI | Payable Sub-Total Amount (after settlement discount has been applied) | M | V | 9(10)V9(2) | After VAT has been applied. APSI = ASDA + VATA |
| Element | Name | M/C | F/V | Format | Notes |
|---|---|---|---|---|---|
NSTL | Number of Total Segments | M | V | 9(10) | Number of preceding STL segments |
LVLT | Lines Total Amount (before settlement discount has been applied) | M | V | 9(10)V9(2) | Sum of LVLA's in preceding STL segments. Before VAT |
QYDT | Total Discount Amount for Invoice Quantity | C | V | 9(10)V9(2) | Sum of QYDA's in preceding STL segments |
VLDT | Total Discount Amount for Invoice Value | C | V | 9(10)V9(2) | Sum of VLDA's in preceding STL segments |
SURT | Total Surcharge Amount | C | V | 9(10)V9(2) | Sum of SURA's in preceding STL segments |
TSUB | Total Subsidy Amount | C | V | 9(10)V9(2) | Sum of SSUB's in preceding STL segments |
EVLT | Total Extended Amount (before settlement discount has been applied) | M | V | 9(10)V9(2) | Sum of EVLA's in preceding STL segments. Before VAT |
SEDT | Total Settlement Discount Amount | C | V | 9(10)V9(2) | Sum of SEDA's in preceding STL segments |
ASDT | Total Amount (after settlement discount has been applied) | M | V | 9(10)V9(2) | Sum of ASDA's in preceding STL segments. Before VAT |
TVAT | Total VAT Amount Payable | M | V | 9(10)V9(2) | Sum of VATA's in preceding STL segments |
TPSE | Total payable (before settlement discount) | C | V | 9(10)V9(2) | Sum of APSE's in preceding STL segments |
TPSI | Total payable (after settlement discount) | M | V | 9(10)V9(2) | Sum of APSI's in preceding STL segments |
| Element | Name | M/C | F/V | Format | Notes |
|---|---|---|---|---|---|
NOSG | Number of Segments in Message | M | V | 9(10) | Control count of the number of segments comprising message. The count includes the MHD and MTR segments surrounding the message |
Need to exchange TRADACOMS messages with a UK retailer?
SupplyLens connects your ERP, e-commerce or accounting system to any TRADACOMS or EDIFACT trading partner: orders in, invoices out, fully managed.
Book a demo Learn about retail EDI →