Portugal Credit Notes

Changes to standard fields

invoiceRefs is optional

Portugal specific fields

type CreditNote {
  // ... all generic credit note fields
  lines: InvoiceLine[];
  invoiceRefs: string[],
  customInfo: {
    prt: {
      goodsServiceAvailableDate?: string;
      note? string;
      paymentMeansCode: PaymentMeansCode;
      paymentMeansDueDate:
      reason: string;
    }
  }
}

type InvoiceLine {
  description: string;
  unit: Unit;
	quantity?: number;
	vat: {
    type: 'fixed' | 'percent';
    code: TaxCode;
    amount: number;
  };
  price: {
    amount: number;
  };
}
NameTypeRequiredDescription
invoiceRefsstring arrayYesInvoices associated with this document. Only one invoice reference is allowed.
lines[].descriptionstringYesDescription of the goods or service
lines[].unitstringYesA value from an enumerated list as outlined on Units of Measure
lines[].quantitynumberNoQuantity of the good or service
lines[].vat.typestringYesA value from an enumerated list of types:
"fixed"
"percent"
lines[].vat.codestringYesA value from an enumerated list of types:
"Reverse charge": Vat Reverse Charge
"Exempt": Exempt from Tax
"Standard": Standard rate
"Zero rated": Zero-rated goods
"Free export": Free export item, VAT not charged
"Outside of scope": Services outside scope of tax
lines[].vat.amountnumberYesVAT percent or value per item
lines[].price.amountnumberYesUnit price of the good or service
invoiceRefsstringYesAn array of existing invoices
customInfo.prt.goodsServiceAvailableDatestring (ISO 8601 date)NoThe date that the goods or services are available.
customInfo.prt.notestringNoDocument note
customInfo.prt.paymentMeansCodestringYesA value from an enumerated list as outlined on Payments Means
customInfo.prt.paymentMeansDueDatestring (ISO 8601 date)yesDue date of invoice
customInfo.prt.reasonstring yesReason for credit.

Example CSV file

Credit note - Portugal.csv