Saudi Arabia: Example Documents

View some examples of the documents used in Saudi Arabia.

Credit Note (SA_Credit_Note_381.xml)

 <?xml version="1.0" encoding="UTF-8"?>
  <ubl:Invoice xmlns:ubl="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2"
      xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"
      xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"
      xmlns:cec="urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2"
      xmlns:vrbl="urn:vertexinc:vrbl:ExtensionComponent:1">
      <!-- Required UBL extensions -->
      <cec:UBLExtensions>
          <cec:UBLExtension>
              <cec:ExtensionContent>
                  <vrbl:InvoiceExtension>
                      <!-- Invoice Transaction Codes -->
                      <vrbl:InvoiceSubtypeCode>0100000</vrbl:InvoiceSubtypeCode>
                      <vrbl:RoutingDetails>
                          <!-- Unique sender ID. Use sender VAT ID -->
                          <vrbl:Sender>399999999900003</vrbl:Sender>
                          <!-- Unique receiver ID. In case of Saudi Arabia always a static value identifies the country and the target version to be created -->
                          <vrbl:Receiver>GENERIC_SA_EINVOIC_1p2p0</vrbl:Receiver>
                      </vrbl:RoutingDetails>
                  </vrbl:InvoiceExtension>
              </cec:ExtensionContent>
          </cec:UBLExtension>
      </cec:UBLExtensions>
      <cbc:CustomizationID>urn:vertexinc:vrbl:billing:1</cbc:CustomizationID>
      <cbc:ProfileID>urn:vertexinc:vrbl:billing:1</cbc:ProfileID>
      <cbc:ID>SME00015</cbc:ID>
      <!-- Invoice UUID -->
      <cbc:UUID>322efd74-5b1b-41e0-843c-1d13bec4475e</cbc:UUID>
      <cbc:IssueDate>2024-09-05</cbc:IssueDate>
      <cbc:IssueTime>16:50:40</cbc:IssueTime>
      <cbc:InvoiceTypeCode>381</cbc:InvoiceTypeCode>
      <cbc:DocumentCurrencyCode>SAR</cbc:DocumentCurrencyCode>
      
      <!-- Invoice Document Reference -->
      <cac:BillingReference>
          <cac:InvoiceDocumentReference>
              <!-- Original Invoice Number -->
              <cbc:ID>SME00002</cbc:ID>
              <!-- Provide reason for Creditnote -->
              <cbc:DocumentDescription>CANCELLATION_OR_TERMINATION</cbc:DocumentDescription>
          </cac:InvoiceDocumentReference>
      </cac:BillingReference>
      <cac:AccountingSupplierParty>
          <cac:Party>
              <cac:PartyIdentification>
                  <!-- MOMRAH license -->
                  <cbc:ID schemeID="VRBL:SA:MOM">10101010101</cbc:ID>
              </cac:PartyIdentification>
              <cac:PostalAddress>
                  <cbc:StreetName>الامير سلطان | Prince Sultan</cbc:StreetName>
                  <cbc:BuildingNumber>2322</cbc:BuildingNumber>
                  <cbc:CitySubdivisionName>المربع | Al-Murabba</cbc:CitySubdivisionName>
                  <cbc:CityName>الرياض | Riyadh</cbc:CityName>
                  <cbc:PostalZone>23333</cbc:PostalZone>
                  <cac:Country>
                      <cbc:IdentificationCode>SA</cbc:IdentificationCode>
                  </cac:Country>
              </cac:PostalAddress>
              <cac:PartyTaxScheme>
                  <cbc:CompanyID>399999999900003</cbc:CompanyID>
                  <cac:TaxScheme>
                      <cbc:ID>VAT</cbc:ID>
                  </cac:TaxScheme>
              </cac:PartyTaxScheme>
              <cac:PartyLegalEntity>
                  <cbc:RegistrationName>شركة توريد التكنولوجيا بأقصى سرعة المحدودة | Maximum Speed Tech Supply LTD</cbc:RegistrationName>
                  <!-- Commerical registration number (CRN) -->
                  <cbc:CompanyID>1010010000</cbc:CompanyID>
              </cac:PartyLegalEntity>
          </cac:Party>
      </cac:AccountingSupplierParty>
      <cac:AccountingCustomerParty>
          <cac:Party>
              <cac:PostalAddress>
                  <cbc:StreetName>صلاح الدين | Salah Al-Din</cbc:StreetName>
                  <cbc:BuildingNumber>1111</cbc:BuildingNumber>
                  <cbc:CitySubdivisionName>المروج | Al-Murooj</cbc:CitySubdivisionName>
                  <cbc:CityName>الرياض | Riyadh</cbc:CityName>
                  <cbc:PostalZone>12222</cbc:PostalZone>
                  <cac:Country>
                      <cbc:IdentificationCode>SA</cbc:IdentificationCode>
                  </cac:Country>
              </cac:PostalAddress>
              <cac:PartyTaxScheme>
                  <cbc:CompanyID>399999999800003</cbc:CompanyID>
                  <cac:TaxScheme>
                      <cbc:ID>VAT</cbc:ID>
                  </cac:TaxScheme>
              </cac:PartyTaxScheme>
              <cac:PartyLegalEntity>
                  <cbc:RegistrationName>شركة نماذج فاتورة المحدودة | Fatoora Samples LTD</cbc:RegistrationName>
                  <!-- Commerical registration number (CRN) -->
                  <cbc:CompanyID>1010010000</cbc:CompanyID>
              </cac:PartyLegalEntity>
          </cac:Party>
      </cac:AccountingCustomerParty>
      <cac:Delivery>
          <cbc:ActualDeliveryDate>2024-09-05</cbc:ActualDeliveryDate>
      </cac:Delivery>
      <cac:PaymentMeans>
          <cbc:PaymentMeansCode>10</cbc:PaymentMeansCode>
          <cbc:InstructionNote>CANCELLATION_OR_TERMINATION</cbc:InstructionNote>
      </cac:PaymentMeans>
      <cac:AllowanceCharge>
          <cbc:ChargeIndicator>false</cbc:ChargeIndicator>
          <cbc:AllowanceChargeReason>discount</cbc:AllowanceChargeReason>
          <cbc:Amount currencyID="SAR">0.00</cbc:Amount>
          <cac:TaxCategory>
              <cbc:ID schemeID="UN/ECE 5305" schemeAgencyID="6">S</cbc:ID>
              <cbc:Percent>15</cbc:Percent>
              <cac:TaxScheme>
                  <cbc:ID schemeID="UN/ECE 5153" schemeAgencyID="6">VAT</cbc:ID>
              </cac:TaxScheme>
          </cac:TaxCategory>
      </cac:AllowanceCharge>
      <cac:TaxTotal>
          <cbc:TaxAmount currencyID="SAR">0.6</cbc:TaxAmount>
          <cac:TaxSubtotal>
              <cbc:TaxableAmount currencyID="SAR">4.00</cbc:TaxableAmount>
              <cbc:TaxAmount currencyID="SAR">0.60</cbc:TaxAmount>
              <cac:TaxCategory>
                  <cbc:ID schemeID="UN/ECE 5305" schemeAgencyID="6">S</cbc:ID>
                  <cbc:Percent>15.00</cbc:Percent>
                  <cac:TaxScheme>
                      <cbc:ID schemeID="UN/ECE 5153" schemeAgencyID="6">VAT</cbc:ID>
                  </cac:TaxScheme>
              </cac:TaxCategory>
          </cac:TaxSubtotal>
      </cac:TaxTotal>
      <cac:LegalMonetaryTotal>
          <cbc:LineExtensionAmount currencyID="SAR">4.00</cbc:LineExtensionAmount>
          <cbc:TaxExclusiveAmount currencyID="SAR">4.00</cbc:TaxExclusiveAmount>
          <cbc:TaxInclusiveAmount currencyID="SAR">4.60</cbc:TaxInclusiveAmount>
          <cbc:AllowanceTotalAmount currencyID="SAR">0.00</cbc:AllowanceTotalAmount>
          <cbc:PayableAmount currencyID="SAR">4.60</cbc:PayableAmount>
      </cac:LegalMonetaryTotal>
      <cac:InvoiceLine>
          <cbc:ID>1</cbc:ID>
          <cbc:InvoicedQuantity unitCode="H87">2.000000</cbc:InvoicedQuantity>
          <cbc:LineExtensionAmount currencyID="SAR">4.00</cbc:LineExtensionAmount>
          <cac:TaxTotal>
              <cbc:TaxAmount currencyID="SAR">0.60</cbc:TaxAmount>
              <cbc:RoundingAmount currencyID="SAR">4.60</cbc:RoundingAmount>
          </cac:TaxTotal>
          <cac:Item>
              <cbc:Name>قلم</cbc:Name>
              <cac:ClassifiedTaxCategory>
                  <cbc:ID>S</cbc:ID>
                  <cbc:Percent>15.00</cbc:Percent>
                  <cac:TaxScheme>
                      <cbc:ID>VAT</cbc:ID>
                  </cac:TaxScheme>
              </cac:ClassifiedTaxCategory>
          </cac:Item>
          <cac:Price>
              <cbc:PriceAmount currencyID="SAR">2.00</cbc:PriceAmount>
              <cac:AllowanceCharge>
                  <cbc:ChargeIndicator>false</cbc:ChargeIndicator>
                  <cbc:AllowanceChargeReason>discount</cbc:AllowanceChargeReason>
                  <cbc:Amount currencyID="SAR">0.00</cbc:Amount>
                  <cbc:BaseAmount currencyID="SAR">2.00</cbc:BaseAmount>
              </cac:AllowanceCharge>
          </cac:Price>
      </cac:InvoiceLine>
  </ubl:Invoice>

Invoice (SA_Invoice_388.xml)

 <?xml version="1.0" encoding="UTF-8"?>
  <ubl:Invoice xmlns:ubl="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2"
      xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"
      xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"
      xmlns:cec="urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2"
      xmlns:vrbl="urn:vertexinc:vrbl:ExtensionComponent:1">
      <!-- Required UBL extensions -->
      <cec:UBLExtensions>
          <cec:UBLExtension>
              <cec:ExtensionContent>
                  <vrbl:InvoiceExtension>
                      <!-- Invoice Transaction Codes -->
                      <vrbl:InvoiceSubtypeCode>0100000</vrbl:InvoiceSubtypeCode>
                      <vrbl:RoutingDetails>
                          <!-- Unique sender ID. Use sender VAT ID -->
                          <vrbl:Sender>399999999900003</vrbl:Sender>
                          <!-- Unique receiver ID. In case of Saudi Arabia always a static value identifies the country and the target version to be created -->
                          <vrbl:Receiver>GENERIC_SA_EINVOIC_1p2p0</vrbl:Receiver>
                      </vrbl:RoutingDetails>
                  </vrbl:InvoiceExtension>
              </cec:ExtensionContent>
          </cec:UBLExtension>
      </cec:UBLExtensions>
      <cbc:CustomizationID>urn:vertexinc:vrbl:billing:1</cbc:CustomizationID>
  	<cbc:ProfileID>urn:vertexinc:vrbl:billing:1</cbc:ProfileID>
      <cbc:ID>SME00023</cbc:ID>
      <!-- Invoice UUID -->
      <cbc:UUID>8d487816-70b8-4ade-a618-9d620b73814a</cbc:UUID>
      <cbc:IssueDate>2024-09-07</cbc:IssueDate>
      <cbc:IssueTime>12:21:28</cbc:IssueTime>
      <cbc:InvoiceTypeCode>388</cbc:InvoiceTypeCode>
      <cbc:DocumentCurrencyCode>SAR</cbc:DocumentCurrencyCode>
      <cac:AccountingSupplierParty>
          <cac:Party>
              <cac:PartyIdentification>
                  <!-- MOMRAH license -->
                  <cbc:ID schemeID="VRBL:SA:MOM">10101010101</cbc:ID>
              </cac:PartyIdentification>
              <cac:PostalAddress>
                  <cbc:StreetName>الامير سلطان | Prince Sultan</cbc:StreetName>
                  <cbc:BuildingNumber>2322</cbc:BuildingNumber>
                  <cbc:PlotIdentification>2ABC4433</cbc:PlotIdentification>
                  <cbc:CitySubdivisionName>المربع | Al-Murabba</cbc:CitySubdivisionName>
                  <cbc:CityName>الرياض | Riyadh</cbc:CityName>
                  <cbc:PostalZone>23333</cbc:PostalZone>
                  <cac:Country>
                      <cbc:IdentificationCode>SA</cbc:IdentificationCode>
                  </cac:Country>
              </cac:PostalAddress>
              <cac:PartyTaxScheme>
                  <cbc:CompanyID>399999999900003</cbc:CompanyID>
                  <cac:TaxScheme>
                      <cbc:ID>VAT</cbc:ID>
                  </cac:TaxScheme>
              </cac:PartyTaxScheme>
              <cac:PartyLegalEntity>
                  <cbc:RegistrationName>شركة توريد التكنولوجيا بأقصى سرعة المحدودة | Maximum Speed Tech Supply LTD</cbc:RegistrationName>
                  <!-- Commerical registration number (CRN) -->
                  <cbc:CompanyID>1010010000</cbc:CompanyID>
              </cac:PartyLegalEntity>
          </cac:Party>
      </cac:AccountingSupplierParty>
      <cac:AccountingCustomerParty>
          <cac:Party>
              <cac:PostalAddress>
                  <cbc:StreetName>صلاح الدين | Salah Al-Din</cbc:StreetName>
                  <cbc:BuildingNumber>1111</cbc:BuildingNumber>
                  <cbc:PlotIdentification>3XYZ4433</cbc:PlotIdentification>
                  <cbc:CitySubdivisionName>المروج | Al-Murooj</cbc:CitySubdivisionName>
                  <cbc:CityName>الرياض | Riyadh</cbc:CityName>
                  <cbc:PostalZone>12222</cbc:PostalZone>
                  <cac:Country>
                      <cbc:IdentificationCode>SA</cbc:IdentificationCode>
                  </cac:Country>
              </cac:PostalAddress>
              <cac:PartyTaxScheme>
                  <cbc:CompanyID>399999999800003</cbc:CompanyID>
                  <cac:TaxScheme>
                      <cbc:ID>VAT</cbc:ID>
                  </cac:TaxScheme>
              </cac:PartyTaxScheme>
              <cac:PartyLegalEntity>
                  <cbc:RegistrationName>شركة نماذج فاتورة المحدودة | Fatoora Samples LTD</cbc:RegistrationName>
                  <!-- Commerical registration number (CRN) -->
                  <cbc:CompanyID>1010010000</cbc:CompanyID>
              </cac:PartyLegalEntity>
          </cac:Party>
      </cac:AccountingCustomerParty>
      <cac:Delivery>
          <cbc:ActualDeliveryDate>2024-09-07</cbc:ActualDeliveryDate>
          <cbc:LatestDeliveryDate>2024-10-07</cbc:LatestDeliveryDate>
      </cac:Delivery>
      <cac:PaymentMeans>
          <cbc:PaymentMeansCode>30</cbc:PaymentMeansCode>
          <cac:PayeeFinancialAccount>
              <cbc:ID>XY1234567812345678</cbc:ID>
              <cbc:Name>BankAccountOwner</cbc:Name>
              <cbc:PaymentNote>Payment by credit</cbc:PaymentNote>
              <cac:FinancialInstitutionBranch>
                  <cbc:ID>XYBADKKKXXX</cbc:ID>
              </cac:FinancialInstitutionBranch>
          </cac:PayeeFinancialAccount>
      </cac:PaymentMeans>
      <cac:AllowanceCharge>
          <cbc:ChargeIndicator>false</cbc:ChargeIndicator>
          <cbc:AllowanceChargeReason>discount</cbc:AllowanceChargeReason>
          <cbc:Amount currencyID="SAR">0.00</cbc:Amount>
          <cac:TaxCategory>
              <cbc:ID>S</cbc:ID>
              <cbc:Percent>15</cbc:Percent>
              <cac:TaxScheme>
                  <cbc:ID>VAT</cbc:ID>
              </cac:TaxScheme>
          </cac:TaxCategory>
      </cac:AllowanceCharge>
      <cac:TaxTotal>
          <cbc:TaxAmount currencyID="SAR">0.6</cbc:TaxAmount>
          <cac:TaxSubtotal>
              <cbc:TaxableAmount currencyID="SAR">4.00</cbc:TaxableAmount>
              <cbc:TaxAmount currencyID="SAR">0.60</cbc:TaxAmount>
              <cac:TaxCategory>
                  <cbc:ID>S</cbc:ID>
                  <cbc:Percent>15.00</cbc:Percent>
                  <cac:TaxScheme>
                      <cbc:ID>VAT</cbc:ID>
                  </cac:TaxScheme>
              </cac:TaxCategory>
          </cac:TaxSubtotal>
      </cac:TaxTotal>
      <cac:LegalMonetaryTotal>
          <cbc:LineExtensionAmount currencyID="SAR">4.00</cbc:LineExtensionAmount>
          <cbc:TaxExclusiveAmount currencyID="SAR">4.00</cbc:TaxExclusiveAmount>
          <cbc:TaxInclusiveAmount currencyID="SAR">4.60</cbc:TaxInclusiveAmount>
          <cbc:AllowanceTotalAmount currencyID="SAR">0.00</cbc:AllowanceTotalAmount>
          <cbc:PayableAmount currencyID="SAR">4.60</cbc:PayableAmount>
      </cac:LegalMonetaryTotal>
      <cac:InvoiceLine>
          <cbc:ID>1</cbc:ID>
          <cbc:InvoicedQuantity unitCode="H87">2.000000</cbc:InvoicedQuantity>
          <cbc:LineExtensionAmount currencyID="SAR">4.00</cbc:LineExtensionAmount>
          <cac:TaxTotal>
              <cbc:TaxAmount currencyID="SAR">0.60</cbc:TaxAmount>
              <cbc:RoundingAmount currencyID="SAR">4.60</cbc:RoundingAmount>
          </cac:TaxTotal>
          <cac:Item>
              <cbc:Name>قلم رصاص</cbc:Name>
              <cac:ClassifiedTaxCategory>
                  <cbc:ID>S</cbc:ID>
                  <cbc:Percent>15.00</cbc:Percent>
                  <cac:TaxScheme>
                      <cbc:ID>VAT</cbc:ID>
                  </cac:TaxScheme>
              </cac:ClassifiedTaxCategory>
          </cac:Item>
          <cac:Price>
              <cbc:PriceAmount currencyID="SAR">2.00</cbc:PriceAmount>
              <cac:AllowanceCharge>
                  <cbc:ChargeIndicator>false</cbc:ChargeIndicator>
                  <cbc:AllowanceChargeReason>discount</cbc:AllowanceChargeReason>
                  <cbc:Amount currencyID="SAR">0.00</cbc:Amount>
                  <cbc:BaseAmount currencyID="SAR">2.00</cbc:BaseAmount>
              </cac:AllowanceCharge>
          </cac:Price>
      </cac:InvoiceLine>
  </ubl:Invoice>

Invoice for Payment Adjustments (SA_Invoice_388_Advance_Payment_adjustments_with_foreign_currency.xml)

 <?xml version="1.0" encoding="UTF-8"?>
  <ubl:Invoice xmlns:ubl="urn:oasis:names:specification:ubl:schema:xsd:Invoice-2"
      xmlns:cac="urn:oasis:names:specification:ubl:schema:xsd:CommonAggregateComponents-2"
      xmlns:cbc="urn:oasis:names:specification:ubl:schema:xsd:CommonBasicComponents-2"
      xmlns:cec="urn:oasis:names:specification:ubl:schema:xsd:CommonExtensionComponents-2"
      xmlns:vrbl="urn:vertexinc:vrbl:ExtensionComponent:1">
      <!-- Required UBL extensions -->
      <cec:UBLExtensions>
          <cec:UBLExtension>
              <cec:ExtensionContent>
                  <vrbl:InvoiceExtension>
                      <!-- Invoice Transaction Codes -->
                      <vrbl:InvoiceSubtypeCode>0100000</vrbl:InvoiceSubtypeCode>
                      <vrbl:RoutingDetails>
                          <!-- Unique sender ID. Use sender VAT ID -->
                          <vrbl:Sender>399999999900003</vrbl:Sender>
                          <!-- Unique receiver ID. In case of Saudi Arabia always a static value identifies the country and the target version to be created -->
                          <vrbl:Receiver>GENERIC_SA_EINVOIC_1p2p0</vrbl:Receiver>
                      </vrbl:RoutingDetails>
                  </vrbl:InvoiceExtension>
              </cec:ExtensionContent>
          </cec:UBLExtension>
      </cec:UBLExtensions>
      <cbc:CustomizationID>urn:vertexinc:vrbl:billing:1</cbc:CustomizationID>
  	<cbc:ProfileID>urn:vertexinc:vrbl:billing:1</cbc:ProfileID>
      <cbc:ID>123456</cbc:ID>
      <!-- Invoice UUID -->
      <cbc:UUID>a79760f7-2f48-4da9-85a5-40459a147c80</cbc:UUID>
      <cbc:IssueDate>2024-09-07</cbc:IssueDate>
      <cbc:IssueTime>15:23:55</cbc:IssueTime>
      <cbc:InvoiceTypeCode>388</cbc:InvoiceTypeCode>
      <!-- Foreign Currency -->
      <cbc:DocumentCurrencyCode>USD</cbc:DocumentCurrencyCode>
      <!-- Domestic Currency -->
      <cbc:TaxCurrencyCode>SAR</cbc:TaxCurrencyCode>
      <cac:AccountingSupplierParty>
          <cac:Party>
              <cac:PartyIdentification>
                  <!-- MOMRAH license -->
                  <cbc:ID schemeID="VRBL:SA:MOM">10101010101</cbc:ID>
              </cac:PartyIdentification>
              <cac:PostalAddress>
                  <cbc:StreetName>الامير سلطان | Prince Sultan</cbc:StreetName>
                  <cbc:BuildingNumber>2322</cbc:BuildingNumber>
                  <cbc:CitySubdivisionName>المربع | Al-Murabba</cbc:CitySubdivisionName>
                  <cbc:CityName>الرياض | Riyadh</cbc:CityName>
                  <cbc:PostalZone>23333</cbc:PostalZone>
                  <cac:Country>
                      <cbc:IdentificationCode>SA</cbc:IdentificationCode>
                  </cac:Country>
              </cac:PostalAddress>
              <cac:PartyTaxScheme>
                  <cbc:CompanyID>399999999900003</cbc:CompanyID>
                  <cac:TaxScheme>
                      <cbc:ID>VAT</cbc:ID>
                  </cac:TaxScheme>
              </cac:PartyTaxScheme>
              <cac:PartyLegalEntity>
                  <cbc:RegistrationName>شركة توريد التكنولوجيا بأقصى سرعة المحدودة | Maximum Speed Tech Supply LTD</cbc:RegistrationName>
                  <!-- Commerical registration number (CRN) -->
                  <cbc:CompanyID>1010010000</cbc:CompanyID>
              </cac:PartyLegalEntity>
          </cac:Party>
      </cac:AccountingSupplierParty>
      <cac:AccountingCustomerParty>
          <cac:Party>
              <cac:PostalAddress>
                  <cbc:StreetName>صلاح الدين | Salah Al-Din</cbc:StreetName>
                  <cbc:BuildingNumber>1111</cbc:BuildingNumber>
                  <cbc:CitySubdivisionName>المروج | Al-Murooj</cbc:CitySubdivisionName>
                  <cbc:CityName>الرياض | Riyadh</cbc:CityName>
                  <cbc:PostalZone>12222</cbc:PostalZone>
                  <cac:Country>
                      <cbc:IdentificationCode>SA</cbc:IdentificationCode>
                  </cac:Country>
              </cac:PostalAddress>
              <cac:PartyTaxScheme>
                  <cbc:CompanyID>399999999800003</cbc:CompanyID>
                  <cac:TaxScheme>
                      <cbc:ID>VAT</cbc:ID>
                  </cac:TaxScheme>
              </cac:PartyTaxScheme>
              <cac:PartyLegalEntity>
                  <cbc:RegistrationName>شركة نماذج فاتورة المحدودة | Fatoora Samples LTD</cbc:RegistrationName>
                  <!-- Commerical registration number (CRN) -->
                  <cbc:CompanyID>1010010000</cbc:CompanyID>
              </cac:PartyLegalEntity>
          </cac:Party>
      </cac:AccountingCustomerParty>
      <cac:Delivery>
          <cbc:ActualDeliveryDate>2024-09-05</cbc:ActualDeliveryDate>
      </cac:Delivery>
      <cac:PaymentMeans>
          <cbc:PaymentMeansCode>30</cbc:PaymentMeansCode>
          <cac:PayeeFinancialAccount>
              <cbc:ID>XY1234567812345678</cbc:ID>
              <cbc:Name>BankAccountOwner</cbc:Name>
              <cbc:PaymentNote>Payment by credit</cbc:PaymentNote>
              <cac:FinancialInstitutionBranch>
                  <cbc:ID>XYBADKKKXXX</cbc:ID>
              </cac:FinancialInstitutionBranch>
          </cac:PayeeFinancialAccount>
      </cac:PaymentMeans>
      <cac:AllowanceCharge>
          <cbc:ChargeIndicator>false</cbc:ChargeIndicator>
          <cbc:AllowanceChargeReason>discount</cbc:AllowanceChargeReason>
          <cbc:Amount currencyID="USD">100.00</cbc:Amount>
          <cac:TaxCategory>
              <cbc:ID>S</cbc:ID>
              <cbc:Percent>15</cbc:Percent>
              <cac:TaxScheme>
                  <cbc:ID>VAT</cbc:ID>
              </cac:TaxScheme>
          </cac:TaxCategory>
      </cac:AllowanceCharge>
      <cac:TaxTotal>
          <!-- Tax amount in domestic currency -->
          <cbc:TaxAmount currencyID="SAR">1068.75</cbc:TaxAmount>
          <!-- no VAT breakdwon -->
      </cac:TaxTotal>
      <cac:TaxTotal>
          <!-- Tax amount in foreign currency -->
          <cbc:TaxAmount currencyID="USD">285</cbc:TaxAmount>
          <!-- VAT breakdwon -->
          <cac:TaxSubtotal>
              <cbc:TaxableAmount currencyID="USD">1900</cbc:TaxableAmount>
              <cbc:TaxAmount currencyID="USD">285</cbc:TaxAmount>
              <cac:TaxCategory>
                  <cbc:ID>S</cbc:ID>
                  <cbc:Percent>15.00</cbc:Percent>
                  <cac:TaxScheme>
                      <cbc:ID>VAT</cbc:ID>
                  </cac:TaxScheme>
              </cac:TaxCategory>
          </cac:TaxSubtotal>
      </cac:TaxTotal>
      <cac:LegalMonetaryTotal>
          <cbc:LineExtensionAmount currencyID="USD">2000</cbc:LineExtensionAmount>
          <cbc:TaxExclusiveAmount currencyID="USD">1900</cbc:TaxExclusiveAmount>
          <cbc:TaxInclusiveAmount currencyID="USD">2185</cbc:TaxInclusiveAmount>
          <cbc:AllowanceTotalAmount currencyID="USD">100</cbc:AllowanceTotalAmount>
          <cbc:PrepaidAmount currencyID="USD">1150</cbc:PrepaidAmount>
          <cbc:PayableAmount currencyID="USD">1035</cbc:PayableAmount>
      </cac:LegalMonetaryTotal>
      <cac:InvoiceLine>
          <cbc:ID>1</cbc:ID>
          <cbc:InvoicedQuantity unitCode="H87">1.00</cbc:InvoicedQuantity>
          <cbc:LineExtensionAmount currencyID="USD">2000</cbc:LineExtensionAmount>
          <cac:TaxTotal>
              <cbc:TaxAmount currencyID="USD">300</cbc:TaxAmount>
              <cbc:RoundingAmount currencyID="USD">2300</cbc:RoundingAmount>
          </cac:TaxTotal>
          <cac:Item>
              <cbc:Name>حاسوب محمول|Laptop</cbc:Name>
              <cac:ClassifiedTaxCategory>
                  <cbc:ID>S</cbc:ID>
                  <cbc:Percent>15.00</cbc:Percent>
                  <cac:TaxScheme>
                      <cbc:ID>VAT</cbc:ID>
                  </cac:TaxScheme>
              </cac:ClassifiedTaxCategory>
          </cac:Item>
          <cac:Price>
              <cbc:PriceAmount currencyID="USD">2000.00</cbc:PriceAmount>
          </cac:Price>
      </cac:InvoiceLine>
      
      <!-- Invoice Line (for prepayment amounts) -->
      <cac:InvoiceLine>
          <cbc:ID>2</cbc:ID>
          <!-- Principle elements must be zero -->
          <cbc:InvoicedQuantity unitCode="H87">0.00</cbc:InvoicedQuantity>
          <cbc:LineExtensionAmount currencyID="USD">0.00</cbc:LineExtensionAmount>
          <cac:DocumentReference>
              <!-- Details of the prepaid invocie -->
              <cbc:ID>46531</cbc:ID>
              <cbc:UUID>a79760f7-2f48-4da9-85a5-40459a147c80</cbc:UUID>
              <cbc:IssueDate>2024-08-15</cbc:IssueDate>
              <cbc:IssueTime>12:28:17</cbc:IssueTime>
              <!-- Code indicates prepayment invoice -->
              <cbc:DocumentTypeCode>386</cbc:DocumentTypeCode>
          </cac:DocumentReference>
          <cac:TaxTotal>
              <!-- Principle elements must be zero -->
              <cbc:TaxAmount currencyID="USD">0</cbc:TaxAmount>
              <cbc:RoundingAmount currencyID="USD">0</cbc:RoundingAmount>
              <cac:TaxSubtotal>
                  <!-- Provide prepayment amounts (taxable and tax amount) -->
                  <cbc:TaxableAmount currencyID="USD">1000</cbc:TaxableAmount>
                  <cbc:TaxAmount currencyID="USD">150</cbc:TaxAmount>
                  <cac:TaxCategory>
                      <cbc:ID>S</cbc:ID>
                      <cbc:Percent>15.00</cbc:Percent>
                      <cac:TaxScheme>
                          <cbc:ID>VAT</cbc:ID>
                      </cac:TaxScheme>
                  </cac:TaxCategory>
              </cac:TaxSubtotal>
          </cac:TaxTotal>
          <cac:Item>
              <cbc:Name>حاسوب محمول|Laptop</cbc:Name>
              <cac:ClassifiedTaxCategory>
                  <cbc:ID>S</cbc:ID>
                  <cbc:Percent>15.00</cbc:Percent>
                  <cac:TaxScheme>
                      <cbc:ID>VAT</cbc:ID>
                  </cac:TaxScheme>
              </cac:ClassifiedTaxCategory>
          </cac:Item>
          <cac:Price>
              <!-- Principle elements must be zero -->
              <cbc:PriceAmount currencyID="USD">0.00</cbc:PriceAmount>
          </cac:Price>
      </cac:InvoiceLine>
  </ubl:Invoice>