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

# Checkout Sessions Overview

> Hosted payment pages with shareable URLs

## Checkout Sessions

A Checkout Session creates a hosted payment page with a shareable URL. The customer visits the URL, selects their mobile money operator, enters their phone number, and confirms the payment.

### Two Modes

1. **Items mode** — Pass a list of line items with quantities and unit prices
2. **Amount mode** — Pass a fixed total amount

<Warning>You must provide either `items` or `amount`, but not both.</Warning>

### Expiration

Sessions expire after 30 minutes by default. Use `expiresInMinutes` (5-1440) to customize.

### Endpoints

| Method | Path                                | Description      |
| ------ | ----------------------------------- | ---------------- |
| `POST` | `/v1/checkout/sessions`             | Create a session |
| `GET`  | `/v1/checkout/sessions/{id}`        | Get a session    |
| `GET`  | `/v1/checkout/sessions`             | List sessions    |
| `POST` | `/v1/checkout/sessions/{id}/expire` | Expire a session |
