> For the complete documentation index, see [llms.txt](https://docs.pagopa.it/avviso-pagamento/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.pagopa.it/avviso-pagamento/allegato-2/specifiche-tecniche/dati-per-il-pagamento/codice-qr.md).

# Codice QR

La sezione [Dati per il pagamento](/avviso-pagamento/allegato-2/specifiche-tecniche/dati-per-il-pagamento.md) prevede l'utilizzo del codice QR per rendere l'esperienza di pagamento più immediata, evitando cioè di dover inserire a mano i dati dell'avviso.

Il codice QR è definito dallo standard [ISO/IEC 18004:2015](https://www.iso.org/standard/62021.html).

### Struttura della stringa

La stringa deve obbligatoriamente seguire la seguente struttura:

```xml
<CODICE IDENTIFICATIVO>|<VERSIONE>|<CODICE AVVISO>|<CODICE FISCALE ENTE CREDITORE>|<IMPORTO>
```

Le varie porzioni sono separate dal simbolo `|`

### Esempio

```
PAGOPA|002|000000000000000000|00000000000|9999
```

{% hint style="info" %}
Online trovi numerosi servizi per generare e testare i codici QR.
{% endhint %}

## Specifiche

### Codice identificativo

{% tabs %}
{% tab title="Contenuto" %}
PAGOPA
{% endtab %}

{% tab title="Tipo" %}
Testo fisso
{% endtab %}

{% tab title="Lunghezza" %}
6 caratteri
{% endtab %}
{% endtabs %}

### Versione

{% tabs %}
{% tab title="Contenuto" %}
002
{% endtab %}

{% tab title="Tipo" %}
Testo fisso
{% endtab %}

{% tab title="Lunghezza" %}
3 caratteri
{% endtab %}
{% endtabs %}

### Codice Avviso

{% tabs %}
{% tab title="Contenuto" %}
Codice Avviso, composto dalla concatenazione di AUX Digit, Application Code e Codice IUV
{% endtab %}

{% tab title="Tipo" %}
Stringa
{% endtab %}

{% tab title="Lunghezza" %}
18 caratteri
{% endtab %}
{% endtabs %}

### Codice Fiscale Ente Creditore

{% tabs %}
{% tab title="Contenuto" %}
Codice Fiscale dell'Ente Creditore
{% endtab %}

{% tab title="Tipo" %}
Stringa
{% endtab %}

{% tab title="Lunghezza" %}
11 caratteri
{% endtab %}
{% endtabs %}

### Importo

{% tabs %}
{% tab title="Contenuto" %}
Importo del pagamento, in centesimi di euro
{% endtab %}

{% tab title="Tipo" %}
Stringa
{% endtab %}

{% tab title="Lunghezza" %}
Minimo 2, massimo 11 caratteri
{% endtab %}
{% endtabs %}

## Caratteristiche tecniche

Nella tabella sottostante sono riportate le caratteristiche tecniche che devono essere applicate nella generazione del codice QR.

| Caratteristica | Valore da utilizzare          |
| -------------- | ----------------------------- |
| Symbol version | 4                             |
| Modules        | 33x33                         |
| Modules width  | 3 pixels                      |
| ECC level      | M (correzione errore max 15%) |
| Character set  | UTF-8                         |


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://docs.pagopa.it/avviso-pagamento/allegato-2/specifiche-tecniche/dati-per-il-pagamento/codice-qr.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
