[CR] Purchase Invoices
How to issue a Factura Electrónica de Compra in Costa Rica, and a credit note on it.
08 · Factura Electrónica de Compra
document_type: "purchase invoice", invoice_type: "purchase"
Issued by you to back a purchase from a supplier that cannot issue electronic documents.
supplier_company_idis your company: the one buying.buyeris the supplier you buy from:- Foreign supplier: their tax ID with
type: "tax_id". - Costa Rican supplier not registered with Hacienda: their ID with
type: "NO CONTRIBUYENTE".
- Foreign supplier: their tax ID with
- The supplier's address follows the same rules as the buyer's address (see the Overview). For a Costa Rican supplier, send the full address.
relations[]is required: one entry with the supplier's own document (or your internal control number for it).additional_info: for a Costa Rican supplier, it is the reason reported for the purchase. If you leave it empty, Brinta sends a standard text.
relations[] field | Meaning |
|---|---|
invoice_type | debit |
document_type | invoice |
invoice_serie | Optional. Series of the supplier document |
invoice_number | Number of the supplier document |
invoice_date | Date of the supplier document |
{
"supplier_company_id": "{{company_id}}",
"invoice_type": "purchase",
"document_type": "purchase invoice",
"invoice_date": "2026-10-21",
"invoice_serie": "1",
"invoice_number": "2610210004",
"currency": "CRC",
"e_invoice": true,
"payment_methods": [ { "type": "bank transfer" } ],
"relations": [
{ "invoice_type": "debit", "document_type": "invoice", "invoice_serie": "A", "invoice_number": "INV-2026-0099", "invoice_date": "2026-10-01" }
],
"buyer": {
"company": {
"legal_name": "Cloud Software Services Inc.",
"type": "business",
"address": { "address_line_1": "500 Market St", "city": "San Francisco", "state": "CA", "country": "US" },
"tax_registrations": [ { "number": "12-3456789", "type": "tax_id", "level": "country", "location": "US" } ]
}
},
"items": [
{
"name": "Servicio de consultoría en software",
"quantity": 1,
"unit_amount": 1000,
"amount": 1000,
"categories": [ { "code": "8313100000100", "list": "CABYS" }, { "code": "Sp", "list": "unit" } ],
"taxes": [ { "name": "IVA", "type": "VAT", "rate": 0.13, "rate_type": "percentage", "amount": 130, "taxable_amount": 1000 } ]
}
]
}03 · Nota de Crédito on a Factura de Compra
document_type: "purchase credit note", invoice_type: "credit"
original_invoice_idis required: the Brinta ID of thepurchase invoice.reason:void(no items, everything is copied from the original) orreturn(the lines being corrected, withoriginal_item_id).- The supplier is taken from the original purchase invoice.
additional_infois the reason for the note reported to Hacienda (3 to 180 characters). If you leave it empty, Brinta sends a standard text.
{
"supplier_company_id": "{{company_id}}",
"invoice_type": "credit",
"document_type": "purchase credit note",
"invoice_date": "2026-10-22",
"invoice_serie": "1",
"invoice_number": "2610220004",
"currency": "CRC",
"e_invoice": true,
"reason": "void",
"original_invoice_id": "{{original_invoice_id}}"
}Updated 4 days ago
Did this page help you?
