Get started

Invoice validation

Every invoice you push is validated against the UAE PINT-AE rules, converted to UBL XML and delivered over Peppol. POST /oauth/invoices/validate runs that same validation without storing or sending anything, so you can fix your data before an invoice exists. This page documents what is checked, which request field ends up where in the XML, and how to read a failure.

How it fits the send flow

An invoice you push is validated twice, with the same rules both times:

  1. When you submit it. POST /oauth/invoices and PATCH /oauth/invoices/{invoice_id} validate the invoice before accepting it. If it fails, the request is answered HTTP 422 with the failing rules in errors, and nothing is stored or queued. The invoice number stays free, and a rejected update leaves the stored invoice unchanged. A valid invoice is answered 202 and queued.
  2. Just before it is sent. The send pipeline checks the invoice again right before it builds the XML. A failure here usually means something changed after the invoice was accepted, typically the entity's details or the exchange rate. It then shows up as a VALIDATION_FAILED status on the invoice, with the same errors. Fix the cause and PATCH the invoice to re-queue it.

The seller party comes from your entity record, not from the request body. A seller error, such as a non-conformant entity TRN, is fixed by updating the entity. Changing the invoice payload does not fix it.

POST /oauth/invoices/validate runs the same rule engine and the same XML builder as the send, so a payload that passes there is accepted by Push invoice. Nothing is persisted and no invoice number is reserved — validate the same payload as often as you like.

The response is always HTTP 200, whether or not the data is valid. data.is_valid carries the verdict.

Request and response

The body is exactly the body of Push invoice — the same schema, the same conditional rules.

Request
POST /oauth/invoices/validate
Authorization: Bearer <access_token>
Content-Type: application/json

{
  "entity_id": "64a1b2c3d4e5f6a7b8c9d0e1",
  "invoice_number": "INV-1001",
  "date": "2026-08-12",
  "due_date": "2026-08-14",
  "currency": "AED",
  "payment_means_code": "30",
  "payment_account_id": "AE070331234567890123456",
  "buyer": {
    "name": "Buyer LLC",
    "trn": "104239483100003",
    "country": "AE",
    "address_line1": "Sheikh Zayed Road 12",
    "city": "Dubai",
    "region": "Dubai",
    "legal_registration_id": "CN-1234567",
    "legal_registration_type": "TL",
    "authority_name": "Department of Economic Development - Dubai"
  },
  "line_items": [
    {
      "description": "Mercedes Benz",
      "item_name": "Mercedes",
      "quantity": 1,
      "unit_amount": 300000,
      "tax_amount": 15000,
      "line_amount": 300000,
      "tax_rate": 5,
      "tax_category": "S"
    }
  ]
}

A payload with nothing wrong with it:

200 — valid
{
  "message": "Invoice data is valid and ready to send",
  "data": {
    "is_valid": true,
    "entity_id": "64a1b2c3d4e5f6a7b8c9d0e1",
    "invoice_number": "INV-1001",
    "total_errors": 0,
    "errors": [],
    "warnings": []
  }
}

The same payload with a 3-digit buyer TRN and a zero-VAT line. Each entry names the section it came from, so you can map it back to the part of your payload that needs fixing:

200 — invalid
{
  "message": "Invoice data has validation errors",
  "data": {
    "is_valid": false,
    "entity_id": "64a1b2c3d4e5f6a7b8c9d0e1",
    "invoice_number": "INV-1001",
    "total_errors": 3,
    "errors": [
      { "message": "Contact TaxNumber (TRN) must be 15 characters long.", "section": "contact_trn" },
      { "message": "Total tax amount cannot be zero.", "section": "tax" },
      { "message": "Tax amount cannot be zero.", "section": "invoice_items" }
    ],
    "warnings": []
  }
}

data.warnings is separate on purpose: it lists things that are not rule failures but would still make the send fail. Today that means a duplicate invoice number for the entity, which Push invoice rejects with 409. A payload can be is_valid: true and still carry a warning.

Push invoice reports the same errors when you skip the dry run. It answers with a 422 rather than a 200, since nothing was created. Here the entity holds a TRN that is not a conformant UAE TRN:

422 — Push invoice refused
HTTP/1.1 422 Unprocessable Entity

{
  "error": "Invoice failed validation and was not sent. Nothing was stored and the invoice number is still free: fix the errors listed and send the invoice again.",
  "invoice_number": "INV-1001",
  "total_errors": 1,
  "errors": [
    {
      "message": "Seller VAT identifier (IBT-031) is missing or not a conformant UAE TRN. It is taken from the entity record, not from the invoice payload, and must be 15 digits, starting with 1, ending with 03 or 001 (IBR-132-AE). Update the TRN on the entity, then send the invoice again.",
      "section": "seller_party"
    }
  ]
}

Error sections

Every error carries one of these section names.

sectionWhat it covers
endpoint_idsThe entity has no Peppol registry code — it is not registered for sending yet.
contact_trnBuyer identity: TRN missing or not 15 characters, buyer name missing, address country missing or not a supported country.
invoice_headerDocument level: invoice number, issue date format, currency code, due date format, document identifier.
seller_partySeller identity, address, TRN and legal registration — including IBR-173-AE.
buyer_partyBuyer identity, postal address and legal registration — address line 1, city and region for every buyer (IBR-144-AE), and the BTUAE-16 code check.
taxDocument VAT: total tax or taxable amount is zero, currency mismatch, percentage out of range.
legal_monetaryDocument totals: line extension, tax exclusive/inclusive and payable amounts.
invoice_itemsPer line: zero tax, zero line amount, zero price, missing account code, missing description.
documentThe invoice passed every check above but the PINT document could not be built from it. Nothing was sent. This is reported when you send or validate, never later; quote the invoice number to support.

The seller and the buyer use the same structure: cac:PartyLegalEntity holds the legal name and a cbc:CompanyID, whose attributes carry the registration type and, for two of the types, a second value. The UAE data dictionary writes the business terms as BTUAE-nn; the PINT AE specification writes them BTAE-nn. They are the same terms.

ValueSellerBuyerWhere in the UBL
Legal nameIBT-027IBT-044PartyLegalEntity/cbc:RegistrationName
Legal registration IDIBT-030IBT-047PartyLegalEntity/cbc:CompanyID
Registration typeBTAE-15BTAE-16CompanyID/@schemeAgencyID
TL authority nameBTAE-12BTAE-11CompanyID/@schemeAgencyName
Passport countryBTAE-18BTAE-19CompanyID/@schemeAgencyName

The four registration types, and what each one carries:

CodeMeaningSecond valueNotes
TLCommercial / Trade licenseAuthority name: required (entity issuing_authority, buyer authority_name)Sent as @schemeAgencyName.
EIDEmirates IDNoneNo @schemeAgencyName is sent, even if you supply an authority.
PASPassportPassport country: required (entity passport_country, buyer passport_country_code)A two-letter ISO 3166-1 code, for example IN or GB. Sent as @schemeAgencyName.
CDCabinet decisionNoneNo @schemeAgencyName is sent, even if you supply an authority.
  • @schemeAgencyName has two meanings: the issuing authority for TL and the passport country for PAS. It is written only for those two types.
  • The type goes in @schemeAgencyID, never in @schemeID: that attribute must come from the ISO 6523 code list (IBR-CL-11), so a value such as TL would fail. It is left out.
  • A TIN or a TRN is never a legal registration number. The TIN is the endpoint id (cbc:EndpointID) and the TRN is the VAT identifier (PartyTaxScheme/cbc:CompanyID), so neither is ever copied into PartyLegalEntity/cbc:CompanyID.
  • Each party carries at most one legal registration identifier (IBR-100 seller, IBR-103 buyer).

Each rule is named by its PINT AE ID. Copy an ID, for example IBR-150-AE, and search for it in the PINT AE rules on the Peppol documentation to read the rule in full.

Seller. Every UAE seller is addressed on the 0235 scheme, so the registration has no exception on the seller side: the id and its type are always required, plus the authority for TL or the country for PAS.

RuleWhat PINT AE requiresWhat the API does
IBR-006An invoice must contain the seller name (IBT-027).Taken from the entity's company name.
IBR-150-AE (fatal)The seller legal registration identifier (IBT-030) must be provided when the scheme identifier (IBT-034-1) is 0235.Always asked: every UAE seller has a 0235 endpoint. A missing id is a 422 in seller_party.
IBR-181-AEWhen the scheme is 0235 and IBT-030 is provided, the registration type (BTAE-15) must be present.A missing type is a 422.
IBR-173-AE (fatal)The type must be Commercial/Trade license, Emirates ID, Passport or Cabinet decision when the seller ID is provided, the scheme is 0235 and the seller country is AE.Only TL, EID, PAS or CD are accepted.
IBR-172-AE (fatal)A TL registration must carry its authority name in @schemeAgencyName.A TL without issuing_authority is a 422.
IBR-012-AE / IBR-013-AEA passport registration must carry the issuing country (BTAE-18), coded with ISO 3166-1.A PAS without passport_country, or with a code that is not an ISO 3166-1 alpha-2 country, is a 422.

Buyer. The buyer's name is always required. Its registration id is required only when the invoice type is Out of scope of VAT (480) or Credit note related to goods or services (81), and is optional otherwise. When you do send an id, its type and the TL authority or PAS country apply.

RuleWhat PINT AE requiresWhat the API does
IBR-007An invoice must contain the buyer name (IBT-044).buyer.name is required.
IBR-136-AEThe buyer legal registration identifier (IBT-047) must be present when the invoice type code (IBT-003) is Out of scope of VAT (480) or Credit note related to goods or services (81).Asked only on those two types, including a document that becomes one because every line is exempt or out of scope. On every other invoice the id is optional.
IBR-180-AEWhen the scheme (IBT-049-1) is 0235 and IBT-047 is provided, the registration type (BTAE-16) must be present.An id without a type is a 422.
IBR-183-AEThe type must be Commercial/Trade license, Emirates ID, Passport or Cabinet decision when the buyer ID is provided and the scheme is 0235.Only TL, EID, PAS or CD are accepted (400).
IBR-101-AEA TL buyer must carry its authority name (BTAE-11).A TL without authority_name is a 422.
IBR-010-AE / IBR-011-AEA passport buyer must carry the issuing country (BTAE-19), coded with ISO 3166-1.A PAS without passport_country_code, or with a code that is not an ISO 3166-1 alpha-2 country, is a 422.

Known specification issue (IBR-149-AE). Its message says the buyer legal registration identifier is required for a buyer on the 0235 scheme, but its test checks the buyer's VAT number, not PartyLegalEntity. The API does not enforce a buyer registration on the strength of that rule. Sending the buyer's registration is still recommended for a UAE business buyer, in case the rule is corrected.

Where you give the values. The seller's once, on the entity: legal_registration_id, legal_registration_type and issuing_authority (TL) or passport_country (PAS), with PATCH or PUT /oauth/entities/{entity_id}, and every invoice for the entity carries them. The buyer's on each invoice: buyer.legal_registration_id, legal_registration_type, authority_name and passport_country_code. Nothing is filled in for you: a missing value is reported, never replaced by the TIN, the TRN or the registry code. An entity update is checked at once: an id needs its type, a type its id, TL its authority and PAS its country (a valid ISO 3166-1 code), or the update is a 400.

What each type looks like in the UBL
<!-- TL: trade licence, with its authority -->
<cac:PartyLegalEntity>
  <cbc:RegistrationName>Company Trading LLC</cbc:RegistrationName>
  <cbc:CompanyID schemeAgencyID="TL" schemeAgencyName="Dubai DET">CN-1234567</cbc:CompanyID>
</cac:PartyLegalEntity>

<!-- EID: no schemeAgencyName -->
<cac:PartyLegalEntity>
  <cbc:RegistrationName>Person Name</cbc:RegistrationName>
  <cbc:CompanyID schemeAgencyID="EID">784-1990-1234567-1</cbc:CompanyID>
</cac:PartyLegalEntity>

<!-- PAS: passport, with the issuing country -->
<cac:PartyLegalEntity>
  <cbc:RegistrationName>Person Name</cbc:RegistrationName>
  <cbc:CompanyID schemeAgencyID="PAS" schemeAgencyName="IN">P1234567</cbc:CompanyID>
</cac:PartyLegalEntity>

<!-- CD: no schemeAgencyName -->
<cac:PartyLegalEntity>
  <cbc:RegistrationName>Government Entity</cbc:RegistrationName>
  <cbc:CompanyID schemeAgencyID="CD">CD-2024-001</cbc:CompanyID>
</cac:PartyLegalEntity>

<!-- Buyer whose registration is not required: the element is left out -->
<cac:PartyLegalEntity>
  <cbc:RegistrationName>Buyer Trading LLC</cbc:RegistrationName>
</cac:PartyLegalEntity>

Sources. These rules are from the PINT AE Billing 1.0.4 specification (the Credit Note transaction and the Self-Billing specification have their own pages and are not covered here):

VAT category and zero-tax lines (IBT-151)

Set line_items[].tax_category per line. It is the line's VAT treatment, and a zero tax amount is valid on every category except S — a zero-rated, exempt, out-of-scope, reverse-charge or margin line charges no VAT, and the rules make a non-zero amount on those categories fatal. Categories may be mixed on one invoice: each one is delivered as its own cac:TaxSubtotal.

CodeMeaningRules
SStandard ratedMust charge VAT at 5% (IBR-190-AE). A zero tax_amount on an “S” line is rejected — state the line’s real category instead.
ZZero ratedtax_amount must be 0. No exemption reason.
EExempttax_amount must be 0 and tax_exemption_reason is required (IBR-167-AE) — the request is refused without it.
OOut of scope of taxtax_amount must be 0. An invoice whose every line is E or O is delivered as invoice type 480, and such a credit note as 81 (IBR-151-AE).
AEReverse chargetax_amount must be 0 — the buyer accounts for the VAT. Requires buyer.trn, item_type (goods code) and item_standard_id.
NMargin schemetax_amount must be 0; the rate stays 5% and the VAT is not disclosed.

Full labels are accepted too ("Zero Rated", "Exempt", "Reverse Charge"), as are the field names tax_category_code, vat_category and category. Anything outside the list is reported against the line rather than silently treated as standard rated.

An exempt line needs tax_exemption_reason (IBT-121); the request is refused without it. These four are the UAE codelist reasons; the list is not closed, so any other code you are required to use is carried through as sent.

CodeReason
DL8.46.1Certain financial services
DL8.46.2Residential units — lease or sale
DL8.46.3Bare land
DL8.46.4Local passenger transport

A reverse-charge line additionally needs item_type — the type of goods, one of DL8.48.8.1 (gold and diamonds), DL8.48.8.2 (electronic devices), DL8.48.3.1 (crude or refined oil), DL8.48.3.2 (natural gas) or DL8.48.3.3 (pure hydrocarbons) — plus item_standard_id (your item code) and the buyer's TRN.

How tax amounts are checked

Your line tax_amount is used exactly as you send it — it is never recalculated. The checks are:

  • Per line: an S line must carry tax; Z, E, O, AE and N lines must carry 0 (see the table above).
  • Per VAT category: the standard-rated tax must equal its taxable amount × 5%, within ±0.02 (aligned-ibrp-s-09, fatal). Round each line normally and you stay inside that margin.
  • Per invoice: the VAT total is total_tax when you send it, otherwise the sum of the line tax amounts. A small difference between total_tax and your lines is absorbed into the largest standard-rated category (ibr-co-14), which must still pass the ±0.02 check.

UAE supply types (BTUAE-02 and IBT-151)

A supply type is declared in one of two ways. Reverse charge and zero rated are a line's tax_category. The others are flags in transaction_type_code: eight characters, each 0 or 1, in the order free trade zone, deemed supply, margin scheme, summary invoice, continuous supply, disclosed agent, e-commerce, exports. A flag makes its extra fields mandatory, and a field sent without its flag is accepted and ignored.

SupplyDeclare it withAlso sendWhat happens
Reverse charge (RCM)line tax_category "AE"buyer.trn; per line item_type (goods code) and item_standard_id; tax_amount 0Delivers an AE tax subtotal. The buyer accounts for the VAT. A missing goods code or item id fails validation.
Zero ratedline tax_category "Z"tax_rate 0 and tax_amount 0Delivers a Z tax subtotal. Nothing else is required.
Free trade zonetransaction_type_code "10000000" (position 1)beneficiary_id — the TRN or TIN of the party the supply is forDelivers the beneficiary as cac:BuyerCustomerParty. Without beneficiary_id the request is refused (400).
Exportstransaction_type_code "00000001" (position 8), with "Z" lines for a qualifying exportthe delivery block (address_line1, city, country_subdivision, country); buyer.participant_id when the buyer is on PeppolTurns on the export rules: a buyer not on Peppol is addressed by the FTA placeholder 0235:9900000099, and a non-AED invoice gets the Central Bank rate when you send none.
E-commercetransaction_type_code "00000010" (position 7)the delivery block (address_line1, city, country_subdivision)Delivers the deliver-to address (IBR-142-AE). Without it the request is refused (400).
Deemed supplytransaction_type_code "01000000" (position 2)nothing extra — there is no customerAddresses the buyer to the FTA placeholder 0235:9900000097.
Summary invoicetransaction_type_code "00010000" (position 4)invoice_period_start and/or invoice_period_end (YYYY-MM-DD)Delivers cac:InvoicePeriod. With neither date the request is refused (400).
Disclosed agent billingtransaction_type_code "00000100" (position 6)principal_id — the principal's UAE TRN, which must not be your ownDelivers the principal as cac:SellerSupplierParty. A missing or malformed TRN is refused (400); your own TRN fails validation (IBR-176-AE).

Deemed supply, margin scheme and summary invoice cannot be declared on a document whose every line is exempt or out of scope — it is sent as out of scope of tax (480 or 81), and the request is refused (400, IBR-157-AE). Zero rating is not inferred from the export flag. Send "Z" on a line that qualifies, and "S" on one that does not.

Payment means (IBT-081)

A standard invoice must carry a payment means code (IBR-191-AE), so one is always emitted: 30 credit transfer, 10 cash, 20 cheque, 48 bank card, 49 direct debit. Sending 30 requires payment_account_id (the IBAN), which is emitted as PayeeFinancialAccount/cbc:ID.

Send no payment fields at all and the invoice carries code 1 ("Instrument Not Defined") rather than claiming a credit transfer to an account you never supplied.

Field-to-XML reference

Where each part of your request ends up in the delivered UBL, with the PINT-AE business term it satisfies. The seller party is built from your entity record, not the invoice body — keep its address, TRN and trade licence up to date.

Rule IDs. The IBR-nnn-AE numbers (for example IBR-006 or IBR-136-AE) are the PINT AE rule IDs, written as the Peppol documentation writes them. To read a rule in full, copy its ID and search for it in the PINT AE rules on the Peppol documentation. The same IDs appear in the errors the API returns.

FieldUBL elementTerm / rule
Document
invoice_numbercbc:ID / cbc:UUID *IBT-001required
datecbc:IssueDateIBT-002required
due_datecbc:DueDateIBT-009optional
currencycbc:DocumentCurrencyCodeIBT-005optional
Seller party — from your entity record
entity.area / streetcac:PostalAddress/cbc:StreetNameIBT-035entity
entity.citycac:PostalAddress/cbc:CityNameIBT-037entity
entity.postal_codecac:PostalAddress/cbc:PostalZoneIBT-038entity
entity.statecac:PostalAddress/cbc:CountrySubentityIBT-039entity
entity.company_namecac:PartyLegalEntity/cbc:RegistrationNameIBT-027 · IBR-006required
entity.trncac:PartyTaxScheme/cbc:CompanyIDIBT-031 · IBR-132-AEentity
entity.legal_registration_idcac:PartyLegalEntity/cbc:CompanyIDIBT-030 · IBR-150-AE · IBR-100required
entity.legal_registration_typeCompanyID/@schemeAgencyIDBTAE-15 · IBR-181-AE · IBR-173-AErequired
entity.issuing_authorityCompanyID/@schemeAgencyNameBTAE-12 · IBR-172-AEconditional
entity.passport_countryCompanyID/@schemeAgencyNameBTAE-18 · IBR-012-AE · IBR-013-AEconditional
Seller legal registration — per invoice
seller.legal_registration_idcac:PartyLegalEntity/cbc:CompanyIDIBT-030 · IBR-150-AE · IBR-100optional
seller.registration_typeCompanyID/@schemeAgencyIDBTAE-15 · IBR-181-AE · IBR-173-AEconditional
seller.issuing_authorityCompanyID/@schemeAgencyNameBTAE-12 · IBR-172-AEconditional
seller.passport_countryCompanyID/@schemeAgencyNameBTAE-18 · IBR-012-AE · IBR-013-AEconditional
Buyer party — from your request
buyer.namecac:PartyLegalEntity/cbc:RegistrationNameIBT-044 · IBR-007required
buyer.trncbc:EndpointID + cac:PartyTaxScheme/cbc:CompanyIDIBT-049 / IBT-048 · IBR-132-AErequired
buyer.address_line1cac:PostalAddress/cbc:StreetNameIBT-050 · IBR-144-AErequired
buyer.citycac:PostalAddress/cbc:CityNameIBT-052 · IBR-144-AErequired
buyer.regioncac:PostalAddress/cbc:CountrySubentityIBT-054 · IBR-144-AErequired
buyer.countrycac:PostalAddress/cac:Country/cbc:IdentificationCodeIBT-055required
buyer.legal_registration_idcac:PartyLegalEntity/cbc:CompanyIDIBT-047 · IBR-136-AE · IBR-103conditional
buyer.legal_registration_typeCompanyID/@schemeAgencyIDBTAE-16 · IBR-180-AE · IBR-183-AEconditional
buyer.authority_nameCompanyID/@schemeAgencyNameBTAE-11 · IBR-101-AEconditional
buyer.passport_country_codeCompanyID/@schemeAgencyNameBTAE-19 · IBR-010-AE · IBR-011-AEconditional
Transaction type
transaction_type_codecbc:ProfileExecutionIDBTUAE-02 · IBR-154-AEoptional
beneficiary_idcac:BuyerCustomerParty/cac:Party/cac:PartyIdentification/cbc:IDBTAE-01 · IBR-007-AEconditional
principal_idcac:SellerSupplierParty/cac:Party/cac:PartyIdentification/cbc:IDBTAE-14 · IBR-137-AEconditional
invoice_period_startcac:InvoicePeriod/cbc:StartDateIBT-073 · IBR-138-AEconditional
invoice_period_endcac:InvoicePeriod/cbc:EndDateIBT-074 · IBR-138-AEconditional
Payment
payment_means_codecac:PaymentMeans/cbc:PaymentMeansCodeIBT-081 · IBR-191-AEoptional
payment_account_idcac:PayeeFinancialAccount/cbc:IDIBT-084conditional
payment_account_namecac:PayeeFinancialAccount/cbc:NameIBT-085optional
payment_service_provider_idcac:PayeeFinancialAccount/cac:FinancialInstitutionBranch/cbc:IDIBT-086optional
payment_card_pancac:PaymentMeans/cac:CardAccount/cbc:PrimaryAccountNumberIDIBT-087 · last 4-6 digits, codes 54 / 55optional
payment_termscac:PaymentTerms/cbc:NoteIBT-020optional
Contract, billing and notes
contract_referencecac:ContractDocumentReference/cbc:IDIBT-012optional
contract_valuecac:ContractDocumentReference/cbc:DocumentDescriptionBTAE-05 · needs contract_referenceoptional
billing_frequencycac:InvoicePeriod/cbc:DescriptionCodeBTAE-06 · IBR-005-AEoptional
invoice_notecbc:NoteIBT-022 · IBR-160-AE when billing_frequency is OTHconditional
Totals and lines
sub_total / total_taxcac:TaxTotal + cac:LegalMonetaryTotalIBG-22 / IBG-23optional
line_items[].descriptioncac:Item/cbc:Description + cbc:NameIBT-154 / IBT-153required
line_items[].quantitycbc:InvoicedQuantityIBT-129required
line_items[].unit_amountcac:Price/cbc:PriceAmountIBT-146required
line_items[].tax_amountcac:ItemPriceExtension/cac:TaxTotalIBT-117required
line_items[].tax_categorycac:ClassifiedTaxCategory/cbc:IDIBT-151optional
line_items[].tax_exemption_reasoncbc:TaxExemptionReasonCodeIBT-121 · IBR-167-AEconditional
line_items[].item_typecac:CommodityClassification/cbc:NatureCodeBTUAE-09 · IBR-006-AEconditional
line_items[].item_standard_idcac:StandardItemIdentification/cbc:IDIBT-157 · IBR-174-AEconditional
line_items[].origin_countrycac:Item/cac:OriginCountry/cbc:IdentificationCodeIBT-159optional
line_items[].item_attribute_namecac:AdditionalItemProperty/cbc:NameIBT-160conditional
line_items[].item_attribute_valuecac:AdditionalItemProperty/cbc:ValueIBT-161conditional

* The document identifier is a system-generated UUID, stamped once per invoice record and emitted as both cbc:ID and cbc:UUID. Your invoice_number identifies the invoice in this API and must be unique per entity.

What the delivered XML looks like

The parties and payment means produced by the request above:

UBL excerpt
<cac:AccountingSupplierParty>
    <cac:Party>
        <cbc:EndpointID schemeID="0235">1042394831</cbc:EndpointID>
        <cac:PostalAddress>
            <cbc:StreetName>Business Bay</cbc:StreetName>
            <cbc:CityName>Dubai</cbc:CityName>
            <cbc:PostalZone>PO Box 77</cbc:PostalZone>
            <cbc:CountrySubentity>DXB</cbc:CountrySubentity>
            <cac:Country>
                <cbc:IdentificationCode>AE</cbc:IdentificationCode>
            </cac:Country>
        </cac:PostalAddress>
        <cac:PartyTaxScheme>
            <cbc:CompanyID>104239483100003</cbc:CompanyID>
            <cac:TaxScheme>
                <cbc:ID>VAT</cbc:ID>
            </cac:TaxScheme>
        </cac:PartyTaxScheme>
        <cac:PartyLegalEntity>
            <cbc:RegistrationName>E-Invoice Dev</cbc:RegistrationName>
            <cbc:CompanyID schemeAgencyID="EID" schemeAgencyName="ICP">2309778</cbc:CompanyID>
        </cac:PartyLegalEntity>
    </cac:Party>
</cac:AccountingSupplierParty>
<cac:AccountingCustomerParty>
    <cac:Party>
        <cbc:EndpointID schemeID="0235">1042394831</cbc:EndpointID>
        <cac:PostalAddress>
            <cbc:StreetName>Sheikh Zayed Road 12</cbc:StreetName>
            <cbc:CityName>Dubai</cbc:CityName>
            <cbc:CountrySubentity>DXB</cbc:CountrySubentity>
            <cac:Country>
                <cbc:IdentificationCode>AE</cbc:IdentificationCode>
            </cac:Country>
        </cac:PostalAddress>
        <cac:PartyTaxScheme>
            <cbc:CompanyID>104239483100003</cbc:CompanyID>
            <cac:TaxScheme>
                <cbc:ID>VAT</cbc:ID>
            </cac:TaxScheme>
        </cac:PartyTaxScheme>
        <cac:PartyLegalEntity>
            <cbc:RegistrationName>Buyer LLC</cbc:RegistrationName>
            <cbc:CompanyID schemeAgencyID="TL"
                           schemeAgencyName="Department of Economic Development - Dubai">CN-1234567</cbc:CompanyID>
        </cac:PartyLegalEntity>
    </cac:Party>
</cac:AccountingCustomerParty>
<cac:PaymentMeans>
    <cbc:PaymentMeansCode name="Credit transfer">30</cbc:PaymentMeansCode>
    <cac:PayeeFinancialAccount>
        <cbc:ID>AE070331234567890123456</cbc:ID>
    </cac:PayeeFinancialAccount>
</cac:PaymentMeans>

Known limitations

These fields are accepted by the schema but do not yet reach the delivered XML on this flow. Do not rely on them until they are announced as supported:

  • reference (document note), buyer.email, buyer.phone, buyer.electronic_address.
  • Line level: item_name (the description is used), discount_percent, hs_code.