Generic

Credit Note base

type CreditNote {
  ref: string;  
  issued: string;
  recipient: CreditNoteRecipient;
  invoiceRefs: string[];
  total: {
    amount: number;
    currency?: string;
  };
  customInfo?: StringStringTMap<string | number>;
  notes?: string;
  error?: Error;
  type?: 'Sent' | 'Received';
}

type CreditNoteRecipient {
  taxId: string;
  name: string;
  customInfo?: StringStringTMap<string | number>;
  contact?: {
    email?: string;
  };
}

Some country-specific credit note models extend the base with additional fields such as lines (line items). Refer to the relevant country model for the full list of required and optional fields.

Field information

NameTypeRequiredDescription
refstringYesSequential number of document
issuedstring (ISO 8601 date)YesDate of document (issue date)
recipient.taxIdstringYesTAX identification number.
recipient.namestringYesCompany name or name and surname
recipient.contact.emailstringNoRecipient email address
invoiceRefsstring arrayYesInvoices associated with this document
total.amountnumberYesThe total amount of the document, including tax charged.
total.currencystringNoThree-letter currency code (ISO 4217-1 alpha-3). Defaults to organisation currency.
typestring (System generated)NoA value from an enumerated list of types:
Sent
Received
notesstringNoA catch-all field for information that needs to be displayed on human-readable previews and eezi generated PDF files.
errorstring map (System generated)NoWhen activation errors occur downstream, the transaction will have an Error status with this error object for more detail.{ status?: number; message: string; description?: string; }

Example CSV file

Credit note - Generic.csv