🔄 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.
- Endpoint: https://api-billing.koywe.com/V1/document_transfers
- Method: POST
- Required headers:
- Content-Type: application/json
- Authorization: Bearer <token>
- Accept: */*
Response:
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.
- Endpoint: https://api-billing.koywe.com/V1/document_transfers
- Method: POST
- Required headers:
- Content-Type: application/json
- Authorization: Bearer <token>
- Accept: */*
Response:
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:
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: