[CL] Ticket API Invoice POST Example

{
    "supplier_company_id": "{{company_id}}", //mandatory
    // "supplier_external_company_id": "{{supplier_external_company_id}}", //can be used instead of supplier_company_id
    "invoice_type": "debit", //mandatory
    "invoice_date": "2025-09-03", //mandatory
    "invoice_due_date": "2025-10-03",
    "document_type": "ticket", //mandatory
    "e_invoice": true,
    "currency": "CLP",
    //"exchange_rate": "", //only use when currency is not CLP.
    "buyer": {
        "company": {
            "legal_name": "Jose Perez",//mandatory info of Buyer
            "type": "person",
            "email": "[email protected]",
            "address": {
                "address_line_1": "Address Test CL",
                "city": "SANTIAGO",
                "state": "CL-RM",
                "postal_code": "1000000", //mandatory info of Buyer
                "country": "CL" //mandatory info of Buyer
            },
            "tax_registrations": [
                {
                    "type": "RUT",
                    "number": "12345678-1", //mandatory info of Buyer
                    "level": "country",
                    "location": "CL"
                }
            ]
        }
    },
    "items": [
        {
            "name": "Item Service 1", //mandatory
            "description": "Full description of the item",
            "quantity": 1,
            "unit_amount": 10000,
            "amount": 10000, //mandatory: Quantity * unit_amount      
            "external_item_id": "{{external_item_id}}",
            "taxes": [
                {
                    "amount": 1900,
                    "name": "VAT",
                    "rate": 0.19,
                    "rate_type": "percentage",
                    "description": "Impuesto sobre el valor agregado",
                    "adds_to_final_amount": true
                }
            ],
            "categories": [
                {
                    "code": "item_code"
                }
            ]
        }
    ]
}

Did this page help you?