> ## Documentation Index
> Fetch the complete documentation index at: https://swish.app/docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Orders

> Let signed-in customers view their order history directly inside the Swish drawer.

The orders feature displays a customer's Shopify order history inside the drawer. Customers can browse past orders, view individual order details, and access order actions without leaving the storefront.

## Disabling orders

Orders are enabled by default. To hide the orders view, disable its navigation item in the drawer footer:

```js theme={null}
window.SwishOptions = {
  ui: {
    drawer: {
      sections: [
        {
          type: "drawer-footer",
          options: {
            items: [
              { id: "home", enabled: true },
              { id: "saves", enabled: true },
              { id: "notifications", enabled: true },
              { id: "orders", enabled: false },
              { id: "profile", enabled: true },
            ],
          },
        },
      ],
    },
  },
};
```

See the [Drawer](https://swish.app/docs/guides/customize/views/drawer.md) guide for the full footer configuration.

## How it works

When a signed-in customer opens the orders view, Swish fetches their order history and renders each order as a summary card showing line-item images, order number, and fulfillment status.

Tapping an order opens the order detail view. From there, the customer can access an order menu with actions like reordering or viewing the order status page.

Customers who are not signed in see a sign-in prompt instead of the order list.

## SDK intents

The orders feature exposes three intents:

| Intent | Description |
| - | - |
| `view:orders` | Open the orders list in the drawer. |
| `view:order` | Open a specific order by ID. |
| `view:order-menu` | Open the action menu for an order. |

```js theme={null}
// Open the orders list
swish.intents.invoke("view:orders");

// Open a specific order
swish.intents.invoke("view:order", { orderId: "6094889812345" });
```

## Further reading

* [Intents](https://swish.app/docs/guides/customize/intents.md) for intent behavior settings
* [Configuration reference](https://swish.app/docs/references/sdk/configuration.md) for the complete options list
* [Intents reference](https://swish.app/docs/references/sdk/intents.md) for all available intents


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.