🔄 Transfer documents

Transfers (Cesiones) of invoices is a way for businesses to get liquidity from banks or factorings by transfering ownership of their account receivables.

The API process uses the S.I.I. registry and complies with the chilean laws regarding transfers.

Transfer an invoice issued on our platform

In order to transfer a document ownership, you need to use the /document_transfers endpoint with the proper parameters. You will need the document_id to complete the transfer.

1{
2 "account_id": 141,
3 "document": {
4 "document_id": 2563
5 },
6 "transfer_information": {
7 "date": "2025-04-15T10:00:00Z",
8 "transfered_amount": 5000.00,
9 "additional_conditions": "Payment due in 30 days after acceptance",
10 "digital_certificate_id": "5"
11 },
12 "transfer_origin": {
13 "company_name": "Origin Company",
14 "tax_id_code": "11111111-1",
15 "tax_id_type": "CL-RUT",
16 "country_id": 253,
17 "contact_name": "Juan Perez",
18 "contact_phone": "999888777",
19 "contact_email": "juan@emisor.com",
20 "address": "Calle ejemplo 123",
21 "city": "Santiago",
22 "district": "Providencia",
23 "authorized_agent": {
24 "first_name": "John",
25 "last_name": "Doe",
26 "person_tax_id_code": "12345678-5",
27 "person_tax_id_type": "CL-RUT",
28 "certificate_id": "123"
29 }
30 },
31 "transfer_destination": {
32 "company_name": "MI FACTORING SPA",
33 "tax_id_code": "22222222-2",
34 "tax_id_type": "CL-RUT",
35 "contact_name": "Pedro Gomez",
36 "contact_phone": "999888777",
37 "contact_email": "miemail@factoring.com",
38 "address": "Calle ejemplo 123",
39 "city": "Santiago",
40 "district": "Providencia",
41 "country_id": 253
42 }
43}

Response:

1{
2 "document_transfer": 4562,
3 "account_id": 141,
4 "document": {
5 "document_id": 2563
6 },
7 "transfer_information": {
8 "date": "2025-04-15T10:00:00Z",
9 "transfered_amount": 5000.00,
10 "additional_conditions": "Payment due in 30 days after acceptance"
11 },
12 "transfer_origin": {
13 "company_name": "Origin Company",
14 "tax_id_code": "11111111-1",
15 "tax_id_type": "CL-RUT",
16 "country_id": 253,
17 "contact_name": "Juan Perez",
18 "contact_phone": "999888777",
19 "contact_email": "juan@emisor.com",
20 "address": "Calle ejemplo 123",
21 "city": "Santiago",
22 "district": "Providencia",
23 "authorized_agent": {
24 "first_name": "John",
25 "last_name": "Doe",
26 "person_tax_id_code": "12345678-5",
27 "person_tax_id_type": "CL-RUT",
28 "certificate_id": "123"
29 }
30 },
31 "transfer_destination": {
32 "company_name": "MI FACTORING SPA",
33 "tax_id_code": "22222222-2",
34 "tax_id_type": "CL-RUT",
35 "contact_name": "Pedro Gomez",
36 "contact_phone": "999888777",
37 "contact_email": "miemail@factoring.com",
38 "address": "Calle ejemplo 123",
39 "city": "Santiago",
40 "district": "Providencia",
41 "country_id": 253
42 },
43 "transfer_registry": [
44 {
45 "registry_entity": "SII",
46 "sending_status": "1",
47 "sending_datetime": "2025-04-15T10:05:00Z",
48 "sending_number": "1234566",
49 "validation_status": "1",
50 "validation_datetime": "2025-04-15T10:10:00Z",
51 "validation_details": "Transfer accepted"
52 }
53 ]
54}

Transfer an invoice issued on another platform

In order to transfer the ownership of a document, you need to use the /document_transfers endpoint with the proper parameters. If the document was issued on another platform, You will need all the document information including XML.

On the response, you will get a document_id, so the document will be created on the platform in order to control new operations on this document.

1{
2 "account_id": 141,
3 "document": {
4 "document_information": {
5 "xml": "HffejCwogjaff....",
6 "pdf": "AkroC05FGAffg....",
7 "document_type_id": 2,
8 "document_number": 23455,
9 "issuer_tax_id_code": "11111111-1",
10 "issuer_tax_id_type": "CL-RUT",
11 "receiver_tax_id_code": "44444444-4",
12 "receiver_tax_id_type": "CL-RUT",
13 "issue_date": "2025-05-01",
14 "due_date": "2025-06-01",
15 "total_amount": 50000,
16 "currency_id": 39
17 }
18 },
19 "transfer_information": {
20 "date": "2025-04-15T10:00:00Z",
21 "transfered_amount": 5000.00,
22 "additional_conditions": "Payment due in 30 days after acceptance",
23 "digital_certificate": "5"
24 },
25 "transfer_origin": {
26 "company_name": "Origin Company",
27 "tax_id_code": "11111111-1",
28 "tax_id_type": "CL-RUT",
29 "country_id": 253,
30 "contact_name": "Juan Perez",
31 "contact_phone": "999888777",
32 "contact_email": "juan@emisor.com",
33 "address": "Calle ejemplo 123",
34 "city": "Santiago",
35 "district": "Providencia",
36 "authorized_agent": {
37 "first_name": "John",
38 "last_name": "Doe",
39 "person_tax_id_code": "12345678-5",
40 "person_tax_id_type": "CL-RUT",
41 "certificate_id": "123"
42 }
43 },
44 "transfer_destination": {
45 "company_name": "MI FACTORING SPA",
46 "tax_id_code": "22222222-2",
47 "tax_id_type": "CL-RUT",
48 "contact_name": "Pedro Gomez",
49 "contact_phone": "999888777",
50 "contact_email": "miemail@factoring.com",
51 "address": "Calle ejemplo 123",
52 "city": "Santiago",
53 "district": "Providencia",
54 "country_id": 253
55 }
56}

Response:

1{
2 "document_transfer": 4562,
3 "account_id": 141,
4 "document": {
5 "document_id": 2563
6 },
7 "transfer_information": {
8 "date": "2025-04-15T10:00:00Z",
9 "transfered_amount": 5000.00,
10 "additional_conditions": "Payment due in 30 days after acceptance"
11 },
12 "transfer_origin": {
13 "company_name": "Origin Company",
14 "tax_id_code": "11111111-1",
15 "tax_id_type": "CL-RUT",
16 "country_id": 253,
17 "contact_name": "Juan Perez",
18 "contact_phone": "999888777",
19 "contact_email": "juan@emisor.com",
20 "address": "Calle ejemplo 123",
21 "city": "Santiago",
22 "district": "Providencia",
23 "authorized_agent": {
24 "first_name": "John",
25 "last_name": "Doe",
26 "person_tax_id_code": "12345678-5",
27 "person_tax_id_type": "CL-RUT",
28 "certificate_id": "123"
29 }
30 },
31 "transfer_destination": {
32 "company_name": "MI FACTORING SPA",
33 "tax_id_code": "22222222-2",
34 "tax_id_type": "CL-RUT",
35 "contact_name": "Pedro Gomez",
36 "contact_phone": "999888777",
37 "contact_email": "miemail@factoring.com",
38 "address": "Calle ejemplo 123",
39 "city": "Santiago",
40 "district": "Providencia",
41 "country_id": 253
42 },
43 "transfer_registry": [
44 {
45 "registry_entity": "SII",
46 "sending_status": "1",
47 "sending_datetime": "2025-04-15T10:05:00Z",
48 "sending_number": "1234566",
49 "validation_status": "1",
50 "validation_datetime": "2025-04-15T10:10:00Z",
51 "validation_details": "Transfer accepted"
52 }
53 ]
54}

xml Content

When sending the xml, the content MUST be the DTE part of the document, NOT the SobreDTE. Additionally, the DTE should have one of the following canonical structures. Adding other parameters, spaces or switching the parameter order will result in the transfer being rejected by schema:

1<DTE version="1.0">
2...
3</DTE>
1<DTE xmlns="http://www.sii.cl/SiiDte" version="1.0">
2...
3</DTE>
1<DTE xmlns="http://www.sii.cl/SiiDte" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" version="1.0">
2...
3</DTE>

the xml content MUST BE EXACTLY the same as the document sent to the SII when it was issued. Any extra space, encoding change or other changes will result in the rejection by the SII.

sending_status

The sending_status can have the following values:

ValueStatus nameDescription
-3External ErrorIt was not possible to complete the sending of the AEC to the SII due to parsing or other non-SII related reasons
-2Not ProcessedThe AEC sending was completed, we are waiting for the SII to complete the validation
-1SII ErrorThe SII answered the validation status request with a temporal error such as “Server busy” or other, we are retrying
0RejectedThe SII rejected the document transfer. Check “validation_details” for more information
1ApprovedThe SII approved the document transfer. No further action is required.