# 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: 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.2checkout.com/soap-api-reference/soap-api-6.0/api-requests/order-search-options.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.
