# Source: https://polar.sh/docs/features/orders.md

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

# Orders & Subscriptions

## Sales

<img className="block dark:hidden" src="https://mintcdn.com/polar/fnujBPxaFvfkZfB0/assets/features/orders/overview.light.png?fit=max&auto=format&n=fnujBPxaFvfkZfB0&q=85&s=fe0b6b72270e05881b7b37758edcb85a" data-og-width="3018" width="3018" data-og-height="1706" height="1706" data-path="assets/features/orders/overview.light.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/polar/fnujBPxaFvfkZfB0/assets/features/orders/overview.light.png?w=280&fit=max&auto=format&n=fnujBPxaFvfkZfB0&q=85&s=e71aaf8816e96b397bf06ab3e2cdab20 280w, https://mintcdn.com/polar/fnujBPxaFvfkZfB0/assets/features/orders/overview.light.png?w=560&fit=max&auto=format&n=fnujBPxaFvfkZfB0&q=85&s=8233141eafba9efb803fba4939a8cb33 560w, https://mintcdn.com/polar/fnujBPxaFvfkZfB0/assets/features/orders/overview.light.png?w=840&fit=max&auto=format&n=fnujBPxaFvfkZfB0&q=85&s=6a7195f46cb2642c85b09ffcd165822b 840w, https://mintcdn.com/polar/fnujBPxaFvfkZfB0/assets/features/orders/overview.light.png?w=1100&fit=max&auto=format&n=fnujBPxaFvfkZfB0&q=85&s=4009e51d6778b9c54aa83a9266681823 1100w, https://mintcdn.com/polar/fnujBPxaFvfkZfB0/assets/features/orders/overview.light.png?w=1650&fit=max&auto=format&n=fnujBPxaFvfkZfB0&q=85&s=439681c34e80f22486bdb6584492c7b6 1650w, https://mintcdn.com/polar/fnujBPxaFvfkZfB0/assets/features/orders/overview.light.png?w=2500&fit=max&auto=format&n=fnujBPxaFvfkZfB0&q=85&s=016bfa3f8d6f5d3464f3a3d2c12d0c2e 2500w" />

<img className="hidden dark:block" src="https://mintcdn.com/polar/fnujBPxaFvfkZfB0/assets/features/orders/overview.dark.png?fit=max&auto=format&n=fnujBPxaFvfkZfB0&q=85&s=737954c20bfae390ecceaca168331728" data-og-width="3012" width="3012" data-og-height="1706" height="1706" data-path="assets/features/orders/overview.dark.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/polar/fnujBPxaFvfkZfB0/assets/features/orders/overview.dark.png?w=280&fit=max&auto=format&n=fnujBPxaFvfkZfB0&q=85&s=889bd833b0c6d24c4d20fe067e5ef44c 280w, https://mintcdn.com/polar/fnujBPxaFvfkZfB0/assets/features/orders/overview.dark.png?w=560&fit=max&auto=format&n=fnujBPxaFvfkZfB0&q=85&s=7f59e12f70c35c1a92bb72f28daac6f6 560w, https://mintcdn.com/polar/fnujBPxaFvfkZfB0/assets/features/orders/overview.dark.png?w=840&fit=max&auto=format&n=fnujBPxaFvfkZfB0&q=85&s=ea77b1ae5336918db227d5d7e87060d6 840w, https://mintcdn.com/polar/fnujBPxaFvfkZfB0/assets/features/orders/overview.dark.png?w=1100&fit=max&auto=format&n=fnujBPxaFvfkZfB0&q=85&s=3a898822f08437fde39a7c2632a1d28f 1100w, https://mintcdn.com/polar/fnujBPxaFvfkZfB0/assets/features/orders/overview.dark.png?w=1650&fit=max&auto=format&n=fnujBPxaFvfkZfB0&q=85&s=f63178461b550cbc85e10b586392f62b 1650w, https://mintcdn.com/polar/fnujBPxaFvfkZfB0/assets/features/orders/overview.dark.png?w=2500&fit=max&auto=format&n=fnujBPxaFvfkZfB0&q=85&s=ef3a70bcbafee15fb6f22e88fd40da2b 2500w" />

The sales view shows you all sales in a paginated list.

## Order & Subscription Details

<img className="block dark:hidden" src="https://mintcdn.com/polar/fnujBPxaFvfkZfB0/assets/features/orders/detail.light.png?fit=max&auto=format&n=fnujBPxaFvfkZfB0&q=85&s=6523d1c46bff6d54f477c93c4aba4ac4" data-og-width="3586" width="3586" data-og-height="2064" height="2064" data-path="assets/features/orders/detail.light.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/polar/fnujBPxaFvfkZfB0/assets/features/orders/detail.light.png?w=280&fit=max&auto=format&n=fnujBPxaFvfkZfB0&q=85&s=79b2ee7e67d0871211bf44b28f31644e 280w, https://mintcdn.com/polar/fnujBPxaFvfkZfB0/assets/features/orders/detail.light.png?w=560&fit=max&auto=format&n=fnujBPxaFvfkZfB0&q=85&s=56d87ffddd6c188cfb477791452b7b4b 560w, https://mintcdn.com/polar/fnujBPxaFvfkZfB0/assets/features/orders/detail.light.png?w=840&fit=max&auto=format&n=fnujBPxaFvfkZfB0&q=85&s=3b9a46077f1b5cee757f9397d039f703 840w, https://mintcdn.com/polar/fnujBPxaFvfkZfB0/assets/features/orders/detail.light.png?w=1100&fit=max&auto=format&n=fnujBPxaFvfkZfB0&q=85&s=21c96d19451a20f440590133d3660758 1100w, https://mintcdn.com/polar/fnujBPxaFvfkZfB0/assets/features/orders/detail.light.png?w=1650&fit=max&auto=format&n=fnujBPxaFvfkZfB0&q=85&s=87169c7e4f4a0b97373c4bf491436944 1650w, https://mintcdn.com/polar/fnujBPxaFvfkZfB0/assets/features/orders/detail.light.png?w=2500&fit=max&auto=format&n=fnujBPxaFvfkZfB0&q=85&s=3def73e428c7babb6561a21d5c2490db 2500w" />

<img className="hidden dark:block" src="https://mintcdn.com/polar/fnujBPxaFvfkZfB0/assets/features/orders/detail.dark.png?fit=max&auto=format&n=fnujBPxaFvfkZfB0&q=85&s=8e6249c99bc8a0de9692a8a2552d68bd" data-og-width="3582" width="3582" data-og-height="2062" height="2062" data-path="assets/features/orders/detail.dark.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/polar/fnujBPxaFvfkZfB0/assets/features/orders/detail.dark.png?w=280&fit=max&auto=format&n=fnujBPxaFvfkZfB0&q=85&s=9615ad7f2aa387ec580eb4f4f99d533f 280w, https://mintcdn.com/polar/fnujBPxaFvfkZfB0/assets/features/orders/detail.dark.png?w=560&fit=max&auto=format&n=fnujBPxaFvfkZfB0&q=85&s=40b4205341eaa10b8413764237a3dc2a 560w, https://mintcdn.com/polar/fnujBPxaFvfkZfB0/assets/features/orders/detail.dark.png?w=840&fit=max&auto=format&n=fnujBPxaFvfkZfB0&q=85&s=acc68b0686d95652492dc15ec2e33b76 840w, https://mintcdn.com/polar/fnujBPxaFvfkZfB0/assets/features/orders/detail.dark.png?w=1100&fit=max&auto=format&n=fnujBPxaFvfkZfB0&q=85&s=0d4a1563fe9fe66fa81c461143c5def7 1100w, https://mintcdn.com/polar/fnujBPxaFvfkZfB0/assets/features/orders/detail.dark.png?w=1650&fit=max&auto=format&n=fnujBPxaFvfkZfB0&q=85&s=6e4ce9645f34c1fdeb2149e70612b460 1650w, https://mintcdn.com/polar/fnujBPxaFvfkZfB0/assets/features/orders/detail.dark.png?w=2500&fit=max&auto=format&n=fnujBPxaFvfkZfB0&q=85&s=93369b6e2b0aafccb25cfbd05d26f025 2500w" />

Each sale has metadata attached to it. Common properties like

* Amount
* Tax Amount
* Invoices
* Customer
  * Basic Customer Details
  * Past Orders

## Checkouts

<img className="block dark:hidden" src="https://mintcdn.com/polar/fnujBPxaFvfkZfB0/assets/features/orders/checkouts.light.png?fit=max&auto=format&n=fnujBPxaFvfkZfB0&q=85&s=ae81bc0afa3cbb1eac266c1c487b467f" data-og-width="3840" width="3840" data-og-height="2403" height="2403" data-path="assets/features/orders/checkouts.light.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/polar/fnujBPxaFvfkZfB0/assets/features/orders/checkouts.light.png?w=280&fit=max&auto=format&n=fnujBPxaFvfkZfB0&q=85&s=dda034f0aac14f6433420a16d47469cc 280w, https://mintcdn.com/polar/fnujBPxaFvfkZfB0/assets/features/orders/checkouts.light.png?w=560&fit=max&auto=format&n=fnujBPxaFvfkZfB0&q=85&s=a0712f5e452032a07d0277b9127cdc3f 560w, https://mintcdn.com/polar/fnujBPxaFvfkZfB0/assets/features/orders/checkouts.light.png?w=840&fit=max&auto=format&n=fnujBPxaFvfkZfB0&q=85&s=6ae741beae2cc2771f811bb77dcbaef4 840w, https://mintcdn.com/polar/fnujBPxaFvfkZfB0/assets/features/orders/checkouts.light.png?w=1100&fit=max&auto=format&n=fnujBPxaFvfkZfB0&q=85&s=0ba869459fa97197554e24ca34ee48f7 1100w, https://mintcdn.com/polar/fnujBPxaFvfkZfB0/assets/features/orders/checkouts.light.png?w=1650&fit=max&auto=format&n=fnujBPxaFvfkZfB0&q=85&s=9216bfdef2347effa99d1b49164f76a8 1650w, https://mintcdn.com/polar/fnujBPxaFvfkZfB0/assets/features/orders/checkouts.light.png?w=2500&fit=max&auto=format&n=fnujBPxaFvfkZfB0&q=85&s=a977560848eacecf32e77e079a689071 2500w" />

<img className="hidden dark:block" src="https://mintcdn.com/polar/fnujBPxaFvfkZfB0/assets/features/orders/checkouts.dark.png?fit=max&auto=format&n=fnujBPxaFvfkZfB0&q=85&s=24c3d3dae78336a5df6f137c3b9361cb" data-og-width="3840" width="3840" data-og-height="2403" height="2403" data-path="assets/features/orders/checkouts.dark.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/polar/fnujBPxaFvfkZfB0/assets/features/orders/checkouts.dark.png?w=280&fit=max&auto=format&n=fnujBPxaFvfkZfB0&q=85&s=cfd0379b58face2c354f35d45327fcd5 280w, https://mintcdn.com/polar/fnujBPxaFvfkZfB0/assets/features/orders/checkouts.dark.png?w=560&fit=max&auto=format&n=fnujBPxaFvfkZfB0&q=85&s=90a0ee60d259b24fb55f3e84f7a75898 560w, https://mintcdn.com/polar/fnujBPxaFvfkZfB0/assets/features/orders/checkouts.dark.png?w=840&fit=max&auto=format&n=fnujBPxaFvfkZfB0&q=85&s=7033a3f522e6dd4b63177c12a952f7bc 840w, https://mintcdn.com/polar/fnujBPxaFvfkZfB0/assets/features/orders/checkouts.dark.png?w=1100&fit=max&auto=format&n=fnujBPxaFvfkZfB0&q=85&s=16dec8bdc47655a3e6911da315911961 1100w, https://mintcdn.com/polar/fnujBPxaFvfkZfB0/assets/features/orders/checkouts.dark.png?w=1650&fit=max&auto=format&n=fnujBPxaFvfkZfB0&q=85&s=b2c514226bdf913c25946fdcf5c85b4e 1650w, https://mintcdn.com/polar/fnujBPxaFvfkZfB0/assets/features/orders/checkouts.dark.png?w=2500&fit=max&auto=format&n=fnujBPxaFvfkZfB0&q=85&s=ca30d6c0dc46933a3b3d5793e0b3e601 2500w" />

You can also have an overview of all checkout sessions. You can filter them by customer email, status and product.

A checkout can be in the following states:

* Open: The checkout session is open and waiting for the customer to complete the payment.
* Confirmed: The customer clicked the **Pay** or **Subscribe** button and the payment is being processed.
* Succeeded: The payment was successful and the order was created.
* Expired: The checkout session expired and the customer can no longer complete it. A new checkout session must be created.

If you click on a Checkout, you can have more details on the **payment attempts**, in particular, why a payment has failed or has been declined.

<img className="block dark:hidden" src="https://mintcdn.com/polar/fnujBPxaFvfkZfB0/assets/features/orders/checkout.light.png?fit=max&auto=format&n=fnujBPxaFvfkZfB0&q=85&s=4672cafc0b218d34a55c5cc006fdb153" data-og-width="3840" width="3840" data-og-height="2403" height="2403" data-path="assets/features/orders/checkout.light.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/polar/fnujBPxaFvfkZfB0/assets/features/orders/checkout.light.png?w=280&fit=max&auto=format&n=fnujBPxaFvfkZfB0&q=85&s=bcf9dd8baf9fae7b84d2d046e9b4f811 280w, https://mintcdn.com/polar/fnujBPxaFvfkZfB0/assets/features/orders/checkout.light.png?w=560&fit=max&auto=format&n=fnujBPxaFvfkZfB0&q=85&s=1ac73955d12edfb9a605799d246d5237 560w, https://mintcdn.com/polar/fnujBPxaFvfkZfB0/assets/features/orders/checkout.light.png?w=840&fit=max&auto=format&n=fnujBPxaFvfkZfB0&q=85&s=4c931b7de4121f568d1ebefe90f42792 840w, https://mintcdn.com/polar/fnujBPxaFvfkZfB0/assets/features/orders/checkout.light.png?w=1100&fit=max&auto=format&n=fnujBPxaFvfkZfB0&q=85&s=87c8d57825f9c084f1b3664402629a23 1100w, https://mintcdn.com/polar/fnujBPxaFvfkZfB0/assets/features/orders/checkout.light.png?w=1650&fit=max&auto=format&n=fnujBPxaFvfkZfB0&q=85&s=21eb74aed158f9b11a2015bcfa763039 1650w, https://mintcdn.com/polar/fnujBPxaFvfkZfB0/assets/features/orders/checkout.light.png?w=2500&fit=max&auto=format&n=fnujBPxaFvfkZfB0&q=85&s=d51d0053a32db9f505742b4d4203854c 2500w" />

<img className="hidden dark:block" src="https://mintcdn.com/polar/fnujBPxaFvfkZfB0/assets/features/orders/checkout.dark.png?fit=max&auto=format&n=fnujBPxaFvfkZfB0&q=85&s=d8ebc400902b1179700e7348745793e8" data-og-width="3840" width="3840" data-og-height="2403" height="2403" data-path="assets/features/orders/checkout.dark.png" data-optimize="true" data-opv="3" srcset="https://mintcdn.com/polar/fnujBPxaFvfkZfB0/assets/features/orders/checkout.dark.png?w=280&fit=max&auto=format&n=fnujBPxaFvfkZfB0&q=85&s=5b1783d55724d4260dab83ba63b66a77 280w, https://mintcdn.com/polar/fnujBPxaFvfkZfB0/assets/features/orders/checkout.dark.png?w=560&fit=max&auto=format&n=fnujBPxaFvfkZfB0&q=85&s=a0cf5741f10810ab68d2dd1962511895 560w, https://mintcdn.com/polar/fnujBPxaFvfkZfB0/assets/features/orders/checkout.dark.png?w=840&fit=max&auto=format&n=fnujBPxaFvfkZfB0&q=85&s=189ed0cb4d1ec19a9daf370f778dfea1 840w, https://mintcdn.com/polar/fnujBPxaFvfkZfB0/assets/features/orders/checkout.dark.png?w=1100&fit=max&auto=format&n=fnujBPxaFvfkZfB0&q=85&s=115d82a958ab384611b9fa868566d104 1100w, https://mintcdn.com/polar/fnujBPxaFvfkZfB0/assets/features/orders/checkout.dark.png?w=1650&fit=max&auto=format&n=fnujBPxaFvfkZfB0&q=85&s=479d59cc8717b0f6330996e2f04915dd 1650w, https://mintcdn.com/polar/fnujBPxaFvfkZfB0/assets/features/orders/checkout.dark.png?w=2500&fit=max&auto=format&n=fnujBPxaFvfkZfB0&q=85&s=af86f31f76639dc114a243f54495601f 2500w" />