0.0
No release in over 3 years
Low commit activity in last 3 years
Generate and send Electronic Invoices to SUNAT
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.2
~> 2.7
~> 0.11
~> 0.51

Runtime

~> 1.8
~> 1.2
~> 2.11
~> 0.6.5
 Project Readme

Sunat Invoice

Ruby gem to use SUNAT Electronic Billing from your app

Allow to generate Electronic Billing Documents and send to SUNAT.

Usage

generate document

First you have to initialize a kind of document that you want, with your desired attributes.

document = SunatInvoice::Invoice.new(invoice_attributes)
Note: Currently we support this kind of documents:

- Invoice for document type `01` and `03`
- CreditNote for document type `07`
- DebitNote for document type `08`

send document

After that, you have to send the document to SUNAT in this way:

for document type 01 and related documents

client = SunatInvoice::InvoiceClient.new
client.dispatch(document)

for document type 03 and related documents, you should send a daily summary instead each document

daily_document = SunatInvoice::DailySummary.new
client.dispatch(daily_document)

parse response