> ## Documentation Index
> Fetch the complete documentation index at: https://docs.invopop.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Stripe guide

> Import and process invoices and credit notes from Stripe

## Introduction

In this guide, you'll learn how to connect [Stripe](https://stripe.com/) with Invopop to automatically generate tax-compliant invoices and credit notes, from your Stripe dashboard.

The Stripe integration consists of two components:

1. An Invopop app within your Stripe dashboard
2. An app in your Invopop console

When a Stripe invoice or credit note reaches the [finalized status](https://support.stripe.com/questions/invoice-states), our integration will automatically create a new job in your selected Invopop workflow.

![stripe details](https://mintcdn.com/invopop/gj0LtB6xhc-5_Lcq/assets/guides/stripe-details.png?fit=max\&auto=format\&n=gj0LtB6xhc-5_Lcq\&q=85\&s=7bbe187a7a40b1b33aeb825f93c9f665)

Track invoice status directly in your Stripe dashboard

The job will extract the invoice data from Stripe and execute the actions, such as converting it to any e-invoice format and submitting it to your local tax authority.

![stripe job](https://mintcdn.com/invopop/gj0LtB6xhc-5_Lcq/assets/guides/stripe-job-details.png?fit=max\&auto=format\&n=gj0LtB6xhc-5_Lcq\&q=85\&s=3da0308220d997196f91fb8581e53d38)

View the job information

## Setup

Before you begin, ensure you have an active Stripe account.

**1. Install Invopop in Stripe**

Navigate to the [Invopop app](https://marketplace.stripe.com/apps/invopop) in Stripe's App Marketplace and click **Install**.
Next, Stripe will prompt you to select the Stripe environment you'd like to connect to, you can start with test mode or sandbox and switch to live later.

![stripe install](https://mintcdn.com/invopop/gj0LtB6xhc-5_Lcq/assets/guides/stripe-install.png?fit=max\&auto=format\&n=gj0LtB6xhc-5_Lcq\&q=85\&s=18249659c041224f2ca04f97ab50a5fa)

Install Invopop in Stripe

**2. Connect Stripe to Invopop**

After installation, you should be  redirected to your Stripe dashboard and see the Invopop app in the right sidebar. Alternatively, just open the Invopop app in your [Stripe dashboard](https://dashboard.stripe.com/apps/invopop).

Click **Connect Invopop**. The next page will ask you to login to your Invopop account. If you're new to Invopop, the connection process will guide you through creating your Invopop account and setting up your first workspace.

> [!NOTE]
>
> When connecting a test or sandbox environment in Stripe, select a sandbox workspace in Invopop. For live environments, select a live workspace.

![stripe connect](https://mintcdn.com/invopop/gj0LtB6xhc-5_Lcq/assets/guides/stripe-connect.png?fit=max\&auto=format\&n=gj0LtB6xhc-5_Lcq\&q=85\&s=23bc0fb5ed7cdc5f49a761f808fd8eed)

Connect your Invopop account

**3. Select a workspace**

After connecting your Invopop account to Stripe, you'll be redirected back to Stripe to choose the workspace where you want to process your invoices.

![stripe select workspace](https://mintcdn.com/invopop/v95hnKEiP9kgMcLY/assets/guides/stripe-select-workspace.png?fit=max\&auto=format\&n=v95hnKEiP9kgMcLY\&q=85\&s=e784c8bfea80ccb235af58544cbc9f0c)

Choose your workspace

**4. Configure your workflow**

Select or create a workflow to process your invoices and credit notes.

To use an existing workflow select it from the Stripe's sidebar menu and click **Save Workflow**

To create a new workflow click on **Create New Workflow** in the sidebar menu. You'll be redirected to Invopop.

Start from the basic template below, then add the steps your country requires — see [Country workflows](#country-workflows).

This workflow syncs with Stripe, signs the invoice and generates a PDF.

> [card] [Stripe - Basic PDF invoice workflow](https://console.invopop.com/redirect/workflows/new?template=stripe-invoice)
>
> Add to my workspace →

> [tab] Workflow

> [tab] Code
>
> Copy and paste into a new [Empty Invoice workflow](https://console.invopop.com/redirect/workflows/new?template=empty-invoice) code view.
>
> ```json Stripe PDF invoice workflow theme={"system"}
> {
>     "name": "Stripe PDF invoice",
>     "description": "Sync from Stripe and generate a PDF",
>     "schema": "bill/invoice",
>     "steps": [
>         {
>             "id": "7dd8e370-139b-11f0-b939-af2e8ae705ac",
>             "name": "Import invoice from Stripe",
>             "provider": "stripe.import"
>         },
>         {
>             "id": "95a82a10-139b-11f0-b939-af2e8ae705ac",
>             "name": "Set state",
>             "provider": "silo.state",
>             "summary": "Set state to `processing`{.state .processing}",
>             "config": {
>                 "state": "processing"
>             }
>         },
>         {
>             "id": "84cf92a0-139b-11f0-b939-af2e8ae705ac",
>             "name": "Sign envelope",
>             "provider": "silo.close"
>         },
>         {
>             "id": "86a5b230-139b-11f0-b939-af2e8ae705ac",
>             "name": "Generate PDF",
>             "provider": "pdf",
>             "summary": "Spanish · A4",
>             "config": {
>                 "date_format": "%Y-%m-%d",
>                 "layout": "A4",
>                 "locale": "es",
>                 "logo_height": 40
>             }
>         },
>         {
>             "id": "8b321820-139b-11f0-b939-af2e8ae705ac",
>             "name": "Set state",
>             "provider": "silo.state",
>             "summary": "Set state to `sent`{.state .sent}",
>             "config": {
>                 "state": "sent"
>             }
>         }
>     ],
>     "rescue": [
>         {
>             "id": "90f4b420-139b-11f0-b939-af2e8ae705ac",
>             "name": "Set state",
>             "provider": "silo.state",
>             "summary": "Set state to `error`{.state .error}",
>             "config": {
>                 "state": "error"
>             }
>         }
>     ]
> }
> ```

**5. Show your tax ID on invoices**

By default, Stripe does not display your tax ID on invoices. To enable it, go to Settings > Billing > Invoices. In the `Invoice Tax Information` section, enter your tax ID, set it as the default, and click **Save**.

![stripe tax id](https://mintcdn.com/invopop/gj0LtB6xhc-5_Lcq/assets/guides/stripe-tax-id.png?fit=max\&auto=format\&n=gj0LtB6xhc-5_Lcq\&q=85\&s=68b6925bb85d824b981fcf65dd7f8bd7)

Show your tax ID on invoices

**6. Verify your setup**

1. Navigate to [Stripe app settings](https://dashboard.stripe.com/settings/apps/com.invoicing.invopop)
2. Confirm your workflow configuration is correct

![stripe settings](https://mintcdn.com/invopop/gj0LtB6xhc-5_Lcq/assets/guides/stripe-settings.png?fit=max\&auto=format\&n=gj0LtB6xhc-5_Lcq\&q=85\&s=038a1599a2a5d3ab869620c423efd528)

Review your configuration

## Country workflows

Each country needs its own steps between the Stripe import and the send. Two things are worth knowing before you pick one:

* **Your tax ID must reach the invoice.** Stripe only attaches your account tax ID when you set it as the default (see [Show your tax ID on invoices](#setup)). Without it, country steps fail with errors such as `supplier SIREN is required for B2B local invoices`.
* **The regime comes from the supplier's tax ID country.** A workflow step for one country rejects invoices from another — see the [FAQ](#faq) on unexpected tax regime errors.

> [accordion] Europe (Peppol)
>
> This workflow sends each invoice over the Peppol network, the route Belgian, Dutch and Nordic customers receive invoices on. It looks the customer's participant ID up on the network at run time, and reshapes the parts of a Stripe invoice that Peppol validation rejects: negative line items become discounts, a missing purchase order code becomes `NA`, and card payment instructions get payment terms. Your supplier must be registered on Peppol first — see the [Peppol guide](https://docs.invopop.com/guides/peppol.md).
>
> > [card] [Stripe - Peppol invoice workflow](https://console.invopop.com/redirect/workflows/new?template=stripe-peppol)
> >
> > Add to my workspace →
>
> > [tab] Workflow
>
> > [tab] Code
> >
> > Copy and paste into a new [Empty Invoice workflow](https://console.invopop.com/redirect/workflows/new?template=empty-invoice) code view.
> >
> > ```json Stripe Peppol invoice workflow theme={"system"}
> > {
> >     "name": "Stripe Peppol invoice",
> >     "description": "Sync from Stripe and send via Peppol",
> >     "schema": "bill/invoice",
> >     "steps": [
> >         {
> >             "id": "ab0b8c40-d4e7-11f0-9e5d-e1650cc9a3d1",
> >             "name": "Import invoice from Stripe",
> >             "provider": "stripe.import"
> >         },
> >         {
> >             "id": "33e23480-10ab-11f0-a09e-7b63571a4ae2",
> >             "name": "Set state",
> >             "provider": "silo.state",
> >             "summary": "Set state to `processing`{.state .processing}",
> >             "config": {
> >                 "state": "processing"
> >             }
> >         },
> >         {
> >             "id": "dcb86010-d4e7-11f0-9bd8-c3ca8212c614",
> >             "name": "Add supplier Peppol ID",
> >             "provider": "silo.modify",
> >             "summary": "Add supplier Peppol inbox",
> >             "config": {
> >                 "merge_type": "application/jq",
> >                 "scope": "doc",
> >                 "jq": ".supplier.inboxes =\n(\n  (.supplier.inboxes // []) as $inboxes\n  |\n  if ($inboxes | any(.key == \"peppol\")) then\n    $inboxes\n  else\n    $inboxes + [\n      {\n        key: \"peppol\",\n        \"scheme\": \"\",\n        \"code\": \"\"\n      }\n    ]\n  end\n)\n"
> >             }
> >         },
> >         {
> >             "id": "00e00280-d66f-11f0-8fc4-ff91328c62f5",
> >             "name": "Add purchase order number",
> >             "provider": "silo.modify",
> >             "summary": "Add purchase order number",
> >             "config": {
> >                 "jq": "if (.ordering.code == null) and ((.ordering.purchases // [])[0].code == null) then \n.ordering.purchases[0].code = \"NA\"\nend",
> >                 "merge_type": "application/jq",
> >                 "scope": "doc"
> >             }
> >         },
> >         {
> >             "id": "b54b7000-d779-11f0-8eaf-79de543fb8d0",
> >             "name": "Move negative line items to discounts",
> >             "provider": "silo.modify",
> >             "summary": "Move negative line items to discounts",
> >             "config": {
> >                 "jq": ". as $doc\n|\n# Select lines that are negative\n($doc.lines | map(select(.item.price|tonumber < 0))) as $neg\n|\n# Select lines that are positive\n($doc.lines | map(select(.item.price|tonumber >= 0))) as $pos\n|\n# Convert negative lines to discount entries\n($neg | map({\n    reason: .item.name,\n    amount: ((.total|tonumber) * -1 | tostring),\n    taxes: .taxes\n})) as $discounts\n|\n$doc\n| .lines = $pos\n| .discounts = $discounts\n",
> >                 "merge_type": "application/jq",
> >                 "scope": "doc"
> >             }
> >         },
> >         {
> >             "id": "896013d0-d515-11f0-a832-01ce614dcba6",
> >             "name": "Include payment means when empty",
> >             "provider": "silo.modify",
> >             "summary": "Include payment means when empty",
> >             "config": {
> >                 "addons": [
> >                     "eu-en16931-v2017"
> >                 ],
> >                 "jq": "if (.payment.instructions // null) == null then\n  .\nelse\n  (\n\n    . as $doc\n    | .payment |= (\n        . // {}\n        |\n        .instructions.key |= (split(\"+\")[0])\n        |\n        .terms //= {\n          due_dates: [\n            {\n              date: (\n                $doc.issue_date\n                | strptime(\"%Y-%m-%d\")\n                | .[1] += 1      # add 1 month\n                | mktime\n                | strftime(\"%Y-%m-%d\")\n              ),\n              percent: \"100%\"\n            }\n          ]\n        }\n    )\n\n    # ↑↑↑ end of modifications ↑↑↑\n  )\nend\n",
> >                 "merge_type": "application/jq",
> >                 "scope": "doc"
> >             }
> >         },
> >         {
> >             "id": "6c96aac0-d4e8-11f0-9bd8-c3ca8212c614",
> >             "name": "Lookup Peppol participant",
> >             "provider": "peppol.lookup",
> >             "summary": "Lookup customer",
> >             "config": {
> >                 "party": "customer"
> >             }
> >         },
> >         {
> >             "id": "fb06b190-10aa-11f0-a09e-7b63571a4ae2",
> >             "name": "Sign envelope",
> >             "provider": "silo.close"
> >         },
> >         {
> >             "id": "fc5aa8d0-10aa-11f0-a09e-7b63571a4ae2",
> >             "name": "Generate UBL document",
> >             "provider": "ubl.generate",
> >             "summary": "Peppol BIS Billing UBL Invoice/CreditNote V3",
> >             "config": {
> >                 "doc_type": "bis-invoice-v3",
> >                 "private": false
> >             }
> >         },
> >         {
> >             "id": "075442a0-10ab-11f0-a09e-7b63571a4ae2",
> >             "name": "Send Peppol document",
> >             "provider": "peppol.send"
> >         },
> >         {
> >             "id": "3037a310-10ab-11f0-a09e-7b63571a4ae2",
> >             "name": "Set state",
> >             "provider": "silo.state",
> >             "summary": "Set state to `sent`{.state .sent}",
> >             "config": {
> >                 "state": "sent"
> >             }
> >         }
> >     ],
> >     "rescue": [
> >         {
> >             "id": "97ced0a0-d4e8-11f0-985d-3b44fe520da3",
> >             "name": "Send email",
> >             "provider": "email.send",
> >             "summary": "",
> >             "config": {
> >                 "add_invoice_customer": false,
> >                 "add_invoice_supplier": false,
> >                 "add_party": false,
> >                 "attach": "",
> >                 "body": "VGhpcyBpbnZvaWNlICh7ey5mdWxsX2NvZGV9fSkgZmFpbGVkIHdpdGggZXJyb3I6IHt7LmZhdWx0c319",
> >                 "connection_id": "default",
> >                 "subject": "The invoice failed - check invopop",
> >                 "zip_attachments": false
> >             }
> >         },
> >         {
> >             "id": "39513240-10ab-11f0-a09e-7b63571a4ae2",
> >             "name": "Set state",
> >             "provider": "silo.state",
> >             "summary": "Set state to `error`{.state .error}",
> >             "config": {
> >                 "state": "error"
> >             }
> >         }
> >     ]
> > }
> > ```

> [accordion] France (Plateforme Agréée)
>
> France routes each invoice on whether the customer is registered in the PPF directory. This workflow imports the Stripe invoice, adds the billing mode and VAT exemption codes France requires, then looks the customer up: registered customers get a Peppol France CIUS document recorded and forwarded to the PPF, and everyone else is recorded for e-reporting instead, then sent over Peppol if they have an inbox.
>
> > [tab] Workflow
>
> > [tab] Code
> >
> > There is no one-click template for this workflow yet. Copy and paste it into a new [Empty Invoice workflow](https://console.invopop.com/redirect/workflows/new?template=empty-invoice) code view.
> >
> > ```json Example Stripe France workflow theme={"system"}
> > {
> >     "name": "Stripe France send invoice",
> >     "description": "Sync from Stripe and forward to PPF or record for reporting",
> >     "schema": "bill/invoice",
> >     "steps": [
> >         {
> >             "id": "ab0b8c40-d4e7-11f0-9e5d-e1650cc9a3d1",
> >             "name": "Import invoice from Stripe",
> >             "provider": "stripe.import"
> >         },
> >         {
> >             "id": "33e23480-10ab-11f0-a09e-7b63571a4ae2",
> >             "name": "Set state",
> >             "provider": "silo.state",
> >             "summary": "Set state to `processing`{.state .processing}",
> >             "config": {
> >                 "state": "processing"
> >             }
> >         },
> >         {
> >             "id": "eea78ac0-26f0-11f1-9156-e518ebabd527",
> >             "name": "Add billing mode",
> >             "provider": "silo.modify",
> >             "notes": "S2 (already-paid) ONLY when fully paid (totals.advance == total_with_tax); else S1. S2 also adds payment.terms due_dates (BR-FR-CO-09). Reads .totals.advance (NOT the old .advances bug).",
> >             "summary": "Modifications configured",
> >             "config": {
> >                 "jq": ".tax.ext = (.tax.ext // {})\n| .tax.point = \"issue\"\n| if ((.totals.advance // null) != null and (.totals.advance == .totals.total_with_tax)) then\n    .tax.ext[\"fr-ctc-billing-mode\"] = \"S2\"\n    | .payment = (.payment // {})\n    | .payment.terms = (.payment.terms // {\"due_dates\":[{\"date\":.issue_date,\"percent\":\"100%\"}]})\n  else\n    .tax.ext[\"fr-ctc-billing-mode\"] = \"S1\"\n  end",
> >                 "merge_type": "application/jq",
> >                 "scope": "doc"
> >             }
> >         },
> >         {
> >             "id": "4f427d80-a44d-11f0-b23b-fd08a0f26c87",
> >             "name": "Add VATEX",
> >             "provider": "silo.modify",
> >             "summary": "Modifications configured",
> >             "config": {
> >                 "jq": ".lines |= map(\n  .taxes |= map(\n    (.ext[\"untdid-tax-category\"]? as $cat\n     | if $cat then\n         {\n           key: {\n             \"AE\": \"reverse-charge\",\n             \"E\": \"export\",\n             \"G\": \"export\",\n             \"O\": \"outside-scope\",\n             \"K\": \"intra-community\"\n           }[$cat],\n           vatex: {\n             \"AE\": \"VATEX-EU-AE\",\n             \"G\": \"VATEX-EU-G\",\n             \"O\": \"VATEX-EU-O\",\n             \"K\": \"VATEX-EU-IC\"\n           }[$cat]\n         } as $m\n\n         | if $m.key then .key = $m.key else . end\n         | if $m.vatex then\n             .ext = ((.ext // {}) + {\"cef-vatex\": $m.vatex})\n           else\n             .\n           end\n       else\n         .\n       end\n    )\n  )\n)",
> >                 "merge_type": "application/jq",
> >                 "scope": "doc",
> >                 "sign": false
> >             }
> >         },
> >         {
> >             "id": "7dad54c0-154a-11f0-8028-c1ed648b57b5",
> >             "name": "Add bank details",
> >             "provider": "silo.modify",
> >             "notes": "Normalizes the payment key to SEPA credit transfer format",
> >             "summary": "Modifications configured",
> >             "config": {
> >                 "allow_invalid_json": false,
> >                 "data": {
> >                     "doc": {
> >                         "payment": {
> >                             "instructions": {
> >                                 "credit_transfer": [
> >                                     {
> >                                         "bic": "",
> >                                         "iban": ""
> >                                     }
> >                                 ],
> >                                 "key": "credit-transfer"
> >                             }
> >                         }
> >                     }
> >                 },
> >                 "expr": "(doc?.payment?.instructions == nil || doc?.payment?.instructions?.key == \"credit-transfer\")\n&& doc?.payment?.terms?.due_dates != nil",
> >                 "merge_type": "application/merge-patch+json",
> >                 "sign": false
> >             }
> >         },
> >         {
> >             "id": "fb06b190-10aa-11f0-a09e-7b63571a4ae2",
> >             "name": "Sign envelope",
> >             "provider": "silo.close"
> >         },
> >         {
> >             "id": "86a5b230-139b-11f0-b939-af2e8ae705ac",
> >             "name": "Generate PDF",
> >             "provider": "pdf",
> >             "summary": "French · A4",
> >             "config": {
> >                 "date_format": "%Y-%m-%d",
> >                 "layout": "A4",
> >                 "locale": "fr",
> >                 "logo_height": 40
> >             }
> >         },
> >         {
> >             "id": "de2407b0-5e94-11f1-90fe-f3d836f89160",
> >             "name": "Lookup in Directory",
> >             "provider": "gov-fr.directory.lookup",
> >             "next": [
> >                 {
> >                     "status": "NA",
> >                     "code": "found",
> >                     "steps": [
> >                         {
> >                             "id": "3ffd50e0-5e95-11f1-90fe-f3d836f89160",
> >                             "name": "Add flow2 addon",
> >                             "provider": "silo.modify",
> >                             "summary": "Modifications configured",
> >                             "config": {
> >                                 "addons": [
> >                                     "fr-ctc-flow2-v1"
> >                                 ]
> >                             }
> >                         },
> >                         {
> >                             "id": "1f8bf500-5e95-11f1-90fe-f3d836f89160",
> >                             "name": "Generate UBL document",
> >                             "provider": "ubl.generate",
> >                             "summary": "Peppol France CIUS UBL Invoice/CreditNote",
> >                             "config": {
> >                                 "attach_invoice_pdf": false,
> >                                 "doc_type": "peppol-fr-cius",
> >                                 "private": false
> >                             }
> >                         },
> >                         {
> >                             "id": "9e22f4a0-485f-11f1-86b7-9745cc4d2380",
> >                             "name": "Record document for e-invoicing",
> >                             "provider": "gov-fr.directory.record"
> >                         },
> >                         {
> >                             "id": "285c9450-5e95-11f1-90fe-f3d836f89160",
> >                             "name": "Send Peppol Document",
> >                             "provider": "peppol.send"
> >                         },
> >                         {
> >                             "id": "2d6926c0-5e95-11f1-90fe-f3d836f89160",
> >                             "name": "Forward document to PPF",
> >                             "provider": "gov-fr.directory.forward"
> >                         }
> >                     ]
> >                 },
> >                 {
> >                     "status": "NA",
> >                     "code": "not-found",
> >                     "steps": [
> >                         {
> >                             "id": "5cff2420-7470-11f1-9deb-cda1ffc5317f",
> >                             "name": "Add flow10 addon",
> >                             "provider": "silo.modify",
> >                             "summary": "Modifications configured",
> >                             "config": {
> >                                 "addons": [
> >                                     "fr-ctc-flow10-v1"
> >                                 ]
> >                             }
> >                         },
> >                         {
> >                             "id": "3a023fc0-5e95-11f1-90fe-f3d836f89160",
> >                             "name": "Record document for reporting",
> >                             "provider": "gov-fr.reporting.record"
> >                         },
> >                         {
> >                             "id": "aaf85b90-6996-11f1-8722-e7a7821bd54f",
> >                             "name": "Verify invoice can be sent",
> >                             "provider": "peppol.has.inboxes",
> >                             "next": [
> >                                 {
> >                                     "status": "NA",
> >                                     "code": "true",
> >                                     "steps": [
> >                                         {
> >                                             "id": "afcc78e0-6996-11f1-8722-e7a7821bd54f",
> >                                             "name": "Generate UBL document",
> >                                             "provider": "ubl.generate",
> >                                             "summary": "Peppol BIS Billing UBL Invoice/CreditNote V3",
> >                                             "config": {
> >                                                 "attach_invoice_pdf": false,
> >                                                 "doc_type": "bis-invoice-v3",
> >                                                 "private": false
> >                                             }
> >                                         },
> >                                         {
> >                                             "id": "b798c790-6996-11f1-8722-e7a7821bd54f",
> >                                             "name": "Send Peppol document",
> >                                             "provider": "peppol.send"
> >                                         }
> >                                     ]
> >                                 },
> >                                 {
> >                                     "status": "NA",
> >                                     "code": "false"
> >                                 }
> >                             ]
> >                         }
> >                     ]
> >                 }
> >             ]
> >         },
> >         {
> >             "id": "3037a310-10ab-11f0-a09e-7b63571a4ae2",
> >             "name": "Set state",
> >             "provider": "silo.state",
> >             "summary": "Set state to `sent`{.state .sent}",
> >             "config": {
> >                 "state": "sent"
> >             }
> >         }
> >     ],
> >     "rescue": [
> >         {
> >             "id": "39513240-10ab-11f0-a09e-7b63571a4ae2",
> >             "name": "Set state",
> >             "provider": "silo.state",
> >             "summary": "Set state to `error`{.state .error}",
> >             "config": {
> >                 "state": "error"
> >             }
> >         }
> >     ]
> > }
> > ```
>
> Registering your suppliers and reading the statuses France returns are covered in the [Plateforme Agréée guides](https://docs.invopop.com/guides/fr-pa.md): [registration](https://docs.invopop.com/guides/fr-pa-registration.md), [invoicing](https://docs.invopop.com/guides/fr-pa-invoicing.md), [reporting](https://docs.invopop.com/guides/fr-pa-reporting.md) and [statuses](https://docs.invopop.com/guides/fr-pa-status.md).

> [accordion] Spain (VERI\*FACTU)
>
> This workflow issues a VERI\*FACTU invoice for each finalized Stripe sale: it adds the `es-verifactu-v1` addon, signs the invoice, submits it to the AEAT and generates the PDF.
>
> > [card] [Stripe - VERI\*FACTU invoice workflow](https://console.invopop.com/redirect/workflows/new?template=stripe-verifactu)
> >
> > Add to my workspace →
>
> > [tab] Workflow
>
> > [tab] Code
> >
> > Copy and paste into a new [Empty Invoice workflow](https://console.invopop.com/redirect/workflows/new?template=empty-invoice) code view.
> >
> > ```json Stripe VERI*FACTU invoice workflow theme={"system"}
> > {
> >     "name": "Stripe VERI*FACTU invoice",
> >     "description": "Sync from Stripe and issue a VERI*FACTU invoice",
> >     "schema": "bill/invoice",
> >     "steps": [
> >         {
> >             "id": "7dd8e370-139b-11f0-b939-af2e8ae705ac",
> >             "name": "Import invoice from Stripe",
> >             "provider": "stripe.import"
> >         },
> >         {
> >             "id": "95a82a10-139b-11f0-b939-af2e8ae705ac",
> >             "name": "Set state",
> >             "provider": "silo.state",
> >             "summary": "Set state to `processing`{.state .processing}",
> >             "config": {
> >                 "state": "processing"
> >             }
> >         },
> >         {
> >             "id": "794f78d0-139d-11f0-9ab7-c391120166e0",
> >             "name": "Modify silo entry",
> >             "provider": "silo.modify",
> >             "summary": "Add `es-verifactu-v1` addon and \"Factura\" note",
> >             "config": {
> >                 "addons": [
> >                     "es-verifactu-v1"
> >                 ],
> >                 "allow_invalid_json": false,
> >                 "data": {
> >                     "doc": {
> >                         "notes": [
> >                             {
> >                                 "key": "general",
> >                                 "text": "Factura"
> >                             }
> >                         ]
> >                     }
> >                 },
> >                 "expr": "",
> >                 "merge_type": "application/merge-patch+json",
> >                 "sign": false,
> >                 "tags": []
> >             }
> >         },
> >         {
> >             "id": "84cf92a0-139b-11f0-b939-af2e8ae705ac",
> >             "name": "Sign envelope",
> >             "provider": "silo.close"
> >         },
> >         {
> >             "id": "fc307c60-139b-11f0-b939-af2e8ae705ac",
> >             "name": "Generate VERI*FACTU",
> >             "provider": "verifactu.generate"
> >         },
> >         {
> >             "id": "fe479c90-139b-11f0-b939-af2e8ae705ac",
> >             "name": "Send invoice to VERI*FACTU",
> >             "provider": "verifactu.send"
> >         },
> >         {
> >             "id": "86a5b230-139b-11f0-b939-af2e8ae705ac",
> >             "name": "Generate PDF",
> >             "provider": "pdf",
> >             "summary": "Spanish · A4",
> >             "config": {
> >                 "date_format": "%Y-%m-%d",
> >                 "layout": "A4",
> >                 "locale": "es",
> >                 "logo_height": 40
> >             }
> >         },
> >         {
> >             "id": "8b321820-139b-11f0-b939-af2e8ae705ac",
> >             "name": "Set state",
> >             "provider": "silo.state",
> >             "summary": "Set state to `sent`{.state .sent}",
> >             "config": {
> >                 "state": "sent"
> >             }
> >         }
> >     ],
> >     "rescue": [
> >         {
> >             "id": "90f4b420-139b-11f0-b939-af2e8ae705ac",
> >             "name": "Set state",
> >             "provider": "silo.state",
> >             "summary": "Set state to `error`{.state .error}",
> >             "config": {
> >                 "state": "error"
> >             }
> >         }
> >     ]
> > }
> > ```
>
> Onboarding your suppliers is covered in the [VERI\*FACTU supplier registration guide](https://docs.invopop.com/guides/es-verifactu-supplier.md), and the wider flow in the [VERI\*FACTU guide](https://docs.invopop.com/guides/es-verifactu.md).

## Filter imported invoices

By default, every finalized invoice and credit note is imported into Invopop. To restrict what gets imported, open the [Stripe app settings](https://dashboard.stripe.com/settings/apps/com.invoicing.invopop) and use the **Filter Incoming Invoices** section:

* The **Basic** tab builds conditions on the customer country, customer email, or invoice total. All added conditions must match for an invoice to be imported.
* The **Advanced** tab accepts a [jq](https://jqlang.org/) expression evaluated against the raw Stripe event payload, for example `.data.object.customer_address.country == "DE"`.

The same filter can be edited from the Stripe app's configuration page in the Invopop console. Filters apply to newly received invoices and to retries.

## Monitor invoice processing

After setup, finalized Stripe invoices are imported into Invopop automatically and saved to the `Sales` folder. Use the steps below to verify status, review details, retry processing, and import historical invoices.

**1. Check invoice status in Stripe**

Open the invoice in Stripe and check the Invopop panel in the right sidebar to confirm whether processing succeeded. The panel shows the document's state, the timestamp it was signed at, the files generated by the workflow, and an activity list with every processing attempt.

![stripe invoice status](https://mintcdn.com/invopop/EbHEXxyU7O9VKZTc/assets/guides/stripe-successful-import.png?fit=max\&auto=format\&n=EbHEXxyU7O9VKZTc\&q=85\&s=0a2bf7dfbce7d5519dd16ccb7056a6d0)

Invoice processed successfully in Stripe

**2. Check invoice status in Invopop**

In the Invopop console, go to `Sales` and open the invoice to view its status. To review the underlying processing job, go to `Workflows` > `History` and open the job details.

![stripe job details](https://mintcdn.com/invopop/gj0LtB6xhc-5_Lcq/assets/guides/stripe-invopop-job.png?fit=max\&auto=format\&n=gj0LtB6xhc-5_Lcq\&q=85\&s=0ac3eb5a566bc05a7c875bdf81cd4899)

Job details in Invopop

**3. Troubleshoot import errors**

If an invoice fails, it is usually one of these cases:

1. The invoice was not imported into Invopop because converting from Stripe to Invopop failed. Update the data in Stripe and click **Retry** in the Invopop panel.

![stripe retry invoice](https://mintcdn.com/invopop/EbHEXxyU7O9VKZTc/assets/guides/stripe-retry.png?fit=max\&auto=format\&n=EbHEXxyU7O9VKZTc\&q=85\&s=572bf2a49bbdc9b00b2a683237aac0fc)

Retry invoice

2. The document was already signed in Invopop, so it can no longer be retried from Stripe. The panel shows a **Document is signed** notice instead of the **Retry** button — follow its **Modify invoice from Invopop** link to fix the document in the console.

![stripe signed document notice](https://mintcdn.com/invopop/EbHEXxyU7O9VKZTc/assets/guides/stripe-envelope-signed.png?fit=max\&auto=format\&n=EbHEXxyU7O9VKZTc\&q=85\&s=5acf1922cdffe8d5a9758da2f5bc2cde)

Signed documents can't be retried from Stripe

**4. Get notified of failures**

Add a notification action in your workflow's Error Handling section—Slack, email, or webhook—so you're alerted when an import fails.

If you need help tailoring a workflow to your use case, contact us at [support@invopop.com](mailto:support@invopop.com).

## Reading documents and events

The Stripe app includes a dashboard, embedded in the Invopop console, with a **Documents** tab and an **Events** tab. A document is an invoice or credit note received from Stripe; each document can have any number of associated events, one for every processing attempt.

### Documents tab

The **Documents** tab shows one row per Stripe document. Columns show the invoice code, supplier country, type, number of events (click it to open the **Events** tab filtered to that document), customer name, customer email, total, status (the latest attempt's outcome), silo entry ID, Stripe ID, payload (downloads the invoice payload fetched live from Stripe), and document ID. Rows can be filtered by invoice code (prefix), status (multi-select), and type.

### Events tab

The **Events** tab shows one row per processing attempt, with the invoice code, source, event ID, event type, status, job ID, and document ID. Rows can be filtered by document ID and status.

Each event has one of the following sources:

| Source | Meaning |
| - | - |
| `webhook` | An automatic import triggered by Stripe when an invoice is finalized or paid, depending on the configured trigger. Invoices imported by the historical backfill also appear as `webhook`. |
| `retry` | A manual send from the Stripe sidebar, using the **Retry** or **Process this invoice** buttons. |
| `console` | A job run from the Invopop console. |

Statuses apply to each attempt and, as the latest outcome, to the document:

| Status | Meaning |
| - | - |
| `pending` | The attempt is waiting to be processed. |
| `completed` | The invoice was imported and processed by the workflow. |
| `filtered` | The invoice was excluded by the import filter. |
| `failed` | The attempt errored; the reason is shown on the attempt. |

The same attempts appear in the invoice's activity list in the Stripe sidebar.

## FAQ

> [accordion] Can I change the workflow that processes my invoices to a different one?
>
> Yes, you can, at any time select a different workflow to sync your Stripe invoices. You can do this both from Stripe or Invopop.
>
> Option 1: From Stripe
>
> 1. Go to [Stripe app settings](https://dashboard.stripe.com/settings/apps/com.invoicing.invopop)
> 2. Select a different workflow
> 3. Click **Save changes**
>
> ![stripe change workflow](https://mintcdn.com/invopop/gj0LtB6xhc-5_Lcq/assets/guides/stripe-settings.png?fit=max\&auto=format\&n=gj0LtB6xhc-5_Lcq\&q=85\&s=038a1599a2a5d3ab869620c423efd528)
>
> Select a different workflow in Stripe
>
> Option 2: Through Invopop
>
> 1. Navigate to the **Apps** section in your [Invopop console](https://console.invopop.com/)
> 2. Locate the Stripe app settings
> 3. Select your new workflow
>
> ![stripe change workflow](https://mintcdn.com/invopop/gj0LtB6xhc-5_Lcq/assets/guides/stripe-invopop-settings.png?fit=max\&auto=format\&n=gj0LtB6xhc-5_Lcq\&q=85\&s=cee0cd319d2002ee5f7b9ffb73ae3278)
>
> Select a different workflow in Invopop

> [accordion] How can I switch to a different Invopop workspace?
>
> You can switch the Stripe connection to a different workspace by disconnecting and reconnecting the app.
>
> 1. Go to [Stripe app settings](https://dashboard.stripe.com/settings/apps/com.invoicing.invopop)
> 2. Click the **Disconnect** button
> 3. Reconnect the app and select your new workspace

> [accordion] How can I add a Purchase Order number to the invoice?
>
> Stripe does not include a dedicated Purchase Order field on invoices. Add it as a custom field named `PO Number`.
>
> You can add the custom field in any of these places:
>
> * The specific invoice
> * The subscription
> * An invoice template

> [accordion] Can I import historical invoices (issued before I connected Invopop)?
>
> Yes. Open the invoice in Stripe and click **Process this invoice** in the Invopop panel (right sidebar).
>
> Note: The invoice issue date will be set to the sync date (today), as required by tax agencies. The operation date remains the original date of the transaction.
>
> ![stripe import historic invoices](https://mintcdn.com/invopop/gj0LtB6xhc-5_Lcq/assets/guides/stripe-import-historic-invoices.png?fit=max\&auto=format\&n=gj0LtB6xhc-5_Lcq\&q=85\&s=f6f59735883724d656ffb448b7646e51)
>
> Import historic invoices

> [accordion] Can I import invoices when paid instead of when finalized?
>
> Yes. You can import on payment instead of on finalization. Update the invoice import trigger in either Stripe or Invopop:
>
> Option 1: In Stripe
>
> 1. Go to [Stripe app settings](https://dashboard.stripe.com/settings/apps/com.invoicing.invopop)
> 2. In "Invoice Import Trigger", select "When Paid" (instead of "When Finalized").
> 3. Click **Save Changes**.
>
> ![stripe import trigger](https://mintcdn.com/invopop/gj0LtB6xhc-5_Lcq/assets/guides/stripe-import-trigger.png?fit=max\&auto=format\&n=gj0LtB6xhc-5_Lcq\&q=85\&s=cb8effc105b08d07d9a4b04b47407b3e)
>
> Update invoice import trigger in Stripe
>
> Option 2: In Invopop
>
> 1. Go to **Configuration** > **Apps** > **Stripe** > **Configure**.
> 2. Click **Update Settings**.
> 3. In "Invoice import trigger", select "When Paid" (instead of "When Finalized").
> 4. Click **Save**.
>
> ![stripe import trigger](https://mintcdn.com/invopop/gj0LtB6xhc-5_Lcq/assets/guides/stripe-when-paid.png?fit=max\&auto=format\&n=gj0LtB6xhc-5_Lcq\&q=85\&s=54ca8f32750456dafa81efc63728193e)
>
> Update invoice import trigger
>
> Note: This applies to invoices from now on; it does not change past imports.

> [accordion] I get an "access denied: unexpected tax regime" error when processing invoices
>
> This error means the invoice's tax regime does not match the one expected by the workflow step. For example, VERI\*FACTU requires a Spanish regime and KSeF requires a Polish regime. The regime is automatically determined by the supplier's tax ID country.
>
> The most common cause is that the supplier's tax ID is missing from the invoice. To fix this, make sure you have completed Step 5 of the [setup](#setup): go to **Settings** > **Billing** > **Invoices**, enter your tax ID, and set it as the default. Stripe does not automatically include your account tax ID on invoices.
>
> Once the tax ID is set as default, it will appear on new invoices and the error should disappear.

> [card] [Participate in our community](https://community.invopop.com)
>
> Ask and answer questions about Stripe integration →


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.