# Processing Flow

When the form is submitted the system performs the following steps:

1. **Determine Page**: Identify which page the submitted data belongs to.
2. **Precondition Check**: Verify the page's preconditions. If preconditions are not met, the user is redirected to the appropriate page.
3. **Data Validation**: Validate the submitted data according to the page rules.
   * In case of invalid data, return error messages
   * If data is valid, update the checkout state
4. **Apply Campaigns**: After data validation, recalculate applicable campaigns and discounts.
5. Determine Next Page: After a successful operation, the response includes the next page information within the page context, indicating which step the user should proceed to.


---

# 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://apidocs.akinon.com/commerce-openapis/checkout/actions-performed-on-checkout-post-requests/processing-flow.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.
