Skip to content

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.
Languages
Servers
Homologation Environment

https://e-hom-onapi.factura-core.com/integrator/api/v1/

Production Environment

https://e-prod-onapi.factura-core.com/integrator/api/v1/

Development Environment

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.

Operations

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.

Operations

Integrator

Methods for querying and generating SUNAT Electronic Invoices.

Operations

Reniec Tools

APIs of the National Registry of Identification and Civil Status (RENIEC) of the Government of Peru.

Operations

Tools AI

Artificial Intelligence APIs to support Electronic Invoices, such as:

  • Identity Document Validation (DNI) vs. Selfies
  • Voice-Based Product Generation for CPE Creation
Operations

Tools CPEs

APIs related to SUNAT Electronic Invoices.

Operations

Tools GRE

APIs related

Operations

Products

APIs related to products and services.

Operations