> For the complete documentation index, see [llms.txt](https://docs.platform.softwareone.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.platform.softwareone.com/developer-resources/rest-api/billing-api/statement/state-diagram.md).

# State diagram

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

<figure><img src="https://1674205915-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FZ5DNbniz33mXCZoO62Rm%2Fuploads%2Fot8WyuATdgbcjqp3WB3q%2Fimage.png?alt=media&amp;token=c543c9f3-9bde-4361-bb7d-5c5fde3ab122" 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
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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.platform.softwareone.com/developer-resources/rest-api/billing-api/statement/state-diagram.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
