Invoice Structure
Invoice

UBL Invoice

The table below presents the essential fields required for a UBL (Universal Business Language) invoice. These fields conform to the structure defined in UBL 2.1 Invoice. It provides details such as occurrence, examples, and definitions of each field. Only relevant and mandatory fields for the General Department of Taxation (GDT), as well as commonly used fields, are included.

Ensure that when creating and submitting your document, the fields are listed in the exact sequential order as below.

Reference:

Attributes

NameOccurrenceDescription
xmlns:cac[1..1]Namespace for Common Aggregate Components, always set to "urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2".
xmlns:cbc[1..1]Namespace for Common Basic Components, always set to "urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2".
xmlns[1..1]Namespace for Invoice Schema, always set to "urn:oasis:names:specification:ubl:schema:xsd:Invoice-2".

Core Invoice Fields Definition

Data FieldOccurrenceDefinition
cbc:ID[1..1]An identifier for this document, assigned by the sender.
cbc:IssueDate[1..1]The date, assigned by the sender, on which this document was issued.
cbc:DueDate[0..1]The date on which invoice is due.
cbc:InvoiceTypeCode[1..1]A code signifying the type of the invoice.
cbc:DocumentCurrencyCode[1..1]The currency in which the invoice is using.
cac:AdditionalDocumentReference[0..n]A reference to an additional document associated with this document.
cac:AccountingSupplierParty[1..1]Party supplying the goods or services in the invoice.
cac:AccountingCustomerParty[1..1]Party to whom the goods or services are supplied.
cac:AllowanceCharge[0..n]A discount or charge that applies to the invoice on document level.
cac:TaxExchangeRate[0..1]Exchange rate applied for tax calculation in invoices involving conversion, mandatory if document currency is not Khmer Riel(KHR).
cac:TaxTotal[1..1]Total tax amount for each specific tax.
cac:LegalMonetaryTotal[1..1]Total monetary amounts for the invoice.
cac:InvoiceLine[1..n]Each individual line item of the invoice.

Sample UBL Invoice

 
<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:UBLVersionID>2.1</cbc:UBLVersionID>
  <cbc:ID>INV-0000002</cbc:ID>
  <cbc:IssueDate>2024-06-08</cbc:IssueDate>
  <cbc:DueDate>2024-07-05</cbc:DueDate>
  <cbc:InvoiceTypeCode listID="UN/ECE 1001 Subset">388</cbc:InvoiceTypeCode>
  <cbc:DocumentCurrencyCode>KHR</cbc:DocumentCurrencyCode>
  <cac:AccountingSupplierParty>
    <cac:Party>
      <cbc:EndpointID>KHUID00001234</cbc:EndpointID>
      <cac:PartyName>
        <cbc:Name>អង្ករបាត់ដំបង</cbc:Name>
      </cac:PartyName>
      <cac:PostalAddress>
        <cbc:StreetName>Battambong</cbc:StreetName>
        <cbc:CityName>Battambang</cbc:CityName>
        <cac:Country>
          <cbc:IdentificationCode>KH</cbc:IdentificationCode>
        </cac:Country>
      </cac:PostalAddress>
      <cac:PartyTaxScheme>
        <cbc:CompanyID>K008-0000002</cbc:CompanyID>
        <cac:TaxScheme>
          <cbc:ID>VAT</cbc:ID>
        </cac:TaxScheme>
      </cac:PartyTaxScheme>
      <cac:PartyLegalEntity>
        <cbc:RegistrationName>Angkar Battambong</cbc:RegistrationName>
        <cbc:CompanyID>0005000002</cbc:CompanyID>
      </cac:PartyLegalEntity>
      <cac:Contact>
        <cbc:Telephone>+8550934534433</cbc:Telephone>
        <cbc:ElectronicMail>angkar_battambong@gmail.com</cbc:ElectronicMail>
      </cac:Contact>
    </cac:Party>
  </cac:AccountingSupplierParty>
  <cac:AccountingCustomerParty>
    <cac:Party>
      <cbc:EndpointID>KHUID00001234</cbc:EndpointID>
      <cac:PartyName>
        <cbc:Name>នំបុ័ងសៀមរាម</cbc:Name>
      </cac:PartyName>
      <cac:PostalAddress>
        <cbc:StreetName>Siem Reap</cbc:StreetName>
        <cbc:CityName>Siem Reap</cbc:CityName>
        <cac:Country>
          <cbc:IdentificationCode>KH</cbc:IdentificationCode>
        </cac:Country>
      </cac:PostalAddress>
      <cac:PartyTaxScheme>
        <cbc:CompanyID>K008-0000001</cbc:CompanyID>
        <cac:TaxScheme>
          <cbc:ID>VAT</cbc:ID>
        </cac:TaxScheme>
      </cac:PartyTaxScheme>
      <cac:PartyLegalEntity>
        <cbc:RegistrationName languageID="en">Nom Pang Siem Ream</cbc:RegistrationName>
        <cbc:CompanyID>0005000001</cbc:CompanyID>
      </cac:PartyLegalEntity>
      <cac:Contact>
        <cbc:Telephone>+85503442333</cbc:Telephone>
        <cbc:ElectronicMail>nompange_siemreap@gmail.com</cbc:ElectronicMail>
      </cac:Contact>
    </cac:Party>
  </cac:AccountingCustomerParty>
  <cac:PrepaidPayment>
    <cbc:PaidAmount currencyID="KHR">0</cbc:PaidAmount>
  </cac:PrepaidPayment>
  <cac:TaxTotal>
    <cbc:TaxAmount currencyID="KHR">195700</cbc:TaxAmount>
    <cac:TaxSubtotal>
      <cbc:TaxableAmount currencyID="KHR">1207000</cbc:TaxableAmount>
      <cbc:TaxAmount currencyID="KHR">120700</cbc:TaxAmount>
      <cac:TaxCategory>
        <cbc:ID>S</cbc:ID>
        <cbc:Percent>10</cbc:Percent>
        <cac:TaxScheme>
          <cbc:ID>VAT</cbc:ID>
        </cac:TaxScheme>
      </cac:TaxCategory>
    </cac:TaxSubtotal>
    <cac:TaxSubtotal>
      <cbc:TaxableAmount currencyID="KHR">500000</cbc:TaxableAmount>
      <cbc:TaxAmount currencyID="KHR">50000</cbc:TaxAmount>
      <cac:TaxCategory>
        <cbc:ID>S</cbc:ID>
        <cbc:Percent>10</cbc:Percent>
        <cac:TaxScheme>
          <cbc:ID>SP</cbc:ID>
        </cac:TaxScheme>
      </cac:TaxCategory>
    </cac:TaxSubtotal>
    <cac:TaxSubtotal>
      <cbc:TaxableAmount currencyID="KHR">500000</cbc:TaxableAmount>
      <cbc:TaxAmount currencyID="KHR">25000</cbc:TaxAmount>
      <cac:TaxCategory>
        <cbc:ID>S</cbc:ID>
        <cbc:Percent>5</cbc:Percent>
        <cac:TaxScheme>
          <cbc:ID>PLT</cbc:ID>
        </cac:TaxScheme>
      </cac:TaxCategory>
    </cac:TaxSubtotal>
  </cac:TaxTotal>
  <cac:LegalMonetaryTotal>
    <cbc:LineExtensionAmount currencyID="KHR">1132000
    </cbc:LineExtensionAmount>
    <cbc:TaxExclusiveAmount currencyID="KHR">1132000
    </cbc:TaxExclusiveAmount>
    <cbc:TaxInclusiveAmount currencyID="KHR">1327700
    </cbc:TaxInclusiveAmount>
    <cbc:PayableAmount currencyID="KHR">1327700</cbc:PayableAmount>
  </cac:LegalMonetaryTotal>
  <cac:InvoiceLine>
    <cbc:ID>1</cbc:ID>
    <cbc:InvoicedQuantity unitCode="none">100</cbc:InvoicedQuantity>
    <cbc:LineExtensionAmount currencyID="KHR">632000</cbc:LineExtensionAmount>
    <cac:TaxTotal>
      <cbc:TaxAmount currencyID="KHR">63200</cbc:TaxAmount>
      <cac:TaxSubtotal>
        <cbc:TaxAmount currencyID="KHR">63200</cbc:TaxAmount>
        <cac:TaxCategory>
          <cbc:ID>S</cbc:ID>
          <cbc:Percent>10</cbc:Percent>
          <cac:TaxScheme>
            <cbc:ID>VAT</cbc:ID>
          </cac:TaxScheme>
        </cac:TaxCategory>
      </cac:TaxSubtotal>
    </cac:TaxTotal>
    <cac:Item>
      <cbc:Description>អង្ករ</cbc:Description>
      <cbc:Name>អង្ករ</cbc:Name>
    </cac:Item>
    <cac:Price>
      <cbc:PriceAmount currencyID="KHR">6320</cbc:PriceAmount>
    </cac:Price>
  </cac:InvoiceLine>
  <cac:InvoiceLine>
    <cbc:ID>2</cbc:ID>
    <cbc:InvoicedQuantity unitCode="none">50</cbc:InvoicedQuantity>
    <cbc:LineExtensionAmount currencyID="KHR">500000</cbc:LineExtensionAmount>
    <cac:TaxTotal>
      <cbc:TaxAmount currencyID="KHR">132500</cbc:TaxAmount>
      <cac:TaxSubtotal>
        <cbc:TaxAmount currencyID="KHR">50000</cbc:TaxAmount>
        <cac:TaxCategory>
          <cbc:ID>S</cbc:ID>
          <cbc:Percent>10</cbc:Percent>
          <cac:TaxScheme>
            <cbc:ID>SP</cbc:ID>
          </cac:TaxScheme>
        </cac:TaxCategory>
      </cac:TaxSubtotal>
      <cac:TaxSubtotal>
        <cbc:TaxAmount currencyID="KHR">25000</cbc:TaxAmount>
        <cac:TaxCategory>
          <cbc:ID>S</cbc:ID>
          <cbc:Percent>5</cbc:Percent>
          <cac:TaxScheme>
            <cbc:ID>PLT</cbc:ID>
          </cac:TaxScheme>
        </cac:TaxCategory>
      </cac:TaxSubtotal>
      <cac:TaxSubtotal>
        <cbc:TaxAmount currencyID="KHR">57500</cbc:TaxAmount>
        <cac:TaxCategory>
          <cbc:ID>S</cbc:ID>
          <cbc:Percent>10</cbc:Percent>
          <cac:TaxScheme>
            <cbc:ID>VAT</cbc:ID>
          </cac:TaxScheme>
        </cac:TaxCategory>
      </cac:TaxSubtotal>
    </cac:TaxTotal>
    <cac:Item>
      <cbc:Description>បារី</cbc:Description>
      <cbc:Name>បារី</cbc:Name>
    </cac:Item>
    <cac:Price>
      <cbc:PriceAmount currencyID="KHR">10000</cbc:PriceAmount>
    </cac:Price>
  </cac:InvoiceLine>
</Invoice>