Skip to main content
The Ownership Transfer Component (billing.ownership_transfer) handles the management of ownership transfer documents, which are used to document the transfer of goods ownership during transportation in Chile.

Overview

This component provides functionality for creating and managing ownership transfer documents (cesión de documentos), allowing the transfer of rights over tax documents from one party to another.
This component is currently under development. Workers and functionality will be added in future releases.

Status

The Ownership Transfer Component is in active development. The following features are planned:
Create ownership transfer documents (Archivo de Transferencia de Crédito - ATC) for factoring and other financial operations.
Validate transfer documents according to SII regulations and business rules.
Notify involved parties (cedente, cesionario, deudor) about ownership transfers.
Track the status of ownership transfer documents through their lifecycle.
Submit ownership transfer documents to SII for registration.

Planned Workers

The following workers are planned for implementation:
  • Builder Worker: Constructs ownership transfer documents (AEC - Archivo Electrónico de Cesión)
  • Validator Worker: Validates transfer documents and parties
  • Notifier Worker: Sends notifications to involved parties
  • Tracker Worker: Tracks transfer status and history
  • Submission Worker: Submits transfers to SII for registration

Current Implementation

getWorkers

Returns all available workers in this component.
return
array
Returns an empty array (no workers implemented yet)
use libredte\lib\Core\Package\Billing\Component\OwnershipTransfer\OwnershipTransferComponent;

$ownershipTransferComponent = $billingPackage->getOwnershipTransferComponent();
$workers = $ownershipTransferComponent->getWorkers(); // Currently returns []

Expected Usage (Coming Soon)

Once implemented, the component will support operations like:
// Future usage example (not yet implemented)
use libredte\lib\Core\Package\Billing\Component\OwnershipTransfer\OwnershipTransferComponent;

$ownershipTransferComponent = $billingPackage->getOwnershipTransferComponent();

// Create an ownership transfer document
$transfer = $ownershipTransferComponent->createTransfer([
    'DocumentoFactoring' => [
        'TipoDTE' => 33,
        'Folio' => 12345,
        'RUTEmisor' => '76123456-7',
        'FechaEmision' => '2024-03-15',
        'MontoCesion' => 1000000,
    ],
    'Cedente' => [
        'RUT' => '76123456-7',
        'RazonSocial' => 'Empresa Cedente',
    ],
    'Cesionario' => [
        'RUT' => '77654321-8',
        'RazonSocial' => 'Empresa Factoring',
    ],
    'Deudor' => [
        'RUT' => '88765432-9',
        'RazonSocial' => 'Cliente Deudor',
    ],
]);

// Validate the transfer
$isValid = $ownershipTransferComponent->validate($transfer);

// Submit to SII
$response = $ownershipTransferComponent->submit($transfer, $certificate);

// Notify parties
$ownershipTransferComponent->notifyParties($transfer);

Ownership Transfer in Chilean Tax System

In Chile, ownership transfer documents (cesión) allow:

Electronic Credit Assignment (AEC)

Businesses can assign their receivables (facturas) to third parties (typically factoring companies):
  • Cedente: The original creditor (issuer of the invoice) who transfers the right to collect
  • Cesionario: The new creditor (usually a factoring company or financial institution) who receives the right
  • Deudor: The debtor (receiver of the invoice) who must pay to the new creditor

Use Cases

Factoring

Sell invoices to factoring companies for immediate cash flow

Debt Collection

Transfer collection rights to specialized agencies

Securitization

Package receivables for financial instruments

Financing

Use invoices as collateral for financing
Ownership transfers must:
  • Be registered electronically with SII
  • Include digital signatures from all parties
  • Notify the debtor of the transfer
  • Comply with the current factoring law (Ley 19.983)
  • Maintain a complete audit trail

Document Types

The component will handle:
  • AEC (Archivo Electrónico de Cesión): Electronic assignment file
  • DEC (Declaración de Cesión): Assignment declaration
  • Notificación de Cesión: Assignment notification to debtor

Development Status

Check the source code for the latest implementation status: Location: /workspace/source/src/Package/Billing/Component/OwnershipTransfer/OwnershipTransferComponent.php:37
Workers and methods are being actively developed. Check the official LibreDTE documentation for updates on availability.

Error Handling

The component will throw specific exceptions:
  • OwnershipTransferException: General ownership transfer errors
Exception: libredte\lib\Core\Package\Billing\Component\OwnershipTransfer\Exception\OwnershipTransferException

Source Reference

Namespace: libredte\lib\Core\Package\Billing\Component\OwnershipTransfer\OwnershipTransferComponent Location: /workspace/source/src/Package/Billing/Component/OwnershipTransfer/OwnershipTransferComponent.php:37

Build docs developers (and LLMs) love