Code Monkey home page Code Monkey logo

sat-rfc-siat's Introduction

Cédula Fiscal SAT

sat-rfc-siat

Extrae la información necesaria de una persona física o moral para utilizarlo en una factura 4.0 de acuerdo la cédula fiscal del SAT / SIAT

Puedes ejecutarlo directamente en:

  • Frontend
  • Backend (importa antes npm i node-fetch)
  • En la consola de tu navegador

⚡️ Instalación (inicio rápido)

  • Importa o copia directamente la función del archivo siat.js
  • Llama la función asíncrona de siat
new Promise(async (resolve, reject) => {
  let rfc = '' // Tu RFC
  let id_cif = '' // TU ID de la constancia fiscal

  // Llamar la función async para recibir datos de la constancia
  let datos = await siat(rfc, id_cif)
  console.log(datos)

  // Recuperar distintos valores de json
  let nombre_fiscal = datos?.nombre_fiscal
  let cp = datos?.cp
  let regimenes = datos?.regimenes
  console.log({ nombre_fiscal, cp, regimenes })
});

✨ Ejemplo de respuesta

{
    "rfc": "",
    "id_cif": "",
    "nombre_fiscal": "",
    "correo_electronico": "",
    "regimenes": [],
    "regimen_de_capital": "",
    "fecha_de_constitucion": "",
    "situacion_del_contribuyente": "",
    "fecha_del_ultimo_cambio_de_situacion": "",
    "entidad_federativa": "",
    "municipio_o_delegacion": "",
    "colonia": "",
    "tipo_de_vialidad": "",
    "nombre_de_la_vialidad": "",
    "numero_exterior": "",
    "numero_interior": "",
}

😍 Deja una ⭐ si piensas que fue útil

👨‍💻 Hecho por BlakePro (github)

sat-rfc-siat's People

Contributors

blakepro avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.