> For the complete documentation index, see [llms.txt](https://docs.factpro.la/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.factpro.la/api-facturacion-v3/estructura-para-generar-nota-de-credito/nota-de-credito.md).

# Nota de crédito

En este ejemplo se aplicará una nota de crédito a una venta.

<mark style="background-color:orange;">**POST**</mark>`https://api.factpro.la/api/v3/documentos`

**Headers**

<table><thead><tr><th width="332">Name</th><th>Value</th></tr></thead><tbody><tr><td>Content-Type</td><td><code>application/json</code></td></tr><tr><td>Authorization</td><td><code>Bearer &#x3C;token></code></td></tr></tbody></table>

**Body**

```json
{
  "serie": "FC01",
  "tipo_operacion":"1",
  "numero": "#",
  "tipo_nota": "1",// utilizar esta estructura para tipo del 1 al 12
  "motivo_nota": "Error al emitir comprobante",
  "documento_afectado": {
    "tipo_documento": "7",
    "serie": "F100",
    "numero": 10
  },
  "cliente": {
    "cliente_tipo_documento": "1",
    "cliente_numero_documento": "20605577246",
    "cliente_denominacion": "CORPORACION VEL PERU S.A.C.",
    "codigo_pais": "",
    "cliente_direccion": "Av.",
    "cliente_email": "",
    "cliente_telefono": ""
  },
  "items": [
    {
      "unidad": "NIU",
      "codigo": "",
      "descripcion": "test note credit",
      "cantidad": 1,
      "precio": 100,
      "tipo_tax": "1"
    }
  ],
  "observaciones": "",
  "formato_pdf": "a4"
}
```

**Response**

{% tabs %}
{% tab title="true" %}

```json
{
    "exito": true,
    "mensaje": null,
    "data": {
        "numero": "F100-82",
        "archivo": "20466590247-01-F100-82",
        "letras": "Setenta y nueve  con 69/100 ",
        "hash": "uJvcwN2kh/mOaR5pU9mhu1hc7zs=",
        "qr": "lJIMsDNoAAAAASUVORK5CYII=",
        "tipo_estado": "01",
        "descripcion_estado": "REGISTRADO"
    },
    "archivos": {
        "pdf": "https://api.factpro.la/invoice/20466590247-01-F100-82.pdf",
        "xml": "https://api.factpro.la/invoice/20466590247-01-F100-82.xml",
        "cdr": ""
    },
    "eventos": [
        {
            "date": "2025-07-16 12:16:46.564547",
            "description": "El documento ha sido registrado y enviado"
        }
    ]
}
```

{% endtab %}

{% tab title="false" %}

```json
{
    "exito": false,
    "mensaje": null,
}
```

{% endtab %}
{% endtabs %}
