# State diagram

The following diagram shows the state (status) transition process of a billing statement in the Marketplace Platform:

<figure><img src="/files/9a0rxU1njoqff6BZFkYC" alt=""><figcaption><p>The state transition diagram of a statement.</p></figcaption></figure>

<table data-full-width="false"><thead><tr><th width="152">State</th><th>Definition</th></tr></thead><tbody><tr><td><strong>Generated</strong></td><td>The statement has been generated.</td></tr><tr><td><strong>Queued</strong></td><td>The statement has been queued and is awaiting the next processing step.</td></tr><tr><td><strong>Pending</strong></td><td>The statement is being processed or reviewed.</td></tr><tr><td><strong>Issued</strong></td><td>The statement has been finalized and sent to the intended recipients.</td></tr><tr><td><strong>Completed</strong></td><td>The statement process is finished successfully. No further actions are required.</td></tr><tr><td><strong>Error</strong></td><td>A processing issue occurred with the statement.</td></tr><tr><td><strong>Cancelled</strong></td><td>The statement process was cancelled and will not proceed further.</td></tr></tbody></table>


---

# 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.platform.softwareone.com/developer-resources/rest-api/billing-api/statement/state-diagram.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.
