SmartBill Integration
SmartBill is the leading cloud invoicing platform in Romania π·π΄, designed specifically for the Romanian fiscal and legal requirements. When configured in CADENSA, you can issue legally valid invoices (facturi fiscale) directly from your tracked time entries, with full e-Factura / ANAF compliance.
SmartBill is designed for businesses registered in Romania π·π΄ (with a valid CIF / CUI). It supports both TVA-payer and non-TVA-payer companies.
Romania mandates e-Factura reporting to ANAF for B2B transactions (RO e-Invoice system). SmartBill automatically handles ANAF transmission when configured accordingly in your SmartBill Cloud account.
Before You Beginβ
You need:
- An active SmartBill Cloud account (cloud.smartbill.ro)
- Your SmartBill API token (see below)
- Your company CIF / CUI (fiscal identification code, e.g.
RO12345678) - CADENSA unit with at least Admin role
Step 1 β Get Your SmartBill API Tokenβ
- Log in to cloud.smartbill.ro
- Go to Contul Meu (top-right menu)
- Navigate to IntegrΔri (Integrations)
- Scroll down to the API section
- Copy your API token β or generate a new one
Never share your API token or commit it to source control. Anyone with the token can create and manage invoices on your behalf.
For the official SmartBill API docs, see: api.smartbill.ro
Step 2 β Configure in CADENSAβ
- Open Settings β Invoice in CADENSA
- Select SmartBill π·π΄ as the provider
- Fill in the credential fields:
- API Key β paste your SmartBill API token
- Account Email (API Secret) β your SmartBill login email address
- Company ID β your company CIF/CUI (e.g.
RO12345678or just12345678)
- Click Test Connection β a green
confirms the credentials are valid
- Click Save
SmartBill uses HTTP Basic Authentication combining your email and API token. Both fields are required. Your email is stored as the "API Secret" field in CADENSA.
Step 3 β Set Defaultsβ
After saving, configure the invoice defaults:
| Setting | Recommended value |
|---|---|
| Currency | RON |
| VAT rate | 19% (cota normalΔ) |
| Payment terms | 30 days |
SmartBill supports multiple Romanian TVA rates:
| TVA rate | SmartBill name | Description |
|---|---|---|
| 19% | Normala | Cota standard |
| 9% | Redusa | Alimente, medicamente, HoReCa |
| 5% | Redusa1 | CΔrΘi, ziare, locuinΘe sociale |
| 0% | Scutit | Scutit de TVA |
CADENSA automatically selects the correct SmartBill TVA name based on the VAT rate you configure.
Step 4 β Configure Invoice Series in SmartBillβ
SmartBill requires that invoice series are defined in your Cloud account before using the API:
- Log in to cloud.smartbill.ro
- Go to Configurare β Serii
- Make sure you have at least one active series for facturi (e.g.
FCT) - CADENSA uses
FCTas the default series name β you can change this to match your configuration
If the series FCT does not exist in your SmartBill Cloud account, invoice creation will fail. Always verify the series name in your SmartBill account.
Client Details (Bill To)β
The SmartBill REST API does not expose a client list endpoint, so there is no partner picker in the Generate Invoice dialog when SmartBill is your active provider.
Fill in all client fields manually:
| Field | Description |
|---|---|
| Company Name | Required. The client's registered company name |
| Contact Name | Optional. Individual contact person |
| Optional. Used for sending the invoice by email | |
| Country | Required. Select from the searchable country dropdown (ISO code, e.g. RO, HU, DE) |
| Street / Address | Required |
| Postal Code | Required |
| City | Required |
| VAT / Tax Number | Optional, but required for EU reverse charge invoices (B2B) |
The Country field is a searchable select β type the ISO code (RO), the Hungarian name (RomΓ‘nia) or the English name (Romania) to filter the list. Both the primary name and the translation in parentheses are shown in the dropdown.
The client data you enter is sent directly to SmartBill as part of the POST /invoice request. SmartBill can optionally save the client to your contact database β this is controlled by the saveToDb parameter (enabled by default in CADENSA).
How Invoices Are Createdβ
When you click Generate Invoice, CADENSA:
- Takes the client details you entered manually in the Generate Invoice dialog
- Maps your time entries β SmartBill line items (
products) - Sends
POST /invoiceto the SmartBill API (including client info β SmartBill can save it to your contact database viasaveToDb) - SmartBill assigns the next available number on the configured series
- CADENSA stores the returned
{series}-{number}as the external reference (e.g.FCT-0023) - The invoice PDF is available via Download PDF in the invoice history
Line item mappingβ
| CADENSA field | SmartBill field |
|---|---|
| Description | name |
| Quantity (hours) | quantity |
| Unit price | price |
| Unit (hour/day/item) | measuringUnitName (ora/zi/buc) |
| VAT rate | taxName + taxPercentage |
| Project / task | productDescription |
All prices are sent net (exclusive of TVA) β SmartBill calculates the TVA amounts automatically.
Cancelling an Invoiceβ
To cancel an invoice in CADENSA:
- Go to Reports β Invoice History
- Find the invoice and click Cancel
- CADENSA sends
PUT /invoice/cancelto SmartBill (soft-cancel β the invoice is marked as cancelled but remains in the system)
SmartBill supports both delete (only for the last invoice in a series) and cancel (anulare, for any invoice). CADENSA always uses cancel to preserve the audit trail.
Troubleshootingβ
"401 Unauthorized"β
- Verify that the API token is correct and not expired
- Verify that the email address matches the SmartBill account used to generate the token
- Verify that the CIF exactly matches the company in your SmartBill Cloud account
"Serie inexistenta" (Series not found)β
- The default series
FCTdoes not exist in your SmartBill account - Go to Configurare β Serii documente in SmartBill Cloud and create a
FCTseries (type: Factura)
"Cota TVA nu a fost gasita" (VAT rate not found)β
- The TVA rate combination (name + percentage) must be defined in Configurare β Cote TVA in SmartBill Cloud
- Example: if you use 19%, make sure
Normalaat 19% is enabled in your account
"403 Forbidden" (Rate limit)β
- SmartBill limits requests to 30 calls per 10 seconds. If this limit is exceeded, access is blocked for 10 minutes
- CADENSA is designed to stay well within this limit under normal usage
Connection test fails but credentials look correctβ
- Ensure your company has an active SmartBill Cloud subscription
- Check that the API user has the necessary permissions (invoice creation, read access)
- Contact SmartBill support at api@smartbill.ro if issues persist