# Campfire Integration

Integrating Campfire with Sphere enables a.) seamless transaction data import and b.) live tax calculation within Campfire invoices.&#x20;

This guide provides step-by-step instructions on generating an API key in Campfire, linking it to Sphere for a secure integration, and setting up a webhook connection between the two platforms.

It also covers configuring the Sphere Tax API within Campfire to ensure accurate tax calculations.

### Part 1: Configure Data Synchronization from Campfire to Sphere

Follow the steps below to get started:

1. In your **Sphere account**, click on the **Connect** button on the Campfire tile.

<figure><img src="https://970780403-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCwrKUWiKw8qxo6t83mBG%2Fuploads%2FnghA40LQeSI4P1QUrJVm%2FCampfire.png?alt=media&#x26;token=4a061c44-2114-4a9a-9673-189203b0dd16" alt=""><figcaption></figcaption></figure>

2. In another window, open your **Campfire Dashboard** and navigate to the **Settings** tab. Click **API Keys** under the Developer section.

<figure><img src="https://970780403-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCwrKUWiKw8qxo6t83mBG%2Fuploads%2F5Mx5wllts0pEe6AZmURI%2FScreenshot%202025-02-05%20at%2012.47.39%E2%80%AFPM.png?alt=media&#x26;token=142b75f3-8879-421e-899d-7580ad175d14" alt=""><figcaption></figcaption></figure>

3. In the **API Keys** section, click **Create API Key** to generate a new key.

<figure><img src="https://970780403-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCwrKUWiKw8qxo6t83mBG%2Fuploads%2FFA4lB3Qkiaw57EKCTzv9%2FScreenshot%202025-02-05%20at%2012.49.45%E2%80%AFPM.png?alt=media&#x26;token=45c38edb-b24a-44a4-8409-4dd9a1a5149f" alt=""><figcaption></figcaption></figure>

4. Go back to the your **Sphere account** and enter the API key generated in Step 3. Ensure there are no extra spaces before or after the value.

<figure><img src="https://970780403-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCwrKUWiKw8qxo6t83mBG%2Fuploads%2F2QVjFoqjujLyiRyWSWAG%2FKey.png?alt=media&#x26;token=ccbd4764-0a9c-44dd-a288-f4f5bc926e85" alt=""><figcaption></figcaption></figure>

5. Click **Next** to complete the setup. A success message will confirm the connection.
6. Next, you'll proceed with setting up the webhook. Copy the **Campfire Webhook URL**.

<figure><img src="https://970780403-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCwrKUWiKw8qxo6t83mBG%2Fuploads%2FO0cNtrvBtWUCT6lCsM5Y%2FURL.png?alt=media&#x26;token=cc0ed3e8-740d-478c-b2ad-8793f6e08485" alt=""><figcaption></figcaption></figure>

7. Return to the **Campfire Dashboard**, go to the **Settings** tab in the left menu, and click **Webhooks**.

<figure><img src="https://970780403-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCwrKUWiKw8qxo6t83mBG%2Fuploads%2FUnDET0dTFH9oWAGGf2kS%2FScreenshot%202025-03-07%20at%205.42.56%E2%80%AFPM.png?alt=media&#x26;token=fa6643f3-76d6-4d44-be77-4e914f4fcbaf" alt=""><figcaption></figcaption></figure>

8. Create a new webhook and paste the URL you copied from Step 6. Ensure the "Active" checkbox is selected, enable all invoice-related topics from the list, and click "**Save**" when finished.

   **Enabled topics:**

   * Invoice.created
   * Invoice.updated
   * Invoice.deleted
   * Invoice.payment
   * Invoice.paid

<figure><img src="https://970780403-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCwrKUWiKw8qxo6t83mBG%2Fuploads%2FoWktlZ9s78YCArPt4bbH%2FScreenshot%202025-03-07%20at%207.37.53%E2%80%AFPM.png?alt=media&#x26;token=9186701f-06a4-41fa-8aa7-4225d6207d32" alt=""><figcaption></figcaption></figure>

9. Once the webhook is enabled, copy the **HMAC-SHA256** secret in this step.

<figure><img src="https://970780403-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCwrKUWiKw8qxo6t83mBG%2Fuploads%2FPMzvYwtrZcaN4XPkFiwE%2FScreenshot%202025-03-07%20at%205.48.17%E2%80%AFPM.png?alt=media&#x26;token=dcf1f17d-0724-4191-977f-518a8e596342" alt=""><figcaption></figcaption></figure>

10. Go back to your Sphere account. In the **Campfire Webhook Secret** input field, paste the **Signing Secret** copied in Part 9, then click **Done**.

<figure><img src="https://970780403-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCwrKUWiKw8qxo6t83mBG%2Fuploads%2Fhg1zFTueuEK7UepVw5pj%2FURL%20(2).png?alt=media&#x26;token=dfe1fe3b-828a-4e5b-922d-2e1b5647a40c" alt=""><figcaption></figcaption></figure>

11. You’re all set! If the connection is successful, data will begin importing, and after some time, your products will appear in **Sphere**. You'll then need to assign tax codes to each of your products and tax will automatically populate on invoices in regions you are registered and where you've enabled automatic tax calculation.

<figure><img src="https://970780403-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCwrKUWiKw8qxo6t83mBG%2Fuploads%2Fkt4HHP8VjaXTqdACLYlB%2FAssign%20code_Camp.png?alt=media&#x26;token=c7ef48cd-0e4d-4658-b2c1-0df90781388f" alt=""><figcaption></figcaption></figure>

### Part 2: Create a Sphere Tax API Key for Tax Calculation

**Note:** Currently, the Campfire app does not have a field to input the Sphere API key. To set it up, the API key must be shared with the Campfire team.

1. Click the **"Edit"** button on the Campfire integration card to make changes.

<figure><img src="https://970780403-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCwrKUWiKw8qxo6t83mBG%2Fuploads%2FT4L1j4JZGUL7UKHomQpq%2FCampfire.png?alt=media&#x26;token=9a002a42-172e-49c5-ac11-3e26755059ad" alt=""><figcaption></figcaption></figure>

2. This will open a modal displaying the integration details. Click **"Generate API Key"** to create a new key.

<figure><img src="https://970780403-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCwrKUWiKw8qxo6t83mBG%2Fuploads%2F3lO0aY3SPx4Etzcqpm6d%2FCamp_API.png?alt=media&#x26;token=b726415a-0e8f-4898-8b0e-b0a332c8c880" alt=""><figcaption></figcaption></figure>

3. Follow the steps to create a new API key.

<figure><img src="https://970780403-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCwrKUWiKw8qxo6t83mBG%2Fuploads%2FZBNqPw72aKSSedbhWiGa%2FCamp_API%20(1).png?alt=media&#x26;token=357b7a2b-6751-4c43-b30b-521bc684dc6a" alt=""><figcaption></figcaption></figure>

4. Make sure to store the newly generated key securely, as you won’t be able to view it again later. You will need to share this with the Campfire team to set it up for your account.

<figure><img src="https://970780403-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCwrKUWiKw8qxo6t83mBG%2Fuploads%2FSZsvkQ4OxHmTyT2RpIMr%2FCamp_API%20(2).png?alt=media&#x26;token=a93fe843-49c7-4bde-a08c-322e5b514d1e" alt=""><figcaption></figcaption></figure>

5. This step is optional; you can revoke an existing key and generate a new one if necessary.

<figure><img src="https://970780403-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCwrKUWiKw8qxo6t83mBG%2Fuploads%2FchnLnB3yXyO40mEYAqfX%2FCamp_API%20(3).png?alt=media&#x26;token=2072d477-89d9-4b11-a128-5d2604c7d72b" alt=""><figcaption></figcaption></figure>

**Tax Calculation Flow**

When creating an invoice, after filling in all the details, you need to manually click the “Apply Tax From Sphere” button in Campfire. Note: After every change to the invoice, remember to click the button again so taxes can be recalculated.

<figure><img src="https://970780403-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCwrKUWiKw8qxo6t83mBG%2Fuploads%2FtM40sh7xipUQPvuAbc0K%2FScreenshot%202025-12-05%20at%202.21.48%E2%80%AFPM.png?alt=media&#x26;token=a2901401-a3a6-441e-a997-1aefa6ab05df" alt=""><figcaption></figcaption></figure>

<figure><img src="https://970780403-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCwrKUWiKw8qxo6t83mBG%2Fuploads%2FnR3wxJ0tMSfv1k2xVaw2%2FScreenshot%202025-12-05%20at%202.21.53%E2%80%AFPM.png?alt=media&#x26;token=1fe0a11a-fdd6-435e-8dc4-3ea4cf5acf3b" alt=""><figcaption></figcaption></figure>

<figure><img src="https://970780403-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FCwrKUWiKw8qxo6t83mBG%2Fuploads%2FA6l0jYmJafgN7LZWQVTo%2FScreenshot%202025-12-05%20at%202.22.13%E2%80%AFPM.png?alt=media&#x26;token=fff88002-5a41-493a-8c75-37cdc76e68a9" alt=""><figcaption></figcaption></figure>
