code: import stripe
  stripe.api_key = "sk_test_your_key"
  
  stripe.InvoiceItem.create(
    customer="cus_8TEMHVY5moxIPI",
    price="price_1LScCX2eZvKYlo2C1Z9zPyXF",
  )
  '''Response {
    "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": "price_1LScCX2eZvKYlo2C1Z9zPyXF",
    "proration": false,
    "quantity": 1,
    "subscription": null,
    "tax_rates": [],
    "test_clock": null,
    "unit_amount": 300,
    "unit_amount_decimal": "300"
  }'''
nl: Create an invoice itemCreates an item to be added to a draft invoice (up to 250 items per invoice). If no invoice is specified, the item will be on the next invoice created for the customer specified.Parameters customer required The ID of the customer who will be billed when this invoice item is billed. amount optional The integer amount in cents of the charge to be applied to the upcoming invoice. Passing in a negative amount will reduce the amount_due on the invoice. currency optional Three-letter ISO currency code, in lowercase. Must be a supported currency. description optional An arbitrary string which you can attach to the invoice item. The description is displayed in the invoice for easy tracking. metadata optional dictionary Set of key-value pairs that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to metadata. period optional dictionary The period associated with this invoice item. When set to different values, the period will be rendered on the invoice.Show child parameters price optional The ID of the price object.More parametersExpand all  discountable optional   discounts optional array of hashes   invoice optional   price_data optional dictionary   quantity optional   subscription optional   tax_rates optional   unit_amount optional   unit_amount_decimal optional ReturnsThe created invoice item object is returned if successful. Otherwise, this call raises an error