Certified invoicing

Glossary of Portuguese invoicing

The terms of certified invoicing in Portugal that a developer meets, each with its place in the FIZ API.

AT (Autoridade Tributária e Aduaneira)

Portuguese tax and customs authority

Certifies invoicing software, registers document series and receives the invoices and transport documents companies issue.

In the API: With the company’s AT connection on, FIZ reports its documents to the AT (never receipts); syncWithAt on a document shows the result.

ATCUD

unique document code

Código Único de Documento: the validation code of the document’s series and its sequential number. Every fiscal document carries it, printed and in its QR code.

In the API: atcud in the issue response; null while the document is a draft.

CAE

economic activity code

Classificação Portuguesa de Atividades Económicas: the code of an activity the company is registered for.

In the API: cae on every draft; GET /company lists the company’s codes.

Código QR

fiscal QR code

Printed on every fiscal document, with its data for the AT and the buyer: the tax numbers, the date and type, the ATCUD, the totals and the VAT.

In the API: On the PDF (GET /invoices/{id}/pdf); qrCode in GET /invoices/{id}.

Consumidor final

final consumer

A buyer, usually a private person, invoiced without a tax number. Asking whether the buyer wants their NIF on the document is common at checkout, since the buyer can use the invoice for personal income-tax deductions.

e-Fatura

the AT’s invoice system

The AT’s invoice system and portal. Invoices reported by the issuer appear there for the buyer, who can check them and use them for income-tax deductions.

In the API: Reported by FIZ when the company’s AT connection is on; see syncWithAt.

Fatura

invoice

The standard invoice, for a sale or a service paid later. The payment is then proved by a receipt.

In the API: type: INVOICE; record the payment with POST /invoices/{id}/pay.

Fatura simplificada

simplified invoice

A shorter invoice for small sales, allowed only within the limits the VAT Code sets.

In the API: type: SIMPLIFIED_INVOICE

Fatura-recibo

invoice-receipt

Invoice and receipt in one document, for a sale paid when it is invoiced: an online checkout, a card payment.

In the API: type: INVOICE_RECEIPT, with the optional payment.

Guia de transporte

transport document

Goes with goods in transit: a delivery note (guia de remessa), a transport note (guia de transporte), or a document for own assets, consignment or returns. Reported to the AT before the goods move; the AT returns a code.

In the API: /transport-documents; the AT’s code is atDocCodeID.

IVA

VAT

Imposto sobre o Valor Acrescentado. There is a normal, an intermediate and a reduced rate, and the rates differ in mainland Portugal, Madeira and the Azores.

In the API: vatRate on an item (NORMAL, INTERMEDIATE, REDUCED, EXEMPT); taxRate is derived from it when omitted, unless that is ambiguous: an OSS country with two rates in the category needs taxRate.

Motivo de isenção

VAT exemption reason

A line without VAT states the legal reason, with one of the AT’s codes (M01, M07 and so on).

In the API: vatExemptionReason on the item.

NIF

tax number

Número de Identificação Fiscal: the nine-digit Portuguese tax number of a person or a company.

In the API: taxpayerNumber on the customer and on the company.

Nota de crédito

credit note

Reduces or reverses an issued invoice: a return, a later discount, a billing error. The invoice itself is never edited.

In the API: POST /invoices/credit-notes, for the whole invoice or by line. Issued at once unless you send issue: false.

Pró-forma

pro forma

A commercial proposal before the invoice. Not a fiscal document: never reported to the AT.

In the API: /proposals

Recibo

receipt

Proves the payment of an invoice. FIZ does not report receipts to the AT.

In the API: POST /invoices/{id}/pay issues it; a receipt has no syncWithAt status.

Retenção na fonte

withholding tax

Income tax on the issuer’s income (IRS when the issuer is an individual, IRC when it is a company) that a business customer withholds when paying certain invoices, stated on the document.

In the API: withholdingTaxEnabled and withholdingTaxPercent on a document line.

SAF-T (PT)

Standard Audit File for Tax

An XML file with a company’s invoicing data in the format the AT defines. Companies that do not report each invoice submit it monthly; accountants and audits ask for it too.

In the API: GET /exports/saft-pt

Série

document series

Documents are numbered in sequence within a series. Each series is registered with the AT, which returns the validation code that goes into the ATCUD.

In the API: GET /series; seriesId when creating a document, or the default series.

Software certificado

certified invoicing software

Invoicing software certified by the AT. It numbers documents in registered series, signs each one, keeps it unchanged after issue, and prints its certification number on it.

In the API: FIZ is certified software (AT certificate no. 3041): your system sends the data through the API, FIZ issues the document.

Subutilizador da AT

AT sub-user

A user the company creates in the Portal das Finanças with permission to report invoices through the AT’s webservice. Invoicing software uses its credentials.

In the API: Needed when FIZ reports to the AT (the company’s AT sync on), and always for a registered partner app; a company on an API key that files its SAF-T by hand issues without it. GET /company → readiness.reasons says whether it is missing (AT_CREDENTIALS_REQUIRED).