Sample
UBL Invoice documentation
<?xml version="1.0" encoding="UTF-8"?>
<Invoice xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"
xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"
xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2">
<!-- 1.1 CustomizationID: An identification of the specification containing the total set of rules regarding semantic content,
cardinalities and business rules to which the data contained in the instance document conforms.
Default value: urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0 -->
<cbc:CustomizationID>urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0</cbc:CustomizationID>+
<!-- 1.1 ProfileID: Identifies the business process context in which the transaction appears, to enable the Buyer to process the Invoice in an appropriate way.
Default value: urn:fdc:peppol.eu:2017:poacc:billing:01:1.0 -->
<cbc:ProfileID>urn:fdc:peppol.eu:2017:poacc:billing:01:1.0</cbc:ProfileID>
<!-- 1.1 ID: A unique identification of the Invoice. -->
<cbc:ID>test-invoice-phase4</cbc:ID>
<!-- 1.1 IssueDate: The date when the Invoice was issued. Format "YYYY-MM-DD"-->
<cbc:IssueDate>2021-10-13</cbc:IssueDate>
<!-- 0.1 The date when the payment is due.Format "YYYY-MM-DD". In case the Amount due for payment (BT-115) is positive, either the Payment due date (BT-9) or the Payment terms (BT-20) shall be present.
! shall be present if Amount due for paiment is positive -->
<cbc:DueDate>2021-12-01</cbc:DueDate>
<!-- 1.1 InvoiceTypeCode: A code specifying the functional type of the Invoice.
Default value: 380
All values: https://docs.peppol.eu/poacc/billing/3.0/codelist/UNCL1001-inv/ -->
<cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode>
<!-- 1.1 DocumentCurrencyCode: The currency in which all Invoice amounts are given, except for the Total VAT amount in accounting currency.
! Only one currency shall be used in the Invoice, except for the VAT accounting currency code (BT-6) and the invoice total VAT amount in accounting currency (BT-111).
Example value: EUR
All values: https://docs.peppol.eu/poacc/billing/3.0/codelist/ISO4217/-->
<cbc:DocumentCurrencyCode>EUR</cbc:DocumentCurrencyCode>
<!-- 0.1 AccountingCost: A textual value that specifies where to book the relevant data into the Buyer's financial accounts. -->
<cbc:AccountingCost>4025:123:4343</cbc:AccountingCost>
<!-- 0.1 BuyerReference: An identifier assigned by the Buyer used for internal routing purposes. An invoice must have buyer reference or purchase order reference (BT-13). -->
<cbc:BuyerReference>0150abc</cbc:BuyerReference>
<!-- 1.1 AccountingSupplierParty: THE SELLER Information -->
<cac:AccountingSupplierParty>
<!-- 1.1 Party -->
<cac:Party>
<!-- 1.1 EndpointID Identifies the Seller's electronic address to which the application level response to the invoice may be delivered.
! For luxembourg shall be the company VAT Number -->
<cbc:EndpointID schemeID="9938">LU123456789</cbc:EndpointID>
<!-- 0.1 PartyName -->
<cac:PartyName>
<!-- 1.1 A name by which the Seller is known, other than Seller name (also known as Business name). -->
<cbc:Name>SupplierTradingName Ltd.</cbc:Name>
</cac:PartyName>
<!-- 1.1 PostalAddress: A group of business terms providing information about the address of the Seller.
! Only the country is required -->
<cac:PostalAddress>
<!-- 1.1 Country -->
<cac:Country>
<!-- 1.1 IdentificationCode
Available values: https://docs.peppol.eu/poacc/billing/3.0/codelist/ISO3166-->
<cbc:IdentificationCode>GB</cbc:IdentificationCode>
</cac:Country>
<!-- 0.1 StreetName -->
<cbc:StreetName>Main street 1</cbc:StreetName>
<!-- 0.1 AdditionalStreetName -->
<cbc:AdditionalStreetName>Postbox 123</cbc:AdditionalStreetName>
<!-- 0.1 CityName -->
<cbc:CityName>London</cbc:CityName>
<!-- 0.1 PostalZone -->
<cbc:PostalZone>GB 123 EW</cbc:PostalZone>
</cac:PostalAddress>
<!-- 0.2 PartyTaxScheme -->
<cac:PartyTaxScheme>
<!-- 1.1 CompanyID: The Seller's VAT identifier (also known as Seller VAT identification number) or the local identification (defined by the Seller’s address) of the Seller for tax purposes or a reference that enables the Seller to state his registered tax status. In order for the buyer to automatically identify a supplier, the Seller identifier (BT-29), the Seller legal registration identifier (BT-30) and/or the Seller VAT identifier (BT-31) shall be present -->
<cbc:CompanyID>GB1232434</cbc:CompanyID>
<!-- 1.1 TaxScheme -->
<cac:TaxScheme>
<!-- 1.1 TaxScheme Mandatory element. For Seller VAT identifier (BT-31), use value “VAT”, for the seller tax registration identifier (BT-32), use != "VAT" -->
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:PartyTaxScheme>
<!-- 1.1 PartyLegalEntity -->
<cac:PartyLegalEntity>
<!-- 1.1 RegistrationName: The full formal name by which the Seller is registered in the national registry of legal entities or as a Taxable person or otherwise trades as a person or persons. -->
<cbc:RegistrationName>SupplierOfficialName Ltd</cbc:RegistrationName>
<!-- 0.1 CompanyID: Seller legal registration identifier
In order for the buyer to automatically identify a supplier, the Seller identifier (BT-29), the Seller legal registration identifier (BT-30) and/or the Seller VAT identifier (BT-31) shall be present.
Can have a schemeId https://docs.peppol.eu/poacc/billing/3.0/syntax/ubl-invoice/cac-AccountingSupplierParty/cac-Party/cac-PartyLegalEntity/cbc-CompanyID/schemeID/-->
<cbc:CompanyID>GB983294</cbc:CompanyID>
</cac:PartyLegalEntity>
</cac:Party>
</cac:AccountingSupplierParty>
<!-- 1.1 AccountingCustomerParty: BUYER A group of business terms providing information about the Buyer.-->
<cac:AccountingCustomerParty>
<!-- 1.1 Party-->
<cac:Party>
<!-- 1.1 EndpointID Identifies the BUYER's electronic address to which the invoice is delivered.
/!\ For luxembourg shall be the company VAT Number -->
<cbc:EndpointID schemeID="9938">LU978654321</cbc:EndpointID>
<!-- 0.1 PartyName -->
<cac:PartyName>
<!-- 1.1 A name by which the Seller is known, other than Seller name (also known as Business name). -->
<cbc:Name>BuyerTradingName AS</cbc:Name>
</cac:PartyName>
<cac:PostalAddress>
<!-- 1.1 Country -->
<cac:Country>
<!-- 1.1 IdentificationCode
Available values: https://docs.peppol.eu/poacc/billing/3.0/codelist/ISO3166-->
<cbc:IdentificationCode>SE</cbc:IdentificationCode>
</cac:Country>
<!-- 0.1 StreetName -->
<cbc:StreetName>Hovedgatan 32</cbc:StreetName>
<!-- 0.1 AdditionalStreetName -->
<cbc:AdditionalStreetName>Po box 878</cbc:AdditionalStreetName>
<!-- 0.1 CityName -->
<cbc:CityName>Stockholm</cbc:CityName>
<!-- 0.1 PostalZone -->
<cbc:PostalZone>456 34</cbc:PostalZone>
</cac:PostalAddress>
<!-- 0.1 PartyTaxScheme -->
<cac:PartyTaxScheme>
<!-- 1.1 CompanyID: The Buyer's VAT identifier (also known as Buyer VAT identification number). -->
<cbc:CompanyID>SE4598375937</cbc:CompanyID>
<cac:TaxScheme>
<!-- 1.1 ID: Mandatory element. Use “VAT” -->
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:PartyTaxScheme>
<!-- 1.1 PartyLegalEntity -->
<cac:PartyLegalEntity>
<!-- 1.1 RegistrationName: The full name of the Buyer.-->
<cbc:RegistrationName>Buyer Official Name</cbc:RegistrationName>
<!-- 1.1 CompanyID: An identifier issued by an official registrar that identifies the Buyer as a legal entity or person.
Scheme value: https://docs.peppol.eu/poacc/billing/3.0/codelist/ICD/ -->
<cbc:CompanyID schemeID="0183">39937423947</cbc:CompanyID>
</cac:PartyLegalEntity>
<!-- 0.1 Contact-->
<cac:Contact>
<!-- 0.1 Name-->
<cbc:Name>Lisa Johnson</cbc:Name>
<!-- 0.1 Telephone-->
<cbc:Telephone>23434234</cbc:Telephone>
<!-- 0.1 ElectronicMail-->
<cbc:ElectronicMail>lj@buyer.se</cbc:ElectronicMail>
</cac:Contact>
</cac:Party>
</cac:AccountingCustomerParty>
<!-- 0.1 Delivery DELIVERY INFORMATION A group of business terms providing information about where and when the goods and services invoiced are delivered.-->
<cac:Delivery>
<!-- 0.1 ActualDeliveryDate The date on which the supply of goods or services was made or completed. Format = "YYYY-MM-DD"
/!\ In an Invoice with a VAT breakdown (BG-23) where the VAT category code (BT-118) is "Intra-community supply" the Actual delivery date (BT-72) or the Invoicing period (BG-14) shall not be blank.-->
<cbc:ActualDeliveryDate>2021-10-01</cbc:ActualDeliveryDate>
<!-- 0.1 DeliveryLocation -->
<cac:DeliveryLocation>
<!-- 0.1 ID An identifier for the location at which the goods and services are delivered.
Possible schemeId https://docs.peppol.eu/poacc/billing/3.0/codelist/ICD/-->
<cbc:ID schemeID="0088">9483759475923478</cbc:ID>
<!-- 1.1 Address -->
<cac:Address>
<!-- 0.1 StreetName-->
<cbc:StreetName>Delivery street 2</cbc:StreetName>
<!-- 0.1 AdditionalStreetName-->
<cbc:AdditionalStreetName>Building 56</cbc:AdditionalStreetName>
<!-- 0.1 CityName-->
<cbc:CityName>Stockholm</cbc:CityName>
<!-- 0.1 PostalZone-->
<cbc:PostalZone>21234</cbc:PostalZone>
<!-- 1.1 Country-->
<cac:Country>
<!-- 1.1 IdentificationCode
Available values: https://docs.peppol.eu/poacc/billing/3.0/codelist/ISO3166-->
<cbc:IdentificationCode>SE</cbc:IdentificationCode>
</cac:Country>
</cac:Address>
</cac:DeliveryLocation>
<!-- 0.1 DeliveryParty -->
<cac:DeliveryParty>
<!-- 1.1 PartyName The name of the party to which the goods and services are delivered. -->
<cac:PartyName>
<!-- 1.1 Name -->
<cbc:Name>Delivery party Name</cbc:Name>
</cac:PartyName>
</cac:DeliveryParty>
</cac:Delivery>
<!-- 0.n PaymentMeans A group of business terms providing information about the payment.-->
<cac:PaymentMeans>
<!-- 1.1 PaymentMeansCode The means, expressed as code, for how a payment is expected to be or has been settled.
@name: Payment means text, the means, expressed as text, for how a payment is expected to be or has been settled.
Possible code value: https://docs.peppol.eu/poacc/billing/3.0/codelist/UNCL4461/ -->
<cbc:PaymentMeansCode name="Credit transfer">30</cbc:PaymentMeansCode>
<!-- 0.1 PaymentID: A textual value used to establish a link between the payment and the Invoice, issued by the Seller. Used for creditor's critical reconciliation information. This information element helps the Seller to assign an incoming payment to the relevant payment process. -->
<cbc:PaymentID>123456789</cbc:PaymentID>
<!-- 0.1 PayeeFinancialAccount A group of business terms to specify credit transfer payments. -->
<cac:PayeeFinancialAccount>
<!-- 1.1 ID A unique identifier of the financial payment account, at a payment service provider, to which payment should be made. Such as IBAN or BBAN.
! A Payment account identifier (BT-84) shall be present if Credit transfer (BG-17) information is provided in the Invoice.
! If the Payment means type code (BT-81) means SEPA credit transfer, Local credit transfer or Non-SEPA international credit transfer, the Payment account identifier (BT-84) shall be present. -->
<cbc:ID>IBAN32423940</cbc:ID>
<!-- 0.1 Name The name of the payment account, at a payment service provider, to which payment should be made.-->
<cbc:Name>AccountName</cbc:Name>
<!-- 0.1 FinancialInstitutionBranch -->
<cac:FinancialInstitutionBranch>
<!-- 1.1 ID An identifier for the payment service provider where a payment account is located. Such as a BIC or a national clearing code where required. No identification scheme Identifier to be used. -->
<cbc:ID>BIC324098</cbc:ID>
</cac:FinancialInstitutionBranch>
</cac:PayeeFinancialAccount>
</cac:PaymentMeans>
<!-- 0.1 PaymentTerms -->
<cac:PaymentTerms>
<!-- 1.1 Note A textual description of the payment terms that apply to the amount due for payment (Including description of possible penalties).
! In case the Amount due for payment (BT-115) is positive, either the Payment due date (BT-9) or the Payment terms (BT-20) shall be present. -->
<cbc:Note>Payment within 10 days, 2% discount</cbc:Note>
</cac:PaymentTerms>
<!-- 0.n AllowanceCharge A group of business terms providing information about allowances applicable to the Invoice as a whole. A group of business terms providing information about charges and taxes other than VAT, applicable to the Invoice as a whole.-->
<cac:AllowanceCharge>
<!-- 1.1 ChargeIndicator Use “true” when informing about Charges and “false” when informing about Allowances.-->
<cbc:ChargeIndicator>true</cbc:ChargeIndicator>
<!-- 0.1 AllowanceChargeReason The reason for the document level allowance or charge, expressed as text. The Document level allowance reason code and the Document level allowance reason shall indicate the same allowance reason
! Each Document level allowance (BG-20) shall have a Document level allowance reason (BT-97) or a Document level allowance reason code (BT-98), or both. -->
<cbc:AllowanceChargeReason>Insurance</cbc:AllowanceChargeReason>
<!-- 0.1 The reason for the document level allowance or charge, expressed as a code. For allowances a subset of codelist UNCL5189 is to be used, and for charges codelist UNCL7161 applies. The Document level allowance reason code and the Document level allowance reason shall indicate the same allowance reason
Allowance reason codes: https://docs.peppol.eu/poacc/billing/3.0/codelist/UNCL5189/
Charge reason code https://docs.peppol.eu/poacc/billing/3.0/codelist/UNCL7161/ -->
<cbc:AllowanceChargeReasonCode>CAP</cbc:AllowanceChargeReasonCode>
<!-- 1.1 Amount The amount of an allowance or a charge, without VAT. Must be rounded to maximum 2 decimals
@currencyID https://docs.peppol.eu/poacc/billing/3.0/syntax/ubl-invoice/cac-AllowanceCharge/cbc-Amount/currencyID/
! Amounts shall be decimal up to two fraction digits-->
<cbc:Amount currencyID="EUR">25</cbc:Amount>
<!-- 1.1 TaxCategory: -->
<cac:TaxCategory>
<!-- 1.1 ID: A coded identification of what VAT category applies to the document level allowance or charge.
Possible value: https://docs.peppol.eu/poacc/billing/3.0/codelist/UNCL5305/
! An Invoice that contains a VAT breakdown group (BG-23) with a VAT category code (BT-118) "Not subject to VAT" shall not contain Document level allowances (BG-20) where Document level allowance VAT category code (BT-95) is not "Not subject to VAT". -->
<cbc:ID>S</cbc:ID>
<!-- 0.1 Percent The VAT rate, represented as percentage that applies to the document level allowance or charge.
! In a Document level allowance (BG-20) or charge (BG-21) where the Document level allowance VAT category code (BT-95) is "Standard rated" the Document level allowance VAT rate (BT-96) shall be greater than zero, if "Zero rated" or "Exempt from VAT" or "Reverse charge" or "Intra-community supply" or "Intra-community supply" or "Not subject to VAT" shall be 0 (zero). -->
<cbc:Percent>25.0</cbc:Percent>
<!-- 1.1 TaxScheme-->
<cac:TaxScheme>
<!-- 1.1 ID Mandatory element. Use “VAT”-->
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:TaxCategory>
</cac:AllowanceCharge>
<!-- 1.2 TaxTotal When tax currency code is provided, two instances of the tax total must be present, but only one with tax subtotal.-->
<cac:TaxTotal>
<!-- 1.1 The total VAT amount for the Invoice or the VAT total amount expressed in the accounting currency accepted or required in the country of the Seller. Must be rounded to maximum 2 decimals
@currencyID: https://docs.peppol.eu/poacc/billing/3.0/codelist/ISO4217/
! If the VAT accounting currency code (BT-6) is present, then the Invoice total VAT amount in accounting currency (BT-111) shall be provided.
! Invoice total VAT amount (BT-110) = Σ VAT category tax amount (BT-117).-->
<cbc:TaxAmount currencyID="EUR">331.25</cbc:TaxAmount>
<!-- 0.n TaxSubtotal: A group of business terms providing information about VAT breakdown by different categories, rates and exemption reasons -->
<cac:TaxSubtotal>
<!-- 1.1 TaxableAmount: Sum of all taxable amounts subject to a specific VAT category code and VAT category rate (if the VAT category rate is applicable). Must be rounded to maximum 2 decimals.-->
<cbc:TaxableAmount currencyID="EUR">1325</cbc:TaxableAmount>
<!-- 1.1 TaxAmount: The total VAT amount for a given VAT category. Must be rounded to maximum 2 decimals.
! All currencyID attributes must have the same value as the invoice currency code (BT-5), except for the invoice total VAT amount in accounting currency (BT-111).
! see all rules : https://docs.peppol.eu/poacc/billing/3.0/syntax/ubl-invoice/cac-TaxTotal/cac-TaxSubtotal/cbc-TaxableAmount/ -->
<cbc:TaxAmount currencyID="EUR">331.25</cbc:TaxAmount>
<!-- 1.1 TaxCategory -->
<cac:TaxCategory>
<!-- 1.1 ID Coded identification of a VAT category. -->
<cbc:ID>S</cbc:ID>
<!-- 0.1 Percent The VAT rate, represented as percentage that applies for the relevant VAT category. -->
<cbc:Percent>25.0</cbc:Percent>
<!-- 0.1 TaxExemptionReasonCode A coded statement of the reason for why the amount is exempted from VAT.
<cbc:TaxExemptionReasonCode></TaxExemptionReasonCode> -->
<!-- 0.1 TaxExemptionReason
<cbc:TaxExemptionReason>Exempt</TaxExemptionReasonCode> -->
<!-- 1.1 TaxScheme -->
<cac:TaxScheme>
<!-- 1.1 ID: Mandatory element. Use “VAT”-->
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:TaxCategory>
</cac:TaxSubtotal>
</cac:TaxTotal>
<!-- 1.1 A group of business terms providing the monetary totals for the Invoice. -->
<cac:LegalMonetaryTotal>
<!-- 1.1 LineExtensionAmount Sum of all Invoice line net amounts in the Invoice. Must be rounded to maximum 2 decimals.
! Sum of Invoice line net amount (BT-106) = Σ Invoice line net amount (BT-131).-->
<cbc:LineExtensionAmount currencyID="EUR">1300</cbc:LineExtensionAmount>
<!-- 1.1 TaxExclusiveAmount The total amount of the Invoice without VAT. Must be rounded to maximum 2 decimals.
! Invoice total amount without VAT (BT-109) = Σ Invoice line net amount (BT-131) - Sum of allowances on document level (BT-107) + Sum of charges on document level (BT-108).-->
<cbc:TaxExclusiveAmount currencyID="EUR">1325</cbc:TaxExclusiveAmount>
<!-- 1.1 TaxInclusiveAmount The total amount of the Invoice with VAT. Must be rounded to maximum 2 decimals.
! Invoice total amount with VAT (BT-112) = Invoice total amount without VAT (BT-109) + Invoice total VAT amount (BT-110).-->
<cbc:TaxInclusiveAmount currencyID="EUR">1656.25</cbc:TaxInclusiveAmount>
<!-- 0.1 ChargeTotalAmount Sum of all charges on document level in the Invoice. Must be rounded to maximum 2 decimals.
! Sum of charges on document level (BT-108) = Σ Document level charge amount (BT-99).-->
<cbc:ChargeTotalAmount currencyID="EUR">25</cbc:ChargeTotalAmount>
<!-- 1.1 PayableAmount The outstanding amount that is requested to be paid. Must be rounded to maximum 2 decimals.
! Amount due for payment (BT-115) = Invoice total amount with VAT (BT-112) -Paid amount (BT-113) +Rounding amount (BT-114).-->
<cbc:PayableAmount currencyID="EUR">1656.25</cbc:PayableAmount>
<!-- 0.1 AllowanceTotalAmount Sum of all charges on document level in the Invoice. Must be rounded to maximum 2 decimals.
! Sum of all allowances on document level in the Invoice. Must be rounded to maximum 2 decimals.
<cbc:AllowanceTotalAmount currencyID="EUR">200.0</cbc:AllowanceTotalAmount>
-->
<!-- 0.1 PrepaidAmount The sum of amounts which have been paid in advance. Must be rounded to maximum 2 decimals.
<cbc:PrepaidAmount currencyID="EUR">200.0</cbc:PrepaidAmount>
-->
</cac:LegalMonetaryTotal>
<!-- 1.n A group of business terms providing information on individual Invoice lines. -->
<cac:InvoiceLine>
<!-- 1.1 ID A unique identifier for the individual line within the Invoice. -->
<cbc:ID>1</cbc:ID>
<!-- 1.1 InvoicedQuantity The quantity of items (goods or services) that is charged in the Invoice line.
@unitCode: https://docs.peppol.eu/poacc/billing/3.0/codelist/UNECERec20/ -->
<cbc:InvoicedQuantity unitCode="DAY">7</cbc:InvoicedQuantity>
<!-- 1.1 LineExtensionAmount The total amount of the Invoice line. The amount is “net” without VAT, i.e. inclusive of line level allowances and charges as well as other relevant taxes. Must be rounded to maximum 2 decimals.
! Invoice line net amount MUST equal (Invoiced quantity * (Item net price/item price base quantity) + Sum of invoice line charge amount - sum of invoice line allowance amount-->
<cbc:LineExtensionAmount currencyID= "EUR">2800</cbc:LineExtensionAmount>
<!-- 0.1 AccountingCost A textual value that specifies where to book the relevant data into the Buyer's financial accounts. -->
<cbc:AccountingCost>Konteringsstreng</cbc:AccountingCost>
<!-- 0.1 OrderLineReference -->
<cac:OrderLineReference>
<!-- 1.1 LineID An identifier for a referenced line within a purchase order, issued by the Buyer. -->
<cbc:LineID>123</cbc:LineID>
</cac:OrderLineReference>
<!-- 1.1 Item A group of business terms providing information about the goods and services invoiced.-->
<cac:Item>
<!-- 0.1 Description: A description for an item.The item description allows for describing the item and its features in more detail than the Item name. -->
<cbc:Description>Description of item</cbc:Description>
<!-- 1.1 Name A name for an item.-->
<cbc:Name>item name</cbc:Name>
<!-- 0.1 StandardItemIdentification -->
<cac:StandardItemIdentification>
<!-- 1.1 ID An item identifier based on a registered scheme.
@schemeID: https://docs.peppol.eu/poacc/billing/3.0/codelist/ICD/ -->
<cbc:ID schemeID="0088">21382183120983</cbc:ID>
</cac:StandardItemIdentification>
<!-- 0.1 OriginCountry -->
<cac:OriginCountry>
<!-- 1.1 IdentificationCode: The code identifying the country from which the item originates. -->
<cbc:IdentificationCode>NO</cbc:IdentificationCode>
</cac:OriginCountry>
<!-- 0.n CommodityClassification -->
<cac:CommodityClassification>
<!-- 1.1 A code for classifying the item by its type or nature.
@listID (mandatory): https://docs.peppol.eu/poacc/billing/3.0/codelist/UNCL7143/
@listVersionID (optional) : The identification scheme version identifier of the Item classification identifier-->
<cbc:ItemClassificationCode listID="SRV">09348023</cbc:ItemClassificationCode>
</cac:CommodityClassification>
<!-- 1.1 ClassifiedTaxCategory: A group of business terms providing information about the VAT applicable for the goods and services invoiced on the Invoice line. -->
<cac:ClassifiedTaxCategory>
<!-- 1.1 ID: The VAT category code for the invoiced item.
@taxCodeList: https://docs.peppol.eu/poacc/billing/3.0/codelist/UNCL5305/
! An Invoice that contains a VAT breakdown group (BG-23) with a VAT category code (BT-118) "Not subject to VAT" shall not contain an Invoice line (BG-25) where the Invoiced item VAT category code (BT-151) is not "Not subject to VAT". -->
<cbc:ID>S</cbc:ID>
<!-- 0.1 Percent The VAT rate, represented as percentage that applies to the invoiced item.
See https://docs.peppol.eu/poacc/billing/3.0/syntax/ubl-invoice/cac-InvoiceLine/cac-Item/cac-ClassifiedTaxCategory/cbc-Percent/ for validation rules-->
<cbc:Percent>25.0</cbc:Percent>
<!-- 1.1 TaxScheme-->
<cac:TaxScheme>
<!-- 1.1 Mandatory element. Use “VAT”-->
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
<!-- 1.1 Price: PRICE DETAILS; A group of business terms providing information about the price applied for the goods and services invoiced on the Invoice line.-->
<cac:Price>
<!-- 1.1 PriceAmount The price of an item, exclusive of VAT, after subtracting item price discount. The Item net price has to be equal with the Item gross price less the Item price discount, if they are both provided. Item price can not be negative. -->
<cbc:PriceAmount currencyID="EUR">400</cbc:PriceAmount>
<!-- 0.1 BaseQuantity The number of item units to which the price applies.
<cbc:BaseQuantity></BaseQuantity> -->
</cac:Price>
</cac:InvoiceLine>
<cac:InvoiceLine>
<cbc:ID>2</cbc:ID>
<cbc:InvoicedQuantity unitCode="DAY">-3</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID="EUR">-1500</cbc:LineExtensionAmount>
<cac:OrderLineReference>
<cbc:LineID>123</cbc:LineID>
</cac:OrderLineReference>
<cac:Item>
<cbc:Description>Description 2</cbc:Description>
<cbc:Name>item name 2</cbc:Name>
<cac:StandardItemIdentification>
<cbc:ID schemeID="0088">21382183120983</cbc:ID>
</cac:StandardItemIdentification>
<cac:OriginCountry>
<cbc:IdentificationCode>NO</cbc:IdentificationCode>
</cac:OriginCountry>
<cac:CommodityClassification>
<cbc:ItemClassificationCode listID="SRV">09348023</cbc:ItemClassificationCode>
</cac:CommodityClassification>
<cac:ClassifiedTaxCategory>
<cbc:ID>S</cbc:ID>
<cbc:Percent>25.0</cbc:Percent>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
<cac:Price>
<cbc:PriceAmount currencyID="EUR">500</cbc:PriceAmount>
</cac:Price>
</cac:InvoiceLine>
</Invoice>
UBL Invoice
<?xml version="1.0" encoding="UTF-8"?>
<Invoice xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"
xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"
xmlns="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2">
<cbc:CustomizationID>urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0</cbc:CustomizationID>
<cbc:ProfileID>urn:fdc:peppol.eu:2017:poacc:billing:01:1.0</cbc:ProfileID>
<cbc:ID>test-invoice-phase4</cbc:ID>
<cbc:IssueDate>2021-10-13</cbc:IssueDate>
<cbc:DueDate>2021-12-01</cbc:DueDate>
<cbc:InvoiceTypeCode>380</cbc:InvoiceTypeCode>
<cbc:DocumentCurrencyCode>EUR</cbc:DocumentCurrencyCode>
<cbc:AccountingCost>4025:123:4343</cbc:AccountingCost>
<cbc:BuyerReference>0150abc</cbc:BuyerReference>
<cac:AccountingSupplierParty>
<cac:Party>
<cbc:EndpointID schemeID="9915">phase4-test-sender</cbc:EndpointID>
<cac:PartyName>
<cbc:Name>SupplierTradingName Ltd.</cbc:Name>
</cac:PartyName>
<cac:PostalAddress>
<cbc:StreetName>Main street 1</cbc:StreetName>
<cbc:AdditionalStreetName>Postbox 123</cbc:AdditionalStreetName>
<cbc:CityName>London</cbc:CityName>
<cbc:PostalZone>GB 123 EW</cbc:PostalZone>
<cac:Country>
<cbc:IdentificationCode>GB</cbc:IdentificationCode>
</cac:Country>
</cac:PostalAddress>
<cac:PartyTaxScheme>
<cbc:CompanyID>GB1232434</cbc:CompanyID>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:PartyTaxScheme>
<cac:PartyLegalEntity>
<cbc:RegistrationName>SupplierOfficialName Ltd</cbc:RegistrationName>
<cbc:CompanyID>GB983294</cbc:CompanyID>
</cac:PartyLegalEntity>
</cac:Party>
</cac:AccountingSupplierParty>
<cac:AccountingCustomerParty>
<cac:Party>
<cbc:EndpointID schemeID="9915">helger</cbc:EndpointID>
<cac:PartyName>
<cbc:Name>BuyerTradingName AS</cbc:Name>
</cac:PartyName>
<cac:PostalAddress>
<cbc:StreetName>Hovedgatan 32</cbc:StreetName>
<cbc:AdditionalStreetName>Po box 878</cbc:AdditionalStreetName>
<cbc:CityName>Stockholm</cbc:CityName>
<cbc:PostalZone>456 34</cbc:PostalZone>
<cac:Country>
<cbc:IdentificationCode>SE</cbc:IdentificationCode>
</cac:Country>
</cac:PostalAddress>
<cac:PartyTaxScheme>
<cbc:CompanyID>SE4598375937</cbc:CompanyID>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:PartyTaxScheme>
<cac:PartyLegalEntity>
<cbc:RegistrationName>Buyer Official Name</cbc:RegistrationName>
<cbc:CompanyID schemeID="0183">39937423947</cbc:CompanyID>
</cac:PartyLegalEntity>
<cac:Contact>
<cbc:Name>Lisa Johnson</cbc:Name>
<cbc:Telephone>23434234</cbc:Telephone>
<cbc:ElectronicMail>lj@buyer.se</cbc:ElectronicMail>
</cac:Contact>
</cac:Party>
</cac:AccountingCustomerParty>
<cac:Delivery>
<cbc:ActualDeliveryDate>2021-10-01</cbc:ActualDeliveryDate>
<cac:DeliveryLocation>
<cbc:ID schemeID="0088">9483759475923478</cbc:ID>
<cac:Address>
<cbc:StreetName>Delivery street 2</cbc:StreetName>
<cbc:AdditionalStreetName>Building 56</cbc:AdditionalStreetName>
<cbc:CityName>Stockholm</cbc:CityName>
<cbc:PostalZone>21234</cbc:PostalZone>
<cac:Country>
<cbc:IdentificationCode>SE</cbc:IdentificationCode>
</cac:Country>
</cac:Address>
</cac:DeliveryLocation>
<cac:DeliveryParty>
<cac:PartyName>
<cbc:Name>Delivery party Name</cbc:Name>
</cac:PartyName>
</cac:DeliveryParty>
</cac:Delivery>
<cac:PaymentMeans>
<cbc:PaymentMeansCode name="Credit transfer">30</cbc:PaymentMeansCode>
<cbc:PaymentID>Snippet1</cbc:PaymentID>
<cac:PayeeFinancialAccount>
<cbc:ID>IBAN32423940</cbc:ID>
<cbc:Name>AccountName</cbc:Name>
<cac:FinancialInstitutionBranch>
<cbc:ID>BIC324098</cbc:ID>
</cac:FinancialInstitutionBranch>
</cac:PayeeFinancialAccount>
</cac:PaymentMeans>
<cac:PaymentTerms>
<cbc:Note>Payment within 10 days, 2% discount</cbc:Note>
</cac:PaymentTerms>
<cac:AllowanceCharge>
<cbc:ChargeIndicator>true</cbc:ChargeIndicator>
<cbc:AllowanceChargeReason>Insurance</cbc:AllowanceChargeReason>
<cbc:Amount currencyID="EUR">25</cbc:Amount>
<cac:TaxCategory>
<cbc:ID>S</cbc:ID>
<cbc:Percent>25.0</cbc:Percent>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:TaxCategory>
</cac:AllowanceCharge>
<cac:TaxTotal>
<cbc:TaxAmount currencyID="EUR">331.25</cbc:TaxAmount>
<cac:TaxSubtotal>
<cbc:TaxableAmount currencyID="EUR">1325</cbc:TaxableAmount>
<cbc:TaxAmount currencyID="EUR">331.25</cbc:TaxAmount>
<cac:TaxCategory>
<cbc:ID>S</cbc:ID>
<cbc:Percent>25.0</cbc:Percent>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:TaxCategory>
</cac:TaxSubtotal>
</cac:TaxTotal>
<cac:LegalMonetaryTotal>
<cbc:LineExtensionAmount currencyID="EUR">1300</cbc:LineExtensionAmount>
<cbc:TaxExclusiveAmount currencyID="EUR">1325</cbc:TaxExclusiveAmount>
<cbc:TaxInclusiveAmount currencyID="EUR">1656.25</cbc:TaxInclusiveAmount>
<cbc:ChargeTotalAmount currencyID="EUR">25</cbc:ChargeTotalAmount>
<cbc:PayableAmount currencyID="EUR">1656.25</cbc:PayableAmount>
</cac:LegalMonetaryTotal>
<cac:InvoiceLine>
<cbc:ID>1</cbc:ID>
<cbc:InvoicedQuantity unitCode="DAY">7</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID= "EUR">2800</cbc:LineExtensionAmount>
<cbc:AccountingCost>Konteringsstreng</cbc:AccountingCost>
<cac:OrderLineReference>
<cbc:LineID>123</cbc:LineID>
</cac:OrderLineReference>
<cac:Item>
<cbc:Description>Description of item</cbc:Description>
<cbc:Name>item name</cbc:Name>
<cac:StandardItemIdentification>
<cbc:ID schemeID="0088">21382183120983</cbc:ID>
</cac:StandardItemIdentification>
<cac:OriginCountry>
<cbc:IdentificationCode>NO</cbc:IdentificationCode>
</cac:OriginCountry>
<cac:CommodityClassification>
<cbc:ItemClassificationCode listID="SRV">09348023</cbc:ItemClassificationCode>
</cac:CommodityClassification>
<cac:ClassifiedTaxCategory>
<cbc:ID>S</cbc:ID>
<cbc:Percent>25.0</cbc:Percent>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
<cac:Price>
<cbc:PriceAmount currencyID="EUR">400</cbc:PriceAmount>
</cac:Price>
</cac:InvoiceLine>
<cac:InvoiceLine>
<cbc:ID>2</cbc:ID>
<cbc:InvoicedQuantity unitCode="DAY">-3</cbc:InvoicedQuantity>
<cbc:LineExtensionAmount currencyID="EUR">-1500</cbc:LineExtensionAmount>
<cac:OrderLineReference>
<cbc:LineID>123</cbc:LineID>
</cac:OrderLineReference>
<cac:Item>
<cbc:Description>Description 2</cbc:Description>
<cbc:Name>item name 2</cbc:Name>
<cac:StandardItemIdentification>
<cbc:ID schemeID="0088">21382183120983</cbc:ID>
</cac:StandardItemIdentification>
<cac:OriginCountry>
<cbc:IdentificationCode>NO</cbc:IdentificationCode>
</cac:OriginCountry>
<cac:CommodityClassification>
<cbc:ItemClassificationCode listID="SRV">09348023</cbc:ItemClassificationCode>
</cac:CommodityClassification>
<cac:ClassifiedTaxCategory>
<cbc:ID>S</cbc:ID>
<cbc:Percent>25.0</cbc:Percent>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
<cac:Price>
<cbc:PriceAmount currencyID="EUR">500</cbc:PriceAmount>
</cac:Price>
</cac:InvoiceLine>
</Invoice>
UBL Credit note
<?xml version="1.0" encoding="UTF-8"?>
<CreditNote xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"
xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"
xmlns="urn:oasis:names:specification:ubl:schema:xsd:CreditNote-2">
<cbc:CustomizationID>urn:cen.eu:en16931:2017#compliant#urn:fdc:peppol.eu:2017:poacc:billing:3.0</cbc:CustomizationID>
<cbc:ProfileID>urn:fdc:peppol.eu:2017:poacc:billing:01:1.0</cbc:ProfileID>
<cbc:ID>Snippet1</cbc:ID>
<cbc:IssueDate>2017-11-13</cbc:IssueDate>
<cbc:CreditNoteTypeCode>381</cbc:CreditNoteTypeCode>
<cbc:Note>Please note we have a new phone number: 22 22 22 22</cbc:Note>
<cbc:DocumentCurrencyCode>EUR</cbc:DocumentCurrencyCode>
<cbc:AccountingCost>4025:123:4343</cbc:AccountingCost>
<cbc:BuyerReference>0150abc</cbc:BuyerReference>
<cac:BillingReference>
<cac:InvoiceDocumentReference>
<cbc:ID>Snippet1</cbc:ID>
</cac:InvoiceDocumentReference>
</cac:BillingReference>
<cac:AccountingSupplierParty>
<cac:Party>
<cbc:EndpointID schemeID="0088">9482348239847239874</cbc:EndpointID>
<cac:PartyIdentification>
<cbc:ID>99887766</cbc:ID>
</cac:PartyIdentification>
<cac:PartyName>
<cbc:Name>SupplierTradingName Ltd.</cbc:Name>
</cac:PartyName>
<cac:PostalAddress>
<cbc:StreetName>Main street 1</cbc:StreetName>
<cbc:AdditionalStreetName>Postbox 123</cbc:AdditionalStreetName>
<cbc:CityName>London</cbc:CityName>
<cbc:PostalZone>GB 123 EW</cbc:PostalZone>
<cac:Country>
<cbc:IdentificationCode>GB</cbc:IdentificationCode>
</cac:Country>
</cac:PostalAddress>
<cac:PartyTaxScheme>
<cbc:CompanyID>GB1232434</cbc:CompanyID>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:PartyTaxScheme>
<cac:PartyLegalEntity>
<cbc:RegistrationName>SupplierOfficialName Ltd</cbc:RegistrationName>
<cbc:CompanyID>GB983294</cbc:CompanyID>
</cac:PartyLegalEntity>
</cac:Party>
</cac:AccountingSupplierParty>
<cac:AccountingCustomerParty>
<cac:Party>
<cbc:EndpointID schemeID="0002">FR23342</cbc:EndpointID>
<cac:PartyIdentification>
<cbc:ID schemeID="0002">FR23342</cbc:ID>
</cac:PartyIdentification>
<cac:PartyName>
<cbc:Name>BuyerTradingName AS</cbc:Name>
</cac:PartyName>
<cac:PostalAddress>
<cbc:StreetName>Hovedgatan 32</cbc:StreetName>
<cbc:AdditionalStreetName>Po box 878</cbc:AdditionalStreetName>
<cbc:CityName>Stockholm</cbc:CityName>
<cbc:PostalZone>456 34</cbc:PostalZone>
<cac:Country>
<cbc:IdentificationCode>SE</cbc:IdentificationCode>
</cac:Country>
</cac:PostalAddress>
<cac:PartyTaxScheme>
<cbc:CompanyID>SE4598375937</cbc:CompanyID>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:PartyTaxScheme>
<cac:PartyLegalEntity>
<cbc:RegistrationName>Buyer Official Name</cbc:RegistrationName>
<cbc:CompanyID schemeID="0183">39937423947</cbc:CompanyID>
</cac:PartyLegalEntity>
<cac:Contact>
<cbc:Name>Lisa Johnson</cbc:Name>
<cbc:Telephone>23434234</cbc:Telephone>
<cbc:ElectronicMail>lj@buyer.se</cbc:ElectronicMail>
</cac:Contact>
</cac:Party>
</cac:AccountingCustomerParty>
<cac:Delivery>
<cbc:ActualDeliveryDate>2017-11-01</cbc:ActualDeliveryDate>
<cac:DeliveryLocation>
<cbc:ID schemeID="0088">9483759475923478</cbc:ID>
<cac:Address>
<cbc:StreetName>Delivery street 2</cbc:StreetName>
<cbc:AdditionalStreetName>Building 56</cbc:AdditionalStreetName>
<cbc:CityName>Stockholm</cbc:CityName>
<cbc:PostalZone>21234</cbc:PostalZone>
<cac:Country>
<cbc:IdentificationCode>SE</cbc:IdentificationCode>
</cac:Country>
</cac:Address>
</cac:DeliveryLocation>
<cac:DeliveryParty>
<cac:PartyName>
<cbc:Name>Delivery party Name</cbc:Name>
</cac:PartyName>
</cac:DeliveryParty>
</cac:Delivery>
<cac:PaymentMeans>
<cbc:PaymentMeansCode name="Credit transfer">30</cbc:PaymentMeansCode>
<cbc:PaymentID>Snippet1</cbc:PaymentID>
<cac:PayeeFinancialAccount>
<cbc:ID>IBAN32423940</cbc:ID>
<cbc:Name>AccountName</cbc:Name>
<cac:FinancialInstitutionBranch>
<cbc:ID>BIC324098</cbc:ID>
</cac:FinancialInstitutionBranch>
</cac:PayeeFinancialAccount>
</cac:PaymentMeans>
<cac:PaymentTerms>
<cbc:Note>Payment within 10 days, 2% discount</cbc:Note>
</cac:PaymentTerms>
<cac:AllowanceCharge>
<cbc:ChargeIndicator>true</cbc:ChargeIndicator>
<cbc:AllowanceChargeReason>Insurance</cbc:AllowanceChargeReason>
<cbc:Amount currencyID="EUR">25</cbc:Amount>
<cac:TaxCategory>
<cbc:ID>S</cbc:ID>
<cbc:Percent>25.0</cbc:Percent>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:TaxCategory>
</cac:AllowanceCharge>
<cac:TaxTotal>
<cbc:TaxAmount currencyID="EUR">331.25</cbc:TaxAmount>
<cac:TaxSubtotal>
<cbc:TaxableAmount currencyID="EUR">1325</cbc:TaxableAmount>
<cbc:TaxAmount currencyID="EUR">331.25</cbc:TaxAmount>
<cac:TaxCategory>
<cbc:ID>S</cbc:ID>
<cbc:Percent>25.0</cbc:Percent>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:TaxCategory>
</cac:TaxSubtotal>
</cac:TaxTotal>
<cac:LegalMonetaryTotal>
<cbc:LineExtensionAmount currencyID="EUR">1300</cbc:LineExtensionAmount>
<cbc:TaxExclusiveAmount currencyID="EUR">1325</cbc:TaxExclusiveAmount>
<cbc:TaxInclusiveAmount currencyID="EUR">1656.25</cbc:TaxInclusiveAmount>
<cbc:ChargeTotalAmount currencyID="EUR">25</cbc:ChargeTotalAmount>
<cbc:PayableAmount currencyID="EUR">1656.25</cbc:PayableAmount>
</cac:LegalMonetaryTotal>
<cac:CreditNoteLine>
<cbc:ID>1</cbc:ID>
<cbc:CreditedQuantity unitCode="DAY">7</cbc:CreditedQuantity>
<cbc:LineExtensionAmount currencyID= "EUR">2800</cbc:LineExtensionAmount>
<cbc:AccountingCost>Konteringsstreng</cbc:AccountingCost>
<cac:OrderLineReference>
<cbc:LineID>123</cbc:LineID>
</cac:OrderLineReference>
<cac:Item>
<cbc:Description>Description of item</cbc:Description>
<cbc:Name>item name</cbc:Name>
<cac:StandardItemIdentification>
<cbc:ID schemeID="0088">21382183120983</cbc:ID>
</cac:StandardItemIdentification>
<cac:OriginCountry>
<cbc:IdentificationCode>NO</cbc:IdentificationCode>
</cac:OriginCountry>
<cac:CommodityClassification>
<cbc:ItemClassificationCode listID="SRV">09348023</cbc:ItemClassificationCode>
</cac:CommodityClassification>
<cac:ClassifiedTaxCategory>
<cbc:ID>S</cbc:ID>
<cbc:Percent>25.0</cbc:Percent>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
<cac:Price>
<cbc:PriceAmount currencyID="EUR">400</cbc:PriceAmount>
</cac:Price>
</cac:CreditNoteLine>
<cac:CreditNoteLine>
<cbc:ID>2</cbc:ID>
<cbc:CreditedQuantity unitCode="DAY">-3</cbc:CreditedQuantity>
<cbc:LineExtensionAmount currencyID="EUR">-1500</cbc:LineExtensionAmount>
<cac:OrderLineReference>
<cbc:LineID>123</cbc:LineID>
</cac:OrderLineReference>
<cac:Item>
<cbc:Description>Description 2</cbc:Description>
<cbc:Name>item name 2</cbc:Name>
<cac:StandardItemIdentification>
<cbc:ID schemeID="0088">21382183120983</cbc:ID>
</cac:StandardItemIdentification>
<cac:OriginCountry>
<cbc:IdentificationCode>NO</cbc:IdentificationCode>
</cac:OriginCountry>
<cac:CommodityClassification>
<cbc:ItemClassificationCode listID="SRV">09348023</cbc:ItemClassificationCode>
</cac:CommodityClassification>
<cac:ClassifiedTaxCategory>
<cbc:ID>S</cbc:ID>
<cbc:Percent>25.0</cbc:Percent>
<cac:TaxScheme>
<cbc:ID>VAT</cbc:ID>
</cac:TaxScheme>
</cac:ClassifiedTaxCategory>
</cac:Item>
<cac:Price>
<cbc:PriceAmount currencyID="EUR">500</cbc:PriceAmount>
</cac:Price>
</cac:CreditNoteLine>
</CreditNote>