Enums

This document lists all enumeration types used in the Storno.ro API.

DocumentStatus

Status values for invoices and other documents:

ValueDescription
draftDocument is in draft state, not yet finalized
syncedDocument synced from e-invoice provider but not yet issued
issuedDocument has been issued to the client
sent_to_providerDocument has been sent to e-invoice provider
validatedDocument validated by e-invoice provider
rejectedDocument rejected by e-invoice provider
cancelledDocument has been cancelled
paidInvoice fully paid
partially_paidInvoice partially paid
overdueInvoice past due date and not fully paid
convertedDocument converted to another type (e.g., proforma → invoice)

EInvoiceSubmissionStatus

Status of an e-invoice submission to a provider (ANAF, SDI, KSeF, etc.):

ValueDescription
pendingSubmission is queued and waiting to be sent
submittedSuccessfully submitted to the provider, awaiting response
acceptedProvider accepted the e-invoice
rejectedProvider rejected the e-invoice
errorAn error occurred during submission

DocumentType

Types of documents:

ValueDescription
invoiceRegular invoice
credit_noteCredit note (invoice correction)

InvoiceDirection

Direction of invoice:

ValueDescription
incomingIncoming invoice (received from supplier)
outgoingOutgoing invoice (issued to client)

ProformaStatus

Status values specific to proforma invoices:

ValueDescription
draftProforma in draft state
sentProforma sent to client
acceptedProforma accepted by client
rejectedProforma rejected by client
convertedProforma converted to invoice
cancelledProforma cancelled

DeliveryNoteStatus

Status values for delivery notes:

ValueDescription
draftDelivery note in draft state
issuedDelivery note issued and sent with goods
convertedDelivery note converted to invoice
cancelledDelivery note cancelled

OrganizationRole

User roles within an organization:

ValueDescriptionTypical Permissions
ownerOrganization ownerFull access to everything
adminAdministratorCan manage users, settings, documents
accountantAccountantCan view/manage financial documents, limited settings access
employeeEmployeeLimited access based on assigned permissions

InvoiceTypeCode

Invoice type codes for e-invoice submission:

ValueDescription (English)Description (Romanian)
standardStandard invoiceFactură standard
reverse_chargeReverse chargeTaxare inversă
exempt_with_deductionExempt with deduction rightScutit cu drept de deducere
services_art_311Services Art. 311Servicii Art. 311
sales_art_312Sales Art. 312Vânzări Art. 312
non_taxableNon-taxableNeimpozabil
special_regime_art_314_315Special regime Art. 314/315Regim special Art. 314/315
non_transferNon-transferNetransfer
simplifiedSimplified invoiceFactură simplificată
services_art_278Services Art. 278Servicii Art. 278
exempt_art_294_abExempt Art. 294 (a-b)Scutit Art. 294 (a-b)
exempt_art_294_cdExempt Art. 294 (c-d)Scutit Art. 294 (c-d)
self_billingSelf-billingAutofacturare

EmailStatus

Status of sent emails:

ValueDescription
sentEmail successfully sent
deliveredEmail delivered to recipient
bouncedEmail bounced (invalid address)
failedEmail failed to send

RecurringFrequency

Frequency options for recurring invoices:

ValueDescription
monthlyEvery month
quarterlyEvery 3 months
yearlyOnce per year

DueDateType

How to calculate due date for recurring invoices:

ValueDescription
days_afterX days after issue date
fixed_dayFixed day of the month

PriceRule

Dynamic pricing rules for recurring invoice lines:

ValueDescription
fixedUse the template price (no changes)
latest_product_priceUse current product price at generation time
apply_exchange_rateConvert from reference currency using latest rate

ClientType

Type of client:

ValueDescription
companyLegal entity (company)
individualNatural person (individual)

Source

Data source for imported/synced entities:

ValueDescription
manualManually created by user
anafSynced from e-invoice provider (ANAF in Romania)
importBulk imported (CSV, etc.)

PaymentMethod

Payment methods for tracking invoice payments:

ValueDescription
bank_transferBank transfer (Ordin de plată)
cashCash payment (Numerar)
cardCard payment (Card)
checkCheck (Cec)
paypalPayPal
stripeStripe
mobilpayMobilPay
netopiaNetopia Payments
otherOther method

Notes

  • All enum values are lowercase with underscores (snake_case)
  • Frontend applications should map these to user-friendly labels
  • Romanian translations are provided in the i18n files (ro.ts)
  • Some enums have specific e-invoice provider requirements (InvoiceTypeCode, DocumentStatus)
  • Enum values are case-sensitive in API requests