@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
//   }

Readme

Keywords

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