# archivedOrders (https://developer.godaddy.com/en/docs/references/rest/orders/order/queries/archivedOrders)

***

title: archivedOrders
description: "Deprecated: We no longer archive orders"
full: true
----------

query

Requires `commerce.order:read`.

Deprecated: We no longer archive orders

Deprecated: We no longer archive orders

## Required headers

| Header       | Required | Description                                                                                                                     |
| ------------ | -------- | ------------------------------------------------------------------------------------------------------------------------------- |
| `x-store-id` | Yes      | ID of the store the operation targets. Omitting it returns HTTP 200 with a GraphQL error: `extensions.code: "UNAUTHENTICATED"`. |

Go to [Authentication](https://developer.godaddy.com/docs/api-users/auth) for credential setup.

## Arguments

* `sortOrder` `SortOrder` **optional** Default: `"ASC"`.
* `before` `ID` **optional** — Look for entries before that cursor
* `after` `ID` **optional** — Look for entries after that cursor
* `first` `Int` **optional** — Look for the first entries (paginate forward)
* `last` `Int` **optional** — Look for the last entries (paginate backward)

## Possible returns

* `QueryArchivedOrdersConnection` `QueryArchivedOrdersConnection`

- `edges` `[QueryArchivedOrdersConnectionEdge]` **nullable**
- `pageInfo` `PageInfo!` **non-null**
