# Stripe: invoice_no_customer_line_items

> Stripe returns invoice_no_customer_line_items when an invoice is created for a customer with no pending invoice items. Check the customer, then add items.

Canonical: https://app369.com/fix/stripe-invoice-no-customer-line-items/
Last updated: 2026-11-10

invoice_no_customer_line_items is the Stripe error for creating an invoice for a customer who has no pending invoice items. Stripe says to check that the right customer is specified, or to create the invoice items first.

**Rather hand it over?** [Stripe Billing Fix and Setup](https://app369.com/fixed-price/stripe-billing-setup/): Subscriptions, webhooks, customer portal and failed payments set up or fixed, tested in Stripe test mode.

[Pay $950 for Stripe Billing Fix and Setup](https://buy.stripe.com/fZu9AU9Sc5ybcTc4ZEgw00j) [**Ask a question first**](https://app369.com/contact/?offer=offer12-stripe-billing&amp;ask=1)

Full refund if Simon can’t take it on once he sees your project, or if you cancel before work starts. [Refund terms](https://app369.com/terms-of-service/#refunds).

- ![](https://app369.com/.netlify/images?w=28&amp;fm=webp&amp;url=%2Fimages%2Fszymon.jpg)Simon does the work himself
- [5.0 from 127 Fiverr reviews, checked Oct 30, 2026](https://app369.com/reviews/)

**Short answer**

Check that the invoice and its items use the same customer ID. Then make the order explicit: create the invoice as a draft, add each invoice item with that invoice’s ID, and finalize it. If the app depends on items created earlier, pass pending_invoice_items_behavior: include when creating the invoice.

Rather not fix it yourself? [**Stripe Billing Fix and Setup**](https://app369.com/fixed-price/stripe-billing-setup/) handles it at a fixed price, agreed before work starts.

## **Why the invoice has no items, and the fix**

1. 01 ### **The invoice is for a different customer**
  > “Verify that the correct customer is being specified or create any necessary invoice items first.” [**Stripe, Error codes (invoice_no_customer_line_items)**](https://docs.stripe.com/error-codes) Apps that create a new Stripe customer at every signup or checkout can end up with duplicates for one email. The items sit on one customer while the invoice is created for another. Store one customer ID per user and reuse it.
2. 02 ### **The items aren’t added to the invoice**
  > “You can only add invoice items to draft invoices and there is a maximum of 250 items per invoice.” [**Stripe, Create an invoice item (invoice)**](https://docs.stripe.com/api/invoiceitems/create) Create the draft invoice first, then create each item with the invoice ID so it lands on that invoice.```
const invoice = await stripe.invoices.create({ customer: customerId });
await stripe.invoiceItems.create({
  customer: customerId,
  invoice: invoice.id,
  amount: 2500,
  currency: 'usd',
});
await stripe.invoices.finalizeInvoice(invoice.id);
```
3. 03 ### **Pending items aren’t pulled into the invoice**
  > “Include any pending invoice items, and create an empty draft invoice if no pending invoice items exist.” [**Stripe, Create an invoice (pending_invoice_items_behavior)**](https://docs.stripe.com/api/invoices/create) Items created without an invoice ID stay pending. Pass pending_invoice_items_behavior: include when creating the invoice to pull them in.
4. 04 ### **The subscription version of the error** Also check: invoice_no_subscription_line_items is the same problem for a subscription ID. Check the subscription ID, or create the invoice items first.

Checked against the vendor’s docs on November 10, 2026: [Stripe docs: Error codes](https://docs.stripe.com/error-codes); [Stripe API: Create an invoice](https://docs.stripe.com/api/invoices/create); [Stripe API: Create an invoice item](https://docs.stripe.com/api/invoiceitems/create).

## **Rather hand it over?**

Fixed scope, fixed price, paid upfront. The work happens in writing; no call needed.

- [$950**Stripe Billing Fix and Setup**Subscriptions, webhooks, customer portal and failed payments set up or fixed, tested in Stripe test mode.**See scope and start**](https://app369.com/fixed-price/stripe-billing-setup/)
- [from $450**App Fix Ticket**One reproducible bug in an existing mobile or web app, diagnosed and fixed.**See scope and start**](https://app369.com/fixed-price/flutter-firebase-bug-fix/)
- [from $450**AI-Built App Rescue**A Lovable, Bolt or Cursor app checked end to end in 3 days, then its worst problems fixed at a fixed price.****No issues worth fixing, no charge.**** If the Launch Check finds nothing rated medium or higher, Simon refunds the full $450. You keep the report either way. This applies to the first 10 Launch Checks bought after October 30, 2026.**See scope and start**](https://app369.com/fixed-price/ai-app-rescue/)

[**All 127 Fiverr reviews**](https://app369.com/reviews/)

Related: [**Stripe invoice_upcoming_none**](https://app369.com/fix/stripe-invoice-upcoming-none/) · [**Stripe invoice_not_editable**](https://app369.com/fix/stripe-invoice-not-editable/) · [**Stripe invoice_payment_intent_requires_action**](https://app369.com/fix/stripe-invoice-payment-intent-requires-action/) · [**Stripe invoice_no_payment_method_types**](https://app369.com/fix/stripe-invoice-no-payment-method-types/)

Questions

## **More on this error**

<details>

<summary>**What does pending_invoice_items_behavior default to? **+</summary>

exclude. Stripe’s Create an invoice reference says it defaults to exclude when the parameter is omitted, and exclude always creates an empty draft invoice, whether or not there are pending invoice items.

</details>

<details>

<summary>**Can items be added to a finalized invoice? **+</summary>

No. Stripe says invoice items can only be added to draft invoices, with a maximum of 250 items per invoice.

</details>

<details>

<summary>**Can you fix it for me? **+</summary>

If one bug is the whole problem, the App Fix Ticket covers it: a written diagnosis first, then the fix. If the app has more going on, the Launch Check is a written check of the whole app. Each issue found is rated critical, high, medium or low, with where it is and how it was confirmed. No issues worth fixing, no charge. If the Launch Check finds nothing rated medium or higher, Simon refunds the full $450. You keep the report either way. This applies to the first 10 Launch Checks bought after October 30, 2026.

</details>

A different error?

## **Describe it and get a written quote**

Send the error and what you were doing. You get a written scope, a fixed price and a timeline; Simon replies by email, usually within one business day.

[**Describe your problem **→](https://app369.com/contact/) [**All fixes**](https://app369.com/fix/)