org.openbravo.kikobar.intfa.../doc/Home.md

2.2 KiB

We changed the project approach to a query extraction. The PostgreSQL query and the reference data are included in the source code, but you will need to write your extraction code in your preferred programming language according to your own design and workflow.

The extraction script will need to read the query from the database and write the JSON files in a location where the Facturador SUNAT can ingest them from.

We have accomplished the above in Python with Psycopg2, but it can be done in any language capable of interacting with PostgreSQL.


References

Reference Link
SUNAT Comprobante de Pago Electronico microsite https://cpe.sunat.gob.pe
SUNAT https://www.sunat.gob.pe/
Facturador download https://cpe.sunat.gob.pe/sites/default/files/inline-files/Instaladores%20del%20sistema%20facturador%20SUNAT_ultima_version_30_09_2021.pdf
Facturador Documentation https://www.gob.pe/institucion/sunat/informes-publicaciones/1893360-instructivo-para-la-instalacion-del-facturador-sunat AnexosIyII_Formato1.3.xlsx anexo1-193-2020.pdfanexo2-193-2020.pdf anexo3-193-2020.pdfanexo4-193-2020.pdfanexo5-193-2020.pdfanexo6-193-2020.pdfanexoIII.pdfAjustesValidacionesCPEv20201207_2.xlsxAnexosIyII_Formato1.4.xlsx
Universal Business Language http://www.datypic.com/sc/ubl21/ss.html
SUNAT API for queries on Facturas Electronicas https://cpe.sunat.gob.pe/sites/default/files/inline-files/Manual-de-Consulta-Integrada-de-Comprobante-de-Pago-por-ServicioWEB_v2.pdf