Invoice Items

Create an invoice item

The createInvoiceItem() method takes a CreateInvoiceItemRequest object as its only parameter.

$request = $stripe->invoiceItems->createInvoiceItemRequest("customer_id", 350, "usd");
$stripe->invoiceItems->createInvoiceItem($requet);

Retrieve an invoice item

$item = $stripe->invoiceItems->getInvoiceItem("invoice_item_id");

Update an invoice item

$stripe->invoiceItems->updateInvoiceItem("invoice_item_id", 500, "New description.");

Delete an invoice item

$stripe->invoiceItems->deleteInvoiceItem("invoice_item_id");

List invoice items

$items = $stripe->invoiceItems->listInvoiceItems();