@nihldev/cfdi-validator
TypeScript icon, indicating that this package has built-in type declarations

0.1.0 • Public • Published

cfdi-validator

Validates a CFDI v3.3 against SAT's SOAP web service

Installation

npm install @nihldev/cfdi-validator

Usage

import { validateCFDI } from "@nihldev/cfdi-validator";

validateCFDI("LSO1306189R5", "GACJ940911ASA", 4999.99, "e7df3047-f8de-425d-b469-37abe5b4dabb")
//=> {
//       responseStatus: "S - Comprobante obtenido satisfactoriamente.",
//       cfdiStatus: "Vigente",
//       isCancellable: "Cancelable sin aceptación",
//       cancellationStatus: undefined
//   }

Versions

Current Tags

VersionDownloads (Last 7 Days)Tag
0.1.01latest

Version History

VersionDownloads (Last 7 Days)Published
0.1.01
0.0.21

Package Sidebar

Install

npm i @nihldev/cfdi-validator

Weekly Downloads

0

Version

0.1.0

License

BSD-3-Clause

Unpacked Size

8.48 kB

Total Files

5

Last publish

Collaborators

  • nihlbot
  • inkatze