facturas
v0.5.2
Published
Node.js client for ARCA services including WSFE, WSMTXCA, and padron lookups.
Maintainers
Readme
facturas
Serious Node.js SDK for ARCA / AFIP web services, with strong WSFE and Padrón coverage and preserved WSMTXCA support.
Install
pnpm add facturasnpm install facturasDocumentation
For the full quick start, troubleshooting, and examples, see the repository docs:
The package exports:
facturasfacturas/constantsfacturas/wsfefacturas/wsmtxcafacturas/padronfacturas/errorsfacturas/types
facturas also exports createMemoryWsaaSessionStore() for tests/local single-process coordination and the small ArcaWsaaSessionStore interface for applications that need to share WSAA tickets across workers through their own durable store.
Authenticated WSFE and WSMTXCA methods accept forceRefresh: true when callers need to discard the cached WSAA TA and request a fresh Token Authorization for the same service.
WSFE associated periods
client.wsfe.createNextVoucher({ data }) supports associatedPeriod for credit/debit notes that use PeriodoAsoc instead of CbtesAsoc:
await client.wsfe.createNextVoucher({
data: {
// other voucher fields...
associatedPeriod: {
startDate: "2026-05-01",
endDate: "2026-05-31",
},
},
});