code: import stripe
  stripe.api_key = "sk_test_your_key"
  
  stripe.InvoiceItem.list(limit=3)
  '''Response {
    "object": "list",
    "url": "/v1/invoiceitems",
    "has_more": false,
    "data": [
      {
        "id": "ii_1LSe4Q2eZvKYlo2CYN9PE9sv",
        "object": "invoiceitem",
        "amount": 300,
        "currency": "usd",
        "customer": "cus_8TEMHVY5moxIPI",
        "date": 1659519654,
        "description": "My First Invoice Item (created for API docs)",
        "discountable": true,
        "discounts": [],
        "invoice": null,
        "livemode": false,
        "metadata": {},
        "period": {
          "end": 1659519654,
          "start": 1659519654
        },
        "price": {
          "id": "price_1LScCX2eZvKYlo2C1Z9zPyXF",
          "object": "price",
          "active": true,
          "billing_scheme": "per_unit",
          "created": 1659512469,
          "currency": "usd",
          "custom_unit_amount": null,
          "livemode": false,
          "lookup_key": null,
          "metadata": {},
          "nickname": null,
          "product": "prod_MAy8UvSA0uRRju",
          "recurring": null,
          "tax_behavior": "unspecified",
          "tiers_mode": null,
          "transform_quantity": null,
          "type": "one_time",
          "unit_amount": 300,
          "unit_amount_decimal": "300"
        },
        "proration": false,
        "quantity": 1,
        "subscription": null,
        "tax_rates": [],
        "test_clock": null,
        "unit_amount": 300,
        "unit_amount_decimal": "300"
      },
      {...},
      {...}
    ]
  }'''
nl: List all invoice itemsReturns a list of your invoice items. Invoice items are returned sorted by creation date, with the most recently created invoice items appearing first.Parameters customer optional The identifier of the customer whose invoice items to return. If none is provided, all invoice items will be returned.More parametersExpand all  created optional dictionary   ending_before optional   invoice optional   limit optional   pending optional   starting_after optional ReturnsA dictionary with a data property that contains an array of up to limit invoice items, starting after invoice item starting_after. Each entry in the array is a separate invoice item object. If no more invoice items are available, the resulting array will be empty. This request should never raise an error