# SAF-T (PT)

## Estrutura do SAF-T (PT) de contabilidade

A estrutura encontra-se regulada pela Portaria 302/2016 de 2 de dezembro ( [**PT**](https://info.portaldasfinancas.gov.pt/pt/informacao_fiscal/legislacao/diplomas_legislativos/Documents/Portaria_302_2016.pdf) | [**EN**](https://info.portaldasfinancas.gov.pt/pt/docs/Portug_tax_system/Documents/Ordinance_No_302_2016_of_the_2nd_December.pdf) ) e o respetivo schema XSD pode ser descarregado [**aqui**](https://info.portaldasfinancas.gov.pt/apps/saft-pt04/saftpt1.04_01.xsd).&#x20;

{% hint style="info" %}
Para mais informação pode aceder à área destinada ao SAF-T (PT) no [Portal das Finanças](https://info.portaldasfinancas.gov.pt/pt/apoio_contribuinte/SAFT_PT/Paginas/news-saf-t-pt.aspx).
{% endhint %}

| Índice | Elemento                                                                                                                                                      |
| ------ | ------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| 1.     | Cabeçalho (Header)                                                                                                                                            |
| 2.1.   | Tabela de código de contas ([GeneralLedgerAccounts](/informacao-tecnica/cryptosaf-t/elementos.md#2-1-tabela-de-codigos-de-contas-generalledgeraccounts))      |
| 2.2.   | Tabela de clientes ([Customer](/informacao-tecnica/cryptosaf-t/elementos.md#2-2-tabela-de-clientes-customer))                                                 |
| 2.3.   | Tabela de fornecedores ([Supplier](/informacao-tecnica/cryptosaf-t/elementos.md#2-3-tabela-de-fornecedores-supplier))                                         |
| 2.5.   | Tabela de impostos ([TaxTable](/informacao-tecnica/cryptosaf-t/elementos.md#2-5-tabela-de-impostos-taxtable))                                                 |
| 3.     | Movimentos contabilísticos ([GeneralLedgerEntries](/informacao-tecnica/cryptosaf-t/elementos.md#3-tabela-de-movimentos-contabilisticos-generalledgerentries)) |
| 4.4.   | Documentos de recibos emitidos ([Payments](/informacao-tecnica/cryptosaf-t/elementos.md#4-4-tabela-de-documentos-de-recibos-emitidos-payments))               |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://cryptosaft.assoft.org/informacao-tecnica/saf-t-pt.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
