> For the complete documentation index, see [llms.txt](https://cranford-tech.gitbook.io/stripe-connect-marketplace/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://cranford-tech.gitbook.io/stripe-connect-marketplace/implementing-key-features/invoices/creating-invoices.md).

# Creating invoices

### Video Tutorial

The below video tutorial demonstrates how to create invoices with Stripe Connect in your Bubble app:

{% embed url="<https://www.youtube.com/watch?v=clLQQ1DRUW0>" %}

### Instructions

* Create a Stripe Customer ID for the user who is purchasing the good/service using the '**Stripe Connect - Create Customer**' action

{% hint style="info" %}
&#x20;It's not necessary to create a new Customer ID if you already have one saved down for the customer
{% endhint %}

* Create an Invoice using the '**Stripe Connect - Create Invoice**' action
  * You can define the **platform fee** using the 'Platform Fee (Cents) field
  * The 'Seller Account ID' represents the Stripe Account ID of the person/entity selling the good/service on your platform
* Create an Invoice Item using the '**Stripe Connect - Create Invoice Item**' action and attach it to the Invoice created in the previous step

{% hint style="info" %}
The currency used in the 'Create Invoice Item' action **must match** the currency used in the 'Create Invoice' action
{% endhint %}

* Send the invoice to the customer using the '**Stripe Connect - Send Invoice**' action

The customer will receive an email with a link to a Stripe-hosted invoice page where they can pay the invoice. The payment made will be split between the platform and the merchant/seller.

<figure><img src="https://445589018-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOYowMYV4NApuJz7Z6lKJ%2Fuploads%2FtzJsKHAHiJa3Zj6VlbE1%2F2024-05-30%2017.19.58.gif?alt=media&amp;token=20723e65-88cf-4ec3-865f-79021fac0865" alt=""><figcaption></figcaption></figure>

You'll be able to see the platform fee in the Payments -> Collected Fees section of your Stripe dashboard.

**Overview of steps**

Here is an overview of the steps involved in creating invoices with the Stripe Connect - Marketplace plugin in Bubble.io:

<figure><img src="https://445589018-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FOYowMYV4NApuJz7Z6lKJ%2Fuploads%2FpTLO3ldSFULBZHtGaFCv%2FScreenshot%202024-06-04%20at%2017.24.04.png?alt=media&amp;token=768e51db-eb2d-4b6a-a25b-093554f47606" alt=""><figcaption></figcaption></figure>
