Document body
Structure the UBL 2.1 invoice or credit note document body, including PEPPOL profile identifiers and participant identifier placement.
Embed the UBL 2.1 invoice or credit note as a Base64-encoded document inside
<svs:SovosLegalDocument>.
CODE
<svs:SovosDocument>
<svs:SovosLegalDocument>
<enc:Base64Document>
<enc:EmbeddedDocument id="1" fileName="CN-MRD7-A0.xml" mimeCode="application/xml">
PD94bWwgdmVyc2lvbj0iMS4wIiBlbmNvZGluZz0idXRmLTgiPz4KPENyZWRpdE5vdGUgeG1sbnM9InVybjpvYXNpczpuYW1lczpzcGVjaWZpY2F0aW9uOnVibDpzY2hlbWE6eHNkOkNyZWRpdE5...
</enc:EmbeddedDocument>
</enc:Base64Document>
</svs:SovosLegalDocument>
</svs:SovosDocument>
</sbd:StandardBusinessDocument>
The UBL document must conform to PEPPOL BIS Billing 3.0 and pass the Norway national rules NO-R-001, NO-R-002, and PEPPOL-COMMON-R041. For the full PEPPOL BIS Billing 3.0 invoice structure, see the PEPPOL BIS Billing 3.0 specification.
Supported document types and profile identifiers
| Document type | InvoiceTypeCode | UBL root element | Type code element | CustomizationID | ProfileID |
|---|---|---|---|---|---|
| Invoice | 380 | <Invoice> |
<cbc:InvoiceTypeCode> | urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0 | urn:fdc:peppol.eu:2017:poacc:billing:01:1.0 |
| Credit note | 381 | <CreditNote> |
<cbc:CreditNoteTypeCode> | urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0 | urn:fdc:peppol.eu:2017:poacc:billing:01:1.0 |
| Self-billing invoice | 389 | <Invoice> | <cbc:InvoiceTypeCode> | urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:selfbilling:3.0 | urn:fdc:peppol.eu:2017:poacc:selfbilling:01:1.0 |
| Self-billing credit note | 261 | <CreditNote> | <cbc:CreditNoteTypeCode> | urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:selfbilling:3.0 | urn:fdc:peppol.eu:2017:poacc:selfbilling:01:1.0 |
Note:
Debit notes aren't supported for Norway.
PEPPOL participant identifier in the invoice body
The seller's and buyer's PEPPOL participant identifiers must appear in the EndpointID element of each party block, using scheme 0192.
The
schemeID must be 0192. Don't use NO or any other value. If the buyer's EndpointID isn't registered as a Peppol participant, dynamic discovery fails during endpoint resolution before the invoice reaches the network. For Norwegian buyers, this appears as error M-NO-3004003 ("The buyer is not registered in ELMA/Peppol").
- Supplier Party
-
CODE
<cac:AccountingSupplierParty> <cac:Party> <cbc:EndpointID schemeID="0192">123456789</cbc:EndpointID> <cac:PartyIdentification> <cbc:ID schemeID="0192">123456789</cbc:ID> </cac:PartyIdentification> <cac:PartyName> <cbc:Name>Norway Test Company V1</cbc:Name> </cac:PartyName> <cac:PostalAddress> <cbc:StreetName>10 Supplier Street</cbc:StreetName> <cbc:CityName>Oslo</cbc:CityName> <cbc:PostalZone>0150</cbc:PostalZone> <cac:Country> <cbc:IdentificationCode>NO</cbc:IdentificationCode> </cac:Country> </cac:PostalAddress> <cac:PartyTaxScheme> <cbc:CompanyID>NO123456789MVA</cbc:CompanyID> <cac:TaxScheme> <cbc:ID>VAT</cbc:ID> </cac:TaxScheme> </cac:PartyTaxScheme> <cac:PartyTaxScheme> <cbc:CompanyID>Foretaksregisteret</cbc:CompanyID> <cac:TaxScheme> <cbc:ID>TAX</cbc:ID> </cac:TaxScheme> </cac:PartyTaxScheme> <cac:PartyLegalEntity> <cbc:RegistrationName>Norway Test Company V1</cbc:RegistrationName> <cbc:CompanyID schemeID="0192">123456789</cbc:CompanyID> </cac:PartyLegalEntity> </cac:Party> </cac:AccountingSupplierParty> - Customer Party
-
CODE
<cac:AccountingCustomerParty> <cac:Party> <cbc:EndpointID schemeID="0192">123456789</cbc:EndpointID> <cac:PartyIdentification> <cbc:ID schemeID="0192">123456789</cbc:ID> </cac:PartyIdentification> <cac:PartyName> <cbc:Name>Norway Test Company V2</cbc:Name> </cac:PartyName> <cac:PostalAddress> <cbc:StreetName>5 Buyer Avenue</cbc:StreetName> <cbc:CityName>Paris</cbc:CityName> <cbc:PostalZone>75001</cbc:PostalZone> <cac:Country> <cbc:IdentificationCode>NO</cbc:IdentificationCode> </cac:Country> </cac:PostalAddress> <cac:PartyTaxScheme> <cbc:CompanyID>NO123456789MVA</cbc:CompanyID> <cac:TaxScheme> <cbc:ID>VAT</cbc:ID> </cac:TaxScheme> </cac:PartyTaxScheme> <cac:PartyLegalEntity> <cbc:RegistrationName>Norway Test Company V2</cbc:RegistrationName> <cbc:CompanyID schemeID="0192">123456789</cbc:CompanyID> </cac:PartyLegalEntity> </cac:Party> </cac:AccountingCustomerParty>
