> 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/configuracion-de-empresa/nueva-serie.md).

# 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 %}
