# Moldova
> Moldovan documents: IDNO with its check digit, IDNP and cod TVA, TVA rates, the Codul fiscal check, MDL at the National Bank of Moldova’s rates.
>
> Before: [The document](https://ocost.io/docs/en/document.md)

What Ocost reads on a Moldovan document and where it writes it in [`ocost.document.v1`](https://ocost.io/docs/en/document.md). A factură or factură fiscală is an `invoice`, as anywhere. Documents in Romanian and Russian are read the same way.

## Identifiers

Ocost writes each number to the party's `identifiers` by `scheme`:

| Printed as | `scheme` | `valid` |
| --- | --- | --- |
| IDNO, cod fiscal of a company | `MD_IDNO` | 13 digits and its check digit |
| IDNP, of a person | `MD_IDNP` | 13 digits and its check digit |
| cod TVA | `MD_VAT` | 7 digits. There is no check digit, so a right length is `null`. |

The check digit weighs the first twelve digits 7, 3 and 1 in turn. The last digit of their sum is the thirteenth.

A number that fails is kept with `valid: false`, and the check `identifier` fails with `at` its scheme. Ocost never finds a company by it. An IDNP is a person's, so Ocost never finds a company by it either.

An IBAN starting `MD` is checked by its check digits, in `iban`.

## VAT

Ocost reads the TVA rates a document prints, such as 20 %, 8 % or 0 %. Each rate is one `vat_breakdown` group. The check `vat` holds when a group's VAT is its net times its rate.

An invoice you write in Ocost for a Moldovan business starts each line at 20 %.

## The invoice check

`tax_check` holds what an incoming invoice lacks under the Codul fiscal. Ocost fills it when your business and the supplier are in Moldova. The supplier is Moldovan by its address, its IDNO or its cod TVA. It covers invoices to pay and receipts. For anything else it is `null`.

| Item in `missing` | What Ocost asks for | `law` |
| --- | --- | --- |
| `supplier_idno` | The supplier's IDNO, its check digit right | art. 117¹ Codul fiscal |
| `supplier_vat_code` | The supplier's cod TVA, where it charges VAT | art. 117¹ Codul fiscal |
| `number`, `issued_on` | The invoice's number and date | art. 117¹ Codul fiscal |
| `vat_rate_unknown` | A rate other than 20 %, 8 % or 0 % | art. 96 Codul fiscal |

`case` is `standard`. `at_stake` is `true` when the invoice charges VAT and your business deducts it.

## E-invoices

Ocost reads an e-invoice in UBL or CII without a model. It reads no Moldovan XML format yet. Send the PDF or a scan, and `read_with` is `reader`.

## Dates, amounts and the leu

Moldovan documents print `03.11.2026` and `1 200,00`. Ocost writes `2026-11-03` and `1200`. `sources` keeps the quote as printed. `currency` is `MDL` where the document prints `MDL`.

Ocost converts between the leu and any other currency at the National Bank of Moldova's official rate of the document's day. It never goes through the euro. A currency the bank doesn't quote waits for a rate. Every other pair takes the ECB's rate. [Search](https://ocost.io/docs/en/search.md) filters by these converted amounts.

## Your company

Ocost tells incoming from outgoing by your details in [Settings › Company](https://app.ocost.io/settings/company). A Moldovan company needs its IDNO and its address. Add the cod TVA once it is registered for VAT. Ocost asks no Moldovan register, so you enter them yourself. An IDNO with a wrong check digit, or a cod TVA of another length, is refused.

The legal forms are SRL, SA, ÎI, ÎS, SNC, SC and cooperativă.

Mail to `belege@<name>.ocost.io` reaches Ocost. The name is yours without its legal form, in Latin letters without diacritics: Exemplu Construct SRL gets `exemplu-construct`.

## Example

An excerpt of an incoming factură fiscală:

```json
{
  "kind": "invoice",
  "kind_detail": "invoice",
  "number": "AA1234567",
  "issue_date": "2026-11-03",
  "currency": "MDL",
  "seller": {
    "name": "Exemplu Construct SRL",
    "identifiers": [
      { "scheme": "MD_IDNO", "value": "1003600123459", "valid": true },
      { "scheme": "MD_VAT", "value": "0612345", "valid": null }
    ],
    "vat_id": null
  },
  "totals": { "net": 10000, "tax": 2000, "gross": 12000, "payable": null, "prices_include_vat": false },
  "vat_breakdown": [
    { "category": "S", "rate": 20, "taxable_amount": 10000, "tax_amount": 2000, "exemption_reason": null }
  ],
  "checks": [
    { "name": "vat", "passed": true, "sums": true, "fields": ["totals.net", "totals.tax"], "at": "20" },
    { "name": "identifier", "passed": true, "sums": false, "fields": [], "at": "MD_IDNO" }
  ],
  "tax_check": { "case": "standard", "missing": [] },
  "read_with": "reader"
}
```

## See also

- [The document](https://ocost.io/docs/en/document.md): The ocost.document.v1 schema in EN 16931 terms (maps to UBL and CII): an example, kind and direction, sources, checks, versions, and every field and value.
- [Units and codes](https://ocost.io/docs/en/units.md): The document’s code lists: UNECE units with the words printed for them, ISO currencies and countries, VAT categories, payment means, document types, identifiers, ECLASS.
- [Search](https://ocost.io/docs/en/search.md): Search every document by words and by meaning: parameters, filters, results, examples.
- [Company groups](https://ocost.io/docs/en/groups.md): Company groups: which companies a key reaches, the Ocost-Business header, routing by the document’s identifiers, needs_company, and files across the group.
- On ocost.io: [Invoice processing](https://ocost.io/en/product/invoice-processing)
