---
# @generated by sylphx-gen. Do not edit.
title: "List checkout sessions"
description: "`money.checkout_sessions.list` (GET /v1/{parent}/checkout_sessions): Lists open or potentially recoverable checkouts for one exact subject and scope."
type: reference
product: payments
summary: "Lists open or potentially recoverable checkouts for one exact subject and scope."
nav: false
---

Lists open or potentially recoverable checkouts for one exact subject and scope.

- **Path** `GET https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/checkout_sessions`
- **Scope** `billing:read`
- **Effect** `read` — nothing is written.
- **Collection** [checkout_sessions](/docs/api/checkout_sessions)
- **Query** `filter`, `page_size`, `page_token`
- **Pagination** the answer carries `checkout_sessions` and, when there is more, `next_page_token`

## Request

| Field | Type | What it is |
| --- | --- | --- |
| `parent` | `string` | The environment whose sessions are listed. Required. |
| `filter` | `string` | An exact conjunction of subject_kind, subject_id, metadata_key, and metadata_value equality terms. |
| `page_size` | `int32` | The maximum number of matching sessions on this page. |
| `page_token` | `string` | Continue from the previous page for the same environment, mode and filter. |

## Response

| Field | Type | What it is |
| --- | --- | --- |
| `checkout_sessions` | `CheckoutSession[]` | The sessions in this page. Output only. |
| `next_page_token` | `string` | The continuation token, or empty at the end of the list. Output only. |

### CheckoutSession

| Field | Type | What it is |
| --- | --- | --- |
| `name` | `string` | `orgs/{org}/projects/{project}/envs/{env}/checkout_sessions/{checkout_session}`. |
| `uid` | `string` | `chk_<cell><ulid>`; never reused. Output only. |
| `meta` | `ResourceMeta` | Resource metadata. |
| `subject` | `Subject` | Who pays and is entitled. Required. |
| `line_items` | `LineItem[]` | What is bought: catalog prices by lookup key. One recurring price makes a subscription; one-time prices make an order. Required. |
| `success_url` | `string` | Where the buyer lands after paying; `{CHECKOUT_SESSION_ID}` is replaced by the processor's session id. HTTPS only. Required. |
| `cancel_url` | `string` | Where the buyer lands on cancel. HTTPS only. |
| `currency_code` | `string` | The currency to charge in, upper-case ISO 4217; default the processor's choice for the buyer among the prices' currencies. |
| `locale` | `string` | The page language, for example `en` or `zh-HK`; default automatic. |
| `metadata` | `map<string, string>` | Copied to the subscription or order, for example attribution (`utm_source`, `ref`). At most 20 keys. |
| `allow_promotion_codes` | `bool` | Whether the buyer may enter a promotion code. |
| `buyer_country_code` | `string` | Where the buyer is, upper-case ISO 3166-1 alpha-2, when the caller knows it (for example from the request's IP address). A country the environment's checkout policy denies is refused here, before any page is made, unless the policy lets a business buy. Not trusted for anything else: the billing address the buyer gives is checked again when the payment completes. |
| `shipping_country_codes` | `string[]` | Countries whose shipping address the hosted page collects, upper-case ISO 3166-1 alpha-2. Empty means no shipping address is collected. |
| `url` | `string` | The hosted page. Output only. |
| `state` | `string` | `open`, `complete`, or `expired`. Output only. |
| `expire_time` | `timestamp` | When the page stops accepting payment. Output only. |
| `processor_session_id` | `string` | The processor's session id. Output only. |
| `denied_reason` | `string` | Why a completed checkout was refused and refunded instead of delivered: `country_denied` (the billing country is on the checkout policy's list) or `country_unknown` (no billing country to check). Empty otherwise. Output only. |
| `billing_country_code` | `string` | The billing country the completed checkout was checked against, upper-case ISO 3166-1 alpha-2; empty until completion. Output only. |
| `billing_subdivision_code` | `string` | The billing state or province, upper-case, kept only for the countries whose tax thresholds are per subdivision (`US`, `CA`); empty otherwise. Nothing else of the buyer's address is stored. Output only. |
| `consent_collection` | `CheckoutConsentCollection` | The consent the hosted page collects before it takes payment, for example a required tick for a withdrawal waiver or the terms of sale. |
| `consent` | `CheckoutConsent` | The consent the buyer gave, recorded once the processor reports it. Output only. |
| `customer_email` | `string` | The buyer's email address, once the hosted checkout has collected it. Output only. |
| `shipping_address` | `ShippingAddress` | The physical delivery address, when `shipping_country_codes` was set and the hosted checkout has collected it. Output only. |
| `amount_total` | `int64` | The processor's current total in minor units, when it has reported one. Output only. |
| `payment_status` | `string` | `unpaid`, `paid`, `no_payment_required`, or `revoked`; empty before settlement. Output only. |
| `livemode` | `bool` | The processor's live/test mode, once the session has reported it. Output only. |
| `processor_payment_id` | `string` | The processor payment this checkout produced; empty before settlement. Output only. |
| `payment_method` | `string` | `stripe` (default) or `bank_transfer`. Bank transfers never contact Stripe. |
| `bank_transfer` | `BankTransferInstructions` | Frozen beneficiary, amount, reference and bank-issued FPS QR instructions. Output only. |
| `amount_tax` | `int64` | Tax collected on the checkout session in minor units, when reported. Output only. |
| `amount_discount` | `int64` | Discount applied to the checkout session in minor units, when reported. Output only. |
| `processor_invoice_id` | `string` | Processor invoice id created by this checkout (typically for subscriptions). Output only. |
| `processor_subscription_id` | `string` | Processor subscription id created by this checkout, when mode is `subscription`. Output only. |
| `customer_subscription` | `string` | Mirrored CustomerSubscription resource name, when mode is `subscription`. Output only. |
| `guest` | `bool` | Whether this checkout was created without an account. Remains true after claim. Output only. |
| `claimed` | `bool` | Whether its guest ownership has been bound to an account. False is explicit. Output only. |
| `claimed_by` | `string` | The end-user id that claimed this checkout; empty before claim. Output only. |
| `claimed_at` | `timestamp` | When ownership was claimed. The wire name preserves the served claim API. Output only. |
| `claim_method` | `string` | Possession proof used for the claim: claim_secret or verified_email. Output only. |
| `claim_secret` | `string` | Browser possession proof, returned only by create and its authorized retry while active. Never returned by get, list, or claim; never stored in plaintext. Output only. Never returned again. |
| `claim_secret_expires_at` | `timestamp` | When the browser possession proof expires. The existing wire name is retained. Output only. |
| `transaction_id` | `string` | The purchase's one transaction id once the checkout is paid: a subscription checkout's processor invoice, else the processor payment (else invoice, else session). It equals `checkout_sessions:redeem` `transaction_id` and `money.checkout.settled` `order_id`, so browser and server conversions deduplicate. Empty before the checkout is paid. Output only. |
| `amount_subtotal` | `int64` | Settled merchandise total after discounts, excluding tax and shipping, in minor units of currency_code. Present only with a verified breakdown. Output only. |
| `amount_shipping` | `int64` | Settled shipping charge excluding tax, in minor units of currency_code. Output only. |
| `settled_items` | `SettledCheckoutItem[]` | Settled processor lines, not the items requested at checkout creation. Output only. |
| `tax_id_collection` | `CheckoutTaxIdCollection` | Whether to offer tax ID collection. Omit to keep collection enabled. This does not change automatic tax or the billing-address policy. |
| `disable_processor_recovery` | `bool` | Opt out of Stripe-hosted recovery when an application needs revocable checkout. |

### ResourceMeta

| Field | Type | What it is |
| --- | --- | --- |
| `generation` | `int64` | Increases by one on every change to `spec`. Output only. |
| `etag` | `string` | Strong ETag (AIP-154): changes on any change to spec, status, or metadata. Send it back as `If-Match` or `etag` to make Update and Delete conditional; a mismatch fails with ABORTED / 409 `ETAG_MISMATCH`. Output only. |
| `create_time` | `timestamp` | When the Resource was created. Output only. |
| `update_time` | `timestamp` | When the Resource last changed. Output only. |
| `delete_time` | `timestamp` | Set while the Resource is being deleted. Output only. |
| `labels` | `map<string, string>` | Caller-writable, indexed labels (AIP-122 label rules). |
| `annotations` | `map<string, string>` | Caller-writable, unindexed annotations. |
| `display_name` | `string` | Caller-writable human-readable name. |
| `creator` | `string` | The principal that created the Resource. Output only. |

### Subject

| Field | Type | What it is |
| --- | --- | --- |
| `end_user` | `string` | An end user's id (Sylphx Auth, or the app's own OIDC issuer). One of the `kind` group. |
| `customer_organization` | `string` | A customer organization's id. One of the `kind` group. |

### LineItem

| Field | Type | What it is |
| --- | --- | --- |
| `price` | `string` | The Money catalog price key. Required. |
| `quantity` | `int32` | How many; default 1. Seats for a per-seat or family price. |

### CheckoutConsentCollection

| Field | Type | What it is |
| --- | --- | --- |
| `terms_required` | `bool` | Require a tick accepting `terms_text` before the buyer can pay. The merchant's Stripe account needs a terms of service URL in its public business details; without one the create fails with `processor_terms_url_missing`. |
| `terms_text` | `string` | The wording shown next to the tick; at most 1200 characters. Required with `terms_required`. |
| `terms_version` | `string` | Which version of the wording this is, recorded with the consent as evidence; at most 64 characters. Required with `terms_required`. |
| `promotions` | `bool` | Offer the buyer an opt-in to promotional email where the processor allows it. |

### CheckoutConsent

| Field | Type | What it is |
| --- | --- | --- |
| `terms_accepted` | `bool` | Whether the buyer ticked the terms. Output only. |
| `terms_text` | `string` | The wording the buyer saw. Output only. |
| `terms_version` | `string` | The version of that wording. Output only. |
| `promotions` | `string` | `opt_in`, `opt_out`, or empty when promotions were not asked. Output only. |
| `record_time` | `timestamp` | When Money first recorded the answer. Output only. |

### ShippingAddress

| Field | Type | What it is |
| --- | --- | --- |
| `recipient` | `string` | Recipient name. Output only. |
| `line1` | `string` | First address line. Output only. |
| `line2` | `string` | Optional second address line. Output only. |
| `city` | `string` | City or town. Output only. |
| `region` | `string` | State, county or province. Output only. |
| `postal_code` | `string` | Postcode. Output only. |
| `region_code` | `string` | Upper-case ISO 3166-1 alpha-2 region code. Output only. |

### BankTransferInstructions

| Field | Type | What it is |
| --- | --- | --- |
| `account` | `BankTransferAccount` | Beneficiary snapshot, unaffected by later configuration changes. Output only. |
| `reference` | `string` | Opaque order reference, no more than 25 characters. Output only. |
| `qr_payload` | `string` | Dynamic Common QR with exact amount and reference. Output only. |
| `qr_svg` | `string` | QR image as standalone SVG. Output only. |

### SettledCheckoutItem

| Field | Type | What it is |
| --- | --- | --- |
| `price_key` | `string` | Stable catalog price key. Output only. |
| `product_key` | `string` | Stable catalog product key. Output only. |
| `quantity` | `int32` | Quantity settled by the processor. Output only. |
| `unit_amount_minor` | `int64` | Exact net per-unit amount in minor units, excluding tax and shipping. Absent if the line's net amount does not divide evenly by quantity. Output only. |
| `amount_subtotal_minor` | `int64` | Line total after discounts, excluding tax and shipping, in minor units. Output only. |
| `processor_line_id` | `string` | The processor's ID for this settled line, when captured. Output only. |
| `grant_source` | `string` | Exact source used for this line's entitlement grants, scoped to this checkout. A line with no entitlement features has no grant rows. Absent for subscriptions and historical lines without a proven binding. Output only. |

### CheckoutTaxIdCollection

| Field | Type | What it is |
| --- | --- | --- |
| `enabled` | `bool` | Explicit choice; false hides the tax ID prompt. Required. |

### BankTransferAccount

| Field | Type | What it is |
| --- | --- | --- |
| `name` | `string` | Resource name. |
| `uid` | `string` | Stable resource identity. Output only. |
| `meta` | `ResourceMeta` | Resource metadata. Output only. |
| `account_holder` | `string` | Verified beneficiary name. Required. |
| `bank_name` | `string` | Receiving bank name. Required. |
| `bank_code` | `string` | Receiving bank routing or clearing code. Required. |
| `account_number` | `string` | Receiving account number, including branch digits. Required. |
| `fps_id` | `string` | Verified FPS identifier displayed to the payer. |
| `fps_qr_payload` | `string` | Original bank-issued FPS Common QR payload; never an invented account template. |
| `currency_code` | `string` | ISO 4217 receiving account currency. Required. |
| `enabled` | `bool` | Whether new bank-transfer checkouts may be created. |
| `region_code` | `string` | ISO 3166-1 alpha-2 country of the receiving bank. Required. |
| `qr_profile` | `string` | Optional EMV merchant-presented QR country profile: hk_fps. |

## Errors

- [`UNAUTHENTICATED`](/docs/api/errors/UNAUTHENTICATED) — No valid key or token was presented.
- [`PERMISSION_DENIED`](/docs/api/errors/PERMISSION_DENIED) — The key lacks the method's permission.
- [`INVALID_FIELD`](/docs/api/errors/INVALID_FIELD) — A field failed validation.
- [`PAGE_TOKEN_MISMATCH`](/docs/api/errors/PAGE_TOKEN_MISMATCH) — A page token was reused with different parameters.

Every error arrives in the body [Errors](/docs/platform/errors) describes.

## Examples

**cURL**

```curl
curl "https://api.sylphx.com/v1/orgs/acme/projects/shop/envs/production/checkout_sessions" \
  -H "Authorization: Bearer $SYLPHX_API_KEY"
```

**TypeScript**

```ts
const response = await sylphx.money.checkoutSessions.list({ parent: 'orgs/acme/projects/shop/envs/production' })
```

**Rust**

```rust
let mut req = sylphx::money::ListCheckoutSessionsRequest::default();
req.parent = "orgs/acme/projects/shop/envs/production".to_string();
let response = sx.money().checkout_sessions().list(req).await?;
```

**CLI**

```bash
sylphx money checkout-sessions list orgs/acme/projects/shop/envs/production
```

**MCP**

```json
{ "method_id": "money.checkout_sessions.list", "args": {"parent":"orgs/acme/projects/shop/envs/production"} }
```
