OnAPI Service (1.0.3)
Welcome to our SUNAT Electronic Invoices API portal.
In this space, you can perform Tax Intelligence operations such as:
- Generation and management of CPEs in a controlled SUNAT testing environment;
- OpenAI Artificial Intelligence tools applied to CPEs;
- Validation and identity verification tools from RENIEC;
- Support tools for CPEs, and more.
https://e-hom-onapi.factura-core.com/integrator/api/v1/
https://e-prod-onapi.factura-core.com/integrator/api/v1/
https://e-dev-onapi.factura-core.com/integrator/api/v1/
Authentication
Credential Generation
The team will generate and provide credentials (username and password). This step will be performed only once.
Token Generation
Using the credentials obtained in the previous step, the user will generate a token through a service provided by the team for this purpose.
This token will have a validity period, which is indicated in the service response. Within this period, the token can be used as many times as needed to invoke the services.
Logs
Retrieves the most recent API request logs processed by the integrator service. This endpoint returns detailed information for each request, including the HTTP method, endpoint path, request headers, body content, and the timestamp when the request was received. The number of logs returned is controlled by the limit
path parameter.