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

# Campfire

> Connect Campfire to sync customers, invoices, credit notes, payments, and subscription contracts from Hyperline.

Connect Campfire to send your billing data from Hyperline to your accounting system. You can also sync subscriptions as contracts so Campfire can schedule revenue recognition.

## Prerequisites

Before you connect, make sure you have:

* A Campfire account and API key.
* Permission to manage integrations in Hyperline.
* The Campfire entities, products, and accounts you want to use for your billing data.

## Setup

1. In Hyperline, go to **Settings > Integrations**.
2. Click **Connect** on the **Campfire** card and enter your Campfire API key.
3. Open **Settings > Integrations > Campfire** and map each Hyperline invoicing entity to the corresponding Campfire entity.
4. Select your customer and payment synchronization settings.
5. Map your products, or enable **Auto-create missing products** and select a **New product account code**.
6. If you send payments to Campfire, select a **Default payment account** or configure an accounting payment rule that supplies the cash account.
7. Enable **Sync subscriptions as contracts** if you want Campfire to schedule revenue from your subscriptions.

> [!NOTE]
>
> Each invoicing entity that sends invoices needs a Campfire entity mapping. An invoice cannot sync without it.

## Settings

Configure these options on **Settings > Integrations > Campfire**:

| Setting | Purpose |
| - | - |
| **Default payment account** | Cash account used for payments when no accounting payment rule supplies an account. Select it from your Campfire chart of accounts. |
| **Credit note account code** | Fallback revenue account for credit note lines without a mapped account. If unset, Hyperline uses the **New product account code**. |
| **Sync subscriptions as contracts** | Sends subscriptions to Campfire as contracts for revenue scheduling. Disabled by default. |
| **Auto-create missing products** | Creates Campfire products for unmapped Hyperline catalog products and saves the mappings for later syncs. Disabled by default. |
| **New product account code** | Revenue account assigned to automatically created products. Required when a missing product needs to be created. |
| **Auto-create missing tax codes** | Attaches a Campfire tax code, such as `GERMANY-VAT-19`, to each invoice line taxed by the tax engine. Hyperline creates missing codes on the default tax account set in Campfire. Disabled by default. |

## Mapping

### Customers

To link an existing Campfire customer, open the customer page in Hyperline, click **Edit** in the **Integrations** section, and enter the Campfire customer ID.

You can select whether Hyperline creates customers in Campfire:

* **From Hyperline to Campfire**: Hyperline creates customers in Campfire when needed for synchronization.
* **No synchronization**: link your customers manually before sending their invoices.

### Products

For each product in Hyperline, open its **Accounting** section and enter the corresponding Campfire product ID in **Product code**. Hyperline accepts either the Campfire record ID or its product identifier.

If you prefer to create products automatically, enable **Auto-create missing products** and select a **New product account code** in the integration settings. Hyperline reuses the saved mapping on subsequent syncs.

> [!NOTE]
>
> Without automatic product creation, missing product mappings prevent invoice synchronization. Map the affected products, then retry the sync.

### Taxes

Hyperline sends the tax amounts calculated on each invoice line to Campfire. Configure your taxes in Hyperline before issuing invoices. See [Tax management](https://docs.hyperline.co/docs/invoices/tax-management.md).

To also attach a Campfire tax code to each line taxed by the tax engine, enable **Auto-create missing tax codes** in the [settings](#settings).

## Synchronization

### Invoices and credit notes

Hyperline sends invoices and credit notes to Campfire as invoices and credit memos, including their line items. Hyperline also sends changes to linked invoices. Voiding a document in Hyperline triggers the corresponding void operation in Campfire.

### Usage-based billing

Hyperline calculates your usage charges and sends the billed invoice lines to Campfire. Each line includes the billed quantity, unit price, and total excluding tax after discounts. Discounts and tax amounts are sent separately. Amounts use the invoice currency, such as euros or dollars.

To keep the line total consistent with Campfire's two-decimal unit prices, Hyperline checks whether quantity multiplied by the rounded unit price, minus discounts, matches the billed amount. If the difference exceeds 0.01 in the invoice currency, Hyperline sends a quantity of **1** and uses the line total before discounts as the unit price. For quantities greater than 1, the original quantity appears in the description. The billed amount stays the same.

> [card] Example 💡
>
> You bill 10,000,000 units at €0.00018350 each, for €1,835 excluding tax. The unit price would round to €0.00 in Campfire, so Hyperline sends quantity **1**, unit price **€1,835**, and amount **€1,835**. The description includes **10,000,000 units**.

#### When usage syncs

Usage sync follows your invoice lifecycle. Hyperline sends the invoice when it is ready and syncs subsequent updates and settlement. Draft and open invoices are not sent, and payment is not required for the initial invoice sync.

For monthly usage billed in arrears, the actual usage charges reach Campfire once the billing period closes and the invoice is ready. This follows your billing schedule; there is no separate calendar month-end usage sync or continuous stream of usage events to Campfire.

#### Usage revenue and revenue recognition

Invoice sync sends the actual billed usage amounts, invoice date, and available service-period dates. When contract sync is enabled and the link is available, it also sends a link to the subscription's Campfire contract.

Contract sync runs when a subscription is activated or updated. Its values and schedules come from configured subscription prices, not accumulated consumption. A usage product without a configured price is included with zero contract value and zero monthly recurring revenue; its actual charges arrive later through invoices.

> [!NOTE]
>
> Hyperline does not continuously send unbilled usage accruals or update the contract's usage schedule with actual consumption. Linking a usage invoice to a contract does not by itself confirm how Campfire recognizes that revenue. Check your revenue-recognition setup in Campfire for the intended treatment of billed usage.

### Payments

Select **No synchronization** or **From Hyperline to Campfire** for payments. You can apply a setting across payment methods or configure each method separately.

When enabled, Hyperline sends settled payments to the corresponding Campfire invoice. Accounting payment rules can select the cash account; otherwise, Hyperline uses **Default payment account**. See [Accounting rules](https://docs.hyperline.co/docs/accounting/rules.md).

> [!NOTE]
>
> Campfire requires a cash account for payments. If neither a payment rule nor the default provides one, payment synchronization fails.

### Subscription contracts

When **Sync subscriptions as contracts** is enabled, Hyperline creates and updates Campfire contracts from your subscriptions. Subscription cancellation triggers termination of the linked contract. For evergreen contracts, Campfire requires termination at a billing-period end.

> [card] Example 💡
>
> You bill a customer annually for a software subscription. Enable contract sync to send the subscription to Campfire for revenue scheduling, while Hyperline sends the invoice and its payment according to your synchronization settings.

## Synchronization rules

Synchronization rules select revenue accounts for Campfire credit memos and cash accounts for payments. Regular invoice lines use the mapped Campfire product; a rule does not override that product's revenue account.

| Entity type | What it controls | Available filters |
| - | - | - |
| **Invoice** | Revenue account for credit memo lines. | Products, product type, coupons, currency, country, tax scheme, tax territory, tax rate class, billing interval, invoice types, and custom properties. |
| **Transaction** | Cash account for payments sent to Campfire. | Payment providers, payment methods, bank accounts, and currencies. |

1. Open **Settings > Integrations > Campfire**. In **Synchronisation rules**, open the rule count card or **No rules configured**, then click **Add rule**.
2. Select the **Invoicing entity** if prompted, enter a **Name**, and select **Invoice** or **Transaction** as the **Entity type**.
3. Under **Applied on**, add filters, or leave them empty for a default rule.
4. Select a **Revenue account** for credit memo mappings or an **Asset account** for payment mappings. Use **Sync accounts from Campfire** to refresh the account list.
5. Click **Save changes**.

Credit memo lines without a rule account fall back to **Credit note account code**, then **New product account code**. Payments without a rule account use **Default payment account**. A payment cannot synchronize if neither the rule nor the default supplies a cash account.

> [card] Example 💡
>
> Create separate **Transaction** rules for card payments and bank transfers. Assign the first to your card clearing account and the second to your bank account so Campfire records each payment in the appropriate account.

Journal selection is not available in Campfire synchronization rules. Keep the invoicing entity and product mappings configured as described in [Mapping](#mapping).

## Troubleshooting

Open **Settings > Integrations > Campfire > View issues** to review synchronization failures.

| Issue | What to check |
| - | - |
| Missing entity mapping | Link the invoice's Hyperline invoicing entity to its Campfire entity. |
| Missing product mapping | Set **Product code** on the affected products, or enable **Auto-create missing products** with a valid **New product account code**. |
| Payment cannot sync | Set **Default payment account** or configure a payment rule that supplies a valid Campfire cash account. |

After correcting the configuration, use **Resync** to retry affected data. See [Manage connected integrations](./manage-integration) for resync options and connection management.

> [!NOTE]
>
> If you need help with setup or synchronization, reach out to the team via the in-app chat.


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