INVOIC — Invoice
Version: 2.0 — June 2026
EDIfact Standard: EANCOM D.01B (EANCOM'02)
XML: v2.0
XSD: `Azuvio-CRMconnect-EDIconnect-INVOIC-v2.0.xsd`
Direction: Outbound (CRMconnect → Partner)
Trigger: Invoice issuance in Finance → Billing
CRMconnect Module: Finance → Invoices
Related references: DESADV, RECADV, eFactura (ANAF)
The EDI invoice sent to the partner via EDIconnect does not replace the legal obligation to submit to ANAF via the e-Factura system (RO e-Factura). The two flows are completely independent — you must manage both.
EDIfact D.01B
The following schema is the list of elements in their correct order, not a representation of their correct syntactic form for an EANCOM message. It is based on EANCOM D.01B. The exemplified segments represent only the segments transmitted to issue goods invoices compliant with requirements and applicable legislation.
Invoice Header
| Status | EANCOM Segment | Description |
|---|---|---|
UNA:+.? ' |
Segment separator specifications | |
| Mandatory | UNB+UNOD:3+{GLN_Emitent}:14+{GLN_Destinatar}:14+{YYMMDD}:{HHMM}+{RefNo}' |
Physical EDI file start. UNB_0010=Issuer GLN; UNB_0017=Receiver GLN. Production: without ++++++1; Test: with ++++++1. Alternative identification via VAT: UNB+UNOD:3+RO5052558:ZZZ+RO11735628:ZZZ+... |
| Mandatory | UNH+00001+INVOIC:D:01B:UN:EAN010' |
Start of invoice header section |
| Mandatory | BGM+{DocType}+{InvoiceNo}+{FuncCode}' |
Invoice number and type. BGM_1001: 380=invoice; 381=credit note; 383=debit note; 384=correction invoice. BGM_1225: 9=original; 1=reversal invoice (allowed only with BGM_1001=380,381,382) |
| Mandatory | DTM+137:{YYYYMMDD}:102' |
Invoice date |
| Mandatory | DTM+35:{YYYYMMDD}:102' |
Goods delivery date |
| Optional | PAI+::42' |
Payment instructions. PAI_4461: 42=payment by bank transfer; 10=cash payment |
| Optional | FTX+ZZZ+++{Text}+RO' |
Free text field — issuer may add remarks on the invoice |
| Conditional | FTX+REG+++{Text}+RO' |
Text "Standardised information according to legal requirements": e.g. "Excise duties charged", "VAT on collection" |
| Conditional | RFF+IV:{RefInvoiceNo}' + DTM+171:{YYYYMMDD}:102' |
Reference invoice number + date. Mandatory only for Correction and Reversal invoices! Reference invoice = the original invoice being corrected/reversed |
| Mandatory | RFF+DQ:{DespatchNo}' + DTM+171:{YYYYMMDD}:102' |
Issuer's despatch advice number (operational field) + advice date |
| Optional | RFF+ALO:{NIRNo}' |
Receiver's receiving advice number (NIR number). Transmitted only for receivers who explicitly request it |
| Optional | RFF+ON:{OrderNo}' + DTM+171:{YYYYMMDD}:102' |
Receiver's order number. Transmitted only for receivers who explicitly request it |
| Optional | RFF+VN:{VendorOrderNo}' + DTM+171:{YYYYMMDD}:102' |
Issuer's internal order number |
Partners (NAD)
| Status | EANCOM Segment | Description |
|---|---|---|
| Mandatory | NAD+SU+{GLN_Emitent}::9++{Denumire}+{Adresa}+{Oras}++{CodPostal}+{Tara}' |
Issuer GLN; Name; Address; Town, Postal Code, Country Code |
| Optional | FII+RB+{IBAN}' |
Issuer IBAN account |
| Optional | FII+RH+{BancaEmitent}' |
Issuer bank |
| Optional | RFF+YC1:{CodFurnizorLaDestinat}' |
Supplier code assigned to the issuer by the receiver. Transmitted only if the receiver requests it |
| Mandatory | RFF+VA:{CUI_Emitent}' |
Issuer VAT number |
| Optional | MOA+75:{CapitalSocial}' |
Issuer registered capital |
| Mandatory | RFF+FC:{RegComert_Emitent}' |
Issuer Trade Register number |
| Optional | LOC+193+{PunctLucru}+{AdresaPunctLucru}' |
Issuer's place of business |
| Mandatory | NAD+BY+{GLN_Destinatar}::9++{Denumire}+{Adresa}+{Oras}++{CodPostal}+{Tara}' |
Receiver identification data, including address |
| Mandatory | RFF+VA:{CUI_Destinatar}' |
Receiver VAT number |
| Optional | RFF+FC:{RegComert_Destinatar}' |
Receiver Trade Register number |
| Optional | FII+PB+{IBAN_Destinatar}' |
Receiver IBAN account |
| Optional | FII+BI+{Banca_Destinatar}' |
Receiver bank |
| Conditional | NAD+IV+{GLN_CompFact}::9++{Denumire}+{Adresa}+{Oras}++{CodPostal}+{Tara}' |
Invoiced company data. Mandatory if different from the receiver |
| Conditional | RFF+VA:{CUI_CompFact}' |
Invoiced company VAT number |
| Optional | RFF+FC:{RegCom_CompFact}' |
Invoiced company Trade Register number |
| Optional | FII+PB+{IBAN_CompFact}' |
Invoiced company IBAN account |
| Optional | FII+BI+{Banca_CompFact}' |
Invoiced company bank |
| Mandatory | NAD+DP+{GLN_Livrare}::9++{Denumire}+{Adresa}+{Oras}++{CodPostal}+{Tara}' |
Delivery location of the invoiced goods/services |
VAT, Currency, Due Date
| Status | EANCOM Segment | Description |
|---|---|---|
| Conditional | TAX+7+VAT+++:::{CotaTVA}+S' |
VAT rate declaration at invoice level. TAX_5305: S=standard; E=VAT exempt; Z=zero-rated goods; AC=VAT on collection; G=export exempt. For multi-VAT invoices → declaration is done at line level |
| Mandatory | CUX+2:RON:4' |
Invoice currency: RON |
| Optional | PAT+3++5:3:D:35' |
Payment terms. PAT_4279: 3=fixed date; PAT_2151: D=Days; PAT_2152=number of periods |
| Mandatory | DTM+13:{YYYYMMDD}:102' |
Invoice due date |
| Optional | PAT+22' |
Early payment discount |
| Optional | DTM+12:{YYYYMMDD}:102' |
Date by which payment must be made to qualify for discount |
| Optional | PCD+12:{DiscountPercent}' |
Discount as a percentage |
Invoice-Level Allowances/Charges
| Status | EANCOM Segment | Description |
|---|---|---|
| Optional | ALC+A+++1+TD' |
Allowance or charge at invoice level |
| Optional | QTY+1:{Qty}:KGM' |
Reduced quantity |
| Optional | PCD+1:{Percent}:13' |
Allowance/charge expressed as a percentage |
| Optional | MOA+25:{BaseValue}' |
Base value for the allowance/charge |
| Optional | MOA+8:{DiscountValue}' |
Value of the allowance or charge |
| Optional | FTX+ZZZ+++{DiscountDescription}+RO' |
Free text describing the allowance or charge (max 512 characters) |
Invoice Lines
| Status | EANCOM Segment | Description |
|---|---|---|
| Mandatory | LIN+{LineNo}++{EAN}:SRV' |
Line position (line number) and product EAN code |
| Optional | PIA+1+{SupplierCode}:SA' |
Issuer's internal product code |
| Optional | PIA+1+{BuyerCode}:IN' |
Receiver's internal product code |
| Conditional | PIA+1+{HSCode}:HS' |
Product customs code — harmonised system |
| Conditional | PIA+1+1:LI' |
Original product marker |
| Mandatory | IMD+A++:::{ProductName}' |
Product name (max 255 characters) |
| Optional | IMD+C++SG::9' |
Article is a mixed assortment (e.g.: pack with 2 different articles sold as one) |
| Optional/Conditional | IMD+C++IN::9' |
Line is the invoiced line. Used in combination with mixed assortment |
| Optional/Conditional | IMD+C++CU::9' |
Line is the consumer unit |
| Conditional | IMD+C++RC' |
Code for returnable product/packaging |
| Mandatory | QTY+47:{Qty}:PCE' |
47=invoiced quantity |
| Conditional | QTY+58:-{Qty}:PCE' |
58=withdrawn quantity (original). Mandatory in correction invoices to identify what needs to be corrected |
| Optional | QTY+46:{Qty}:PCE' |
46=delivered quantity |
| Mandatory | MOA+203:{LineNetValue}' |
Line net total (excluding VAT) after allowances/charges |
| Optional | MOA+66:{LineNetBeforeALC}' |
Line net total (excluding VAT) before allowances/charges |
| Optional | MOA+128:{LineTotalInclVAT}' |
Line total (including VAT) |
| Mandatory | PRI+AAA:{NetNetPrice}:::100:PCE' |
Net net price of the product (after applying all discounts and charges) |
| Optional | PRI+AAB:{GrossPrice}:::1:PCE' |
Gross article price — before applying discounts and charges |
| Optional | PRI+AAE:{SuggestedRetailPrice}:::1:PCE' |
Suggested resale price transmitted in accordance with legal regulations |
| Optional | RFF+IV:{RefInvoiceNo}' + DTM+171:... |
Reference invoice at line level |
| Optional | RFF+DQ:{DespatchNo}' + DTM+171:... |
Despatch advice number — the line was delivered with this advice |
| Optional | RFF+ALO:{NIRNo}' + DTM+171:... |
Receiving advice number (NIR) — the line was received on this NIR |
| Optional | RFF+ON:{OrderNo}' + DTM+171:... |
Receiver's order number for the current line |
| Optional | RFF+VN:{VendorOrderNo}' + DTM+171:{YYYYMMDD}:102' |
Issuer's internal order number for the current line |
| Optional | PAC+100++CA' |
Standard product packing code and packing quantity |
| Optional | TAX+7+VAT+++:::{VATRate}+S' |
VAT rate at invoice line level. TAX_5305 identical to the header |
| Optional | MOA+124:{VATValue}' |
VAT value at line level |
| Conditional | TAX+7+OTH+++:::{Rate}' + MOA+124:{Value}' |
Other charges/fees/excise duties at line level: TAX_5153: ENV=green/environmental tax; EXC=excise duties; OTH=other taxes |
| Conditional | TAX+7+ENV+++:::{Rate}' + MOA+124:{Value}' |
Green/environmental tax at line level. The displayed value = total tax value for the current line (QTY × tax value per product) |
| Optional | ALC+A+++1+TD' |
Allowances or charges at line level |
| Optional | PCD+3:{Percent}' |
Allowance expressed as a percentage |
| Optional | MOA+25:{BaseValue}' |
Value to which the allowance or charge is applied |
| Optional | FTX+ZZZ+++{DiscountDesc}+RO' |
Free text describing the allowance or charge at line level (max 512 characters) |
| Conditional | LIN+{SubLineNo}++{EAN_CU}:SRV+{LineRef}:3' |
Sub-line: consumer unit EAN with reference to main line (mandatory for mixed assortment) |
| Optional | QTY+59:{ConsumerUnits}:PCE' |
Number of consumer units in the traded unit |
Summary Section
| Status | EANCOM Segment | Description |
|---|---|---|
| Mandatory | UNS+S' |
Summary section separator |
| Mandatory | CNT+2:{LineCount}' |
Number of lines in the invoice (LIN) |
| Mandatory | CNT+1:{TotalQty}' |
Total quantity in the invoice (sum of quantities regardless of UOM) |
| Mandatory | MOA+77:{TotalInvoice}' |
Invoice total (in G50-MOA) |
| Conditional | MOA+131:{TotalALC}' |
Total allowances/charges at invoice level |
| Mandatory | MOA+79:{TotalNetInvoice}' |
Invoice net total |
| Mandatory | MOA+176:{TotalVAT}' |
Total invoice taxes / total VAT (sum of VAT subtotals for multi-VAT invoices) |
| Optional | MOA+9:{TotalPayable}' |
Amount payable |
| Mandatory | TAX+7+VAT+++:::{VATRate}+S' |
VAT rate (subtotal per rate) |
| Mandatory | MOA+125:{TaxableBase}' |
Net subtotal per VAT rate |
| Mandatory | MOA+124:{VATSubtotal}' |
VAT subtotal per VAT rate |
| Mandatory | MOA+289:{SubtotalInclVAT}' |
Subtotal per VAT rate (net total + VAT total per rate) |
| Conditional | TAX+7+ENV+++:::{Rate}' + MOA+124:{Value}' |
Green tax subtotal for all positions with green tax and the same VAT rate |
| Conditional | TAX+7+OTH+++:::{Rate}' + MOA+124:{Value}' |
Eco-tax subtotal for all positions with eco-tax and the same VAT rate |
| Mandatory | UNT+{SegmentCount}+{MessageRef}' |
End of an invoice |
| Mandatory | UNZ+{MessageCount}+{InterchangeRef}' |
End of physical file |
Structure of an EDI File with Multiple Invoices
A physical file (UNB–UNZ) may contain multiple invoices (UNH–UNT), each representing a separate logical file. Each invoice has its own UNH/UNT with a unique ID.
XML v2.0
Message structure: <Message> → <Version> → <Documents> → <Invoic> → <Header> + <Lines> + <TaxSummary> + <Summary>
A single file may contain multiple invoices, separated by <Invoic> tags.
Header
| XML Element | Example | Format | M | Description |
|---|---|---|---|---|
Version |
2.0 |
Decimal (max 2 decimals) | Yes | File version |
InvoiceSeries |
SRX |
Text | Yes/Depends | Invoice series. If the number contains alphanumeric characters → the entire number is sent only in this field |
The combined length of InvoiceSeries + InvoiceNumber fields cannot exceed 16 characters. Older partner systems reject invoices that exceed this limit, even if each individual field appears valid.
If the invoice number contains alphanumeric characters (e.g.: SRX123456), send the entire number in InvoiceSeries and leave InvoiceNumber empty. The combined length InvoiceSeries + InvoiceNumber must not exceed 16 characters.
| XML Element | Example | Format | M | Description |
|---|---|---|---|---|
InvoiceNumber |
123456789 |
Number | Yes | Invoice number |
InvoiceDate |
2012-12-20 |
YYYY-MM-DD | Yes | Invoice date |
ReceptionNumber |
100107306 |
Integer (max 14 digits) | Cond | Customer's RECADV number (NIR) — mandatory for some customers |
ReceptionDate |
2012-07-28 |
YYYY-MM-DD | No | RECADV date |
DeliveryNumber |
65282 |
Text | Yes/Cond | Despatch advice number (DESADV) sent by supplier with goods |
DeliveryDate |
2012-07-27 |
YYYY-MM-DD | Yes/Cond | Despatch advice date |
DeliveryFormat |
FF |
Text | Yes | Final file delivery format to the customer |
ResponseNumber |
45051454 |
Number | Yes/Cond | Order response number — if applicable |
OrderNumber |
45051454 |
Number | Yes/Cond | Customer's order number |
OrderDate |
2012-07-27 |
YYYY-MM-DD | Yes/Cond | Customer's order date |
ContractNumber |
45051454 |
Number | No/Cond | Contract number |
ContractDate |
2012-07-27 |
YYYY-MM-DD | No/Cond | Contract date |
DocumentType |
O |
1 uppercase letter | Yes | O=original invoice, C=correction invoice, S=reversal invoice, R=return invoice, I=import invoice |
TestIndicator |
1 |
1 or 0 | No | 1=test invoice, 0 or absent=production invoice |
PaymentType |
42 |
Number | No | Payment method — according to EDIFACT D01.B standard (42=bank account payment) |
Currency |
RON |
Text | Yes | Invoice currency — ISO 3-letter standard |
AdditionalInvoiceNumber |
123 |
Text | No | Additional identification of the invoice in the issuer's system |
Remarks |
TVA LA INCASARE |
Text | — | Free text with regulatory information displayed in the invoice header |
ReferenceInvoiceSeries |
SRX |
Text | No(O)/Yes/Cond | Mandatory for Correction and Reversal invoices. Contains the original invoice series. Combined length ReferenceInvoiceSeries+ReferenceInvoiceNumber ≤ 16 characters |
ReferenceInvoiceNumber |
123456780 |
Number | No(O)/Yes/Cond | Mandatory for Correction and Reversal invoices. Contains the original invoice number |
ReferenceInvoiceDate |
2012-12-19 |
YYYY-MM-DD | No(O)/Yes/Cond | Mandatory for Correction and Reversal invoices. Original invoice date |
PaymentDueDate |
2012-12-29 |
YYYY-MM-DD | No | Due date |
PaymentTerm |
30 |
Number | No | Payment term duration |
PaymentTermCode |
D |
Char(1) | No | D=days, W=weeks, M=months, Y=years. Used in combination with PaymentTerm |
InvoiceDelegate |
Sorin Ionescu |
Text | No | Name of the person issuing the invoice (manual processing) |
InvoiceDelegateIdentification |
CNP 177... |
No | National ID of the person issuing the invoice (manual processing) | |
DeliveryType |
CURIER |
Text | No | Delivery type |
DeliveryIdentification |
Text | No | Delivery identifier | |
| Buyer (customer) | <Buyer> |
Yes | Customer data section | |
Buyer/GLN |
5948909999993 |
Number (max 14 digits) | Yes | Customer GLN |
Buyer/VAT |
RO17294806 |
Text | Yes | VAT number — tax code |
Buyer/RegNo |
J40/17398/18.09.2007 |
Text | Yes | Customer Trade Register number |
Buyer/Name |
REAL,- HYPERMARKET ROMANIA SRL |
Text | Yes | Customer full name |
Buyer/Address |
BD. THEODOR PALLADY NR.51N |
Text | Yes | Customer address (street, number) |
Buyer/Town |
Sector 3 |
Text | Yes | Town |
Buyer/County |
BUCURESTI |
Text | No | County |
Buyer/PostalCode |
32258 |
Text | Yes | Postal code |
Buyer/CountryCode |
RO |
Text (2-3 capital letters) | Yes | Country code — ISO standard |
Buyer/RegisteredCapital |
Number | No/Cond | Customer registered capital — mandatory for some customers | |
Buyer/BankDetails |
No/Cond | Customer bank details — mandatory if payment is made to an account | ||
Buyer/BankDetails/Bank/IBAN |
RO72ABNA... |
Text | Yes | Customer IBAN account |
Buyer/BankDetails/Bank/BankName |
ABN AMRO |
Text | Yes | Customer bank name |
Buyer/Branches/Branch/BranchCode |
Text | No | Branch code | |
Buyer/Branches/Branch/BranchName |
Text | Yes | Branch name | |
Buyer/Branches/Branch/BranchAddress |
Text | Yes | Branch address | |
Buyer/Branches/Branch/BranchTown |
Text | No | Branch town | |
Buyer/Branches/Branch/BranchCounty |
Text | No | Branch county | |
Buyer/Branches/Branch/BranchCountry |
Text | No | Branch country | |
| Seller (supplier) | <Seller> |
Supplier data section | ||
Seller/GLN |
5948909999665 |
Number (max 14 digits) | Yes | Supplier GLN |
Seller/VAT |
RO1234567890 |
Text | Yes | Supplier VAT number |
Seller/RegNo |
J40/123456/2012 |
Text | Yes | Supplier Trade Register number |
Seller/Name |
DENUMIRE FIRMA SRL |
Text | Yes | Supplier name |
Seller/Address |
BD. UNIRII NR 259 |
Text | Yes | Supplier address |
Seller/Town |
Sector 1 |
Text | Yes | Town |
Seller/County |
BUCURESTI |
Text | No | County |
Seller/PostalCode |
123456 |
Text | Yes | Postal code |
Seller/CountryCode |
RO |
Text (2-3 capital letters) | Yes | Country code — ISO standard |
Seller/RegisteredCapital |
Number | Yes | Supplier registered capital — mandatory by law |
The issuer's registered capital (Seller/RegisteredCapital) is mandatory under Romanian law. The electronic invoice is legally invalid without this field correctly populated.
| XML Element | Example | Format | M | Description |
|---|---|---|---|---|
Seller/BuyerInternalCode |
20000 |
Number (max 10 digits) | Yes | Supplier code assigned by the buyer |
Seller/BuyerDepartment |
72 |
Text (max 10 char) | No/Cond | Buyer department code — mandatory for some customers |
Seller/BankDetails |
No/Cond | Supplier bank details — mandatory if payment is made to an account | ||
Seller/BankDetails/Bank/IBAN |
RO72ABNA... |
Text | Yes | Supplier IBAN account |
Seller/BankDetails/Bank/BankName |
ABN AMRO |
Text | Yes | Supplier bank name |
Seller/Branches/Branch/BranchCode |
Text | No | Supplier branch code | |
Seller/Branches/Branch/BranchName |
Text | Yes | Supplier branch name | |
Seller/Branches/Branch/BranchAddress |
Text | Yes | Supplier branch address | |
Seller/Branches/Branch/BranchTown |
Text | No | Supplier branch town | |
Seller/Branches/Branch/BranchCounty |
Text | No | Supplier branch county | |
Seller/Branches/Branch/BranchCountry |
Text | No | Supplier branch country | |
| Delivery | <Delivery> |
Delivery location | ||
Delivery/GLN |
5948909999665 |
Number (max 14 digits) | Yes | Delivery location GLN |
Delivery/Name |
REAL,- HYPERMARKET ROMANIA SRL |
Text | Yes | Location name |
Delivery/Address |
BD. THEODOR PALLADY NR.51N |
Text | Yes | Address (street, number) |
Delivery/Town |
Sector 3 |
Text | Yes | Town |
Delivery/County |
BUCURESTI |
Text | No | County |
Delivery/PostalCode |
32258 |
Text | Yes | Postal code |
Delivery/CountryCode |
RO |
Text (2-3 capital letters) | Yes | Country code |
Delivery/WarehouseId |
25 |
Text | No | Internal warehouse code in ERP |
| Allowances | <Allowances> |
No/Cond | Invoice-level allowances/charges section | |
| AllowanceCharges | <AllowanceCharges> |
No/Cond | Allowance or charge at invoice level | |
AllowanceCharges/Type |
A |
Text (1) | No/Cond | A=allowance, C=charge |
AllowanceCharges/Method |
P |
Text (1) | No/Cond | P=percentage, A=amount |
AllowanceCharges/Percent |
3 |
Number | No/Cond | Allowance/charge percentage. Mandatory if Method=P |
AllowanceCharges/Amount |
30 |
Number | No/Cond | Allowance/charge value. Mandatory if Method=A |
AllowanceCharges/ValueBase |
9000 |
Number | No | Base value for the allowance/charge |
AllowanceCharges/Reason |
Discount conform contract |
Text | No | Free text describing the allowance/charge |
| Notes | <Notes> |
No | Invoice header notes section | |
| Note | <Note> |
No | Header note — one group per note type | |
Note/Type |
INV |
Text (3) | Yes | INV=invoice note, ZZZ=custom note, DEL=delivery note |
Note/Function |
1 |
Number (max 2) | No | 1=immediate use, 3=deferred use |
Note/Text |
Text (max 2560 chars) | Yes | Note text | |
Note/Language |
RO |
Text (country ISO code 3 chars max) | No | Note language |
Lines
| XML Element | Example | Format | M | Description |
|---|---|---|---|---|
LineNumber |
1 |
Integer | Yes | Line position number |
EAN |
5941234567899 |
Number (max 14 digits) | Yes | Invoiced article EAN |
Brand |
Text (max 41 char) | No | Article brand/manufacturer | |
ArticleName |
Condimente 100G |
Text (max 121 char) | Yes | Article name |
ArticleType |
CU |
List of allowed values | No/Cond | CU=consumer unit, TU=traded unit, MX=mixed assortment, RC=returnable packaging. For mixed assortment → additional lines with components |
ReferenceLine |
2 |
Integer | No/Cond | Number of the line containing the main information. The referenced line must be of mixed assortment type; the current line must be CU or TU |
Invoiced |
Yes |
Text | No/Cond | Yes=line is invoiced and included in total; No=for display only, not included in total |
BuyerItemCode |
123456001001 |
Number (max 14 digits) | Yes | Internal article code assigned by buyer |
BuyerAdditionalItemCode |
254635 |
Number (max 8 digits) | No | Buyer's additional internal code |
SupplierItemCode |
ABC1234 |
Text (max 35 char) | Yes | Internal article code assigned by supplier |
BatchNumber |
ABC1234 |
Text (max 35 char) | No | Batch number |
BestBeforeDate |
Text (max 35 char) | No | Best before date | |
Category |
ABC1234 |
Text (max 35 char) | No | Product category |
ArticleCodeHS |
ABC1234 |
Text (max 10 char) | No | Harmonised system (customs) code |
QuantityOrder |
37.000 |
Decimal (max 3 decimals) | No | Original quantity ordered by buyer |
QuantityReception |
37.000 |
Decimal (max 3 decimals) | No | Quantity received by buyer |
QuantityInvoice |
37.000 |
Decimal (max 3 decimals) | Yes | Invoiced quantity |
UnitOfMeasure |
PCE |
Allowed list of 3 letter coding | Yes | Unit of measure per EDIFACT (PCE=piece, KGM=kilograms) |
PackType |
CS |
Text | No | EDIFACT packing codes (CS, IM, etc.) |
PackingUnit |
12 |
Number | Yes | Number of consumer units in the traded unit. Different from 1 when the delivery/invoice unit is not a piece (e.g.: case, pallet) |
PackUnitPrice |
10.3740 |
Decimal (max 4 decimals) | Yes | Price of the delivered package (per case or per unit, depending on PackingUnit). Net net after all line-level discounts/charges |
UnitPrice |
0.8645 |
Decimal (max 4 decimals) | Yes | Net net price per consumer unit (PackUnitPrice / PackingUnit) after discounts/charges |
GrossPackUnitPrice |
10.3740 |
Decimal (max 4 decimals) | No | Package price before applying discounts/charges |
GrossUnitPrice |
0.8645 |
Decimal (max 4 decimals) | No | Net price per consumer unit before discounts/charges |
SuggestedRetailPrice |
15.99 |
Decimal (max 4 decimals) | No | Suggested resale price (including VAT, without discounts) |
TotalPriceNoTax |
383.84 |
Decimal (max 2 decimals) | Yes | Line net total (excluding VAT) after all discounts/charges |
TotalPriceNoTaxNoALC |
383.84 |
Decimal (max 2 decimals) | No | Line net total (excluding VAT) before discounts/charges |
TaxType |
S |
Value list (1 char) | Yes | S=standard rate, E=tax exempt, Z=zero-rated |
TaxReason |
VAT |
Value list (3 char) | Yes | VAT=VAT |
TaxRate |
24 |
Number | Yes | Tax rate expressed as a number (9, 19, 20, 24, 0, etc.) |
Tax |
92.12 |
Decimal (max 2 decimals) | Yes | Tax value per line |
TotalPriceIncludingTax |
475.96 |
Decimal (max 2 decimals) | Yes | Line total (including VAT) |
OrderNumber (line) |
45051454 |
Number | Yes/Cond | Customer's order number for this line |
OrderDate (line) |
2012-07-27 |
YYYY-MM-DD | Yes/Cond | Customer's order date for this line |
| Allowances (line) | <Allowances> |
No/Cond | Line-level allowances/charges | |
| AllowanceCharges | <AllowanceCharges> |
No/Cond | Allowance or charge at line level | |
AllowanceCharges/Type |
A |
Text (1) | No/Cond | A=allowance, C=charge |
AllowanceCharges/Method |
P |
Text (1) | No/Cond | P=percentage, A=amount |
AllowanceCharges/Percent |
3 |
Number | No/Cond | Allowance/charge percentage |
AllowanceCharges/Amount |
30 |
Number | No/Cond | Allowance/charge value |
AllowanceCharges/ValueBase |
9000 |
Number | No | Base value |
AllowanceCharges/Reason |
Discount conform contract |
Text | No | Free text describing the allowance/charge |
| LineNotes | <LineNotes> |
No | Line-level notes | |
| LineNote | <LineNote> |
No | Line note — one group per note type | |
LineNote/Type |
INV |
Text (3) | Yes | Note type |
LineNote/Function |
1 |
Number (2 digits max) | No | 1=immediate use, 3=deferred use |
LineNote/Text |
Text (max 2560 chars) | Yes | Note text | |
LineNote/Language |
RO |
Text (country ISO code 3 chars max) | No | Note language |
DiscountNoVat |
0.00 |
Decimal (max 2 decimals) | No | Total discount excluding VAT for this line |
| LineTaxes | <LineTaxes> |
No/Cond | Additional taxes at line level | |
| TaxLine | <TaxLine> |
No/Cond | One line per additional tax type | |
TaxLine/TaxType |
S |
Value list (1 char) | No/Cond | S, E, Z |
TaxLine/TaxReason |
ENV |
Value list (3 char) | No/Cond | VAT, ENV=green tax, OTH=other tax |
TaxLine/TaxRate |
24 |
Number | No/Cond | Tax rate |
TaxLine/Tax |
10.00 |
Decimal (max 2 decimals) | No/Cond | Tax value per line |
EcoTax |
0.00 |
Decimal (max 2 decimals) | No | Eco Tax per line — deprecated |
GreenTax |
0.00 |
Decimal (max 2 decimals) | No | Green Tax per line — deprecated |
ReturnablePackage |
1 |
Number (0 or 1) | No | 0=No; 1=returnable packaging |
| QuantityDistribution | <QuantityDistribution> |
No/Cond | Quantity distribution details per line | |
| DistributionChannel | <DistributionChannel> |
No/Cond | One record per distribution channel | |
DistributionChannel/ID |
78555 |
Text | No/Cond | Distribution channel ID |
DistributionChannel/ChannelName |
Spitale |
Text | No/Cond | Distribution channel name |
DistributionChannel/Quantity |
24 |
Decimal (max 2 decimals) | No/Cond | Quantity distributed on this channel |
DistributionChannel/PackingUnit |
6 |
Decimal (max 2 decimals) | No/Cond | Consumer units per traded unit on the distribution channel |
TaxSummary must contain one TaxLine per distinct VAT rate in the invoice (e.g.: one TaxLine for 9%, one for 19%). Do not aggregate all taxes into a single TaxLine.
TaxSummary
Repeatable section — one TaxLine for each VAT rate in the invoice.
| XML Element | Example | Format | M | Description |
|---|---|---|---|---|
TaxLine/TaxType |
S |
Value list (1 char) | Yes | S, E, Z |
TaxLine/TaxReason |
VAT |
Value list (3 char) | Yes | VAT, ENV, OTH |
TaxLine/TaxRate |
24 |
Number | Yes | Tax rate |
TaxLine/TotalPriceNoTax |
110.00 |
Decimal (max 2 decimals) | Yes | Net subtotal for the current rate |
TaxLine/TotalTax |
26.40 |
Decimal (max 2 decimals) | Yes | Tax subtotal for the current rate |
TaxLine/TotalIncludingTax |
136.40 |
Decimal (max 2 decimals) | Yes | Subtotal including tax for the current rate |
TaxLine/LineTaxes/TaxLine |
No/Cond | Subtotal per additional tax type (ENV, OTH) for the same rate | ||
TaxLine/LineTaxes/TaxLine/TaxType |
S |
Value list (1 char) | No/Cond | S, E, Z |
TaxLine/LineTaxes/TaxLine/TaxReason |
ENV |
Value list (3 char) | No/Cond | VAT, ENV, OTH |
TaxLine/LineTaxes/TaxLine/TaxRate |
24 |
Number | No/Cond | Tax rate |
TaxLine/LineTaxes/TaxLine/TotalTax |
26.40 |
Decimal (max 2 decimals) | No/Cond | Tax subtotal for the current rate |
Summary
| XML Element | Example | Format | M | Description |
|---|---|---|---|---|
Lines |
1 |
Number | Yes | Total number of lines in the invoice |
TotQty |
110.00 |
Decimal (max 2 decimals) | No | Arithmetic sum of invoiced quantities |
TotALC |
110.00 |
Decimal (max 2 decimals) | No | Total discount per invoice |
TotalPriceNoTax |
110.00 |
Decimal (max 2 decimals) | Yes | Invoice total excluding VAT |
TotalPriceNoTaxNoALC |
124.00 |
Decimal (max 2 decimals) | No | Invoice total excluding VAT and excluding discounts/rebates |
TotalTax |
26.40 |
Decimal (max 2 decimals) | Yes | Total taxes for the invoice |
TotalIncludingTax |
136.40 |
Decimal (max 2 decimals) | Yes | Invoice total including all taxes |
XSD Schema
File: `Azuvio-CRMconnect-EDIconnect-INVOIC-v2.0.xsd`
xmllint --schema Azuvio-CRMconnect-EDIconnect-INVOIC-v2.0.xsd factura.xml --noout
Special Notes
Invoices with Additional Taxes (Eco-Tax, Excise Duties)
According to GS1 instructions, a total value of additional taxes is not permitted in the invoice footer. The net price transmitted in EDIFACT must include the additional tax per invoiced piece. The second TAX segment is only to show the total tax value per item.
ECO tax (OTH) example:
PRI+AAA:0.160:::1:PCE' ← Price includes 0.06 product + 0.10 eco-tax
TAX+7+VAT+++:::24+S'
MOA+124:3456'
TAX+7+OTH+++:::24.00' ← Eco tax type declaration
MOA+124:9000' ← 0.10 × 90000 pcs = 9000 (informational; included in price)
Price Adjustment Multipliers
For suppliers who deliver at case level based on orders per consumer unit, the price per grouping can be sent with an explicit multiplier:
QTY+47:1728:PCE' ← Quantity in consumer units
QTY+59:24:PCE' ← Consumer units per case
PRI+AAA:64.7407:::10:PCE' ← Price for 10 pieces (the multiplier is 10)
The receiver calculates: 64.7407 / 10 × quantity = total.
Free Goods (Zero Value)
QTY+47:4:PCE'
MOA+203:0'
MOA+128:0'
PRI+AAA:0:::1:PCE'
TAX+7+VAT+++:::24+S' ← Normal VAT rate (free goods = fiscally normal articles)
CRMconnect Field Mapping
| EDI Field | EDIfact Segment / XML Element | CRMconnect Field |
|---|---|---|
| Invoice number | BGM+380 / InvoiceNumber |
Finance → Invoices → Number |
| Invoice series | — / InvoiceSeries |
Finance → Invoices → Series |
| Invoice date | DTM+137 / InvoiceDate |
Finance → Invoices → Date |
| Document type | BGM_1001 / DocumentType |
Finance → Invoices → Type |
| Reversal invoice reference | RFF+IV / ReferenceInvoiceNumber |
Finance → Invoices → Ref. Invoice |
| Issuer VAT number | RFF+VA (NAD+SU) / Seller/VAT |
Settings → Company → VAT |
| Issuer Trade Register | RFF+FC (NAD+SU) / Seller/RegNo |
Settings → Company → Trade Reg. |
| Registered capital | MOA+75 / Seller/RegisteredCapital |
Settings → Company → Capital |
| Supplier IBAN | FII+RB / Seller/BankDetails/Bank/IBAN |
Settings → Bank → IBAN |
| Due date | DTM+13 / PaymentDueDate |
Finance → Invoices → Due Date |
| DESADV reference | RFF+DQ / DeliveryNumber |
Issue → Document Number |
| Order reference | RFF+ON / OrderNumber |
Sales → Orders → Reference |
| Article EAN | LIN / EAN |
Products → EAN/GTIN |
| Invoiced quantity | QTY+47 / QuantityInvoice |
Invoice Line → Quantity |
| Net net price | PRI+AAA / PackUnitPrice / UnitPrice |
Invoice Line → Unit Price |
| Line net total | MOA+203 / TotalPriceNoTax |
Invoice Line → Total |
| VAT rate | TAX+7+VAT / TaxRate |
Product → VAT Class |
| Invoice net total | MOA+79 / Summary/TotalPriceNoTax |
Finance → Invoice → Subtotal |
| Total VAT | MOA+176 / Summary/TotalTax |
Finance → Invoice → VAT |
| Invoice total | MOA+77 / Summary/TotalIncludingTax |
Finance → Invoice → Total |