Skip to main content

Overview

The AdditionalInfo type allows you to include custom key-value pairs in your electronic invoices. This is useful for adding company-specific information or additional details required by your business process.

AdditionalInfo

Container for additional custom fields in the invoice.
export type AdditionalInfo = {
  campoAdicional: AdditionalField[];
};
campoAdicional
AdditionalField[]
required
Array of custom fields to include in the invoice

AdditionalField

Individual custom field with a name and value.
export type AdditionalField = {
  "@nombre": string;
  "#": string;
};

Fields

@nombre
string
required
The name of the custom field. This will be displayed as the field label.
#
string
required
The value of the custom field. This is the actual data for this field.

Usage Example

import { AdditionalInfo } from 'open-factura';

const additionalInfo: AdditionalInfo = {
  campoAdicional: [
    {
      "@nombre": "Email",
      "#": "[email protected]"
    },
    {
      "@nombre": "Teléfono",
      "#": "+593 2 1234567"
    },
    {
      "@nombre": "Observaciones",
      "#": "Entrega en horario de oficina"
    }
  ]
};

Common Use Cases

Add email addresses, phone numbers, or alternative contact methods for the customer.
Include special delivery notes, preferred time windows, or location details.
Add purchase order numbers, project codes, or other internal tracking identifiers.
Specify payment deadlines, bank transfer details, or financing arrangements.

Invoice

See how AdditionalInfo fits into the complete invoice structure

Invoice Generation

Learn how to generate invoices with additional fields

Build docs developers (and LLMs) love