code: import stripe
  stripe.api_key = "sk_test_your_key"
  
  stripe.Charge.list(limit=3)
  '''Response {
    "object": "list",
    "url": "/v1/charges",
    "has_more": false,
    "data": [
      {
        "id": "ch_3LSdsa2eZvKYlo2C1pk5D2K6",
        "object": "charge",
        "amount": 100,
        "amount_captured": 0,
        "amount_refunded": 0,
        "application": null,
        "application_fee": null,
        "application_fee_amount": null,
        "balance_transaction": "txn_1032HU2eZvKYlo2CEPtcnUvl",
        "billing_details": {
          "address": {
            "city": null,
            "country": null,
            "line1": null,
            "line2": null,
            "postal_code": null,
            "state": null
          },
          "email": null,
          "name": null,
          "phone": null
        },
        "calculated_statement_descriptor": null,
        "captured": false,
        "created": 1659518920,
        "currency": "usd",
        "customer": null,
        "description": "My First Test Charge (created for API docs)",
        "disputed": false,
        "failure_balance_transaction": null,
        "failure_code": null,
        "failure_message": null,
        "fraud_details": {},
        "invoice": null,
        "livemode": false,
        "metadata": {},
        "on_behalf_of": null,
        "outcome": null,
        "paid": true,
        "payment_intent": null,
        "payment_method": "card_1LSdsU2eZvKYlo2C1BKhCSWF",
        "payment_method_details": {
          "card": {
            "brand": "visa",
            "checks": {
              "address_line1_check": null,
              "address_postal_code_check": null,
              "cvc_check": "pass"
            },
            "country": "US",
            "exp_month": 8,
            "exp_year": 2023,
            "fingerprint": "Xt5EWLLDS7FJjR1c",
            "funding": "credit",
            "installments": null,
            "last4": "4242",
            "mandate": null,
            "moto": null,
            "network": "visa",
            "three_d_secure": null,
            "wallet": null
          },
          "type": "card"
        },
        "receipt_email": null,
        "receipt_number": null,
        "receipt_url": "https://pay.stripe.com/receipts/acct_1032D82eZvKYlo2C/ch_3LSdsa2eZvKYlo2C1pk5D2K6/rcpt_MAzsX8H9XHu2XoHLHOqQ1d3gDS78hzU",
        "redaction": null,
        "refunded": false,
        "refunds": {
          "object": "list",
          "data": [],
          "has_more": false,
          "url": "/v1/charges/ch_3LSdsa2eZvKYlo2C1pk5D2K6/refunds"
        },
        "review": null,
        "shipping": null,
        "source_transfer": null,
        "statement_descriptor": null,
        "statement_descriptor_suffix": null,
        "status": "succeeded",
        "transfer_data": null,
        "transfer_group": null
      },
      {...},
      {...}
    ]
  }'''
nl: List all chargesReturns a list of charges you’ve previously created. The charges are returned in sorted order, with the most recent charges appearing first.Parameters customer optional Only return charges for the customer specified by this customer ID.More parametersExpand all  created optional dictionary   ending_before optional   limit optional   payment_intent optional   starting_after optional   transfer_group optional Connect only ReturnsA dictionary with a data property that contains an array of up to limit charges, starting after charge starting_after. Each entry in the array is a separate charge object. If no more charges are available, the resulting array will be empty. If you provide a non-existent customer ID, this call raises an error