[UY] Invoice Payload Example

Quick Payload Reference

{
    "invoice_type": "debit",
    "document_type": "invoice",
    "invoice_date": "2025-11-07",
    "invoice_due_date": "2025-12-07",
    "e_invoice": true,
    "currency": "UYU",
    "invoice_external_id": "26z6aauxuok11v",
    "supplier_company_id": {{company_id}},
    "buyer": {
        "company": {
            "legal_name": "DEMO COMPANY",
            "tax_registrations": [
                {
                    "number": "219312770023",
                    "type": "RUT",
                    "level": "country",
                    "location": "UY"
                }
            ],
            "type": "business",
            "email": "[email protected]",
            "address": {
                "country": "UY",
                "address_line_1": "Gonzalo Ramirez 1345",
                "address_line_2": "Apto 502",
                "city": "Montevideo",
                "state": "UY-MO",
                "postal_code": "11100"
            },
            "physical_address": {
                "country": "UY",
                "address_line_1": "Physical Address 1345",
                "address_line_2": "Apto 23",
                "city": "Montevideo",
                "state": "UY-MO",
                "postal_code": "11100"
            }
        }
    },
    "items": [
        {
            "item_external_id": "e8ed1yoanz5yn",
            "name": "Item 1",
            "amount": 1000,
            "quantity": 1,
            "categories": [
                {
                    "code": "Unid",
                    "list": "unit"
                }
            ],
            "taxes": [
                {
                    "amount": 220,
                    "name": "IVA",
                    "rate": 0.22,
                    "rate_type": "percentage",
                    "description": "Impuesto sobre el valor agregado",
                    "adds_to_final_amount": true
                }
            ]
        },
        {
            "item_external_id": "5gkfr5kfkde4",
            "name": "Item 2",
            "amount": 819.67,
            "taxes": [
                {
                    "amount": 180.33,
                    "name": "IVA",
                    "rate": 0.22,
                    "rate_type": "percentage",
                    "description": "Impuesto sobre el valor agregado",
                    "adds_to_final_amount": true
                }
            ]
        }
    ]
}

Export Invoice Payload Example

Only the fields that differ from the example above are shown.

{
    "invoice_type": "debit",
    "document_type": "export",
    "currency": "USD",
    "export_reason": "1",
    "items": [
        {
            "name": "Item 1",
            "amount": 1000,
            "quantity": 1,
            "categories": [
                { "code": "CIF", "list": "incoterm" },
                { "code": "sea", "list": "vehicle type" },
                { "code": "08011100", "list": "ncm" }
            ],
            "taxes": [
                {
                    "amount": 0,
                    "name": "IVA",
                    "rate": 0,
                    "rate_type": "percentage"
                }
            ]
        }
    ]
}

Field Reference

Document header (root fields)

FieldTypeRequiredWhen to use / Impact on the issued invoice
invoice_typestringYesAlways debit for invoices, tickets and export invoices.
document_typestringYesDefines which CFE is issued.
invoice_datedate (YYYY-MM-DD)RecommendedIssue date printed on the CFE. If omitted, the date of submission is used.
invoice_due_datedate (YYYY-MM-DD)RecommendedDefines the payment condition shown on the invoice. Send the same date as invoice_date for a cash sale (contado). A later date issues the invoice as a credit sale (crédito) with that due date. If omitted, the invoice is issued as a credit sale.
currencystring (ISO 4217)YesCurrency of the CFE.
exchange_ratenumberNoExchange rate to UYU for non-UYU invoices.
invoice_external_idstringRecommendedYour own reference for the invoice.
supplier_company_idnumberYesBrinta ID of the issuing company. It determines the issuer’s RUT, branch and electronic invoicing configuration.
additional_infostringNoFree text printed as an addendum (adenda) on the CFE.
discountnumberNoGlobal discount amount applied to the whole invoice.
export_reasonstringExport onlySale modality declared to DGI for export documents. See Export fields. Ignored for invoice and ticket.

Buyer (buyer.company)

The buyer block identifies the receiver of the CFE. For invoice and export, a complete and valid buyer is required for DGI to accept the document.

FieldTypeRequiredWhen to use / Impact on the issued invoice
legal_namestringYesBuyer’s legal name printed on the CFE (max. 70 characters). For an anonymous final-consumer ticket, send CONSUMIDOR FINAL: the e-Ticket is issued without buyer identification.
typestringYesBuyer type, e.g. business.
emailstringNoThe issued invoice is sent to this address.
tax_registrations[]arrayYes (invoice, export)Buyer’s tax ID. If several are sent, the RUT is used. See below.
addressobjectYesBuyer’s fiscal address printed on the CFE. See below.
physical_addressobjectNoDelivery location printed on the CFE. Send it only when the goods are delivered to an address other than the fiscal one.

Buyer tax ID (buyer.company.tax_registrations[])

FieldTypeRequiredWhen to use / Impact on the issued invoice
numberstringYesTax ID number.
typestringYesType of document. Accepted values: RUT, CI, PASSPORT, DNI, NIFE. An invoice requires a buyer with RUT.
levelstringYesAlways country.
locationstringYesISO country code that issued the document (UY for RUT and CI).

Buyer address (buyer.company.address, buyer.company.physical_address)

FieldTypeRequiredWhen to use / Impact on the issued invoice
countrystring (ISO 3166-1 alpha-2)YesBuyer’s country.
address_line_1stringRecommendedStreet and number. Combined with address_line_2 into one address line.
address_line_2stringNoApartment, floor, office.
citystringRecommendedCity (max. 30 characters).
statestringRecommendedDepartment (max. 30 characters), for example UY-MO for Montevideo.
postal_codestringNoPostal code.

Items (items[])

Each element is a line on the CFE.

FieldTypeRequiredWhen to use / Impact on the issued invoice
namestringYesLine description printed on the CFE.
amountnumberYesLine amount before taxes.
quantitynumberNoDefaults to 1.
unit_amountnumberWhen quantity > 1Price per unit before taxes. Always send it when quantity is greater than 1, so the unit price on the CFE is correct.
item_external_idstringRecommendedYour own item code.
descriptionstringNoAdditional detail printed under the line.
discountnumberNoDiscount amount applied to this line.
categories[]arrayNo (Yes for export)Item attributes. See below.
taxes[]arrayYesItem taxes. Determines whether the line is taxed and at which rate. See below.

Item categories (items[].categories[])

listcodeWhen to use / Impact on the issued invoice
unitUnit of measure, e.g. Unid, Kg, HsUnit printed on the line. Defaults to Unid.
eanEAN codeProduct barcode.
dunDUN codeLogistic unit code.
gtinGTIN-13 codeProduct GTIN.
incotermSee Export fieldsExport only.
vehicle typeSee Export fieldsExport only.
ncmTariff code (Código de posición arancelaria)Export only. Required by DGI for each exported good.

Item taxes (items[].taxes[])

FieldTypeRequiredWhen to use / Impact on the issued invoice
namestringYesIVA.
ratenumberYesIVA rate as a decimal. Valid values: 0.22 (basic rate), 0.10 (minimum rate), 0 (exempt).
rate_typestringYesAlways percentage.
amountnumberRecommendedTax amount for the line. The taxes on the CFE are computed from the item amount and the rate, so this value must be consistent with them.
descriptionstringNoInformational.
adds_to_final_amountbooleanNotrue for IVA.

A line without an IVA tax is issued as exempt. If the item is taxed, always send the IVA tax with its rate.


Export fields (export only)

These fields apply only when document_type is export, credit note exports or debit note exports. They are ignored on any other document type.

Sale modality (export_reason)

CodeMeaning
1General regime (default when omitted)
2Consignment
3Revisable price
4Goods from customs exclaves
80Tax free
90General regime – export of services
99Other transactions

Incoterm (items[].categories[] with list: "incoterm")

Accepted codes: CFR, CIF, CIP, CPT, DAP, DAT, DDP, DDU, EXW, FAS, FCA, FOB, N/A. Any other value is declared as N/A. Send it once, on any item: it applies to the whole document.

Transport mode (items[].categories[] with list: "vehicle type")

codeDeclared as
seaMaritime
airAir
roadRoad
otherOther

Any other value is declared as “not applicable”. Send it once, on any item: it applies to the whole document.



Did this page help you?