> ## Documentation Index
> Fetch the complete documentation index at: https://polar-rishi-raj-jain-patch-2.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

# Orders & Subscriptions

## Sales

<img className="block dark:hidden" src="https://mintlify.s3.us-west-1.amazonaws.com/polar-rishi-raj-jain-patch-2/assets/features/orders/overview.light.png" />

<img className="hidden dark:block" src="https://mintlify.s3.us-west-1.amazonaws.com/polar-rishi-raj-jain-patch-2/assets/features/orders/overview.dark.png" />

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

## Order & Subscription Details

<img className="block dark:hidden" src="https://mintlify.s3.us-west-1.amazonaws.com/polar-rishi-raj-jain-patch-2/assets/features/orders/detail.light.png" />

<img className="hidden dark:block" src="https://mintlify.s3.us-west-1.amazonaws.com/polar-rishi-raj-jain-patch-2/assets/features/orders/detail.dark.png" />

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://mintlify.s3.us-west-1.amazonaws.com/polar-rishi-raj-jain-patch-2/assets/features/orders/checkouts.light.png" />

<img className="hidden dark:block" src="https://mintlify.s3.us-west-1.amazonaws.com/polar-rishi-raj-jain-patch-2/assets/features/orders/checkouts.dark.png" />

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://mintlify.s3.us-west-1.amazonaws.com/polar-rishi-raj-jain-patch-2/assets/features/orders/checkout.light.png" />

<img className="hidden dark:block" src="https://mintlify.s3.us-west-1.amazonaws.com/polar-rishi-raj-jain-patch-2/assets/features/orders/checkout.dark.png" />
