oneapi
Sign in
Business v1 / Firme

Invoice skeleton

The company's details pre-filled in the shape e-Factura expects: name, tax ID, registration number, address, VAT standing. It goes straight into building an invoice.

GET
https://oneapi.ro/api/business/v1/firme/{cui}/factura-schelet

Path parameters

NameTypeDescriptionExample
cuirequired string The company tax identification number, without the RO prefix (e.g. 6719278).

Query parameters

This route accepts no query parameters.

How it behaves

  • Returns the company's data shaped for an invoice header (supplier or client): name, tax ID, headquarters, VAT. It pairs naturally with the e-Invoicing module, which builds the CIUS-RO XML.

What it is for

  • Pre-filling an invoice header with the partner's official data.
  • Feeding the e-Invoicing module directly, which expects exactly this shape.
  • Cutting typing errors when billing data is entered by hand.

Response structure

All fields below live inside data.

FieldTypeDescription
cui integer The tax ID.
denumire string The name.
nr_reg_com string The trade register order number.
platitor_tva boolean VAT-registered as of the last sync.
adresa.judet string The county.
adresa.localitate string The locality.
adresa.strada string The street.
adresa.numar string The street number.
adresa.cod_postal string The postal code.

Response examples

GEThttps://oneapi.ro/api/business/v1/firme/6719278/factura-schelet
{
    "data": {
        "cui": 6719278,
        "denumire": "MEGA IMAGE SRL",
        "nr_reg_com": "J1994027872407",
        "platitor_tva": true,
        "adresa": {
            "judet": "Bucureşti",
            "localitate": "Bucureşti Sectorul 6",
            "strada": "Timişoara",
            "numar": "26",
            "cod_postal": "61331"
        }
    }
}

Error codes

CodeSlugWhen it occurs
401neautentificatToken missing, invalid, expired or revoked.
403feature_indisponibilThe current plan does not include the feature the route depends on.
404negasitCompany [{cui}] not found.
422validareThe route takes no parameters apart from lang: any other parameter returns 422 instead of being ignored.
429cota_depasitaThe plan's monthly quota has been exceeded (see Retry-After).

All errors share the same shape. eroare.cod is stable and is the value you should branch on in code — not the text in mesaj, which may change.

{
    "eroare": {
        "cod": "validare",
        "mesaj": "The route takes no parameters apart from lang: any other parameter returns 422 instead of being ignored.",
        "detalii": {
            "cui": [
                "The value sent does not satisfy the parameter rule."
            ]
        }
    }
}