> For the complete documentation index, see [llms.txt](https://docs.opencityitalia.it/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.opencityitalia.it/sviluppatori-e-partner-tecnologici/integrazioni/integrazione-con-intermediari-di-pagamento-pagopa/gli-stati-di-un-pagamento.md).

# Gli stati di un pagamento

```mermaid
---
title: Pagamento
---
stateDiagram-v2
    [*] --> CREATION_PENDING
    CREATION_PENDING --> CREATION_FAILED
    CREATION_FAILED --> [*]
    CREATION_PENDING --> PAYMENT_PENDING
    PAYMENT_PENDING --> PAYMENT_STARTED
    PAYMENT_PENDING --> CANCELED
    PAYMENT_PENDING --> COMPLETE
    PAYMENT_PENDING --> EXPIRED
    PAYMENT_STARTED --> EXPIRED
    PAYMENT_STARTED --> COMPLETE
    CANCELED --> [*]
    COMPLETE --> [*]
    EXPIRED --> [*]
```

<table><thead><tr><th width="267.3333333333333">STATO PAGAMENTO</th><th>DESCRIZIONE</th><th>NOTE</th></tr></thead><tbody><tr><td><code>CREATION_PENDING</code></td><td>pagamento in attesa di essere creato sull'IdP</td><td></td></tr><tr><td><code>CREATION_FAILED</code></td><td>pagamento di cui è fallita la creazione sull'IdP</td><td></td></tr><tr><td><code>PAYMENT_PENDING</code></td><td>pagamento creato sull'IdP e in attesa di essere eseguito dall'utente</td><td></td></tr><tr><td><code>PAYMENT_STARTED</code></td><td>procedura di pagamento iniziata dall'utente</td><td></td></tr><tr><td><code>COMPLETE</code></td><td>pagamento completato a seguito di conferma dalI'dP</td><td></td></tr><tr><td><code>PAYMENT_FAILED</code></td><td>pagamento fallito a causa di scadenza del termine ultimo entro cui doveva essere eseguito</td><td><p>nei proxy sviluppati questo stato non è quasi mai stato</p><p>utilizzato</p></td></tr><tr><td><code>CANCELED</code></td><td>pagamento annullato</td><td></td></tr><tr><td><code>EXPIRED</code></td><td>pagamento scaduto</td><td></td></tr></tbody></table>


---

# 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:

```
GET https://docs.opencityitalia.it/sviluppatori-e-partner-tecnologici/integrazioni/integrazione-con-intermediari-di-pagamento-pagopa/gli-stati-di-un-pagamento.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.
