Skip to main content

Type of Signature: ftSignatureType

The ftSignatureType indicates the type and origin of the signature. The data type is Int64 and can contain a country-specific code, a value following the ISO-3166-1-ALPHA-2 standard, converted from ASCII into hex and used as byte 8 and 7.

For definitions regarding national laws, refer to the appropriate appendix.

Format

_CCCC_vlll_gggg_tsss

v - version

version 2

t - Type/Category

ValueDescriptionMiddleware Version
0Uncategorized, Normal use (notification)1.3.45
1Information (notification), low priority1.3.45
2Alert (notification), high priority1.3.45
3Failure (notification), high priority1.3.45

Table 1. Type/Category (t) values of ftSignatureType for Portugal.

gggg - global flags

ValueDescriptionMiddleware Version
0001Archiving required.
Signatures marked with this flag are known to be archived related to market specific bookkeeping requirements. In case of offline usage or pure open-source usage, receipts/artefacts having this flag need to be handled as bookkeeping/accounting-relevant item.
1.3.45
0010Printing/Visualization is optional.1.3.45
0020Do not print/visualize.1.3.45
0040Printed receipt only.1.3.45
0080Digital receipt only.1.3.45

Table 2. Global flag (gggg) values of ftSignatureType for Portugal.

sss - SignatureCase

ValueDescriptionCaption
001PosReceipt (QR code)
QR code content according to Portaria n.º 195/2020. Format: QR code. The caption contains the URL of the digital receipt. Must be printed.
Digital receipt URL
010ATCUD
ATCUD: <validation code>-<number>. Must be printed on every page.
(empty)
012Hash
Full document hash. Flagged Do not print; kept for audit purposes.
Hash
013HashPrint
Reserved for the four hash characters (positions 1, 11, 21, 31). Currently returned as part of 014.
014CertificationNo
<4 hash characters> - Processado por programa certificado n.º 3535/AT. Must be printed exactly as returned.
-----
015ReferenceForCreditNote
Reference to the source document: Referencia: <document> on invoices created from working documents, and Razão: Devolução with caption Referencia <document> on credit notes. Must be printed when returned.
(empty) or Referencia <document>
016PTAdditional
Additional mandatory texts: IVA incluido, Consumidor final, Origem: <document>, Este documento não serve de fatura (working documents), Cópia do documento original - FTM <series>/<number> (manual documents). Must be printed when returned.
(empty)
1 001InitialOperationReceipt (t = 1, flag 0001 archiving required)
Returned for the queue-start receipt.
Initial-operation receipt
1 002OutOfOperationReceipt (t = 1, flag 0001 archiving required)
Returned for the queue-stop receipt.
Out-of-operation receipt

Table 3. SignatureCase (sss) values of ftSignatureType for Portugal.

See Receipt Printing for the print requirements of each signature item.