openapi: 3.0.3
info:
title: 'API Facturación · API de facturación electrónica SUNAT'
description: 'Emite facturas, boletas, notas, resúmenes, bajas y guías de remisión electrónicas (SUNAT, UBL 2.1) y consulta RUC/DNI con JSON.'
version: 1.0.0
servers:
-
url: 'https://djmplatform.com'
tags:
-
name: Cuenta
description: ''
-
name: Comprobantes
description: ''
-
name: 'Resúmenes y bajas'
description: ''
-
name: 'Guías de remisión'
description: ''
-
name: Consultas
description: ''
-
name: Catálogos
description: ''
components:
securitySchemes:
default:
type: http
scheme: bearer
description: 'Genera el token en el panel: Empresas → (empresa) → Tokens API. Los tokens sk_beta_ operan en BETA y los sk_live_ en producción.'
security:
-
default: []
paths:
/api/v1/me:
get:
summary: 'Empresa y entorno del token.'
operationId: empresaYEntornoDelToken
description: ''
parameters: []
responses: { }
tags:
- Cuenta
/api/v1/series:
get:
summary: 'Series activas de la empresa en el entorno del token.'
operationId: seriesActivasDeLaEmpresaEnElEntornoDelToken
description: ''
parameters: []
responses: { }
tags:
- Cuenta
/api/v1/invoice/send:
post:
summary: 'Emitir y enviar a SUNAT.'
operationId: emitirYEnviarASUNAT
description: "Genera el XML UBL 2.1, lo firma, lo envía (sendBill) y devuelve el estado según el CDR.\nHeader opcional `Idempotency-Key` para reintentos seguros."
parameters: []
responses:
200:
description: ''
content:
application/json:
schema:
type: object
example:
success: true
data:
id: 9f0c6b2e-6a1e-4b8f-9d0b-3e1f6f5c2a10
tipo_doc: '01'
serie: F001
correlativo: 1
numero: F001-1
fecha_emision: '2026-10-30T10:00:00-05:00'
moneda: PEN
cliente:
tipo_doc: '6'
num_doc: '20100070970'
razon_social: 'SUPERMERCADOS PERUANOS S.A.'
totales:
op_gravadas: '200.00'
op_exoneradas: null
op_inafectas: null
op_exportacion: null
op_gratuitas: null
igv_gratuitas: '0.00'
base_ivap: null
ivap: '0.00'
base_isc: '0.00'
isc: '0.00'
igv: '36.00'
icbper: '0.00'
total_impuestos: '36.00'
valor_venta: '200.00'
precio_venta: '236.00'
descuento_global: '0.00'
total_anticipos: '0.00'
importe_total: '236.00'
detraccion: null
neto_pendiente: '236.00'
estado: aceptado
estado_descripcion: Aceptado
hash: 0b6sN3m1yQb4Jm2bQ4r2v3xk9Ss=
intentos: 1
proximo_reintento: null
urls:
xml: 'https://api.tudominio.pe/descargas/9f0c.../xml?expires=...&signature=...'
cdr: 'https://api.tudominio.pe/descargas/9f0c.../cdr?expires=...&signature=...'
pdf: 'https://api.tudominio.pe/descargas/9f0c.../pdf?expires=...&signature=...'
ticket: 'https://api.tudominio.pe/descargas/9f0c.../pdf?format=ticket&expires=...&signature=...'
creado: '2026-10-30T10:00:02-05:00'
sunat:
code: '0'
description: 'La Factura numero F001-1, ha sido aceptada'
notes: []
errors: null
properties:
success:
type: boolean
example: true
data:
type: object
properties:
id:
type: string
example: 9f0c6b2e-6a1e-4b8f-9d0b-3e1f6f5c2a10
tipo_doc:
type: string
example: '01'
serie:
type: string
example: F001
correlativo:
type: integer
example: 1
numero:
type: string
example: F001-1
fecha_emision:
type: string
example: '2026-10-30T10:00:00-05:00'
moneda:
type: string
example: PEN
cliente:
type: object
properties:
tipo_doc:
type: string
example: '6'
num_doc:
type: string
example: '20100070970'
razon_social:
type: string
example: 'SUPERMERCADOS PERUANOS S.A.'
totales:
type: object
properties:
op_gravadas:
type: string
example: '200.00'
op_exoneradas:
type: string
example: null
nullable: true
op_inafectas:
type: string
example: null
nullable: true
op_exportacion:
type: string
example: null
nullable: true
op_gratuitas:
type: string
example: null
nullable: true
igv_gratuitas:
type: string
example: '0.00'
base_ivap:
type: string
example: null
nullable: true
ivap:
type: string
example: '0.00'
base_isc:
type: string
example: '0.00'
isc:
type: string
example: '0.00'
igv:
type: string
example: '36.00'
icbper:
type: string
example: '0.00'
total_impuestos:
type: string
example: '36.00'
valor_venta:
type: string
example: '200.00'
precio_venta:
type: string
example: '236.00'
descuento_global:
type: string
example: '0.00'
total_anticipos:
type: string
example: '0.00'
importe_total:
type: string
example: '236.00'
detraccion:
type: string
example: null
nullable: true
neto_pendiente:
type: string
example: '236.00'
estado:
type: string
example: aceptado
estado_descripcion:
type: string
example: Aceptado
hash:
type: string
example: 0b6sN3m1yQb4Jm2bQ4r2v3xk9Ss=
intentos:
type: integer
example: 1
proximo_reintento:
type: string
example: null
nullable: true
urls:
type: object
properties:
xml:
type: string
example: 'https://api.tudominio.pe/descargas/9f0c.../xml?expires=...&signature=...'
cdr:
type: string
example: 'https://api.tudominio.pe/descargas/9f0c.../cdr?expires=...&signature=...'
pdf:
type: string
example: 'https://api.tudominio.pe/descargas/9f0c.../pdf?expires=...&signature=...'
ticket:
type: string
example: 'https://api.tudominio.pe/descargas/9f0c.../pdf?format=ticket&expires=...&signature=...'
creado:
type: string
example: '2026-10-30T10:00:02-05:00'
sunat:
type: object
properties:
code:
type: string
example: '0'
description:
type: string
example: 'La Factura numero F001-1, ha sido aceptada'
notes:
type: array
example: []
errors:
type: string
example: null
nullable: true
422:
description: ''
content:
application/json:
schema:
type: object
example:
success: false
data:
id: 9f0c6b2e-6a1e-4b8f-9d0b-3e1f6f5c2a10
numero: F001-2
estado: rechazado
estado_descripcion: Rechazado
sunat:
code: '2800'
description: 'El dato ingresado en el tipo de documento de identidad del receptor no esta permitido.'
notes: []
errors:
code: SUNAT_REJECTED
message: 'El dato ingresado en el tipo de documento de identidad del receptor no esta permitido.'
properties:
success:
type: boolean
example: false
data:
type: object
properties:
id:
type: string
example: 9f0c6b2e-6a1e-4b8f-9d0b-3e1f6f5c2a10
numero:
type: string
example: F001-2
estado:
type: string
example: rechazado
estado_descripcion:
type: string
example: Rechazado
sunat:
type: object
properties:
code:
type: string
example: '2800'
description:
type: string
example: 'El dato ingresado en el tipo de documento de identidad del receptor no esta permitido.'
notes:
type: array
example: []
errors:
type: object
properties:
code:
type: string
example: SUNAT_REJECTED
message:
type: string
example: 'El dato ingresado en el tipo de documento de identidad del receptor no esta permitido.'
429:
description: ''
content:
application/json:
schema:
type: object
example:
success: false
data: null
sunat: null
errors:
code: QUOTA_EXCEEDED
message: 'Alcanzaste el límite de 100 comprobantes y guías por mes del plan Free. Se renueva el 01/11/2026 00:00; para ampliarlo, cambia de plan.'
properties:
success:
type: boolean
example: false
data:
type: string
example: null
nullable: true
sunat:
type: string
example: null
nullable: true
errors:
type: object
properties:
code:
type: string
example: QUOTA_EXCEEDED
message:
type: string
example: 'Alcanzaste el límite de 100 comprobantes y guías por mes del plan Free. Se renueva el 01/11/2026 00:00; para ampliarlo, cambia de plan.'
tags:
- Comprobantes
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
tipo_doc:
type: string
description: 'Catálogo 01: 01 factura, 03 boleta.'
example: '01'
enum:
- 1
- 3
envio:
type: string
description: 'Boletas: "resumen" para informarlas por Resumen Diario en lugar de enviarlas una a una.'
example: null
enum:
- individual
- resumen
nullable: true
serie:
type: string
description: 'Serie creada en el panel para el entorno del token (F001, B001…). Must contain only letters and numbers. value debe tener 4 caracteres.'
example: F001
correlativo:
type: integer
description: 'Opcional. Si se omite se asigna el siguiente. value debe ser al menos 1. value no debe ser mayor que 99999999.'
example: null
nullable: true
fecha_emision:
type: string
description: 'ISO 8601. Por defecto, ahora (hora de Lima). No puede ser futura. value no es una fecha válida.'
example: null
nullable: true
fecha_vencimiento:
type: string
description: 'Y-m-d. Must be a valid date in the format Y-m-d.'
example: null
nullable: true
moneda:
type: string
description: 'PEN (defecto), USD o EUR.'
example: PEN
enum:
- PEN
- USD
- EUR
nullable: true
tipo_operacion:
type: string
description: 'Catálogo 51 (0101 venta interna por defecto, 0200 exportación, 1001 detracción). Must match an existing stored value.'
example: null
nullable: true
orden_compra:
type: string
description: 'Orden de compra del cliente. Must match the regex /^[A-Za-z0-9\-_.\/]+$/. value no debe tener más de 20 caracteres.'
example: null
nullable: true
observacion:
type: string
description: 'Texto libre para el PDF. value no debe tener más de 500 caracteres.'
example: null
nullable: true
cliente:
type: object
description: Adquirente.
example: []
properties:
tipo_doc:
type: string
description: 'Catálogo 06: 6 RUC, 1 DNI, 0 sin documento, 4 CE, 7 pasaporte. Must match an existing stored value.'
example: '6'
num_doc:
type: string
description: 'Número de documento. Must match the regex /^[A-Za-z0-9\-]+$/. value no debe tener más de 20 caracteres.'
example: '20100070970'
razon_social:
type: string
description: 'Razón social o nombres (mín. 3 caracteres). value debe tener al menos 3 caracteres. value no debe tener más de 250 caracteres.'
example: 'SUPERMERCADOS PERUANOS S.A.'
direccion:
type: string
description: 'Dirección del cliente. value no debe tener más de 250 caracteres.'
example: null
nullable: true
email:
type: string
description: 'Correo del cliente. value debe ser un correo válido. value no debe tener más de 150 caracteres.'
example: null
nullable: true
ubigeo:
type: string
description: 'Ubigeo INEI. value debe tener 6 dígitos.'
example: null
nullable: true
codigo_pais:
type: string
description: 'ISO 3166-1 alfa-2 (exportación). Must contain only letters. value debe tener 2 caracteres.'
example: null
nullable: true
required:
- tipo_doc
- num_doc
- razon_social
items:
type: array
description: 'Ítems del comprobante. value debe tener al menos 1 elementos. value no debe tener más de 500 elementos.'
example:
- []
items:
type: object
properties:
descripcion:
type: string
description: 'Descripción del bien o servicio. value no debe tener más de 500 caracteres.'
example: 'Laptop 14" Core i5'
cantidad:
type: string
description: 'Decimal como string. Must match the regex /^-?\d{1,12}(\.\d{1,10})?$/.'
example: '2'
valor_unitario:
type: string
description: 'Sin IGV. Usa este o precio_unitario, no ambos. En gratuitas, valor referencial. Must match the regex /^-?\d{1,12}(\.\d{1,10})?$/.'
example: null
nullable: true
precio_unitario:
type: string
description: 'Con IGV. Must match the regex /^-?\d{1,12}(\.\d{1,10})?$/.'
example: '2500.00'
nullable: true
unidad:
type: string
description: 'Catálogo 03 (NIU por defecto, ZZ servicios). Must match an existing stored value. value no debe tener más de 5 caracteres.'
example: NIU
nullable: true
codigo:
type: string
description: 'Código interno. Must match the regex /^[A-Za-z0-9\-_.\/]+$/. value no debe tener más de 30 caracteres.'
example: LAP-001
nullable: true
codigo_sunat:
type: string
description: 'Código de producto SUNAT (UNSPSC). Must match the regex /^\d+$/. value no debe tener más de 20 caracteres.'
example: null
nullable: true
tipo_afectacion_igv:
type: string
description: 'Catálogo 07 (10 gravado por defecto, 20 exonerado, 30 inafecto, 40 exportación, 11–16/21/31–37 gratuitas).'
example: '10'
enum:
- '10'
- '11'
- '12'
- '13'
- '14'
- '15'
- '16'
- '17'
- '20'
- '21'
- '30'
- '31'
- '32'
- '33'
- '34'
- '35'
- '36'
- '37'
- '40'
nullable: true
porcentaje_igv:
type: string
description: 'Tasa del ítem (18 por defecto). Una sola tasa por comprobante. Must match the regex /^-?\d{1,12}(\.\d{1,10})?$/.'
example: null
nullable: true
descuento:
type: string
description: 'Descuento del ítem (monto sin IGV). Must match the regex /^-?\d{1,12}(\.\d{1,10})?$/.'
example: null
nullable: true
isc:
type: object
description: 'ISC sistema al valor.'
example: null
properties:
porcentaje:
type: string
description: 'Porcentaje de ISC. This field is required when items.*.isc is present. Must match the regex /^-?\d{1,12}(\.\d{1,10})?$/.'
example: null
nullable: true
icbper:
type: boolean
description: 'true para bolsas plásticas (impuesto por unidad).'
example: null
nullable: true
required:
- descripcion
- cantidad
descuento_global:
type: string
description: 'Descuento global (monto sin IGV). Must match the regex /^-?\d{1,12}(\.\d{1,10})?$/.'
example: null
nullable: true
anticipos:
type: array
description: 'Anticipos deducidos. value no debe tener más de 20 elementos.'
example: null
items:
type: object
nullable: true
properties:
tipo_doc:
type: string
description: '01 o 03.'
example: null
enum:
- 2
- 3
numero:
type: string
description: 'Comprobante del anticipo (F001-10). Must match the regex /^[FB][A-Z0-9]{3}-\d{1,8}$/i.'
example: null
valor:
type: string
description: 'Valor del anticipo. Must match the regex /^-?\d{1,12}(\.\d{1,10})?$/.'
example: null
afectacion:
type: string
description: 'Afectación del anticipo.'
example: null
enum:
- gravadas
- exoneradas
- inafectas
nullable: true
detraccion:
type: object
description: 'Operación sujeta a detracción (tipo_operacion 1001).'
example: null
properties:
codigo_bien:
type: string
description: 'Catálogo 54. This field is required when detraccion is present. Must match an existing stored value.'
example: null
porcentaje:
type: string
description: 'Porcentaje vigente (verificar). This field is required when detraccion is present. Must match the regex /^-?\d{1,12}(\.\d{1,10})?$/.'
example: null
cuenta_banco:
type: string
description: 'Cuenta en el Banco de la Nación. This field is required when detraccion is present. Must match the regex /^[A-Za-z0-9\-_.\/]+$/. value no debe tener más de 30 caracteres.'
example: null
medio_pago:
type: string
description: 'Catálogo 59. Must match an existing stored value.'
example: null
nullable: true
monto:
type: string
description: 'Monto en soles (obligatorio si la moneda no es PEN). Must match the regex /^-?\d{1,12}(\.\d{1,10})?$/.'
example: null
nullable: true
nullable: true
forma_pago:
type: object
description: 'Contado por defecto.'
example: null
properties:
tipo:
type: string
description: 'contado o credito. This field is required when forma_pago is present.'
example: null
enum:
- contado
- credito
cuotas:
type: array
description: 'Cuotas; deben sumar el neto pendiente. value no debe tener más de 60 elementos.'
example: null
items:
type: object
nullable: true
properties:
monto:
type: string
description: 'Monto de la cuota. Must match the regex /^-?\d{1,12}(\.\d{1,10})?$/.'
example: null
fecha:
type: string
description: 'Vencimiento Y-m-d. Must be a valid date in the format Y-m-d.'
example: null
nullable: true
guias:
type: array
description: 'Guías de remisión relacionadas. value no debe tener más de 20 elementos.'
example: null
items:
type: object
nullable: true
properties:
tipo_doc:
type: string
description: '09 o 31.'
example: null
enum:
- 9
- 31
numero:
type: string
description: 'T001-25. Must match the regex /^[A-Z0-9]{4}-\d{1,8}$/i.'
example: null
leyendas:
type: array
description: 'Texto de la leyenda. value debe tener 4 dígitos.'
example: null
items:
type: string
required:
- tipo_doc
- serie
- cliente
- items
/api/v1/invoice/xml:
post:
summary: 'Solo generar y firmar el XML (no persiste ni envía).'
operationId: soloGenerarYFirmarElXMLnoPersisteNiEnva
description: ''
parameters: []
responses: { }
tags:
- Comprobantes
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
tipo_doc:
type: string
description: 'Catálogo 01: 01 factura, 03 boleta.'
example: '01'
enum:
- 1
- 3
envio:
type: string
description: 'Boletas: "resumen" para informarlas por Resumen Diario en lugar de enviarlas una a una.'
example: null
enum:
- individual
- resumen
nullable: true
serie:
type: string
description: 'Serie creada en el panel para el entorno del token (F001, B001…). Must contain only letters and numbers. value debe tener 4 caracteres.'
example: F001
correlativo:
type: integer
description: 'Opcional. Si se omite se asigna el siguiente. value debe ser al menos 1. value no debe ser mayor que 99999999.'
example: null
nullable: true
fecha_emision:
type: string
description: 'ISO 8601. Por defecto, ahora (hora de Lima). No puede ser futura. value no es una fecha válida.'
example: null
nullable: true
fecha_vencimiento:
type: string
description: 'Y-m-d. Must be a valid date in the format Y-m-d.'
example: null
nullable: true
moneda:
type: string
description: 'PEN (defecto), USD o EUR.'
example: PEN
enum:
- PEN
- USD
- EUR
nullable: true
tipo_operacion:
type: string
description: 'Catálogo 51 (0101 venta interna por defecto, 0200 exportación, 1001 detracción). Must match an existing stored value.'
example: null
nullable: true
orden_compra:
type: string
description: 'Orden de compra del cliente. Must match the regex /^[A-Za-z0-9\-_.\/]+$/. value no debe tener más de 20 caracteres.'
example: null
nullable: true
observacion:
type: string
description: 'Texto libre para el PDF. value no debe tener más de 500 caracteres.'
example: null
nullable: true
cliente:
type: object
description: Adquirente.
example: []
properties:
tipo_doc:
type: string
description: 'Catálogo 06: 6 RUC, 1 DNI, 0 sin documento, 4 CE, 7 pasaporte. Must match an existing stored value.'
example: '6'
num_doc:
type: string
description: 'Número de documento. Must match the regex /^[A-Za-z0-9\-]+$/. value no debe tener más de 20 caracteres.'
example: '20100070970'
razon_social:
type: string
description: 'Razón social o nombres (mín. 3 caracteres). value debe tener al menos 3 caracteres. value no debe tener más de 250 caracteres.'
example: 'SUPERMERCADOS PERUANOS S.A.'
direccion:
type: string
description: 'Dirección del cliente. value no debe tener más de 250 caracteres.'
example: null
nullable: true
email:
type: string
description: 'Correo del cliente. value debe ser un correo válido. value no debe tener más de 150 caracteres.'
example: null
nullable: true
ubigeo:
type: string
description: 'Ubigeo INEI. value debe tener 6 dígitos.'
example: null
nullable: true
codigo_pais:
type: string
description: 'ISO 3166-1 alfa-2 (exportación). Must contain only letters. value debe tener 2 caracteres.'
example: null
nullable: true
required:
- tipo_doc
- num_doc
- razon_social
items:
type: array
description: 'Ítems del comprobante. value debe tener al menos 1 elementos. value no debe tener más de 500 elementos.'
example:
- []
items:
type: object
properties:
descripcion:
type: string
description: 'Descripción del bien o servicio. value no debe tener más de 500 caracteres.'
example: 'Laptop 14" Core i5'
cantidad:
type: string
description: 'Decimal como string. Must match the regex /^-?\d{1,12}(\.\d{1,10})?$/.'
example: '2'
valor_unitario:
type: string
description: 'Sin IGV. Usa este o precio_unitario, no ambos. En gratuitas, valor referencial. Must match the regex /^-?\d{1,12}(\.\d{1,10})?$/.'
example: null
nullable: true
precio_unitario:
type: string
description: 'Con IGV. Must match the regex /^-?\d{1,12}(\.\d{1,10})?$/.'
example: '2500.00'
nullable: true
unidad:
type: string
description: 'Catálogo 03 (NIU por defecto, ZZ servicios). Must match an existing stored value. value no debe tener más de 5 caracteres.'
example: NIU
nullable: true
codigo:
type: string
description: 'Código interno. Must match the regex /^[A-Za-z0-9\-_.\/]+$/. value no debe tener más de 30 caracteres.'
example: LAP-001
nullable: true
codigo_sunat:
type: string
description: 'Código de producto SUNAT (UNSPSC). Must match the regex /^\d+$/. value no debe tener más de 20 caracteres.'
example: null
nullable: true
tipo_afectacion_igv:
type: string
description: 'Catálogo 07 (10 gravado por defecto, 20 exonerado, 30 inafecto, 40 exportación, 11–16/21/31–37 gratuitas).'
example: '10'
enum:
- '10'
- '11'
- '12'
- '13'
- '14'
- '15'
- '16'
- '17'
- '20'
- '21'
- '30'
- '31'
- '32'
- '33'
- '34'
- '35'
- '36'
- '37'
- '40'
nullable: true
porcentaje_igv:
type: string
description: 'Tasa del ítem (18 por defecto). Una sola tasa por comprobante. Must match the regex /^-?\d{1,12}(\.\d{1,10})?$/.'
example: null
nullable: true
descuento:
type: string
description: 'Descuento del ítem (monto sin IGV). Must match the regex /^-?\d{1,12}(\.\d{1,10})?$/.'
example: null
nullable: true
isc:
type: object
description: 'ISC sistema al valor.'
example: null
properties:
porcentaje:
type: string
description: 'Porcentaje de ISC. This field is required when items.*.isc is present. Must match the regex /^-?\d{1,12}(\.\d{1,10})?$/.'
example: null
nullable: true
icbper:
type: boolean
description: 'true para bolsas plásticas (impuesto por unidad).'
example: null
nullable: true
required:
- descripcion
- cantidad
descuento_global:
type: string
description: 'Descuento global (monto sin IGV). Must match the regex /^-?\d{1,12}(\.\d{1,10})?$/.'
example: null
nullable: true
anticipos:
type: array
description: 'Anticipos deducidos. value no debe tener más de 20 elementos.'
example: null
items:
type: object
nullable: true
properties:
tipo_doc:
type: string
description: '01 o 03.'
example: null
enum:
- 2
- 3
numero:
type: string
description: 'Comprobante del anticipo (F001-10). Must match the regex /^[FB][A-Z0-9]{3}-\d{1,8}$/i.'
example: null
valor:
type: string
description: 'Valor del anticipo. Must match the regex /^-?\d{1,12}(\.\d{1,10})?$/.'
example: null
afectacion:
type: string
description: 'Afectación del anticipo.'
example: null
enum:
- gravadas
- exoneradas
- inafectas
nullable: true
detraccion:
type: object
description: 'Operación sujeta a detracción (tipo_operacion 1001).'
example: null
properties:
codigo_bien:
type: string
description: 'Catálogo 54. This field is required when detraccion is present. Must match an existing stored value.'
example: null
porcentaje:
type: string
description: 'Porcentaje vigente (verificar). This field is required when detraccion is present. Must match the regex /^-?\d{1,12}(\.\d{1,10})?$/.'
example: null
cuenta_banco:
type: string
description: 'Cuenta en el Banco de la Nación. This field is required when detraccion is present. Must match the regex /^[A-Za-z0-9\-_.\/]+$/. value no debe tener más de 30 caracteres.'
example: null
medio_pago:
type: string
description: 'Catálogo 59. Must match an existing stored value.'
example: null
nullable: true
monto:
type: string
description: 'Monto en soles (obligatorio si la moneda no es PEN). Must match the regex /^-?\d{1,12}(\.\d{1,10})?$/.'
example: null
nullable: true
nullable: true
forma_pago:
type: object
description: 'Contado por defecto.'
example: null
properties:
tipo:
type: string
description: 'contado o credito. This field is required when forma_pago is present.'
example: null
enum:
- contado
- credito
cuotas:
type: array
description: 'Cuotas; deben sumar el neto pendiente. value no debe tener más de 60 elementos.'
example: null
items:
type: object
nullable: true
properties:
monto:
type: string
description: 'Monto de la cuota. Must match the regex /^-?\d{1,12}(\.\d{1,10})?$/.'
example: null
fecha:
type: string
description: 'Vencimiento Y-m-d. Must be a valid date in the format Y-m-d.'
example: null
nullable: true
guias:
type: array
description: 'Guías de remisión relacionadas. value no debe tener más de 20 elementos.'
example: null
items:
type: object
nullable: true
properties:
tipo_doc:
type: string
description: '09 o 31.'
example: null
enum:
- 9
- 31
numero:
type: string
description: 'T001-25. Must match the regex /^[A-Z0-9]{4}-\d{1,8}$/i.'
example: null
leyendas:
type: array
description: 'Texto de la leyenda. value debe tener 4 dígitos.'
example: null
items:
type: string
required:
- tipo_doc
- serie
- cliente
- items
/api/v1/invoice/pdf:
post:
summary: 'Vista previa del PDF (no persiste). Query: format=a4|ticket.'
operationId: vistaPreviaDelPDFnoPersisteQueryFormata4ticket
description: ''
parameters: []
responses: { }
tags:
- Comprobantes
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
tipo_doc:
type: string
description: 'Catálogo 01: 01 factura, 03 boleta.'
example: '01'
enum:
- 1
- 3
envio:
type: string
description: 'Boletas: "resumen" para informarlas por Resumen Diario en lugar de enviarlas una a una.'
example: null
enum:
- individual
- resumen
nullable: true
serie:
type: string
description: 'Serie creada en el panel para el entorno del token (F001, B001…). Must contain only letters and numbers. value debe tener 4 caracteres.'
example: F001
correlativo:
type: integer
description: 'Opcional. Si se omite se asigna el siguiente. value debe ser al menos 1. value no debe ser mayor que 99999999.'
example: null
nullable: true
fecha_emision:
type: string
description: 'ISO 8601. Por defecto, ahora (hora de Lima). No puede ser futura. value no es una fecha válida.'
example: null
nullable: true
fecha_vencimiento:
type: string
description: 'Y-m-d. Must be a valid date in the format Y-m-d.'
example: null
nullable: true
moneda:
type: string
description: 'PEN (defecto), USD o EUR.'
example: PEN
enum:
- PEN
- USD
- EUR
nullable: true
tipo_operacion:
type: string
description: 'Catálogo 51 (0101 venta interna por defecto, 0200 exportación, 1001 detracción). Must match an existing stored value.'
example: null
nullable: true
orden_compra:
type: string
description: 'Orden de compra del cliente. Must match the regex /^[A-Za-z0-9\-_.\/]+$/. value no debe tener más de 20 caracteres.'
example: null
nullable: true
observacion:
type: string
description: 'Texto libre para el PDF. value no debe tener más de 500 caracteres.'
example: null
nullable: true
cliente:
type: object
description: Adquirente.
example: []
properties:
tipo_doc:
type: string
description: 'Catálogo 06: 6 RUC, 1 DNI, 0 sin documento, 4 CE, 7 pasaporte. Must match an existing stored value.'
example: '6'
num_doc:
type: string
description: 'Número de documento. Must match the regex /^[A-Za-z0-9\-]+$/. value no debe tener más de 20 caracteres.'
example: '20100070970'
razon_social:
type: string
description: 'Razón social o nombres (mín. 3 caracteres). value debe tener al menos 3 caracteres. value no debe tener más de 250 caracteres.'
example: 'SUPERMERCADOS PERUANOS S.A.'
direccion:
type: string
description: 'Dirección del cliente. value no debe tener más de 250 caracteres.'
example: null
nullable: true
email:
type: string
description: 'Correo del cliente. value debe ser un correo válido. value no debe tener más de 150 caracteres.'
example: null
nullable: true
ubigeo:
type: string
description: 'Ubigeo INEI. value debe tener 6 dígitos.'
example: null
nullable: true
codigo_pais:
type: string
description: 'ISO 3166-1 alfa-2 (exportación). Must contain only letters. value debe tener 2 caracteres.'
example: null
nullable: true
required:
- tipo_doc
- num_doc
- razon_social
items:
type: array
description: 'Ítems del comprobante. value debe tener al menos 1 elementos. value no debe tener más de 500 elementos.'
example:
- []
items:
type: object
properties:
descripcion:
type: string
description: 'Descripción del bien o servicio. value no debe tener más de 500 caracteres.'
example: 'Laptop 14" Core i5'
cantidad:
type: string
description: 'Decimal como string. Must match the regex /^-?\d{1,12}(\.\d{1,10})?$/.'
example: '2'
valor_unitario:
type: string
description: 'Sin IGV. Usa este o precio_unitario, no ambos. En gratuitas, valor referencial. Must match the regex /^-?\d{1,12}(\.\d{1,10})?$/.'
example: null
nullable: true
precio_unitario:
type: string
description: 'Con IGV. Must match the regex /^-?\d{1,12}(\.\d{1,10})?$/.'
example: '2500.00'
nullable: true
unidad:
type: string
description: 'Catálogo 03 (NIU por defecto, ZZ servicios). Must match an existing stored value. value no debe tener más de 5 caracteres.'
example: NIU
nullable: true
codigo:
type: string
description: 'Código interno. Must match the regex /^[A-Za-z0-9\-_.\/]+$/. value no debe tener más de 30 caracteres.'
example: LAP-001
nullable: true
codigo_sunat:
type: string
description: 'Código de producto SUNAT (UNSPSC). Must match the regex /^\d+$/. value no debe tener más de 20 caracteres.'
example: null
nullable: true
tipo_afectacion_igv:
type: string
description: 'Catálogo 07 (10 gravado por defecto, 20 exonerado, 30 inafecto, 40 exportación, 11–16/21/31–37 gratuitas).'
example: '10'
enum:
- '10'
- '11'
- '12'
- '13'
- '14'
- '15'
- '16'
- '17'
- '20'
- '21'
- '30'
- '31'
- '32'
- '33'
- '34'
- '35'
- '36'
- '37'
- '40'
nullable: true
porcentaje_igv:
type: string
description: 'Tasa del ítem (18 por defecto). Una sola tasa por comprobante. Must match the regex /^-?\d{1,12}(\.\d{1,10})?$/.'
example: null
nullable: true
descuento:
type: string
description: 'Descuento del ítem (monto sin IGV). Must match the regex /^-?\d{1,12}(\.\d{1,10})?$/.'
example: null
nullable: true
isc:
type: object
description: 'ISC sistema al valor.'
example: null
properties:
porcentaje:
type: string
description: 'Porcentaje de ISC. This field is required when items.*.isc is present. Must match the regex /^-?\d{1,12}(\.\d{1,10})?$/.'
example: null
nullable: true
icbper:
type: boolean
description: 'true para bolsas plásticas (impuesto por unidad).'
example: null
nullable: true
required:
- descripcion
- cantidad
descuento_global:
type: string
description: 'Descuento global (monto sin IGV). Must match the regex /^-?\d{1,12}(\.\d{1,10})?$/.'
example: null
nullable: true
anticipos:
type: array
description: 'Anticipos deducidos. value no debe tener más de 20 elementos.'
example: null
items:
type: object
nullable: true
properties:
tipo_doc:
type: string
description: '01 o 03.'
example: null
enum:
- 2
- 3
numero:
type: string
description: 'Comprobante del anticipo (F001-10). Must match the regex /^[FB][A-Z0-9]{3}-\d{1,8}$/i.'
example: null
valor:
type: string
description: 'Valor del anticipo. Must match the regex /^-?\d{1,12}(\.\d{1,10})?$/.'
example: null
afectacion:
type: string
description: 'Afectación del anticipo.'
example: null
enum:
- gravadas
- exoneradas
- inafectas
nullable: true
detraccion:
type: object
description: 'Operación sujeta a detracción (tipo_operacion 1001).'
example: null
properties:
codigo_bien:
type: string
description: 'Catálogo 54. This field is required when detraccion is present. Must match an existing stored value.'
example: null
porcentaje:
type: string
description: 'Porcentaje vigente (verificar). This field is required when detraccion is present. Must match the regex /^-?\d{1,12}(\.\d{1,10})?$/.'
example: null
cuenta_banco:
type: string
description: 'Cuenta en el Banco de la Nación. This field is required when detraccion is present. Must match the regex /^[A-Za-z0-9\-_.\/]+$/. value no debe tener más de 30 caracteres.'
example: null
medio_pago:
type: string
description: 'Catálogo 59. Must match an existing stored value.'
example: null
nullable: true
monto:
type: string
description: 'Monto en soles (obligatorio si la moneda no es PEN). Must match the regex /^-?\d{1,12}(\.\d{1,10})?$/.'
example: null
nullable: true
nullable: true
forma_pago:
type: object
description: 'Contado por defecto.'
example: null
properties:
tipo:
type: string
description: 'contado o credito. This field is required when forma_pago is present.'
example: null
enum:
- contado
- credito
cuotas:
type: array
description: 'Cuotas; deben sumar el neto pendiente. value no debe tener más de 60 elementos.'
example: null
items:
type: object
nullable: true
properties:
monto:
type: string
description: 'Monto de la cuota. Must match the regex /^-?\d{1,12}(\.\d{1,10})?$/.'
example: null
fecha:
type: string
description: 'Vencimiento Y-m-d. Must be a valid date in the format Y-m-d.'
example: null
nullable: true
guias:
type: array
description: 'Guías de remisión relacionadas. value no debe tener más de 20 elementos.'
example: null
items:
type: object
nullable: true
properties:
tipo_doc:
type: string
description: '09 o 31.'
example: null
enum:
- 9
- 31
numero:
type: string
description: 'T001-25. Must match the regex /^[A-Z0-9]{4}-\d{1,8}$/i.'
example: null
leyendas:
type: array
description: 'Texto de la leyenda. value debe tener 4 dígitos.'
example: null
items:
type: string
required:
- tipo_doc
- serie
- cliente
- items
/api/v1/note/send:
post:
summary: 'Emitir nota de crédito (07) o débito (08) y enviarla a SUNAT.'
operationId: emitirNotaDeCrdito07ODbito08YEnviarlaASUNAT
description: ''
parameters: []
responses: { }
tags:
- Comprobantes
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
tipo_doc:
type: string
description: '07 nota de crédito, 08 nota de débito.'
example: '07'
enum:
- 7
- 8
envio:
type: string
description: 'Boletas: "resumen" para informarlas por Resumen Diario en lugar de enviarlas una a una.'
example: null
enum:
- individual
- resumen
nullable: true
serie:
type: string
description: 'Prefijo del documento afectado: F (FC01) o B (BC01). Must contain only letters and numbers. value debe tener 4 caracteres.'
example: FC01
correlativo:
type: integer
description: 'Opcional. Si se omite se asigna el siguiente. value debe ser al menos 1. value no debe ser mayor que 99999999.'
example: null
nullable: true
fecha_emision:
type: string
description: 'ISO 8601. Por defecto, ahora (hora de Lima). No puede ser futura. value no es una fecha válida.'
example: null
nullable: true
fecha_vencimiento:
type: string
description: 'Y-m-d. Must be a valid date in the format Y-m-d.'
example: null
nullable: true
moneda:
type: string
description: 'PEN (defecto), USD o EUR.'
example: PEN
enum:
- PEN
- USD
- EUR
nullable: true
tipo_operacion:
type: string
description: 'Catálogo 51 (0101 venta interna por defecto, 0200 exportación, 1001 detracción). Must match an existing stored value.'
example: null
nullable: true
orden_compra:
type: string
description: 'Orden de compra del cliente. Must match the regex /^[A-Za-z0-9\-_.\/]+$/. value no debe tener más de 20 caracteres.'
example: null
nullable: true
observacion:
type: string
description: 'Texto libre para el PDF. value no debe tener más de 500 caracteres.'
example: null
nullable: true
cliente:
type: object
description: Adquirente.
example: []
properties:
tipo_doc:
type: string
description: 'Catálogo 06: 6 RUC, 1 DNI, 0 sin documento, 4 CE, 7 pasaporte. Must match an existing stored value.'
example: '6'
num_doc:
type: string
description: 'Número de documento. Must match the regex /^[A-Za-z0-9\-]+$/. value no debe tener más de 20 caracteres.'
example: '20100070970'
razon_social:
type: string
description: 'Razón social o nombres (mín. 3 caracteres). value debe tener al menos 3 caracteres. value no debe tener más de 250 caracteres.'
example: 'SUPERMERCADOS PERUANOS S.A.'
direccion:
type: string
description: 'Dirección del cliente. value no debe tener más de 250 caracteres.'
example: null
nullable: true
email:
type: string
description: 'Correo del cliente. value debe ser un correo válido. value no debe tener más de 150 caracteres.'
example: null
nullable: true
ubigeo:
type: string
description: 'Ubigeo INEI. value debe tener 6 dígitos.'
example: null
nullable: true
codigo_pais:
type: string
description: 'ISO 3166-1 alfa-2 (exportación). Must contain only letters. value debe tener 2 caracteres.'
example: null
nullable: true
required:
- tipo_doc
- num_doc
- razon_social
items:
type: array
description: 'Ítems del comprobante. value debe tener al menos 1 elementos. value no debe tener más de 500 elementos.'
example:
- []
items:
type: object
properties:
descripcion:
type: string
description: 'Descripción del bien o servicio. value no debe tener más de 500 caracteres.'
example: 'Laptop 14" Core i5'
cantidad:
type: string
description: 'Decimal como string. Must match the regex /^-?\d{1,12}(\.\d{1,10})?$/.'
example: '2'
valor_unitario:
type: string
description: 'Sin IGV. Usa este o precio_unitario, no ambos. En gratuitas, valor referencial. Must match the regex /^-?\d{1,12}(\.\d{1,10})?$/.'
example: null
nullable: true
precio_unitario:
type: string
description: 'Con IGV. Must match the regex /^-?\d{1,12}(\.\d{1,10})?$/.'
example: '2500.00'
nullable: true
unidad:
type: string
description: 'Catálogo 03 (NIU por defecto, ZZ servicios). Must match an existing stored value. value no debe tener más de 5 caracteres.'
example: NIU
nullable: true
codigo:
type: string
description: 'Código interno. Must match the regex /^[A-Za-z0-9\-_.\/]+$/. value no debe tener más de 30 caracteres.'
example: LAP-001
nullable: true
codigo_sunat:
type: string
description: 'Código de producto SUNAT (UNSPSC). Must match the regex /^\d+$/. value no debe tener más de 20 caracteres.'
example: null
nullable: true
tipo_afectacion_igv:
type: string
description: 'Catálogo 07 (10 gravado por defecto, 20 exonerado, 30 inafecto, 40 exportación, 11–16/21/31–37 gratuitas).'
example: '10'
enum:
- '10'
- '11'
- '12'
- '13'
- '14'
- '15'
- '16'
- '17'
- '20'
- '21'
- '30'
- '31'
- '32'
- '33'
- '34'
- '35'
- '36'
- '37'
- '40'
nullable: true
porcentaje_igv:
type: string
description: 'Tasa del ítem (18 por defecto). Una sola tasa por comprobante. Must match the regex /^-?\d{1,12}(\.\d{1,10})?$/.'
example: null
nullable: true
descuento:
type: string
description: 'Descuento del ítem (monto sin IGV). Must match the regex /^-?\d{1,12}(\.\d{1,10})?$/.'
example: null
nullable: true
isc:
type: object
description: 'ISC sistema al valor.'
example: null
properties:
porcentaje:
type: string
description: 'Porcentaje de ISC. This field is required when items.*.isc is present. Must match the regex /^-?\d{1,12}(\.\d{1,10})?$/.'
example: null
nullable: true
icbper:
type: boolean
description: 'true para bolsas plásticas (impuesto por unidad).'
example: null
nullable: true
required:
- descripcion
- cantidad
descuento_global:
type: string
description: 'Descuento global (monto sin IGV). Must match the regex /^-?\d{1,12}(\.\d{1,10})?$/.'
example: null
nullable: true
anticipos:
type: array
description: 'Anticipos deducidos. value no debe tener más de 20 elementos.'
example: null
items:
type: object
nullable: true
properties:
tipo_doc:
type: string
description: '01 o 03.'
example: null
enum:
- 2
- 3
numero:
type: string
description: 'Comprobante del anticipo (F001-10). Must match the regex /^[FB][A-Z0-9]{3}-\d{1,8}$/i.'
example: null
valor:
type: string
description: 'Valor del anticipo. Must match the regex /^-?\d{1,12}(\.\d{1,10})?$/.'
example: null
afectacion:
type: string
description: 'Afectación del anticipo.'
example: null
enum:
- gravadas
- exoneradas
- inafectas
nullable: true
detraccion:
type: object
description: 'Operación sujeta a detracción (tipo_operacion 1001).'
example: null
properties:
codigo_bien:
type: string
description: 'Catálogo 54. This field is required when detraccion is present. Must match an existing stored value.'
example: null
porcentaje:
type: string
description: 'Porcentaje vigente (verificar). This field is required when detraccion is present. Must match the regex /^-?\d{1,12}(\.\d{1,10})?$/.'
example: null
cuenta_banco:
type: string
description: 'Cuenta en el Banco de la Nación. This field is required when detraccion is present. Must match the regex /^[A-Za-z0-9\-_.\/]+$/. value no debe tener más de 30 caracteres.'
example: null
medio_pago:
type: string
description: 'Catálogo 59. Must match an existing stored value.'
example: null
nullable: true
monto:
type: string
description: 'Monto en soles (obligatorio si la moneda no es PEN). Must match the regex /^-?\d{1,12}(\.\d{1,10})?$/.'
example: null
nullable: true
nullable: true
forma_pago:
type: object
description: 'Contado por defecto.'
example: null
properties:
tipo:
type: string
description: 'contado o credito. This field is required when forma_pago is present.'
example: null
enum:
- contado
- credito
cuotas:
type: array
description: 'Cuotas; deben sumar el neto pendiente. value no debe tener más de 60 elementos.'
example: null
items:
type: object
nullable: true
properties:
monto:
type: string
description: 'Monto de la cuota. Must match the regex /^-?\d{1,12}(\.\d{1,10})?$/.'
example: null
fecha:
type: string
description: 'Vencimiento Y-m-d. Must be a valid date in the format Y-m-d.'
example: null
nullable: true
guias:
type: array
description: 'Guías de remisión relacionadas. value no debe tener más de 20 elementos.'
example: null
items:
type: object
nullable: true
properties:
tipo_doc:
type: string
description: '09 o 31.'
example: null
enum:
- 9
- 31
numero:
type: string
description: 'T001-25. Must match the regex /^[A-Z0-9]{4}-\d{1,8}$/i.'
example: null
leyendas:
type: array
description: 'Texto de la leyenda. value debe tener 4 dígitos.'
example: null
items:
type: string
documento_afectado:
type: object
description: 'Comprobante que se modifica.'
example: []
properties:
tipo_doc:
type: string
description: '01 o 03.'
example: '01'
enum:
- 1
- 3
numero:
type: string
description: 'Serie-correlativo. Must match the regex /^[FB][A-Z0-9]{3}-\d{1,8}$/i.'
example: F001-125
required:
- tipo_doc
- numero
motivo:
type: object
description: 'Motivo de la nota.'
example: []
properties:
codigo:
type: string
description: 'Catálogo 09 (NC) o 10 (ND). Must match an existing stored value.'
example: '07'
descripcion:
type: string
description: 'Sustento. value debe tener al menos 3 caracteres. value no debe tener más de 250 caracteres.'
example: 'Devolución de 1 unidad'
required:
- codigo
- descripcion
required:
- tipo_doc
- serie
- cliente
- items
- documento_afectado
- motivo
'/api/v1/documents/{document_uuid}/resend':
post:
summary: 'Reenviar a SUNAT un comprobante firmado o pendiente de reintento.'
operationId: reenviarASUNATUnComprobanteFirmadoOPendienteDeReintento
description: ''
parameters: []
responses: { }
tags:
- Comprobantes
parameters:
-
in: path
name: document_uuid
description: ''
example: 6ff8f7f6-1eb3-3525-be4a-3932c805afed
required: true
schema:
type: integer
'/api/v1/documents/{uuid}':
get:
summary: 'Consultar un comprobante.'
operationId: consultarUnComprobante
description: ''
parameters: []
responses:
200:
description: ''
content:
application/json:
schema:
type: object
example:
success: true
data:
id: 9f0c6b2e-6a1e-4b8f-9d0b-3e1f6f5c2a10
tipo_doc: '01'
serie: F001
correlativo: 1
numero: F001-1
fecha_emision: '2026-10-30T10:00:00-05:00'
moneda: PEN
cliente:
tipo_doc: '6'
num_doc: '20100070970'
razon_social: 'SUPERMERCADOS PERUANOS S.A.'
totales:
op_gravadas: '200.00'
op_exoneradas: null
op_inafectas: null
op_exportacion: null
op_gratuitas: null
igv_gratuitas: '0.00'
base_ivap: null
ivap: '0.00'
base_isc: '0.00'
isc: '0.00'
igv: '36.00'
icbper: '0.00'
total_impuestos: '36.00'
valor_venta: '200.00'
precio_venta: '236.00'
descuento_global: '0.00'
total_anticipos: '0.00'
importe_total: '236.00'
detraccion: null
neto_pendiente: '236.00'
estado: aceptado
estado_descripcion: Aceptado
hash: 0b6sN3m1yQb4Jm2bQ4r2v3xk9Ss=
intentos: 1
proximo_reintento: null
urls:
xml: 'https://api.tudominio.pe/descargas/9f0c.../xml?expires=...&signature=...'
cdr: 'https://api.tudominio.pe/descargas/9f0c.../cdr?expires=...&signature=...'
pdf: 'https://api.tudominio.pe/descargas/9f0c.../pdf?expires=...&signature=...'
ticket: 'https://api.tudominio.pe/descargas/9f0c.../pdf?format=ticket&expires=...&signature=...'
creado: '2026-10-30T10:00:02-05:00'
sunat:
code: '0'
description: 'La Factura numero F001-1, ha sido aceptada'
notes: []
errors: null
properties:
success:
type: boolean
example: true
data:
type: object
properties:
id:
type: string
example: 9f0c6b2e-6a1e-4b8f-9d0b-3e1f6f5c2a10
tipo_doc:
type: string
example: '01'
serie:
type: string
example: F001
correlativo:
type: integer
example: 1
numero:
type: string
example: F001-1
fecha_emision:
type: string
example: '2026-10-30T10:00:00-05:00'
moneda:
type: string
example: PEN
cliente:
type: object
properties:
tipo_doc:
type: string
example: '6'
num_doc:
type: string
example: '20100070970'
razon_social:
type: string
example: 'SUPERMERCADOS PERUANOS S.A.'
totales:
type: object
properties:
op_gravadas:
type: string
example: '200.00'
op_exoneradas:
type: string
example: null
nullable: true
op_inafectas:
type: string
example: null
nullable: true
op_exportacion:
type: string
example: null
nullable: true
op_gratuitas:
type: string
example: null
nullable: true
igv_gratuitas:
type: string
example: '0.00'
base_ivap:
type: string
example: null
nullable: true
ivap:
type: string
example: '0.00'
base_isc:
type: string
example: '0.00'
isc:
type: string
example: '0.00'
igv:
type: string
example: '36.00'
icbper:
type: string
example: '0.00'
total_impuestos:
type: string
example: '36.00'
valor_venta:
type: string
example: '200.00'
precio_venta:
type: string
example: '236.00'
descuento_global:
type: string
example: '0.00'
total_anticipos:
type: string
example: '0.00'
importe_total:
type: string
example: '236.00'
detraccion:
type: string
example: null
nullable: true
neto_pendiente:
type: string
example: '236.00'
estado:
type: string
example: aceptado
estado_descripcion:
type: string
example: Aceptado
hash:
type: string
example: 0b6sN3m1yQb4Jm2bQ4r2v3xk9Ss=
intentos:
type: integer
example: 1
proximo_reintento:
type: string
example: null
nullable: true
urls:
type: object
properties:
xml:
type: string
example: 'https://api.tudominio.pe/descargas/9f0c.../xml?expires=...&signature=...'
cdr:
type: string
example: 'https://api.tudominio.pe/descargas/9f0c.../cdr?expires=...&signature=...'
pdf:
type: string
example: 'https://api.tudominio.pe/descargas/9f0c.../pdf?expires=...&signature=...'
ticket:
type: string
example: 'https://api.tudominio.pe/descargas/9f0c.../pdf?format=ticket&expires=...&signature=...'
creado:
type: string
example: '2026-10-30T10:00:02-05:00'
sunat:
type: object
properties:
code:
type: string
example: '0'
description:
type: string
example: 'La Factura numero F001-1, ha sido aceptada'
notes:
type: array
example: []
errors:
type: string
example: null
nullable: true
tags:
- Comprobantes
parameters:
-
in: path
name: uuid
description: ''
example: 6ff8f7f6-1eb3-3525-be4a-3932c805afed
required: true
schema:
type: integer
'/api/v1/documents/{document_uuid}/{type}':
get:
summary: 'Descargar XML firmado, CDR (zip) o PDF (format=a4|ticket).'
operationId: descargarXMLFirmadoCDRzipOPDFformata4ticket
description: ''
parameters: []
responses: { }
tags:
- Comprobantes
parameters:
-
in: path
name: document_uuid
description: ''
example: 6ff8f7f6-1eb3-3525-be4a-3932c805afed
required: true
schema:
type: integer
-
in: path
name: type
description: ''
example: xml|cdr|pdf
required: true
schema:
type: string
/api/v1/summary/send:
post:
summary: 'Enviar Resumen Diario de boletas marcadas con "envio": "resumen".'
operationId: enviarResumenDiarioDeBoletasMarcadasConenvioresumen
description: 'Body opcional: {"fecha": "2026-10-30"} (fecha de emisión de las boletas).'
parameters: []
responses: { }
tags:
- 'Resúmenes y bajas'
requestBody:
required: false
content:
application/json:
schema:
type: object
properties:
fecha:
type: string
description: 'Must be a valid date in the format Y-m-d. Must be a date before or equal to today.'
example: '2022-11-25'
nullable: true
/api/v1/voided/send:
post:
summary: 'Anular comprobantes aceptados (RA para facturas y notas F; RC con condición 3 para boletas y notas B).'
operationId: anularComprobantesAceptadosRAParaFacturasYNotasFRCConCondicin3ParaBoletasYNotasB
description: ''
parameters: []
responses: { }
tags:
- 'Resúmenes y bajas'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
documentos:
type: array
description: 'Comprobantes aceptados a anular (máx. 100). La plataforma usa RA (serie F) o RC condición 3 (serie B). value debe tener al menos 1 elementos. value no debe tener más de 100 elementos.'
example:
- []
items:
type: object
properties:
id:
type: string
description: 'UUID devuelto al emitir. value debe ser un UUID válido.'
example: 9f0c6b2e-6a1e-4b8f-9d0b-3e1f6f5c2a10
motivo:
type: string
description: 'Motivo de la baja. value debe tener al menos 3 caracteres. value no debe tener más de 100 caracteres.'
example: 'Error en el RUC del cliente'
required:
- id
- motivo
required:
- documentos
'/api/v1/status/{ticket}':
get:
summary: 'Consultar un ticket de RC/RA (getStatus) o de GRE (API REST). Actualiza los documentos afectados.'
operationId: consultarUnTicketDeRCRAgetStatusODeGREAPIRESTActualizaLosDocumentosAfectados
description: ''
parameters: []
responses: { }
tags:
- 'Resúmenes y bajas'
parameters:
-
in: path
name: ticket
description: ''
example: vjrG8He
required: true
schema:
type: string
/api/v1/despatch/send:
post:
summary: "Emitir y enviar una GRE. El envío es asíncrono: responde con el ticket (202) o, si SUNAT ya lo\nprocesó en la consulta inmediata, con el resultado (200 / 422). Header opcional `Idempotency-Key`."
operationId: emitirYEnviarUnaGREElEnvoEsAsncronoRespondeConElTicket202OSiSUNATYaLoProcesEnLaConsultaInmediataConElResultado200422HeaderOpcionalIdempotencyKey
description: ''
parameters: []
responses:
200:
description: ''
content:
application/json:
schema:
type: object
example:
success: true
data:
id: 5d2f0b7e-2b8a-4c1e-9f3a-7c6b8e9d0a11
tipo_doc: '09'
serie: T001
correlativo: 1
numero: T001-1
fecha_emision: '2026-10-31T10:00:00-05:00'
fecha_traslado: '2026-10-31'
motivo: '01'
modalidad: '02'
peso_total: '125.500'
unidad_peso: KGM
destinatario:
tipo_doc: '6'
num_doc: '20100070970'
razon_social: 'SUPERMERCADOS PERUANOS S.A.'
remitente: null
estado: aceptado
estado_descripcion: Aceptado
simulado: false
ticket: 3a30c282-53d9-4275-a1d4-f331afc9f90c
hash: pZfJ7bE0tV1xq8m2kR9sYw3uNcA=
qr_url: 'https://e-factura.sunat.gob.pe/v1/contribuyente/gre/comprobantes/descargaqr?hashqr=…'
intentos: 2
proximo_reintento: null
proxima_consulta: null
urls:
xml: 'https://djmplatform.com/descargas/guias/5d2f0b7e-…/xml?expires=…&signature=…'
cdr: 'https://djmplatform.com/descargas/guias/5d2f0b7e-…/cdr?expires=…&signature=…'
pdf: 'https://djmplatform.com/descargas/guias/5d2f0b7e-…/pdf?expires=…&signature=…'
creado: '2026-10-31T10:00:01-05:00'
sunat:
code: '0'
description: 'La Guia numero T001-1, ha sido aceptada'
notes: []
errors: null
properties:
success:
type: boolean
example: true
data:
type: object
properties:
id:
type: string
example: 5d2f0b7e-2b8a-4c1e-9f3a-7c6b8e9d0a11
tipo_doc:
type: string
example: '09'
serie:
type: string
example: T001
correlativo:
type: integer
example: 1
numero:
type: string
example: T001-1
fecha_emision:
type: string
example: '2026-10-31T10:00:00-05:00'
fecha_traslado:
type: string
example: '2026-10-31'
motivo:
type: string
example: '01'
modalidad:
type: string
example: '02'
peso_total:
type: string
example: '125.500'
unidad_peso:
type: string
example: KGM
destinatario:
type: object
properties:
tipo_doc:
type: string
example: '6'
num_doc:
type: string
example: '20100070970'
razon_social:
type: string
example: 'SUPERMERCADOS PERUANOS S.A.'
remitente:
type: string
example: null
nullable: true
estado:
type: string
example: aceptado
estado_descripcion:
type: string
example: Aceptado
simulado:
type: boolean
example: false
ticket:
type: string
example: 3a30c282-53d9-4275-a1d4-f331afc9f90c
hash:
type: string
example: pZfJ7bE0tV1xq8m2kR9sYw3uNcA=
qr_url:
type: string
example: 'https://e-factura.sunat.gob.pe/v1/contribuyente/gre/comprobantes/descargaqr?hashqr=…'
intentos:
type: integer
example: 2
proximo_reintento:
type: string
example: null
nullable: true
proxima_consulta:
type: string
example: null
nullable: true
urls:
type: object
properties:
xml:
type: string
example: 'https://djmplatform.com/descargas/guias/5d2f0b7e-…/xml?expires=…&signature=…'
cdr:
type: string
example: 'https://djmplatform.com/descargas/guias/5d2f0b7e-…/cdr?expires=…&signature=…'
pdf:
type: string
example: 'https://djmplatform.com/descargas/guias/5d2f0b7e-…/pdf?expires=…&signature=…'
creado:
type: string
example: '2026-10-31T10:00:01-05:00'
sunat:
type: object
properties:
code:
type: string
example: '0'
description:
type: string
example: 'La Guia numero T001-1, ha sido aceptada'
notes:
type: array
example: []
errors:
type: string
example: null
nullable: true
422:
description: ''
content:
application/json:
schema:
type: object
example:
success: false
data: null
sunat: null
errors:
code: VALIDATION_FAILED
message: 'Los datos enviados no son válidos.'
fields:
cliente.num_doc:
- 'El RUC del cliente no es válido.'
properties:
success:
type: boolean
example: false
data:
type: string
example: null
nullable: true
sunat:
type: string
example: null
nullable: true
errors:
type: object
properties:
code:
type: string
example: VALIDATION_FAILED
message:
type: string
example: 'Los datos enviados no son válidos.'
fields:
type: object
properties:
cliente.num_doc:
type: array
example:
- 'El RUC del cliente no es válido.'
items:
type: string
tags:
- 'Guías de remisión'
requestBody:
required: true
content:
application/json:
schema:
type: object
properties:
tipo_doc:
type: string
description: '09 remitente, 31 transportista.'
example: '09'
enum:
- 9
- 31
serie:
type: string
description: 'T### (09) o V### (31). Must contain only letters and numbers. value debe tener 4 caracteres.'
example: T001
correlativo:
type: integer
description: 'Opcional. value debe ser al menos 1. value no debe ser mayor que 99999999.'
example: null
nullable: true
fecha_emision:
type: string
description: 'ISO 8601; por defecto ahora. value no es una fecha válida. Must be a date before or equal to now.'
example: null
nullable: true
observacion:
type: string
description: 'Máx. 250. value no debe tener más de 250 caracteres.'
example: null
nullable: true
destinatario:
type: object
description: Destinatario.
example: []
properties:
tipo_doc:
type: string
description: 'Catálogo 06. This field is required when destinatario is present. Must match an existing stored value.'
example: '6'
num_doc:
type: string
description: 'Número de documento. This field is required when destinatario is present. Must match the regex /^[A-Za-z0-9\-]+$/. value no debe tener más de 15 caracteres.'
example: '20100070970'
razon_social:
type: string
description: 'Razón social o nombres. This field is required when destinatario is present. value debe tener al menos 3 caracteres. value no debe tener más de 250 caracteres.'
example: 'SUPERMERCADOS PERUANOS S.A.'
remitente:
type: object
description: 'Solo guía 31: remitente de los bienes.'
example: null
properties:
tipo_doc:
type: string
description: 'Catálogo 06. This field is required when remitente is present. Must match an existing stored value.'
example: null
num_doc:
type: string
description: 'Número de documento. This field is required when remitente is present. Must match the regex /^[A-Za-z0-9\-]+$/. value no debe tener más de 15 caracteres.'
example: null
razon_social:
type: string
description: 'Razón social o nombres. This field is required when remitente is present. value debe tener al menos 3 caracteres. value no debe tener más de 250 caracteres.'
example: null
nullable: true
pagador_flete:
type: object
description: 'Solo 31 con indicador SUNAT_Envio_IndicadorPagadorFlete_Tercero.'
example: null
properties:
tipo_doc:
type: string
description: 'Catálogo 06. This field is required when pagador_flete is present. Must match an existing stored value.'
example: null
num_doc:
type: string
description: 'Número de documento. This field is required when pagador_flete is present. Must match the regex /^[A-Za-z0-9\-]+$/. value no debe tener más de 15 caracteres.'
example: null
razon_social:
type: string
description: 'Razón social o nombres. This field is required when pagador_flete is present. value debe tener al menos 3 caracteres. value no debe tener más de 250 caracteres.'
example: null
nullable: true
documentos_relacionados:
type: array
description: 'Catálogo 61. Sin emisor_ruc se usa la empresa (09) o el remitente (31). value no debe tener más de 10 elementos.'
example: null
items:
type: object
nullable: true
properties:
tipo:
type: string
description: '01, 03, 09 o 31. Must match an existing stored value.'
example: '01'
numero:
type: string
description: 'Serie-número. Must match the regex /^[A-Za-z0-9\-]+$/. value no debe tener más de 30 caracteres.'
example: F001-125
emisor_ruc:
type: string
description: 'RUC del emisor del documento. value debe tener 11 dígitos.'
example: null
nullable: true
required:
- tipo
- numero
envio:
type: object
description: 'Datos del traslado.'
example: []
properties:
motivo:
type: string
description: 'Solo 09. Catálogo 20 (01 venta, 04 entre establecimientos, 13 otros…). Must match an existing stored value.'
example: '01'
nullable: true
descripcion_motivo:
type: string
description: 'Obligatoria con motivo 13. value no debe tener más de 100 caracteres.'
example: null
nullable: true
modalidad:
type: string
description: 'Solo 09. Catálogo 18: 01 público, 02 privado. Must match an existing stored value.'
example: '02'
nullable: true
fecha_traslado:
type: string
description: 'Inicio del traslado (Y-m-d), no anterior a la emisión. Must be a valid date in the format Y-m-d.'
example: '2026-10-31'
fecha_entrega_transportista:
type: string
description: 'Obligatoria en 09 transporte público. Must be a valid date in the format Y-m-d.'
example: null
nullable: true
peso_total:
type: string
description: 'Peso bruto total. Must match the regex /^\d{1,12}(\.\d{1,10})?$/.'
example: '125.5'
unidad_peso:
type: string
description: 'KGM o TNE.'
example: KGM
enum:
- KGM
- TNE
nullable: true
numero_bultos:
type: integer
description: 'Bultos o pallets. value debe ser al menos 1. value no debe ser mayor que 999999999999.'
example: null
nullable: true
indicadores:
type: array
description: Indicador.
example: null
items:
type: string
enum:
- null
registro_mtc:
type: string
description: 'Solo 31: registro MTC del emisor. Must contain only letters and numbers. value no debe tener más de 20 caracteres.'
example: null
nullable: true
partida:
type: object
description: 'Punto de partida.'
example: []
properties:
ubigeo:
type: string
description: 'Ubigeo INEI (6 dígitos). value debe tener 6 dígitos.'
example: '120601'
direccion:
type: string
description: 'Dirección. value debe tener al menos 3 caracteres. value no debe tener más de 250 caracteres.'
example: 'Av. Marginal Km 4, Satipo'
cod_local:
type: string
description: 'Código de establecimiento SUNAT (4 dígitos). value debe tener 4 dígitos.'
example: null
nullable: true
ruc:
type: string
description: 'RUC del establecimiento (con cod_local). This field is required when envio.partida.cod_local is present. value debe tener 11 dígitos.'
example: null
nullable: true
required:
- ubigeo
- direccion
llegada:
type: object
description: 'Punto de llegada.'
example: []
properties:
ubigeo:
type: string
description: 'Ubigeo INEI (6 dígitos). value debe tener 6 dígitos.'
example: '150131'
direccion:
type: string
description: 'Dirección. value debe tener al menos 3 caracteres. value no debe tener más de 250 caracteres.'
example: 'Av. Morro Solar 1086, Santiago de Surco'
cod_local:
type: string
description: 'Código de establecimiento SUNAT (4 dígitos). value debe tener 4 dígitos.'
example: null
nullable: true
ruc:
type: string
description: 'RUC del establecimiento (con cod_local). This field is required when envio.llegada.cod_local is present. value debe tener 11 dígitos.'
example: null
nullable: true
required:
- ubigeo
- direccion
transportista:
type: object
description: 'Solo 09 transporte público.'
example: null
properties:
tipo_doc:
type: string
description: '6. This field is required when envio.transportista is present.'
example: null
enum:
- 6
num_doc:
type: string
description: 'RUC. This field is required when envio.transportista is present. value debe tener 11 dígitos.'
example: null
razon_social:
type: string
description: 'Razón social. This field is required when envio.transportista is present. value debe tener al menos 3 caracteres. value no debe tener más de 250 caracteres.'
example: null
registro_mtc:
type: string
description: 'Registro MTC. Must contain only letters and numbers. value no debe tener más de 20 caracteres.'
example: null
nullable: true
nullable: true
vehiculos:
type: array
description: 'Principal + hasta 2 secundarios. value no debe tener más de 3 elementos.'
example: null
items:
type: object
nullable: true
properties:
placa:
type: string
description: 'Hasta 8 alfanuméricos (se quitan guiones). Must match the regex /^[A-Za-z0-9][A-Za-z0-9\- ]{0,9}$/.'
example: ABC123
tuc:
type: string
description: 'Tarjeta Única de Circulación / certificado de habilitación. Must contain only letters and numbers. value no debe tener más de 15 caracteres.'
example: null
nullable: true
autorizacion:
type: object
description: 'Autorización especial.'
example: null
properties:
numero:
type: string
description: 'Número. This field is required when envio.vehiculos.*.autorizacion is present. Must match the regex /^[A-Za-z0-9\-]+$/. value no debe tener más de 50 caracteres.'
example: null
entidad:
type: string
description: 'Código de entidad emisora (2). This field is required when envio.vehiculos.*.autorizacion is present. Must contain only letters and numbers. value debe tener 2 caracteres.'
example: null
nullable: true
required:
- placa
conductores:
type: array
description: 'Un principal + hasta 2 secundarios. value no debe tener más de 3 elementos.'
example: null
items:
type: object
nullable: true
properties:
tipo_doc:
type: string
description: 'Catálogo 06. Must match an existing stored value.'
example: '1'
num_doc:
type: string
description: 'Documento. Must match the regex /^[A-Za-z0-9\-]+$/. value no debe tener más de 15 caracteres.'
example: '45678912'
nombres:
type: string
description: 'Nombres. value no debe tener más de 250 caracteres.'
example: JUAN
apellidos:
type: string
description: 'Apellidos. value no debe tener más de 250 caracteres.'
example: 'PEREZ QUISPE'
licencia:
type: string
description: 'Licencia de conducir. Must contain only letters and numbers. value no debe tener más de 10 caracteres.'
example: Q45678912
principal:
type: boolean
description: 'Por defecto el primero es el principal.'
example: null
nullable: true
required:
- tipo_doc
- num_doc
- nombres
- apellidos
- licencia
required:
- fecha_traslado
- peso_total
- partida
- llegada
items:
type: array
description: 'Bienes trasladados. value debe tener al menos 1 elementos. value no debe tener más de 500 elementos.'
example:
- []
items:
type: object
properties:
codigo:
type: string
description: 'Código interno. Must match the regex /^[A-Za-z0-9\-_.\/]+$/. value no debe tener más de 30 caracteres.'
example: CAF-01
nullable: true
descripcion:
type: string
description: 'Descripción. value debe tener al menos 1 caracteres. value no debe tener más de 500 caracteres.'
example: 'Café pergamino en sacos'
unidad:
type: string
description: 'Catálogo 03. Must match an existing stored value.'
example: KGM
nullable: true
cantidad:
type: string
description: 'Decimal como string. Must match the regex /^\d{1,12}(\.\d{1,10})?$/.'
example: '120.5'
codigo_sunat:
type: string
description: 'Código de producto SUNAT. Must contain only letters and numbers. value no debe tener más de 20 caracteres.'
example: null
nullable: true
required:
- descripcion
- cantidad
required:
- tipo_doc
- serie
- destinatario
- envio
- items
'/api/v1/despatches/{despatch_uuid}/resend':
post:
summary: 'Reenviar una guía firmada o pendiente (p. ej. tras corregir credenciales), o forzar la consulta del ticket.'
operationId: reenviarUnaGuaFirmadaOPendientepEjTrasCorregirCredencialesOForzarLaConsultaDelTicket
description: ''
parameters: []
responses: { }
tags:
- 'Guías de remisión'
parameters:
-
in: path
name: despatch_uuid
description: ''
example: 6ff8f7f6-1eb3-3525-be4a-3932c805afed
required: true
schema:
type: integer
'/api/v1/despatches/{uuid}':
get:
summary: 'Consultar una guía.'
operationId: consultarUnaGua
description: ''
parameters: []
responses:
200:
description: ''
content:
application/json:
schema:
type: object
example:
success: true
data:
id: 5d2f0b7e-2b8a-4c1e-9f3a-7c6b8e9d0a11
tipo_doc: '09'
serie: T001
correlativo: 1
numero: T001-1
fecha_emision: '2026-10-31T10:00:00-05:00'
fecha_traslado: '2026-10-31'
motivo: '01'
modalidad: '02'
peso_total: '125.500'
unidad_peso: KGM
destinatario:
tipo_doc: '6'
num_doc: '20100070970'
razon_social: 'SUPERMERCADOS PERUANOS S.A.'
remitente: null
estado: aceptado
estado_descripcion: Aceptado
simulado: false
ticket: 3a30c282-53d9-4275-a1d4-f331afc9f90c
hash: pZfJ7bE0tV1xq8m2kR9sYw3uNcA=
qr_url: 'https://e-factura.sunat.gob.pe/v1/contribuyente/gre/comprobantes/descargaqr?hashqr=…'
intentos: 2
proximo_reintento: null
proxima_consulta: null
urls:
xml: 'https://djmplatform.com/descargas/guias/5d2f0b7e-…/xml?expires=…&signature=…'
cdr: 'https://djmplatform.com/descargas/guias/5d2f0b7e-…/cdr?expires=…&signature=…'
pdf: 'https://djmplatform.com/descargas/guias/5d2f0b7e-…/pdf?expires=…&signature=…'
creado: '2026-10-31T10:00:01-05:00'
sunat:
code: '0'
description: 'La Guia numero T001-1, ha sido aceptada'
notes: []
errors: null
properties:
success:
type: boolean
example: true
data:
type: object
properties:
id:
type: string
example: 5d2f0b7e-2b8a-4c1e-9f3a-7c6b8e9d0a11
tipo_doc:
type: string
example: '09'
serie:
type: string
example: T001
correlativo:
type: integer
example: 1
numero:
type: string
example: T001-1
fecha_emision:
type: string
example: '2026-10-31T10:00:00-05:00'
fecha_traslado:
type: string
example: '2026-10-31'
motivo:
type: string
example: '01'
modalidad:
type: string
example: '02'
peso_total:
type: string
example: '125.500'
unidad_peso:
type: string
example: KGM
destinatario:
type: object
properties:
tipo_doc:
type: string
example: '6'
num_doc:
type: string
example: '20100070970'
razon_social:
type: string
example: 'SUPERMERCADOS PERUANOS S.A.'
remitente:
type: string
example: null
nullable: true
estado:
type: string
example: aceptado
estado_descripcion:
type: string
example: Aceptado
simulado:
type: boolean
example: false
ticket:
type: string
example: 3a30c282-53d9-4275-a1d4-f331afc9f90c
hash:
type: string
example: pZfJ7bE0tV1xq8m2kR9sYw3uNcA=
qr_url:
type: string
example: 'https://e-factura.sunat.gob.pe/v1/contribuyente/gre/comprobantes/descargaqr?hashqr=…'
intentos:
type: integer
example: 2
proximo_reintento:
type: string
example: null
nullable: true
proxima_consulta:
type: string
example: null
nullable: true
urls:
type: object
properties:
xml:
type: string
example: 'https://djmplatform.com/descargas/guias/5d2f0b7e-…/xml?expires=…&signature=…'
cdr:
type: string
example: 'https://djmplatform.com/descargas/guias/5d2f0b7e-…/cdr?expires=…&signature=…'
pdf:
type: string
example: 'https://djmplatform.com/descargas/guias/5d2f0b7e-…/pdf?expires=…&signature=…'
creado:
type: string
example: '2026-10-31T10:00:01-05:00'
sunat:
type: object
properties:
code:
type: string
example: '0'
description:
type: string
example: 'La Guia numero T001-1, ha sido aceptada'
notes:
type: array
example: []
errors:
type: string
example: null
nullable: true
tags:
- 'Guías de remisión'
parameters:
-
in: path
name: uuid
description: ''
example: 6ff8f7f6-1eb3-3525-be4a-3932c805afed
required: true
schema:
type: integer
'/api/v1/despatches/{despatch_uuid}/{type}':
get:
summary: 'Descargar XML firmado, CDR (zip) o PDF.'
operationId: descargarXMLFirmadoCDRzipOPDF
description: ''
parameters: []
responses: { }
tags:
- 'Guías de remisión'
parameters:
-
in: path
name: despatch_uuid
description: ''
example: 6ff8f7f6-1eb3-3525-be4a-3932c805afed
required: true
schema:
type: integer
-
in: path
name: type
description: ''
example: xml|cdr|pdf
required: true
schema:
type: string
'/api/v1/lookup/ruc/{ruc}':
get:
summary: 'Consultar RUC: razón social, estado, condición y domicilio fiscal. Caché 24 h.'
operationId: consultarRUCRaznSocialEstadoCondicinYDomicilioFiscalCach24H
description: ''
parameters: []
responses:
200:
description: ''
content:
application/json:
schema:
type: object
example:
success: true
data:
ruc: '20131312955'
razon_social: 'SUPERINTENDENCIA NACIONAL DE ADUANAS Y DE ADMINISTRACION TRIBUTARIA - SUNAT'
nombre_comercial: null
estado: ACTIVO
condicion: HABIDO
direccion: 'AV. GARCILASO DE LA VEGA NRO 1472'
ubigeo: '150101'
departamento: LIMA
provincia: LIMA
distrito: LIMA
activo_habido: true
consulta:
proveedor: decolecta
cache: true
desactualizado: false
consultado_en: '2026-10-31T09:20:00-05:00'
sunat: null
errors: null
properties:
success:
type: boolean
example: true
data:
type: object
properties:
ruc:
type: string
example: '20131312955'
razon_social:
type: string
example: 'SUPERINTENDENCIA NACIONAL DE ADUANAS Y DE ADMINISTRACION TRIBUTARIA - SUNAT'
nombre_comercial:
type: string
example: null
nullable: true
estado:
type: string
example: ACTIVO
condicion:
type: string
example: HABIDO
direccion:
type: string
example: 'AV. GARCILASO DE LA VEGA NRO 1472'
ubigeo:
type: string
example: '150101'
departamento:
type: string
example: LIMA
provincia:
type: string
example: LIMA
distrito:
type: string
example: LIMA
activo_habido:
type: boolean
example: true
consulta:
type: object
properties:
proveedor:
type: string
example: decolecta
cache:
type: boolean
example: true
desactualizado:
type: boolean
example: false
consultado_en:
type: string
example: '2026-10-31T09:20:00-05:00'
sunat:
type: string
example: null
nullable: true
errors:
type: string
example: null
nullable: true
tags:
- Consultas
parameters:
-
in: path
name: ruc
description: 'The ruc.'
example: /^^^///
required: true
schema:
type: string
'/api/v1/lookup/dni/{dni}':
get:
summary: 'Consultar DNI: nombres y apellidos. Caché 30 días.'
operationId: consultarDNINombresYApellidosCach30Das
description: ''
parameters: []
responses: { }
tags:
- Consultas
parameters:
-
in: path
name: dni
description: 'The dni.'
example: /^^^///
required: true
schema:
type: string
'/api/v1/catalogs/{id}':
get:
summary: 'Ítems vigentes de un catálogo SUNAT (ej. 06, 07, 09).'
operationId: temsVigentesDeUnCatlogoSUNATej060709
description: ''
parameters: []
responses: { }
tags:
- Catálogos
parameters:
-
in: path
name: id
description: 'The ID of the catalog.'
example: architecto
required: true
schema:
type: string