> For the complete documentation index, see [llms.txt](https://docs.2checkout.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.2checkout.com/soap-api-reference/soap-api-6.0/api-requests/order-search-options.md).

# Order search options

Use the **orderSearchOptions** object to configure your search order options via SOAP API 6.0.

## Request parameters

| Parameter           | Type / Description                                                                                                                                                                                                                                      |
| ------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
| `ApproveStatus`     | <p><strong>Optional (string)</strong><br>The desired approved status. Available values: WAITING, OK, FRAUD, INVALIDDATA.</p>                                                                                                                            |
| `Newer`             | <p><strong>Optional (string)</strong><br>Needed timestamp. If not provided, will return by default the data for the last 7 days.</p>                                                                                                                    |
| `Status`            | <p><strong>Optional (string)</strong><br>Order status. Some of the available options are COMPLETE, PENDING, CANCELED, REFUND.</p>                                                                                                                       |
| `StartDate`         | <p><strong>Optional (string)</strong><br>Start date in format Y-m-d. Will overwrite Newer if provided.</p>                                                                                                                                              |
| `EndDate`           | <p><strong>Optional (string)</strong><br>End date in format Y-m-d.</p>                                                                                                                                                                                  |
| `PartnerOrders`     | <p><strong>Optional (boolean)</strong><br>Decide if it will also include partner orders.</p>                                                                                                                                                            |
| `ExternalRefNo`     | <p><strong>Optional (string)</strong><br>The external reference number of the order.</p>                                                                                                                                                                |
| `IncludeTestOrders` | <p><strong>Optional (string)</strong></p><p>Should test orders be included in the result:</p><p>Values:</p><ul><li>YES -  test orders are included</li><li>NO - test orders are not included</li><li>ONLY - only the test orders are included</li></ul> |
| `Pagination`        | <p><strong>Optional (object)</strong><br>Existing shipping class object with the structure detailed below.</p>                                                                                                                                          |
| `Limit`             | <p><strong>Optional (int)</strong><br>The number of results to be returned.</p>                                                                                                                                                                         |
| `Page`              | <p><strong>Optional (int)</strong><br>The page number.</p>                                                                                                                                                                                              |


---

# 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, and the optional `goal` query parameter:

```
GET https://docs.2checkout.com/soap-api-reference/soap-api-6.0/api-requests/order-search-options.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
