@monedo/fiscal
v0.1.1
Published
Official server-side JavaScript SDK for the Monedo Fiscal API.
Maintainers
Readme
@monedo/fiscal
Official server-side SDK for invoices, receipts, rendering, email delivery and Romanian fiscal submission through Monedo.
import { MonedoFiscal } from '@monedo/fiscal';
const fiscal = new MonedoFiscal({ apiKey: process.env.MONEDO_SECRET_KEY });
const invoice = await fiscal.invoices.create({
customer: { name: 'Client SRL', tax_id: 'RO12345678', email: '[email protected]' },
lines: [{ description: 'Servicii', quantity: 1, unit_price: 100, vat_percent: 21, unit_code: 'H87' }],
external_reference: 'order_1842',
delivery: { render: true, email: { enabled: true } },
}, { idempotencyKey: 'invoice-order-1842' });Email delivery, PDF rendering and ANAF submission are independent asynchronous channels. Poll fiscal.deliveries.retrieve(id) or consume Fiscal webhook events.
Fiscal receipts (chitanțe) are accepted only for invoices collected in cash. Card and online payments receive a Monedo digital payment receipt through the Payments lifecycle; this does not consume a fiscal receipt number.
