> For the complete documentation index, see [llms.txt](https://docs.docbits.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.docbits.com/administration-and-setup/settings/document-processing/e-documents/validation-rules/validation-next-step-and-reject.md). Agents can also search and read this documentation through its [MCP server](https://docs.docbits.com/~gitbook/mcp).

# Next step and reject a document

After you read the [validation report](https://docs.docbits.com/administration-and-setup/settings/document-processing/e-documents/validation-rules/validation-report.md), the report tells you what to do. You can also reject the document.

## What to do next

<figure><img src="https://578966019-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT2n2w4uDCJvv7CJ5zrdk%2Fuploads%2Fgit-blob-0ed3c993a39f5407bf8efce616154c4fb1bf574f%2Feinvoice-report-next-step.png?alt=media" alt="The assessment, the next step and the buttons at the end of the report"><figcaption><p>The assessment, the next step and the buttons at the end of the report</p></figcaption></figure>

The **Assessment** says in one sentence whether the invoice conforms. The block **Next step** tells you what to do:

| Result                 | Next step                                                                                              |
| ---------------------- | ------------------------------------------------------------------------------------------------------ |
| At least one **error** | Ask the sender for a corrected invoice, or reject the document. A corrected invoice is a new document. |
| Only **warnings**      | You can continue with the document.                                                                    |

The buttons at the end of the report:

* **Reject document**: opens the reject dialog (see below).
* **Report (HTML)** and **Report (XML)**: download the report, for example to send it to the supplier.
* **Close** (or **Back to document**): return to the document.

## Reject a document

<figure><img src="https://578966019-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FT2n2w4uDCJvv7CJ5zrdk%2Fuploads%2Fgit-blob-4340cbfd51123e5e797f73ed378e1d6a2cc32b36%2Feinvoice-reject-dialog.png?alt=media" alt="The reason is filled from the errors in the report. You can edit it."><figcaption><p>The reason is filled from the errors in the report. You can edit it.</p></figcaption></figure>

1. In the report, select **Reject document**.
2. Check the **Reason**. DocBits fills it from the errors in the report. You can edit the text.
3. Select **Reject document** to confirm. The status changes to **Rejected**. The reason is saved as a note, and the report stays with the document.

Select **Cancel** to keep the document as it is.

> Only users who are allowed to edit documents see **Reject document**. The button is hidden when the document is already rejected or completed.


---

# 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.docbits.com/administration-and-setup/settings/document-processing/e-documents/validation-rules/validation-next-step-and-reject.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.
