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

# Checkout

> Every checkout command in the Flexprice CLI, with flags, required fields and examples.

## create

Create checkout session

| Flag                     | Type   | Required |
| ------------------------ | ------ | -------- |
| `--action`               | string | yes      |
| `--cancel_url`           | string |          |
| `--customer_external_id` | string | yes      |
| `--failure_url`          | string |          |
| `--idempotency_key`      | string |          |
| `--payment_provider`     | string | yes      |
| `--success_url`          | string |          |

<Note>
  These fields are nested and cannot be set with flags. Use `--edit` to fill in a pre-built request body, or `--data @file.json`.

  * `configuration` (object)
  * `metadata` (object)
  * `payment_provider_config` (object)
</Note>

```sh theme={null}
flexprice checkout create --action=<value> --customer_external_id=<value> --payment_provider=<value>
```

## delete

Delete checkout session

```sh theme={null}
flexprice checkout delete
```

## retrieve

Get checkout session

```sh theme={null}
flexprice checkout retrieve
```
