From ee98a933969cf4c1633ed14f94a4875efca3c49d Mon Sep 17 00:00:00 2001 From: javorosas Date: Wed, 29 Jul 2026 17:44:20 +0200 Subject: [PATCH 1/4] Document global invoice automation --- website/docs/getting-started/errors.mdx | 2 +- website/docs/guides/receipts.mdx | 42 +++++++++ website/docs/guides/self-invoice.mdx | 2 +- .../current/getting-started/errors.mdx | 2 +- .../current/guides/receipts.mdx | 41 +++++++++ .../current/guides/self-invoice.mdx | 2 +- website/openapi_v2.en.yaml | 86 +++++++++++++++---- website/openapi_v2.yaml | 86 +++++++++++++++---- 8 files changed, 225 insertions(+), 38 deletions(-) diff --git a/website/docs/getting-started/errors.mdx b/website/docs/getting-started/errors.mdx index 224a0d557..be3399aae 100644 --- a/website/docs/getting-started/errors.mdx +++ b/website/docs/getting-started/errors.mdx @@ -260,7 +260,7 @@ Estos códigos describen errores de información fiscal validados por Facturapi. | Código | Descripción | | --- | --- | -| `global_invoice_too_many_items` | La factura global excede el máximo de 5,000 conceptos soportados. Genera varias facturas globales usando rangos de fechas más pequeños o subconjuntos de recibos. | +| `global_invoice_too_many_receipts` | El periodo contiene más de 5,000 recibos abiertos. Envía `limit_to_max_receipts` para facturar hasta 5,000 por llamada o usa rangos de fechas o subconjuntos de recibos. | | `invalid_global_invoice_period` | El rango de fechas debe estar dentro del mismo periodo de facturación: `{period}`. | ### RetentionErrorCode diff --git a/website/docs/guides/receipts.mdx b/website/docs/guides/receipts.mdx index 8d87963e7..c81da6210 100644 --- a/website/docs/guides/receipts.mdx +++ b/website/docs/guides/receipts.mdx @@ -189,6 +189,48 @@ factura global a `PUBLICO EN GENERAL`. Los recibos incluidos quedan asociados a ese cliente y cambian su `status` a `"invoiced_globally"`. +### Facturas globales con más de 5,000 recibos + +El límite de una factura global se calcula sobre los recibos abiertos incluidos, no +sobre los conceptos resultantes después de agruparlos. + +Si un periodo contiene más de 5,000 recibos, envía +`limit_to_max_receipts: true`. La llamada generará una factura con hasta 5,000 +recibos y dejará el resto con `status = "open"`. Repite la misma solicitud, +conservando el rango y la periodicidad originales, hasta que la API responda `null`. +Así puedes dividir un mismo periodo entre varias facturas globales sin cambiar su +información de periodicidad. + +Si omites esta opción, la API devuelve +`global_invoice_too_many_receipts` y no genera una factura parcial. + +### Automatizar las facturas globales + +Las organizaciones que tienen contratado el feature de factura global pueden activar +la automatización mediante +[Editar configuración de recibos](/api/#tag/organization/operation/editOrganizationReceiptsSettings): + +```json +{ + "periodicity": "month", + "activate_global_invoice": true +} +``` + +La automatización procesa cada periodo después de que termina, según la zona horaria +de la organización. Puedes cambiar `periodicity` para reprogramar los periodos futuros +o enviar `activate_global_invoice: false` para pausarla. Los periodos que transcurran +mientras esté desactivada no se facturan automáticamente al reactivarla. + +La API pública permite configurar la automatización, pero el historial, monitoreo y +las acciones sobre sus ejecuciones están disponibles únicamente en el Dashboard. + +### Agrupar conceptos al facturar recibos seleccionados + +La opción de configuración `group_similar_self_invoice_items` agrupa conceptos +equivalentes cuando se facturan varios recibos seleccionados, tanto desde la API como +desde el portal de autofactura. No se utiliza para las facturas globales. + ### Facturar un recibo Por medio del método [Facturar Recibo](/api/#tag/receipt/operation/invoiceReceipt) puedes convertir diff --git a/website/docs/guides/self-invoice.mdx b/website/docs/guides/self-invoice.mdx index 43f204801..618561cdb 100644 --- a/website/docs/guides/self-invoice.mdx +++ b/website/docs/guides/self-invoice.mdx @@ -60,7 +60,7 @@ abierto puede facturarse en cualquier momento por medio de la API, sin embargo, el portal de autofactura no permitirá facturar recibos después de su fecha de expiración (campo `expires_at`), la cual se calcula al momento de crear el recibo a partir de las [configuraciones de recibos](/docs/guides/receipts/) "Periodo de facturación" -(`invoicing_period`) y "Días de vigencia para facturar" (`duration_days`). +(`periodicity`) y "Días de vigencia para facturar" (`duration_days`). Por ejemplo, si tu periodo de facturación es mensual y tus días de vigencia para facturar son 7, el recibo expirará ya sea a los 7 días de su fecha de diff --git a/website/i18n/en/docusaurus-plugin-content-docs/current/getting-started/errors.mdx b/website/i18n/en/docusaurus-plugin-content-docs/current/getting-started/errors.mdx index dc69c013b..c723f2647 100644 --- a/website/i18n/en/docusaurus-plugin-content-docs/current/getting-started/errors.mdx +++ b/website/i18n/en/docusaurus-plugin-content-docs/current/getting-started/errors.mdx @@ -260,7 +260,7 @@ These codes describe tax-information errors validated by Facturapi. When a custo | Code | Description | | --- | --- | -| `global_invoice_too_many_items` | The global invoice exceeds the maximum of 5,000 supported items. Create multiple global invoices using smaller date ranges or receipt subsets. | +| `global_invoice_too_many_receipts` | The period contains more than 5,000 open receipts. Send `limit_to_max_receipts` to invoice up to 5,000 per request, or use smaller date ranges or receipt subsets. | | `invalid_global_invoice_period` | The date range must be within the same billing period: `{period}`. | ### RetentionErrorCode diff --git a/website/i18n/en/docusaurus-plugin-content-docs/current/guides/receipts.mdx b/website/i18n/en/docusaurus-plugin-content-docs/current/guides/receipts.mdx index 66df191c6..81b559a99 100644 --- a/website/i18n/en/docusaurus-plugin-content-docs/current/guides/receipts.mdx +++ b/website/i18n/en/docusaurus-plugin-content-docs/current/guides/receipts.mdx @@ -190,6 +190,47 @@ to `PUBLICO EN GENERAL`. customer. Included receipts are associated with that customer and their `status` changes to `"invoiced_globally"`. +### Global invoices with more than 5,000 receipts + +The global invoice limit is based on the number of included open receipts, not on +the resulting items after they are grouped. + +If a period contains more than 5,000 receipts, send +`limit_to_max_receipts: true`. The request creates an invoice with up to 5,000 +receipts and leaves the rest with `status = "open"`. Repeat the same request, +keeping the original date range and periodicity, until the API responds with `null`. +This lets you split one period across multiple global invoices without changing its +periodicity information. + +If you omit this option, the API returns +`global_invoice_too_many_receipts` and does not create a partial invoice. + +### Automate global invoices + +Organizations with the global invoice feature can enable automation through +[Edit receipt settings](/api/#tag/organization/operation/editOrganizationReceiptsSettings): + +```json +{ + "periodicity": "month", + "activate_global_invoice": true +} +``` + +The automation processes each period after it ends, using the organization's time +zone. You can change `periodicity` to reschedule future periods or send +`activate_global_invoice: false` to pause it. Periods elapsed while automation is +disabled are not automatically invoiced when it is enabled again. + +The public API can configure automation, but its execution history, monitoring, and +run actions are available only in the Dashboard. + +### Group items when invoicing selected receipts + +The `group_similar_self_invoice_items` setting groups equivalent items when +invoicing multiple selected receipts, both through the API and the self-invoice +portal. It is not used for global invoices. + ### Convert an e-receipt into an invoice With [Convert e-receipt to invoice](/api/#tag/receipt/operation/invoiceReceipt) diff --git a/website/i18n/en/docusaurus-plugin-content-docs/current/guides/self-invoice.mdx b/website/i18n/en/docusaurus-plugin-content-docs/current/guides/self-invoice.mdx index eec49a3b6..91b40bcd0 100644 --- a/website/i18n/en/docusaurus-plugin-content-docs/current/guides/self-invoice.mdx +++ b/website/i18n/en/docusaurus-plugin-content-docs/current/guides/self-invoice.mdx @@ -59,7 +59,7 @@ The receipt can only be invoiced while its `status` attribute has the value can be invoiced at any time through the API. However, the self-invoicing portal will not allow invoices to be generated for receipts after their expiration date (`expires_at` field), which is calculated at the time of creating the -receipt based on the `invoicing_period` and `duration_days` fields from +receipt based on the `periodicity` and `duration_days` fields from [receipt settings](/docs/guides/receipts/). For example, if your invoicing period is monthly and your duration days for diff --git a/website/openapi_v2.en.yaml b/website/openapi_v2.en.yaml index 4948857b8..700c86908 100644 --- a/website/openapi_v2.en.yaml +++ b/website/openapi_v2.en.yaml @@ -5729,6 +5729,10 @@ paths: Global invoices are issued to the generic `PUBLICO EN GENERAL` customer. Included receipts are associated with that customer and their `status` changes to `"invoiced_globally"`. + + A global invoice can include up to 5,000 open receipts. If the period contains + more, send `limit_to_max_receipts: true` and repeat the request with the same + period until the response is `null`. x-codeSamples: - lang: Bash label: cURL @@ -5743,7 +5747,8 @@ paths: "months": "01", "year": 2021, "folio_number": 1234, - "series": "G" + "series": "G", + "limit_to_max_receipts": true }' - lang: JavaScript label: Node.js @@ -5756,9 +5761,10 @@ paths: to: '2020-12-31T04:59:59.999Z', periodicity: 'month', months: '01', - year: 2021 + year: 2021, folio_number: 1234, - series: 'G' + series: 'G', + limit_to_max_receipts: true }); - lang: csharp label: C# @@ -5809,11 +5815,13 @@ paths: - "SecretTestKey": [] responses: "200": - description: New `Invoice` object creaded + description: Created `Invoice` object, or `null` when the period has no open receipts content: application/json: schema: - $ref: "#/components/schemas/Invoice" + oneOf: + - $ref: "#/components/schemas/Invoice" + - type: "null" "400": $ref: "#/components/responses/BadRequest" "401": @@ -7428,7 +7436,9 @@ paths: - organization summary: Edit receipts settings description: | - Update the organization's receipts settings. + Updates the supplied fields in the organization's receipt settings. + The organization must have the global invoice feature to enable automatic + global invoice generation. x-codeSamples: - lang: Bash label: cURL @@ -7438,9 +7448,10 @@ paths: -H "Authorization: Bearer sk_user_API_KEY" \ -H "Content-Type: application/json" \ -d '{ - "invoicing_period": "month", + "periodicity": "month", "duration_days": 14, - "next_folio_number": 100 + "next_folio_number": 100, + "activate_global_invoice": true }' - lang: JavaScript label: Node.js @@ -7451,9 +7462,10 @@ paths: const organization = await facturapi.organizations.updateReceiptSettings( '5a2a307be93a2f00129ea035', { - invoicing_period: "month", + periodicity: "month", duration_days: 14, - next_folio_number: 100 + next_folio_number: 100, + activate_global_invoice: true } ); - lang: csharp @@ -7465,9 +7477,10 @@ paths: "5a2a307be93a2f00129ea035", new Dictionary { - ["invoicing_period"] = "month", + ["periodicity"] = "month", ["duration_days"] = 14, - ["next_folio_number"] = 100 + ["next_folio_number"] = 100, + ["activate_global_invoice"] = true } ); - lang: Java @@ -7482,7 +7495,8 @@ paths: var organization = facturapi.organizations().updateReceiptSettings( "org_123", Map.of( - "color", "#4786FF" + "periodicity", "month", + "activate_global_invoice", true ) ); - lang: PHP @@ -7492,9 +7506,10 @@ paths: $organization = $facturapi->Organizations->updateReceiptSettings( "5a2a307be93a2f00129ea035", [ - "invoicing_period" => "month", + "periodicity" => "month", "duration_days" => 14, - "next_folio_number" => 100 + "next_folio_number" => 100, + "activate_global_invoice" => true ] ); parameters: @@ -16157,8 +16172,8 @@ components: - two_months description: | Periodicity that corresponds to the range of dates used. - If omitted, the organization's receipt configuration will be used. - If you omit sending the `from` and `to` fields, the default dates will depend on the value of `periodicity`. + If you omit the `from` and `to` fields, the default dates will depend + on the value of `periodicity`. months: type: string default: Month contained in the range of dates used. @@ -16204,6 +16219,17 @@ components: maxLength: 24 description: ID of a receipt previously registered in Facturapi. example: 614496b471d422de4b6cfcc4 + limit_to_max_receipts: + type: boolean + default: false + description: | + Allows periods with more than 5,000 open receipts to be processed. When + `true`, the invoice includes at most 5,000 receipts and the remaining + receipts keep the `"open"` status. Repeat the request with the same period + until the response is `null`, which means no receipts remain to be invoiced. + + When `false`, a period with more than 5,000 open receipts returns the + `global_invoice_too_many_receipts` error. ToInvoiceInput: type: object required: @@ -16883,6 +16909,19 @@ components: description: | Folio number that will be assigned to the next receipt in the Test environment. It will be automatically incremented for each new receipt. + activate_global_invoice: + type: boolean + default: false + description: | + Indicates whether the organization automatically creates a global + invoice after each configured period closes. Requires the global + invoice feature. + group_similar_self_invoice_items: + type: boolean + default: false + description: | + Groups equivalent items when invoicing multiple selected receipts, + including self-invoices. It does not affect global invoice generation. self_invoice: type: object description: | @@ -17150,6 +17189,19 @@ components: type: integer description: | Folio number that will be assigned to the next receipt created in this organization in the Test environment. + activate_global_invoice: + type: boolean + default: false + description: | + Enables or disables automatic global invoice generation after each + configured period closes. The organization must have the global invoice + feature to enable it. + group_similar_self_invoice_items: + type: boolean + default: false + description: | + When `true`, groups equivalent items when invoicing multiple selected + receipts, including self-invoices. It does not apply to global invoices. OrganizationSelfInvoiceInput: type: object properties: diff --git a/website/openapi_v2.yaml b/website/openapi_v2.yaml index ed060b82a..68bc3726f 100644 --- a/website/openapi_v2.yaml +++ b/website/openapi_v2.yaml @@ -5946,6 +5946,10 @@ paths: La factura global se emite al cliente genérico `PUBLICO EN GENERAL`. Los recibos incluidos quedan asociados a ese cliente y su `status` cambia a `"invoiced_globally"`. + + Una factura global puede incluir hasta 5,000 recibos abiertos. Si el periodo + contiene más, puedes enviar `limit_to_max_receipts: true` y repetir la solicitud + con el mismo periodo hasta recibir `null`. x-codeSamples: - lang: Bash label: cURL @@ -5960,7 +5964,8 @@ paths: "months": "01", "year": 2021, "folio_number": 1234, - "series": "G" + "series": "G", + "limit_to_max_receipts": true }' - lang: JavaScript label: Node.js @@ -5973,9 +5978,10 @@ paths: to: '2020-12-31T04:59:59.999Z', periodicity: 'month', months: '01', - year: 2021 + year: 2021, folio_number: 1234, - series: 'G' + series: 'G', + limit_to_max_receipts: true }); - lang: csharp label: C# @@ -6026,11 +6032,13 @@ paths: - "SecretTestKey": [] responses: "200": - description: Nuevo objeto `Invoice` creado + description: Nuevo objeto `Invoice` creado, o `null` si no hay recibos abiertos en el periodo content: application/json: schema: - $ref: "#/components/schemas/Invoice" + oneOf: + - $ref: "#/components/schemas/Invoice" + - type: "null" "400": $ref: "#/components/responses/BadRequest" "401": @@ -7646,7 +7654,9 @@ paths: - organization summary: Editar config. recibos description: | - Actualiza la configuración de recibos de la organización. + Actualiza los campos enviados de la configuración de recibos de la organización. + Para activar la generación automática de facturas globales, la organización + debe tener contratado ese feature. x-codeSamples: - lang: Bash label: cURL @@ -7656,9 +7666,10 @@ paths: -H "Authorization: Bearer sk_user_API_KEY" \ -H "Content-Type: application/json" \ -d '{ - "invoicing_period": "month", + "periodicity": "month", "duration_days": 14, - "next_folio_number": 100 + "next_folio_number": 100, + "activate_global_invoice": true }' - lang: JavaScript label: Node.js @@ -7669,9 +7680,10 @@ paths: const organization = await facturapi.organizations.updateReceiptSettings( '5a2a307be93a2f00129ea035', { - invoicing_period: "month", + periodicity: "month", duration_days: 14, - next_folio_number: 100 + next_folio_number: 100, + activate_global_invoice: true } ); - lang: csharp @@ -7683,9 +7695,10 @@ paths: "5a2a307be93a2f00129ea035", new Dictionary { - ["invoicing_period"] = "month", + ["periodicity"] = "month", ["duration_days"] = 14, - ["next_folio_number"] = 100 + ["next_folio_number"] = 100, + ["activate_global_invoice"] = true } ); - lang: Java @@ -7700,7 +7713,8 @@ paths: var organization = facturapi.organizations().updateReceiptSettings( "org_123", Map.of( - "color", "#4786FF" + "periodicity", "month", + "activate_global_invoice", true ) ); - lang: PHP @@ -7710,9 +7724,10 @@ paths: $organization = $facturapi->Organizations->updateReceiptSettings( "5a2a307be93a2f00129ea035", [ - "invoicing_period" => "month", + "periodicity" => "month", "duration_days" => 14, - "next_folio_number" => 100 + "next_folio_number" => 100, + "activate_global_invoice" => true ] ); parameters: @@ -16412,8 +16427,8 @@ components: - two_months description: | Periodicidad que corresponde al rango de fechas utilizado. - Si se omite, se tomará la configuración de recibos de la organización. - Si omites enviar los campos `from` y `to`, las fechas que se asignarán por default dependerán del valor de periodicity. + Si omites los campos `from` y `to`, las fechas que se asignarán por + default dependerán del valor de `periodicity`. months: type: string default: Mes contenido en el rango de fechas utilizado. @@ -16456,6 +16471,17 @@ components: maxLength: 24 description: ID de un recibo previamente registrado en Facturapi. example: 614496b471d422de4b6cfcc4 + limit_to_max_receipts: + type: boolean + default: false + description: | + Permite procesar periodos con más de 5,000 recibos abiertos. Cuando es + `true`, la factura incluye como máximo 5,000 recibos y los restantes + conservan el status `"open"`. Repite la solicitud con el mismo periodo + hasta recibir `null`, que indica que ya no quedan recibos por facturar. + + Cuando es `false`, un periodo con más de 5,000 recibos abiertos devuelve + el error `global_invoice_too_many_receipts`. ToInvoiceInput: type: object required: @@ -17117,6 +17143,19 @@ components: description: | Número de folio que se asignará al siguiente recibo en ambiente Test. Se incrementará automáticamente por cada nuevo recibo. + activate_global_invoice: + type: boolean + default: false + description: | + Indica si la organización genera automáticamente una factura global + después de cerrar cada periodo configurado. Requiere tener contratado + el feature de factura global. + group_similar_self_invoice_items: + type: boolean + default: false + description: | + Agrupa conceptos equivalentes al facturar varios recibos seleccionados, + incluyendo las autofacturas. No modifica la generación de facturas globales. self_invoice: type: object description: | @@ -17382,6 +17421,19 @@ components: next_folio_number_test: type: integer description: Número de folio que se asignará al siguiente recibo creado en esta organización en ambiente Test. + activate_global_invoice: + type: boolean + default: false + description: | + Activa o desactiva la generación automática de una factura global después + de cerrar cada periodo configurado. Para activarla, la organización debe + tener contratado el feature de factura global. + group_similar_self_invoice_items: + type: boolean + default: false + description: | + Cuando es `true`, agrupa conceptos equivalentes al facturar varios recibos + seleccionados, incluyendo las autofacturas. No aplica a las facturas globales. OrganizationSelfInvoiceInput: type: object properties: From 3ce2de8d3c973458dc08efd6518ea5f1e642178b Mon Sep 17 00:00:00 2001 From: javorosas Date: Wed, 29 Jul 2026 17:50:23 +0200 Subject: [PATCH 2/4] Keep automation internals out of public docs --- website/docs/guides/receipts.mdx | 5 +++-- .../current/guides/receipts.mdx | 5 +++-- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/website/docs/guides/receipts.mdx b/website/docs/guides/receipts.mdx index c81da6210..e9a92c334 100644 --- a/website/docs/guides/receipts.mdx +++ b/website/docs/guides/receipts.mdx @@ -222,8 +222,9 @@ de la organización. Puedes cambiar `periodicity` para reprogramar los periodos o enviar `activate_global_invoice: false` para pausarla. Los periodos que transcurran mientras esté desactivada no se facturan automáticamente al reactivarla. -La API pública permite configurar la automatización, pero el historial, monitoreo y -las acciones sobre sus ejecuciones están disponibles únicamente en el Dashboard. +Las tareas automáticas y programadas se pueden monitorear desde +[Configuración de Recibos](https://dashboard.facturapi.io/settings/receipts) +en el Dashboard. ### Agrupar conceptos al facturar recibos seleccionados diff --git a/website/i18n/en/docusaurus-plugin-content-docs/current/guides/receipts.mdx b/website/i18n/en/docusaurus-plugin-content-docs/current/guides/receipts.mdx index 81b559a99..9824d7baa 100644 --- a/website/i18n/en/docusaurus-plugin-content-docs/current/guides/receipts.mdx +++ b/website/i18n/en/docusaurus-plugin-content-docs/current/guides/receipts.mdx @@ -222,8 +222,9 @@ zone. You can change `periodicity` to reschedule future periods or send `activate_global_invoice: false` to pause it. Periods elapsed while automation is disabled are not automatically invoiced when it is enabled again. -The public API can configure automation, but its execution history, monitoring, and -run actions are available only in the Dashboard. +Automatic and scheduled tasks can be monitored from +[Receipt Settings](https://dashboard.facturapi.io/settings/receipts) +in the Dashboard. ### Group items when invoicing selected receipts From f667119a4c60042fe98e0abd400d04a964d1ef6f Mon Sep 17 00:00:00 2001 From: javorosas Date: Wed, 29 Jul 2026 20:34:21 +0200 Subject: [PATCH 3/4] Link automatic invoices to dashboard --- website/docs/guides/receipts.mdx | 2 +- .../docusaurus-plugin-content-docs/current/guides/receipts.mdx | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/website/docs/guides/receipts.mdx b/website/docs/guides/receipts.mdx index e9a92c334..a96df0044 100644 --- a/website/docs/guides/receipts.mdx +++ b/website/docs/guides/receipts.mdx @@ -223,7 +223,7 @@ o enviar `activate_global_invoice: false` para pausarla. Los periodos que transc mientras esté desactivada no se facturan automáticamente al reactivarla. Las tareas automáticas y programadas se pueden monitorear desde -[Configuración de Recibos](https://dashboard.facturapi.io/settings/receipts) +[Factura global automática](https://dashboard.facturapi.io/receipts/global-invoice-automation) en el Dashboard. ### Agrupar conceptos al facturar recibos seleccionados diff --git a/website/i18n/en/docusaurus-plugin-content-docs/current/guides/receipts.mdx b/website/i18n/en/docusaurus-plugin-content-docs/current/guides/receipts.mdx index 9824d7baa..64e48fdf0 100644 --- a/website/i18n/en/docusaurus-plugin-content-docs/current/guides/receipts.mdx +++ b/website/i18n/en/docusaurus-plugin-content-docs/current/guides/receipts.mdx @@ -223,7 +223,7 @@ zone. You can change `periodicity` to reschedule future periods or send disabled are not automatically invoiced when it is enabled again. Automatic and scheduled tasks can be monitored from -[Receipt Settings](https://dashboard.facturapi.io/settings/receipts) +[Automatic global invoice](https://dashboard.facturapi.io/receipts/global-invoice-automation) in the Dashboard. ### Group items when invoicing selected receipts From a222204bad0829ac4b5095f079241b4955006d96 Mon Sep 17 00:00:00 2001 From: javorosas Date: Thu, 30 Jul 2026 19:53:43 +0200 Subject: [PATCH 4/4] Preserve global invoice error code --- website/docs/getting-started/errors.mdx | 2 +- website/docs/guides/receipts.mdx | 2 +- .../current/getting-started/errors.mdx | 2 +- .../docusaurus-plugin-content-docs/current/guides/receipts.mdx | 2 +- website/openapi_v2.en.yaml | 2 +- website/openapi_v2.yaml | 2 +- 6 files changed, 6 insertions(+), 6 deletions(-) diff --git a/website/docs/getting-started/errors.mdx b/website/docs/getting-started/errors.mdx index be3399aae..0df2dff99 100644 --- a/website/docs/getting-started/errors.mdx +++ b/website/docs/getting-started/errors.mdx @@ -260,7 +260,7 @@ Estos códigos describen errores de información fiscal validados por Facturapi. | Código | Descripción | | --- | --- | -| `global_invoice_too_many_receipts` | El periodo contiene más de 5,000 recibos abiertos. Envía `limit_to_max_receipts` para facturar hasta 5,000 por llamada o usa rangos de fechas o subconjuntos de recibos. | +| `global_invoice_too_many_items` | El periodo contiene más de 5,000 recibos abiertos. Envía `limit_to_max_receipts` para facturar hasta 5,000 por llamada o usa rangos de fechas o subconjuntos de recibos. | | `invalid_global_invoice_period` | El rango de fechas debe estar dentro del mismo periodo de facturación: `{period}`. | ### RetentionErrorCode diff --git a/website/docs/guides/receipts.mdx b/website/docs/guides/receipts.mdx index a96df0044..47ba2cc0d 100644 --- a/website/docs/guides/receipts.mdx +++ b/website/docs/guides/receipts.mdx @@ -202,7 +202,7 @@ Así puedes dividir un mismo periodo entre varias facturas globales sin cambiar información de periodicidad. Si omites esta opción, la API devuelve -`global_invoice_too_many_receipts` y no genera una factura parcial. +`global_invoice_too_many_items` y no genera una factura parcial. ### Automatizar las facturas globales diff --git a/website/i18n/en/docusaurus-plugin-content-docs/current/getting-started/errors.mdx b/website/i18n/en/docusaurus-plugin-content-docs/current/getting-started/errors.mdx index c723f2647..2cfd8c6df 100644 --- a/website/i18n/en/docusaurus-plugin-content-docs/current/getting-started/errors.mdx +++ b/website/i18n/en/docusaurus-plugin-content-docs/current/getting-started/errors.mdx @@ -260,7 +260,7 @@ These codes describe tax-information errors validated by Facturapi. When a custo | Code | Description | | --- | --- | -| `global_invoice_too_many_receipts` | The period contains more than 5,000 open receipts. Send `limit_to_max_receipts` to invoice up to 5,000 per request, or use smaller date ranges or receipt subsets. | +| `global_invoice_too_many_items` | The period contains more than 5,000 open receipts. Send `limit_to_max_receipts` to invoice up to 5,000 per request, or use smaller date ranges or receipt subsets. | | `invalid_global_invoice_period` | The date range must be within the same billing period: `{period}`. | ### RetentionErrorCode diff --git a/website/i18n/en/docusaurus-plugin-content-docs/current/guides/receipts.mdx b/website/i18n/en/docusaurus-plugin-content-docs/current/guides/receipts.mdx index 64e48fdf0..ae6972248 100644 --- a/website/i18n/en/docusaurus-plugin-content-docs/current/guides/receipts.mdx +++ b/website/i18n/en/docusaurus-plugin-content-docs/current/guides/receipts.mdx @@ -203,7 +203,7 @@ This lets you split one period across multiple global invoices without changing periodicity information. If you omit this option, the API returns -`global_invoice_too_many_receipts` and does not create a partial invoice. +`global_invoice_too_many_items` and does not create a partial invoice. ### Automate global invoices diff --git a/website/openapi_v2.en.yaml b/website/openapi_v2.en.yaml index 700c86908..6b868a7a8 100644 --- a/website/openapi_v2.en.yaml +++ b/website/openapi_v2.en.yaml @@ -16229,7 +16229,7 @@ components: until the response is `null`, which means no receipts remain to be invoiced. When `false`, a period with more than 5,000 open receipts returns the - `global_invoice_too_many_receipts` error. + `global_invoice_too_many_items` error. ToInvoiceInput: type: object required: diff --git a/website/openapi_v2.yaml b/website/openapi_v2.yaml index 68bc3726f..4aa813563 100644 --- a/website/openapi_v2.yaml +++ b/website/openapi_v2.yaml @@ -16481,7 +16481,7 @@ components: hasta recibir `null`, que indica que ya no quedan recibos por facturar. Cuando es `false`, un periodo con más de 5,000 recibos abiertos devuelve - el error `global_invoice_too_many_receipts`. + el error `global_invoice_too_many_items`. ToInvoiceInput: type: object required: