Choose the channel before building

The taxpayer’s SEE allows issuance from its own systems. Under SEE-OSE, the issuer uses its systems and an operator checks issuance conditions; a PSE may provide technical services to the issuer. These are different roles: contracting an API does not remove the responsibility to review the service each provider supplies.

SEE-SOL is used to issue documents through SUNAT tools. It is an alternative for operations that can work through the portal. If each sale originates in a business’s own system, manually copying data between the two creates extra work. The choice should follow the actual workflow, beyond the number of documents.

Before contracting, identify document types, branches and volume, and confirm the channel appropriate for your company. Compare who transforms the data, who sends it, who validates it and how you retrieve the XML and acknowledgment. The comparison of OSE, PSE and SEE-SOL explains each role.

Before finalizing the scope, document who can issue, view, correct and download files. A salesperson needs to know whether a transaction is still pending; administration needs error details and the ability to resolve them. Agreeing on permissions and responsibilities reduces dependence on one person and makes daily closing easier. Also establish how documents still queued at the end of the day will be reviewed and how to check that every document has a response. Launch should include reconciliation between system sales and issued documents, with a list of differences to resolve. This review reveals configuration problems that an isolated test can miss.

What changes in sales records

The sale requires consistent commercial and tax data: issuer, customer, document type, series and sequence number, date, currency, line items, quantities, prices, tax treatment and taxes. Each element must have a clear relationship with the catalogs and rules required by the selected channel.

A sales screen that only stores the total does not provide enough information to reconstruct the tax document. The system must retain line items and amounts calculated at issuance, even if product prices change later. Otherwise, a later report may show a different transaction from the one the customer received.

Numbering also needs control by type and series. Two users selling simultaneously must not receive the same sequence number. The record must link the sale to its document and prevent duplicates when someone presses the button again because of a slow connection.

From submission to acknowledgment

Submission has several stages: preparing information, transmitting it, receiving the response and recording the result. A provider receiving a request does not mean the tax document has already been accepted. The interface must distinguish pending, sent, accepted and rejected statuses, with the reason available to the person who needs to act.

The electronic receipt acknowledgment, or CDR, is evidence of the validation result. Store the XML, acknowledgment and corresponding representation together with the document identifier. If the response is still processing, check its status before issuing again and retain the attempt history.

A queue helps recover from communication failures: it retries what did not arrive and checks what was already sent. Data or configuration errors require intervention; repeating them automatically does not fix them. Limiting retries and showing pending transactions prevents a problem from going unnoticed during closing.

Corrections, voiding and daily operations

When an accepted transaction needs a commercial correction, evaluate the appropriate credit or debit note. Voiding communications and daily summaries have their own conditions; they should not be presented as a universal button for deleting any sale. Define the treatment of each case with accounting before automating it.

Also consider inventory, cash management and accounts receivable. A note must not restore stock twice or duplicate a partial payment. If a document is rejected, the team needs to see what happened to the commercial transaction and which action remains pending. Integration must describe these consequences rather than hide them behind a generic message.

Dispatch documents require transport information and a specific workflow. If your operation ships merchandise, review the electronic dispatch document guide alongside invoicing so physical dispatch is distinguished from the sale.

How to evaluate an implementation

Request a test with an invoice, a sales receipt, a note and a controlled rejection. Check what the salesperson sees, what the administrator can view and how files are retrieved. A demonstration that only shows a PDF does not prove the tax status is recorded.

In SAFE we built an invoicing workflow that stores statuses, checks responses and recovers pending tax documents.

To define the scope, collect examples of sales, notes, branches and exceptions. The integration module must be quoted together with the rules of the system receiving the response; an ERP with additional processes requires reviewing more than the connector. You can compare scope in how much an ERP costs in Peru.

Frequently asked questions

Is it necessary to replace the entire existing system?

Not necessarily. Current data and processes are reviewed first to determine which modules need adaptation.

Who reviews the company’s tax data?

The team responsible for the operation must validate the data and criteria with its accounting adviser.

Can more than one branch be supported?

Yes, provided configuration, document series and permissions are designed for each operation.

What happens if the provider stops responding?

The system must retain the pending status and allow follow-up and recovery according to the type of failure.

If your operation needs a system adapted to its processes, explore custom software development. You can also learn about our software factory in Lima and read What are an OSE and a PSE? Differences from SEE-SOL and Electronic dispatch documents: issuing them from your system.