Invoice message
5. Segments Layout
 
Segment number:
4
-
M
1
-
 
Function:
 
To indicate the type and function of a message and to transmit the identifying number.
 
EDIFACT
EAN
*
Description
C002
DOCUMENT/MESSAGE NAME
C
R
   
Document name code
C
an..3
R
*
=
Commercial dispute
=
Metered services invoice
=
Credit note related to financial adjustments
=
Debit note related to financial adjustments
=
Invoicing data sheet
=
Proforma invoice
=
Commercial invoice
=
Credit note - goods and services
=
Commission note
=
Debit note - goods and services
=
Corrected invoice
=
Consolidated invoice
=
Prepayment invoice
=
Tax invoice
=
Self-billed invoice
=
Delcredere invoice
=
Factored invoice
=
Self billed credit note
=
Consolidated credit note - goods and services
=
Delcredere credit note
=
Self billed debit note
It is of critical importance to use the appropriate document name qualifier relevant to the message. Code value 325 may be used to provide valued despatch information. Before using code value '384', it is advised to check with the local tax authorities the legality of using corrected invoices, as some countries may not allow their use.
Code list identification code
C
an..17
N
   
Code list responsible agency code
C
an..3
N
   
1000
Document name
C
an..35
O
   
C106
DOCUMENT/MESSAGE IDENTIFICATION
C
R
   
1004
Document identifier
C
an..35
R
 
Invoice Number assigned by document sender.
For global unique identification of documents Global Document Type Identifier (GDTI) is available.
1056
Version identifier
C
an..9
N
   
1060
Revision identifier
C
an..6
O
   
Message function code
C
an..3
R
*
=
Cancellation
=
Replace
=
Duplicate
=
Original
=
Copy
=
Additional transmission
=
Notification only
The message function, coded is a critical data element in this segment. It applies to all data indicated in the message. Consequently, one separate message has to be provided per type of function required. The following definitions apply for the restricted codes:
1  = Cancellation - The current invoice is being cancelled. A new invoice with its own invoice number will be raised to take its place. It is recommended that if an invoice is incorrect it must be cancelled and a new one issued or a correcting credit/debit note issued referencing the incorrect invoice.
5  = Replace - To cancel and replace a previously sent message identified in the RFF segment. When a buyer issues a pro-forma invoice to cover a transaction the supplier on receipt of this pro-forma issues a replacement to take its place.
7  = Duplicate - Re-transmission involving the same parties, on the specific request of the receiver.
9  = Original - An indication to the receiver that this invoice is an original invoice, i.e., not a replacement or duplicate.
31 = Copy - A copy of an invoice for a third party for information purposes.
43 = Additional transmission - Message already transmitted via another communication channel. This transmission is to provide electronically processable data only.
Response type code
C
an..3
O
*
=
Message acknowledgement
=
No acknowledgement needed
Segment Notes:
This segment is used to indicate the type and function of a message and to transmit the identifying number.

Example:
BGM+380+432097+9'
This example identifies the document as being an original commercial invoice using the code value 380. The document has the reference number 432097.

BGM+82+MSI5422'
This example identifies the document as being a metered services invoice using the code value 82. The document has the reference number MSI5422.
© Copyright GS1
Edition 2016