Invocie

Tech

UBL 2.1 সরল ভাষায়: আধুনিক e-invoicing-এর পেছনে থাকা XML মানদণ্ড

বিশ্বের প্রায় প্রতিটি বড় e-invoicing আদেশ পর্দার আড়ালে UBL 2.1 তৈরি করে। যে অংশগুলো আপনাকে সত্যিই বুঝতে হবে, সেগুলোর একটা jargon-মুক্ত ভ্রমণ এখানে।

Invocie Team · ২১ জানুয়ারি, ২০২৬ · 5 মিনিট পঠন


UBL — Universal Business Language — is the OASIS standard underpinning Peppol BIS, EN 16931, ZATCA Phase-2, the UAE's PINT profile, India's IRP/e-invoice schema (with extensions), and several LATAM regimes. If your e-invoicing strategy doesn't make peace with UBL 2.1, you're going to be re-implementing the same XML over and over.

The shape of an UBL invoice

An UBL invoice is an XML document with three main namespaces: cbc (Common Basic Components — primitive types like ID and Amount), cac (Common Aggregate Components — complex types like Party and TaxTotal), and the document namespace itself. Every UBL document follows the same pattern:

<Invoice
    xmlns="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">
  <cbc:CustomizationID>urn:cen.eu:en16931:2017</cbc:CustomizationID>
  <cbc:ID>INV-2026-0001</cbc:ID>
  <cbc:IssueDate>2026-01-15</cbc:IssueDate>
  <cbc:DocumentCurrencyCode>EUR</cbc:DocumentCurrencyCode>
  <cac:AccountingSupplierParty>...</cac:AccountingSupplierParty>
  <cac:AccountingCustomerParty>...</cac:AccountingCustomerParty>
  <cac:TaxTotal>...</cac:TaxTotal>
  <cac:LegalMonetaryTotal>...</cac:LegalMonetaryTotal>
  <cac:InvoiceLine>...</cac:InvoiceLine>
</Invoice>

Five concepts that are almost always wrong

  1. TaxTotal vs. LegalMonetaryTotal. The former breaks tax down by rate. The latter is the consolidated payable amount. Don't confuse them.
  2. AllowanceCharge can be either a discount or a surcharge — controlled by ChargeIndicator (false = allowance, true = charge). Wrong indicator → wrong total.
  3. Endpoint IDs need a scheme attribute (schemeID="0088" etc.). Without it, validators give cryptic errors about missing identifiers.
  4. Quantities use a unit code from UN/CEFACT (EA = each, KGM = kilogram, HUR = hour). "piece" is not a valid value.
  5. TaxCategory codes are UNCL5305: S = standard rate, Z = zero rate, E = exempt, AE = reverse charge. Don't invent new codes.

Invocie's EUStrategy emits UBL 2.1 conforming to BIS Billing 3.0 — same XML works for Peppol APs, the UAE PINT profile, and any system that consumes EN 16931.


সংশ্লিষ্ট পঠন

Tamper-evident audit trail-এর জন্য Hash Chain

ZATCA এদের বাধ্যতামূলক করে, EU auditor-রা এদের পছন্দ করেন, আর implement করাও সস্তা। চেইন করা SHA-256 কীভাবে invoice ledger-কে এমন কিছুতে পরিণত করে যার integrity আপনি প্রমাণ করতে পারবেন।

Multi-region e-invoicing API design করা: মাঠ থেকে শেখা পাঠ

যদি আপনি এমন infrastructure বানাচ্ছেন যা clearance এবং post-audit—দুই ধরনের দেশকে serve করে, তবে abstractions ঠিক করার সুযোগ একটাই। এই হলো যা আমরা কঠিন পথে শিখেছি।

Integrating UAE E-Invoicing With Your ERP: A Technical Guide

A technical walkthrough for the Head of IT and ERP transformation lead: how UAE PINT maps onto SAP, Oracle, Microsoft Dynamics, and custom ERPs, the data you must clean first, and the integration patterns that survive production.

প্রতিটি বাজারে সম্মতিযুক্ত ইনভয়েস পাঠান

ZATCA, FTA, Peppol ও বৈশ্বিক পোস্ট-অডিট — একটিই API।

আমাদের দলের সঙ্গে কথা বলুন