Complete guide to integrating with the Romanian e-Factura (SPV) system
test
(sandbox) or live
(production) modeoauth_configured
is false
, you’ll need to complete the OAuth setup in the Contazen dashboard before using the API endpoints.
fiscal
-
if not available)ubl_um
is specified, defaults to H87 (bucată/piece)efactura_enabled
defaults to true
for fiscal invoicesH87
and h87
work correctly.Code | Description | Romanian | Best Used For |
---|---|---|---|
H87 | Piece/Item | bucată | Physical products, default |
HUR | Hour | oră | Time-based services |
DAY | Day | zi | Daily rates, rentals |
MON | Month | lună | Monthly subscriptions |
ANN | Year | an | Annual licenses |
KGM | Kilogram | kilogram | Weight-based products |
MTR | Meter | metru | Length measurements |
LTR | Liter | litru | Liquids, chemicals |
KMT | Kilometer | kilometru | Transport, delivery |
Field | Type | Required | Description | Example |
---|---|---|---|---|
unit | string | No | Human-readable unit name | "ore" , "bucăți" , "kg" |
ubl_um | string | No | UBL unit code for e-Factura | "HUR" , "H87" , "KGM" |
ubl_nc | string | No | Combined Nomenclature code | "84713000" |
ubl_cpv | string | No | Common Procurement Vocabulary | "30213100-6" |
vat_key | string | No | VAT classification key | "S" , "E" , "O" |
unit
(e.g., “ore”), Contazen automatically maps it to the correct UBL code (HUR
). The system includes pre-configured mappings for common Romanian units.Code Validation
HUR
, hur
, Hur
all work)H87
if invalid code is providedAutomatic Mapping
"ore"
→ "HUR"
"bucăți"
, "buc"
→ "H87"
"kg"
, "kilogram"
→ "KGM"
"metru"
, "m"
→ "MTR"
e-Factura Requirements
H87
(piece)ubl_um
. The system will handle the rest automatically. Use HUR
for time-based services and H87
for physical products.efactura_oauth_not_configured
Solution: Complete OAuth setup in dashboard before using API endpoints.already_sent_to_spv
Solution: Check invoice status before attempting submission.invalid_document_type
Solution: Only fiscal invoices can be sent to e-Factura.invoice_is_draft
Solution: Finalize the invoice before submitting to SPV.test
environmentlive
only after thorough testingConfigure OAuth
Test Environment
Create Test Invoice
Submit to SPV
Handle Errors
Monitor Status
Production Ready
-
if not available