code: import stripe
  stripe.api_key = "sk_test_your_key"
  
  stripe.checkout.Session.list(limit=3)
  '''Response {
    "object": "list",
    "url": "/v1/checkout/sessions",
    "has_more": false,
    "data": [
      {
        "id": "cs_test_a15vFKPu138xjcETgEZfTyxnbkKfnzQK1lY1QsG5fRTht29TiQtRu6BG2I",
        "object": "checkout.session",
        "after_expiration": null,
        "allow_promotion_codes": null,
        "amount_subtotal": null,
        "amount_total": null,
        "automatic_tax": {
          "enabled": false,
          "status": null
        },
        "billing_address_collection": null,
        "cancel_url": "https://example.com/cancel",
        "client_reference_id": null,
        "consent": null,
        "consent_collection": null,
        "currency": null,
        "customer": null,
        "customer_creation": null,
        "customer_details": null,
        "customer_email": null,
        "expires_at": 1659518871,
        "livemode": false,
        "locale": null,
        "metadata": {},
        "mode": "payment",
        "payment_intent": "pi_1DrPsv2eZvKYlo2CEDzqXfPH",
        "payment_link": null,
        "payment_method_options": {},
        "payment_method_types": [
          "card"
        ],
        "payment_status": "unpaid",
        "phone_number_collection": {
          "enabled": false
        },
        "recovered_from": null,
        "redaction": null,
        "setup_intent": null,
        "shipping_address_collection": null,
        "shipping_cost": null,
        "shipping_details": null,
        "shipping_options": [],
        "status": "expired",
        "submit_type": null,
        "subscription": null,
        "success_url": "https://example.com/success",
        "total_details": null,
        "url": null
      },
      {...},
      {...}
    ]
  }'''
nl: List all Checkout SessionsReturns a list of Checkout Sessions.Parameters payment_intent optional Only return the Checkout Session for the PaymentIntent specified. subscription optional Only return the Checkout Session for the subscription specified.More parametersExpand all  customer optional   customer_details optional dictionary   ending_before optional   limit optional   starting_after optional ReturnsA dictionary with a data property that contains an array of up to limit Checkout Sessions, starting after Checkout Session starting_after. Each entry in the array is a separate Checkout Session object. If no more Checkout Sessions are available, the resulting array will be empty.