*Workflows › Referencia › Acciones › Ventas*

# Sincronizar rectificativa emitida fuera

> Crea o actualiza en Filmo la copia de una rectificativa emitida en otro sistema (por ejemplo, Holded). Filmo no la emite: queda bloqueada y marcada con su origen.

## De un vistazo

| Propiedad | Valor |
| --- | --- |
| Dominio | `invoices` |
| Grupo en el editor | Ventas › Notas de crédito |
| Se ejecuta como | El propietario del workflow, con sus permisos |
| Permiso | Acceso de edición a Ventas. Los administradores siempre pasan; un módulo fuera del plan bloquea a todos. |
| Destructiva | No declarado |

ACCIÓN `invoices.creditNotes.upsertExternal`

## Entradas

| Nombre | Tipo | Obligatorio | Descripción |
| --- | --- | --- | --- |
| `originSystem` | string | Sí |  |
| `originExternalId` | string | Sí |  |
| `creditNoteNumber` | string | Sí |  |
| `issueDate` | string | Sí |  |
| `lines` | object[] | Sí | Líneas de la factura rectificativa, con importes positivos. |
| `lines.description` | string | Sí |  |
| `lines.quantity` | string | Sí |  |
| `lines.unitPrice` | string | Sí |  |
| `lines.discountPercent` | string | No |  |
| `lines.taxType` | string | No |  |
| `lines.taxRate` | string | No |  |
| `currency` | string | No |  |
| `contactId` | string | No |  |
| `contactTaxId` | string | No |  |
| `contactName` | string | No |  |
| `originalInvoiceId` | string | No |  |
| `originalInvoiceNumber` | string | No |  |
| `reason` | enum<string> | No |  `error`, `return`, `discount`, `cancellation`, `other` |
| `subTotal` | string | No |  |
| `taxTotal` | string | No |  |
| `total` | string | No |  |
| `externalStatus` | enum<string> | No |  `issued`, `voided` |
| `voidReason` | string | No |  |
| `totalPaid` | string | No |  |
| `originUrl` | string | No |  |
| `originFileUrl` | string | No |  |
| `notes` | string | No |  |

## Salidas

| Nombre | Tipo | Descripción |
| --- | --- | --- |
| `creditNoteId` | string |  |
| `creditNoteNumber` | string |  |
| `status` | enum<string> |  `validated`, `voided` |
| `isExternallyIssued` | boolean |  |
| `created` | boolean |  |
| `changed` | boolean |  |

---

URL canónica: https://docs.filmo.io/es/workflows/reference/actions/invoices-creditnotes-upsertexternal  
Última actualización: 2026-10-25