Introduction
Chargebee is a subscription management and billing platform designed for businesses that rely on recurring revenue. It automates tasks like subscription billing, invoicing, payment processing, and revenue recognition. Invopopโs Chargebee app lets you issue locally compliant electronic invoices and credit notes from Chargebee.How it works
The Invopop Chargebee app will subscribe to new incoming invoices and credit notes. When a new document is received, itโll be converted into GOBL, and stored in your Invopop workspace.
Once an invoice or credit note is stored, the app will create a job on the configured workflow.
Any updates and, importantly, error messages will be posted to Chargebee automatically, in the comment section of the invoice or credit note. We also recommend configuring workflows to send notifications via Slack or email to ensure any issues can be addressed quickly.

Setup
This guide assumes that you already have a Chargebee site configured and using Product Catalog 2.0. Sites created after May 05, 2021, will have this version enabled by default. If your site was created before this date, you may need to migrate to Product Catalog 2.0. More details here.Create a Supplier
First we need to store the details of the supplier (the owner of the Chargebee account) in Invopop:
- In the console, navigate to โContactsโ โ โSuppliersโ and tap โNew supplierโ.
- Add the companyโs contact details, including the name and tax code.
- If youโre issuing invoices from a region that requires special fields, please contact Invopop support for assistance.
- Save the document.
Prepare a Workflow
- Template
- Code
- Build from scratch
Chargebee Basic PDF workflow
This workflow syncs with Chargebee and generates a basic PDF.
- Template
- Code
- Build from scratch
Chargebee ZUGFeRD
This workflow syncs with Chargebee, and generates a ZUGFeRD XML and PDF.
Connect the Chargebee app
You are now ready to connect and configure the Chargebee app itself. Go to Configuration โ Apps in the Invopop console. Find the Chargebee app, then click on Connect. The app will be added to the list of active apps. Click on the appโs Configure button. Youโll see a form with the following fields:
- Chargebee Site: The identifier of your Chargebee site. It is the part of the URL when you log in to Chargebee before the
.chargebee.comdomain. For example, if your URL ishttps://my-site.chargebee.com, your site ismy-site. - Chargebee API Key: The API key used to access Chargebee. Go to โSettingsโ โ โConfigure Chargebeeโ โ โAPI Keysโ in the Chargebee UI to create one. Keep in mind that the used API must be a Full-Access Key.
- Supplier: The supplier that will issue the invoices. You can select the one you created earlier.
- Workflow: The workflow that will process the invoices. You can select the one you created earlier.
- Ignore Chargebeeโs invoice codes: If
true, the app will ignore the invoice numbers set by Chargebee and let the workflow assign them instead. In special cases, such as Portugal and Colombia, invoice codes are regulated, and this setting should be set totrue.
- Exemption Code (Generic): The local code to be used by default on tax-exempt invoices.
- Exemption Code (Exports): The local code to be used by default on tax-exempt invoices for exports.
- Exemption Code (Reverse Charge): The local code to be used by default on tax-exempt invoices for reverse charge.
Enter extension data
To generate valid invoices, most tax regimes require the issuer to provide custom data specific to that regime. GOBL provides mechanisms such as extensions, identities, or inboxes to carry that custom data. Please refer to the specific regime documentation to determine what is required and available in each regime.To enter this data in Chargebee, you can either configure custom fields or attach metadata to any of these entities: Customer, Plan Item, Plan Item Price, Action Item, Action Item Price, Charge Item, Charge Item Price, and Subscription.The keys of these metadata or custom fields need to have a specific prefix and include the extension, identity, or inbox key to be properly mapped to GOBL. Refer to the Custom Data section below for the full list of prefixes.For example, to set the customerโs 
Alternatively, you could set it as Customer metadata using the
mx-cfdi-fiscal-regime extension, you must add a custom field to the Customer entity with the API name: cf_gobl_mx_cfdi_fiscal_regime (note that, being a custom field, dashes in the original extension key are replaced by underscores). You can create it in Settings โ Configure Chargebee โ Custom Fields:
gobl-customer-mx-cfdi-fiscal-regime key (note that dashes, instead of underscores, are used in the metadata key):Country-specific workflows
Depending on where your customers are located, youโll need a different workflow to comply with local e-invoicing requirements. Below youโll find the recommended workflow template, video walkthrough, and key custom fields for each supported country.The metadata keys listed in the tables below follow the Chargebee metadata format (hyphens, no
cf_ prefix). If you prefer to use custom fields instead, replace hyphens with underscores and add the cf_ prefix. For example, gobl-customer-inbox-peppol becomes cf_gobl_customer_inbox_peppol.Controlling which customers are processed
By default, Invopop will process invoices for all your customers. If you only need to send e-invoices to a subset of them, you have two options โ pick one, not both:- Allowlist: Create the
cf_invopop_includecustom field and set it totruefor the customers you want to process andfalsefor everyone else. - Denylist: Create the
cf_invopop_excludecustom field and set it totruefor customers you want to exclude. Everyone else will be processed by default.
๐ง๐ช Belgium
Belgium uses the Peppol network for e-invoicing, which became mandatory in January 2026. The format used is Peppol BIS Billing UBL โ the standard Peppol format โ with one important Belgian-specific requirement: customers always expect to receive a PDF alongside the XML. To handle this, the workflow first downloads the existing Chargebee PDF and attaches it to the UBL document before sending it through Peppol. Required apps: Peppol, OASIS UBLBefore processing any invoices, you must register your supplier on the Peppol network through Invopop. See the Peppol guide for registration steps, and the Belgium Peppol guide for Belgium-specific details.
- Template
- Code
Chargebee Peppol
Syncs with Chargebee, downloads the PDF, looks up the customerโs Peppol participant ID, and sends via the Peppol network.
Participant ID lookup
Belgium enforces a standard set of Peppol participant ID schemes, all derived from the customerโs BCE number (Belgian company registration number). Since this number is typically available in Chargebee, the Lookup Participant ID step can automatically resolve the correct Peppol ID for each customer โ no manual setup required in most cases. If you want to specify a Peppol ID manually for a particular customer (or override the lookup result), you can do so with the following custom field:| Field | Metadata key | Custom field key | Example |
|---|---|---|---|
| Peppol Participant ID | gobl-customer-inbox-peppol | cf_gobl_customer_inbox_peppol | 0208:0123456789 |
๐ฉ๐ฐ Denmark
Denmark also uses the Peppol network and the same Peppol BIS Billing UBL format. However, unlike Belgium, Danish Peppol participant IDs come in a wide variety of schemes โ GLN numbers, CVR numbers, and others โ and they donโt all derive from the VAT number. This makes automatic lookup unreliable, so this workflow does not include a Lookup Participant ID step. You will need to set the Peppol ID directly on each customer as a custom field. If you do want to use automatic lookup for some customers, you can add the lookup step from the generic Peppol template. Required apps: Peppol, OASIS UBLBefore processing any invoices, you must register your supplier on the Peppol network through Invopop. See the Peppol guide for full registration steps.
- Template
- Code
Chargebee DK E-invoicing
Syncs with Chargebee and sends via Peppol to Danish customers, with automatic SEPA payment key handling.
Peppol Participant ID
Since there is no automatic lookup, the Peppol Participant ID must be set on each Danish customer before any invoices are processed. Use Chargebeeโs bulk operations to back-populate this field across all your Danish customers before going live.| Field | Metadata key | Custom field key | Example |
|---|---|---|---|
| Peppol Participant ID | gobl-customer-inbox-peppol | cf_gobl_customer_inbox_peppol | 0088:5790000435968 (GLN) |
SEPA payment key
The workflow includes one Denmark-specific step: Fixing bank-transfer details. If Chargebee sends acredit-transfer payment instruction on the invoice, this step automatically converts it to credit-transfer+sepa. Plain credit-transfer is not accepted in Denmark โ the more specific SEPA variant is required. If the invoice has no payment instructions, the step is skipped. Thatโs the only difference from a standard Peppol workflow.
๐ฉ๐ช Germany
Germany supports two structured e-invoicing formats: ZUGFeRD and X-Rechnung. Both are valid and supported by Invopop, but they serve different purposes and have different requirements.- ZUGFeRD is the most common choice for B2B invoicing. It has fewer validation constraints, which is why we always recommend embedding the XML inside a PDF โ your customer receives a standard-looking PDF that also contains a machine-readable file. No per-customer setup is required.
- X-Rechnung is primarily used for B2G invoicing (invoicing public authorities). It has stricter validations and more required fields, but if your customers require it, Invopop fully supports it.
Using Chargebeeโs email delivery
For Invopop to update the invoice in Chargebee and trigger Chargebeeโs own email delivery to your customer, you will need a Full Access API key. Beyond that, the following conditions must be met in Chargebee โ if any of these are not in place, Chargebee will not forward the generated PDF (or XML, in the case of X-Rechnung) to your customer:- The
SEND_EINVOICE_NOTIFICATIONfeature flag must be enabled on your Chargebee site. Contact your Chargebee representative to enable this. - Your Chargebee siteโs business profile country must be set to Germany (or Spain โ the two countries with PDF e-invoicing requirements).
- The
cf_invopop_includecustom field must be present and set totrueon each customer you want to process. - Invoice and credit note email notifications must be enabled on your Chargebee site.
- ZUGFeRD (B2B)
- X-Rechnung (B2G)
Chargebee ZUGFeRD
Syncs with Chargebee, downloads the Chargebee PDF, generates a ZUGFeRD XML, and embeds both into a single hybrid PDF.
For a full walkthrough including required apps, email delivery setup, and custom fields, see the Germany section of the Chargebee guide.
Example Chargebee ZUGFeRD workflow
Retriggering Invoices
There may be situations where you need to reprocess an invoice. The method depends on whether Invopop has already created a silo entry (invoice) for it.No Silo Entry Created (Invoice Not Imported)
If no job was created and no silo entry exists in Invopop, you can retrigger the webhook directly from Chargebee:- Go to the Customers page in Chargebee
- Click on the customer in question
- Scroll down to History
- Go to the Events tab
- Select the Invoice Generated event for the invoice and date you want to reprocess
- Click Resend Webhook for the Invopop webhook
Silo Entry Already Exists
Once a silo entry (invoice) has been created in Invopop, retriggering from Chargebee will not work. Use the Run Again option on the last job instead. How you proceed depends on whether anything in Chargebee has changed.Error is downstream โ data hasnโt changed
If the failure happened after the invoice was already signed (e.g. the Generate UBL or Send Peppol step failed) and nothing has changed in Chargebee, you can simply run the workflow again:- In the Invopop console, navigate to the workflow that processed the invoice
- Find the last job for that invoice
- Click Run Again
Data has changed in Chargebee โ signature needs to be removed
The Import Chargebee document step updates the invoice with fresh data from Chargebee each time it runs. However, if the invoice has already been signed, the import step will skip this update to preserve the signature. If you need the latest data from Chargebee to be pulled in โ for example, because you updated a customerโs custom fields, corrected an error, or the failure happened before or during signing โ you must first remove the signature:- In the Invopop console, navigate to the silo entry for that invoice
- Click Edit, then Save โ this removes the signature without altering the data
- Go to the workflow, find the last job for that invoice, and click Run Again
Custom Fields & Metadata
The following prefixes are used to map custom fields from Chargebee to GOBL (all of type Single line text):| Prefix | Description | Example |
|---|---|---|
cf_gobl_tax_ | Invoice tax extension | cf_gobl_tax_gr_mydata_invoice_type |
cf_gobl_customer_ | Customer extension | cf_gobl_customer_mx_cfdi_fiscal_regime |
cf_gobl_customer_identity_ | Customer identity | cf_gobl_customer_identity_de_tax_number |
cf_gobl_customer_inbox_ | Customer inbox | cf_gobl_customer_inbox_it_sdi_pec |
cf_gobl_item_ | Item extension | cf_gobl_item_br_nfse_service |
cf_gobl_line_vat_ | VAT extension | cf_gobl_line_vat_pt_saft_exemption |
cf_gobl_purchase_identity_ | Ordering purchase identity | cf_gobl_purchase_identity_CIG |
In addition to using custom fields, you can also set GOBL data as metadata in Chargebee. When using metadata, underscores must be replaced with hyphens, and the
cf- prefix can be omitted.For example, the custom field cf_gobl_item_br_nfse_service would become gobl-item-br-nfse-service if passed as metadata.This applies to all the fields listed in this section.| Key | Description | Type |
|---|---|---|
cf_gobl_tags | Invoice tags (comma-separated list) | Single line text |
cf_gobl_addons | Invoice addons (comma-separated list) | Single line text |
cf_gobl_ordering | Invoice ordering (full JSON) | Single line text |
| Key | Description | Type |
|---|---|---|
cf_invopop_include | Customer to include when importing (if โTrueโ) | Checkbox |
cf_invopop_exclude | Customer to exclude when importing (if โTrueโ) | Checkbox |
cf_invopop_workflow | Workflow to use for this Customer (overrides the default one) | Dropdown |
Participate in our community
Ask and answer questions about your Chargebee integration โ
