# Lapyme - [Introduction to facturas: ARCA/AFIP Invoicing for Node.js](https://facturas-sdk.dev/introduction.md): facturas is a TypeScript SDK that connects your Node.js application directly to ARCA/AFIP's WSFE and WSMTXCA services to issue invoices and credit notes. - [Get Started with facturas: Issue Your First Invoice](https://facturas-sdk.dev/quickstart.md): Install facturas, set your ARCA credentials as environment variables, and issue your first electronic invoice in under five minutes. - [Register Your ARCA Credentials for Electronic Invoicing](https://facturas-sdk.dev/arca-setup.md): Generate a private key and CSR with the facturas CLI, register them in ARCA's homologación portal, and save your certificate to start issuing invoices. - [Issuing Electronic Invoices Using the facturas SDK](https://facturas-sdk.dev/concepts/invoices.md): Use arca.issue() to authorize electronic invoices through ARCA. Learn input fields, fiscal document types, amounts in centavos, and the issuance contract. - [Credit Notes, Debit Notes, and Corrections in ARCA](https://facturas-sdk.dev/concepts/credit-notes.md): ARCA has no cancellation — correct invoices with credit notes. Issue partial and total credit notes, debit notes, and period adjustments. - [Safe Invoice Retries with Idempotency Keys in facturas](https://facturas-sdk.dev/concepts/idempotency.md): Pass an idempotencyKey and a store to arca.issue() so that retries after crashes consult the reserved number instead of issuing a duplicate. - [Handling Invoice Outcomes from arca.issue() in facturas](https://facturas-sdk.dev/concepts/outcomes.md): Every call to arca.issue() returns one of four outcomes: authorized, rejected, indeterminate, or conflict. Learn what each means and how to handle it. - [Configure the facturas Client: Env Vars and Options](https://facturas-sdk.dev/guides/configuration.md): Set required environment variables and pass optional client options to createArcaClient() to control timeouts, retries, logging, and WSAA sessions. - [Persistence Stores for Idempotency and WSAA Sessions](https://facturas-sdk.dev/guides/stores.md): Connect facturas to Postgres, Redis, file storage, or memory to enable safe retries with idempotency keys and share WSAA tickets across processes. - [Issue Invoices with Line-Item Detail via WSMTXCA](https://facturas-sdk.dev/guides/wsmtxca.md): Use { service: 'wsmtxca' } to send full line-item detail to ARCA's WSMTXCA service. Learn item fields, monetary precision, and how totals must reconcile. - [Error Handling and Troubleshooting in facturas](https://facturas-sdk.dev/guides/error-handling.md): All facturas errors extend ArcaError with a stable code string. Learn the error hierarchy, predicate helpers, and how to diagnose common issues. - [facturas CLI: Set Up and Diagnose ARCA Credentials](https://facturas-sdk.dev/cli/overview.md): The facturas CLI generates private keys, CSRs, and test invoices, and runs layer-by-layer diagnostics — no installation required beyond Node.js 20+. - [facturas CLI Commands: init, cert, check, and issue](https://facturas-sdk.dev/cli/commands.md): Full reference for facturas CLI commands. Covers init (key+CSR), cert (save certificate), check (layer diagnostics), and issue (test invoice). - [facturas Public API Reference](https://facturas-sdk.dev/reference/api.md): Complete reference for the facturas public API: createArcaClient, issue, issueCreditNote, preview, recover, and store constructors. Covered by semver. - [ARCA Reference Constants Exported by facturas](https://facturas-sdk.dev/reference/constants.md): facturas exports stable ARCA reference codes as TypeScript constants: voucher types, VAT rates, document types, receiver VAT conditions, and currencies. - [Low-Level WSFE and WSMTXCA Service Access](https://facturas-sdk.dev/reference/exact-layer.md): Access arca.wsfe and arca.wsmtxca directly for advanced use cases: custom builders, raw service calls, and fiscal evidence inspection.