# Codice QR

La sezione [Dati per il pagamento](/avviso-pagamento/avvisi-3.0.0/struttura/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: 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/avviso-pagamento/avvisi-3.0.0/struttura/specifiche-tecniche/dati-per-il-pagamento/codice-qr.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.
