Create a new document
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
It corresponds to the ID of the print template for the document. If not provided, the default template will be used. If provided and the template is not found, the default template will be used.
This field is only valid for electronic receipts (document_type_id = 39, Chile) and allows the values to be entered as gross amounts (including VAT) for the line items, with the total being directly calculated as the multiplication of the item prices by the quantities. The total calculated in this way will be slightly different from the one obtained by rounding the net amounts and calculating VAT on the net total. The amounts will be adjusted and saved as net values in Row, but respecting the rounding applied to the gross amounts.
You can input values as “net” or “gross”. Rounding on gross values will calculate the total value for each line including VAT, and then adjust the document's VAT totals to match the final amount. Rounding on net values will calculate the multiplications of net values line by line, and then apply the VAT to the total net amount to get the VAT and the total.
You can enter a website URL, which will replace the one registered in the ROW account data and will be reflected in the automatic email sent to the recipient. It must start with http:// or https://.
You can enter an email, which will replace the one registered in the Row account data and will be reflected in the automatic email sent to the document recipient.
Document type ID according to document type table. In Chile : 33 = Factura electrónica 34 = Factura exenta electrónica 39 = Boleta electrónica 41 = Boleta exenta electrónica 52 = Guía de despacho electrónica 56 = Nota de débito electrónica 61 = Nota de crédito electrónica 110 = factura exportación electrónica 111 = nota de débito de exportación electrónica 112 = nota de crédito de exportación electrónica
Document issue date Format: YYYY-MM-DD
Allows defining the folio to be used for issuing the document. By default, this field should NOT be used, so the folio is automatically assigned by the sequence.
Required for invoices, credit notes, debit notes, named receipts, and exempt named receipts, and optional for other documents. RUT without dots, with a hyphen Format: NNNNNNNN-X
Required for invoices, credit notes, debit notes, named receipts, and exempt named receipts. Optional for other documents. Legal name of the document receiver.
Required for invoices, credit notes, debit notes, named receipts, and exempt named receipts. Optional for other documents. Address of the document receiver.
Required for invoices, credit notes, debit notes, named receipts, and exempt named receipts. Optional for other documents. District of the document receiver.
Required for invoices, credit notes, debit notes, named receipts, and exempt named receipts. Optional for other documents. City of the document receiver.
Required for invoices, credit notes, debit notes, named receipts, and exempt named receipts. Optional for other documents. Phone of the document receiver.
Required for invoices, credit notes, and debit notes. Optional for other documents. Receiver activity of the document receiver. Named receipts should NOT include this field.
Refers to the recipient's country. If not provided, the default is Chile. It is mainly used for export documents.
Payment dates separated by commas 0 = cash 30 = 30 days 0,30 = 50% cash, 50% in 30 days 0,30,60 = 33% cash, 33% in 30 days, 34% in 60 days.
Email for document sending.
User ID (ROW) that will be assigned as the seller associated with the document.
Only for export documents. Valid values according to the table in annexes.
Only when currency_id is defined and its value is not Chilean peso.
It is optional to complete for export documents. Valid values: 1 = Invoice for periodic household services. 2 = Invoice for other periodic services. 3 = Service Invoice 4 = Hospitality Services 5 = International Land Transport Service
Only for export documents: optional. Valid values: 1 = Sale agreed 2 = Under condition 3 = Free consignment 4 = Consignment with minimum sale 9 = No payment
Only for export documents: optional. Valid values: 1 = CIF 2 = CFR 3 = EXW 4 = FAS 5 = FOB 6 = S/CL 9 = DDP 10 = FCA 11 = CPT 12 = CIP 17 = DAT 18 = DAP 8 = Other
Required ONLY for dispatch guides. 1 = Operation constitutes sale 2 = Sales to be made 3 = Consignments 4 = Free delivery 5 = Internal transfers 6 = Other non-sale transfers 7 = Return guide 8 = Transfer for export (non-sale) 9 = Sale for export
Required ONLY for dispatch guides that are not internal transfers. 1 = Dispatch on behalf of the recipient 2 = Dispatch on behalf of the issuer to recipient's facilities 3 = Dispatch on behalf of the issuer to other facilities
This field should only be completed for companies that use branches. To issue from the head office, this field should NOT be entered. The code entered must correspond to the 'internal code' entered in ROW.
Enter a observations.
0 = do not include remark in XML or PDF 1 = include remark in XML and PDF 2 = include remark in PDF and do NOT include in XML 3 = include remark in XML and do NOT include in PDF In all cases, regardless of its display, the remark will be saved in ROW and will be visible in the document details on facto.cl. If this option is not entered, the default value is considered to be 1, which will display the remark in the XML and PDF.
Enter a port disembarkation.
Enter a port embarkation.
Enter a shipping address.
Enter a gross weight.
65% credit for construction companies. Article 21 of Decree Law No. 910/75. This is the only code that operates in the opposite manner to the rest, as it is subtracted from the general VAT. It corresponds to VAT * 0.65. NOT supported in the case of 'gross_values' (Chile).
Required, except in the case of gross values. Total value of exempt items. It should NOT be entered if using the 'gross_values' option.
Required, except in the case of gross values. Total value of taxable items. It should NOT be entered if using the 'gross_values' option.
Required, except in the case of gross values. VAT according to taxable amount. It should NOT be entered if using the 'gross_values' option.
Sum of other taxes, can be negative if there are withholding taxes. NOT supported in the case of 'gross_values'.
Final value.
Authorizations
Bearer authentication header of the form Bearer <token>
, where <token>
is your auth token.
Body
Response
Document ID.