|  | Beginning of message | 
        
          | 
            
              |  | Function: | To indicate the type and function of a message and to transmit the identifying number. |  | 
        
          |  |  | * |  |  | 
        
          |  | Document/message name |  |  |  | R |  | 
        
          |  | Document name code |  |  | * |  | 
            
              |  | Invoice type |  
              |  | Indication of the invoice type |  
              |  | 380 | = | Commercial invoice |  
              |  | 381 | = | Credit note - goods and services |  
              |  | 383 | = | Debit note - goods and services |  
              |  | 380 commercial invoice: Document/message claiming payment for goods or services supplied under conditions agreed between seller and buyer. |  
              |  | 381 credit note - goods and services: Document/message for providing credit information to the relevant party. |  
              |  | 383 debit note - goods and services: Document/message for providing debit information to the relevant party. |  
              |  | 384 corrected invoice: Commercial invoice that includes revised information differing from an earlier submission of the same invoice. |  | 
        
          |  | Code list identification code |  |  |  | N |  | 
        
          |  | Code list responsible agency code |  |  |  | N |  | 
        
          |  | Document name |  |  |  | N | 
            
              |  | Additional document qualification, agreed on bilateral basis. Used to specify the invoice e.g. repair services invoice, replacement parts or fruits/vegetables. |  | 
        
          |  | Document/message identification |  |  |  |  |  | 
        
          |  | Document identifier |  |  |  |  | 
            
              |  | Invoice number |  
              |  | A number which identifies the invoice. It is generated by the issuer of the invoice and is a sequential number. |  
              |  | This number is assigned by the sender of the message The recipient of the message quotes the invoice number on payment and/or in the payment specification The invoice number can then be used to match the payments and the outstanding invoices. Consequently it is recommended that the invoice number is assigned a sufficiently unique number which is, for example, unique for a period of 1 year. |  | 
        
          |  | Message function code |  |  | * |  | 
            
              |  | Message function |  
              |  | Indication of the function of the invoice, e.g. Original, Duplicate etc. |  
              |  | 1 | = | Cancellation |  
              |  | 9 | = | Original |  
              |  | 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. |  
              |  | Original - An indication to the receiver that this invoice is an original invoice, i.e., not a replacement or duplicate. |  | 
        
          |  | Response type code |  |  |  |  | 
            
              |  | AB | = | Message acknowledgement |  
              |  | NA | = | No acknowledgement needed |  | 
        
          | 
            
              |  | Segment status by country: |  
              |  | M |  
              |  |  |  
              |  |  |  |