# TARI-TEFA ordinaria 2023

Per far transitare sulla piattaforma pagoPA le informazioni utili alla riconciliazione TARI-TEFA ordinaria per l'anno 2023 è necessario sfruttare la struttura dei *metadata* disponibile nella primitiva *paGetPayment*, che sarà poi inoltrata a tutti i destinatari della receipt tramite la *paSendRT.*

<figure><img src="/files/eB2YTzbR9ayys9Sx9KDu" alt=""><figcaption></figcaption></figure>

All'interno del tag *metadata* dovrà essere inserita una struttura per ogni *transfer* che compone il *payment*, così composta

```xml
<metadata>
  <mapEntry>
    <key>TARI-TEFA-[idTransfer]</key>
    <value>[codice catastale Ente]|[anno di riferimento]|[codice tributo]</value>
  </mapEntry>
</metadata>
```

Il tag *key* dovrà contenere la concatenazione della costante *TARI-TEFA-* e l'id del *transfer* a cui si fa riferimento, mentre il tag *value* sarà composto dalla concatenazione, con il separatore | (pipe), dei seguenti valori:

* *codice catastale Ente:* corrisponde alla sezione *codice ente/codice comune* presente nel modello F24
* *anno di riferimento:* corrisponde alla sezione *anno di riferimento* presente nel modello F24
* *codice tributo:* corrisponde alla sezione *codice tributo* presente nel modello F24

Esempio di *paGetPayment* response

```xml
<soapenv:Envelope>
  <soapenv:Header />
  <soapenv:Body>
    <paf:paGetPaymentRes>
      <outcome>OK</outcome>
      <data>
        <creditorReferenceId>11111111112222222</creditorReferenceId>
        <paymentAmount>120.00</paymentAmount>
        <dueDate>2023-05-31</dueDate>
        <retentionDate>2023-03-31T23:59:59</retentionDate>
        <lastPayment>0</lastPayment>
        <description>test</description>
        <companyName>company EC</companyName>
        <officeName>office EC</officeName>
        <debtor>
          <uniqueIdentifier>
            <entityUniqueIdentifierType>F</entityUniqueIdentifierType>
            <entityUniqueIdentifierValue>JHNDOE00A01F205N</entityUniqueIdentifierValue>
          </uniqueIdentifier>
          <fullName>John Doe</fullName>
        </debtor>
        <transferList>
          <transfer>
            <idTransfer>1</idTransfer>
            <transferAmount>100.00</transferAmount>
            <fiscalCodePA>77777777777</fiscalCodePA>
            <IBAN>IT0000000000000000000000000</IBAN>
            <remittanceInformation>TARI</remittanceInformation>
            <transferCategory>0101101IM</transferCategory>
          </transfer>
          <transfer>
            <idTransfer>2</idTransfer>
            <transferAmount>20.00</transferAmount>
            <fiscalCodePA>77777777778</fiscalCodePA>
            <IBAN>IT0000000000000000000000001</IBAN>
            <remittanceInformation>TEFA</remittanceInformation>
            <transferCategory>0201102IM</transferCategory>
          </transfer>
        </transferList>
        <metadata>
          <mapEntry>
            <key>TARI-TEFA-1</key>
            <value>A000|2023|3944</value>
          </mapEntry>
          <mapEntry>
            <key>TARI-TEFA-2</key>
            <value>A000|2023|TEFA</value>
          </mapEntry>
        </metadata>
      </data>
    </paf:paGetPaymentRes>
  </soapenv:Body>
</soapenv:Envelope>
```


---

# 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://docs.pagopa.it/dizionario-dei-metadata/tari-tefa-ordinaria-2023.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.
