tefacturo

Issue debit note

Service to issue electronic debit notes. Debit notes increase the value of a previously issued document (e.g., interests, penalties, additional charges).

Important usage rules

  • tipoIntegracion: OFFLINE → your own ERP handles the correlative (series/number). ERP → tefacturo handles the correlative.
  • numero (in datosDocumento): it cannot be duplicated. If the number was already used, map/track the correlative so it is not resent.
  • fechaEmision: an electronic document (CPE) can be declared with at most 3 days of backdating.
  • Replace the fixed example RUC with the issuer RUC used in the URL and token; all three must match.
  • Response 200 values such as series, number, hash, signature, and identifier are illustrative; the API generates their actual values for each request.
A debit note must reference a document already issued by the same issuer and receiver. Keep the referenced identity and related amounts consistent with the original document.
PUThttps://jarvis.tefacturo.pe/notadebito-api/invoice2u/integracion/nota-debito/{ruc}

Service to issue electronic debit notes. Replace {ruc} with the issuer RUC. The debit note must reference a previously issued document.

Headers

HeaderValueDescription
AuthorizationBearer {token}Authentication token obtained from the login endpoint.
Content-Typeapplication/jsonContent type for the request body.

Request Body

Al igual que la nota de crédito, la nota de débito incluye un objeto comprobanteAjustado que referencia al documento original. El detalle indica el monto adicional a cobrar.

El ejemplo completo está en el panel derecho para copiar rápidamente.

Adjusted document (Original document)

El objeto comprobanteAjustado identifica el comprobante al que se aplica el cargo adicional:

CampoTipoRequeridoDescription
seriestringOriginal document series
numeronumberNúmero del comprobante original
tipoComprobantestringTipo: "01" para Factura, "03" para Boleta
tipoDocumentostringFACTURA o BOLETA, coherente con tipoComprobante
fechaEmisionstringFecha de emisión del documento original (YYYY-MM-DD)

Debit note reasons

El campo motivo define la razón del cargo adicional:

ValueDescription
AUMENTO_EN_EL_VALORSe incrementa el valor del comprobante original por servicios o costos adicionales.
INTERESES_POR_MORACobro de intereses por pago tardío o morosidad.
PENALIDADESCobro de penalidades contractuales.

Successful Response (200)

La respuesta confirma que la nota de débito fue emitida y vinculada al comprobante original, retornando firma, hash, identificador, serie, número, total, observación y tipo_documento.

Check the right panel to view and copy the sample response.

Error Handling

CodeStatusDescription
400Bad RequestErrores de validación. Verifique que el comprobante ajustado exista y sea correcto.
401UnauthorizedInvalid or expired authentication token.
403ForbiddenYou do not have permission to issue debit notes with the provided RUC.
404Not FoundEl RUC o comprobante original no fue encontrado.
500Internal Server ErrorInternal server error. Try again or contact support.

Related Endpoints