# Nueva serie

Para mejorar el proceso desde su software podrás crear series, previamente debes tener el siguiente concepto para evitar error:

| Tipo de documento                      | Estructura de serie máximo 4 dígitos |
| -------------------------------------- | ------------------------------------ |
| FACTURA ELECTRÓNICA                    | F. . .                               |
| BOLETA DE VENTA ELECTRÓNICA            | B. . .                               |
| NOTA DE CRÉDITO                        | FC . . ó BC . .                      |
| NOTA DE DÉBITO                         | FD . .  ó BD . .                     |
| GUÍA DE REMISIÓN ELECTRÓNICA REMITENTE | T . . .                              |

**Vía API**

Método <mark style="background-color:orange;">**POST**</mark>

**Tipo:** Bearer token

**Token:** token de la empresa

**URL:** <https://api.factpro.la/api/v3/series>

**Body**

```json
{
  "tipo_documento": 7, //catálogo https://docs.factpro.la/catalogos-sunat/catalogo-08-tipos-de-documentos
  "serie": "FFF1",
  "numero_a_comenzar": 1,
  "sucursal": "1" // ID de sucursal
}
```

**Response**

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

```json
{
    "tipo_documento": 7,
    "serie": "FFF2",
    "numero_a_comenzar": 1,
    "sucursal": 13,
    "id": 12
}
```

{% endtab %}
{% endtabs %}


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://docs.factpro.la/api-facturacion-v3/configuracion-de-empresa/nueva-serie.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
