FreshBooks

Accounting Software Built for Business Owners and Accountants

Go to site
Explore
/
Apps
/
FreshBooks

FreshBooks API Integrations

Build and run workflows using the FreshBooks API. Use 1000s of source-available triggers and actions across 1000+ apps. Or write custom code to integrate any app or API in seconds.

Overview

With the FreshBooks API, you can build applications that:

  • Create and manage invoices
  • Track payments
  • Manage clients
  • Generate reports
  • And more!
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { axios } from "@pipedream/platform"
export default defineComponent({
  props: {
    freshbooks: {
      type: "app",
      app: "freshbooks",
    }
  },
  async run({steps, $}) {
    return await axios($, {
      url: `https://api.freshbooks.com/auth/api/v1/users/me`,
      headers: {
        Authorization: `Bearer ${this.freshbooks.$auth.oauth_access_token}`,
      },
    })
  },
})

Choose an API to Connect with FreshBooks API

1
-
12
of
1000+
apps by most popular

Authentication

FreshBooks uses OAuth authentication. When you connect your FreshBooks account, Pipedream will open a popup window where you can sign into FreshBooks and grant Pipedream permission to connect to your account. Pipedream securely stores and automatically refreshes the OAuth tokens so you can easily authenticate any FreshBooks API.

Pipedream requests the following authorization scopes when you connect your account:

OAuth Request Configurations:
  1. authorization
    GEThttps://auth.freshbooks.com/oauth/authorize/?client_id={{oauth.client_id}}&redirect_uri={{oauth.redirect_uri}}&state={{oauth.state}}&response_type=code&scope={{oauth.space_separated_scopes}}
  2. accessToken
    POSThttps://api.freshbooks.com/auth/oauth/tokencontent-type: application/x-www-form-urlencodedaccept: application/json
    client_id={{oauth.client_id}}&client_secret={{oauth.client_secret}}&redirect_uri={{oauth.redirect_uri}}&grant_type=authorization_code&code={{oauth.code}}
  3. refreshToken
    POSThttps://api.freshbooks.com/auth/oauth/tokencontent-type: application/x-www-form-urlencodedaccept: application/json
    client_id={{oauth.client_id}}&client_secret={{oauth.client_secret}}&grant_type=refresh_token&refresh_token={{oauth.refresh_token}}