FreshBooks

FreshBooks is cloud accounting and invoicing software for small businesses and their accountants: invoices, payments, expenses, time tracking, projects and financial reports.

The FreshBooks API gives access to clients, invoices, estimates, payments, recurring invoices, expenses, bills and vendors, items and taxes, projects, time entries, team members, accounting reports, ledger accounts and webhooks.

With Declarative Webhooks you can create FreshBooks clients from Salesforce Accounts, invoice Opportunities, record payments, track invoice status and payments back in Salesforce, log time against projects, and receive FreshBooks webhooks to keep Salesforce up to date.

Documentation URL: https://www.freshbooks.com/api/start

Installable Elements              (No items selected)



Base Elements

These elements are required for the templates below to work

  • Salesforce Auth Provider handling the FreshBooks OAuth 2.0 authorization.

  • Named Credential used by all FreshBooks templates to call the API with the OAuth token of the Auth Provider.

  • Custom Metadata storing the FreshBooks account ID, business ID and business UUID used in the URLs of the templates.

Account

Identity (account and business IDs), abilities, system settings and payment gateways.

  • This is an important endpoint and likely the first authenticated request you'll want to make to the FreshBooks API.

  • Get Abilities in FreshBooks.

  • List Payment Gateways in FreshBooks.

  • The value of <id> here is only meaningful if a user has access to multiple systems.

Clients

Create, update and list clients, their secondary contacts and credit notes.

  • List Credit Notes in FreshBooks.

  • Create Credit Note in FreshBooks.

  • Create Prepayment Credit in FreshBooks.

  • Update Prepayment Credit in FreshBooks.

  • Update Credit Note in FreshBooks.

  • Delete Credit Note in FreshBooks.

  • list all clients.

  • Get a single client with the parameter associated with clientId.

  • Note: If you do not add an organization to your Client object, organization will automatically be added as the client's first and last name.

  • Update Client in FreshBooks.

  • Deletes the specified secondary contactid.

  • Allows you to edit a specific secondary contact.

  • Will remove all secondary contacts for a single Client Profile.

Invoices

Create, update, send and share invoices, and manage retainers.

  • Get Invoice Share Link in FreshBooks.

  • Get Invoice PDF Share Link in FreshBooks.

  • Get Retainer in FreshBooks.

  • Create Retainer in FreshBooks.

  • List Retainers in FreshBooks.

  • Update Retainer in FreshBooks.

  • A retainer is deleted by changing the active status to "false".

  • A retainer is deleted by changing the active status to "false".

  • List Invoices in FreshBooks.

  • Get Invoice in FreshBooks.

  • Get Invoice with Presentation in FreshBooks.

  • Create Invoice with Logo and Styles in FreshBooks.

  • Create Invoice in FreshBooks.

  • Creating invoice with expense.

  • Enable Payment Options on Invoice in FreshBooks.

  • Note: In order to delete an invoice, you will first need to delete all payments associated with that invoice or turn them to credits.

  • Update Invoice in FreshBooks.

  • Update Invoice with Expense in FreshBooks.

  • Send Invoice by Email in FreshBooks.

  • 26 for Stripe , 30 for FBPayments.

  • Get Default Invoice Presentation Styles in FreshBooks.

Payments

Record, update and delete invoice payments, and manage checkout links.

  • Get Payment in FreshBooks.

  • List Payments in FreshBooks.

  • Add a payment to a specific invoice.

  • Create Checkout Link in FreshBooks.

  • Update Checkout Link Payment Options in FreshBooks.

  • Delete Payment in FreshBooks.

  • Update Payment in FreshBooks.

  • Update Checkout Link in FreshBooks.

  • Delete Checkout Link in FreshBooks.

Estimates

Create, send and accept estimates and proposals.

  • Get an entire list of estimates that exist within your account.

  • Get Estimate in FreshBooks.

  • Creates a single estimate with multiple estimate lines and a logo and colourway.

  • Updating an estimate with a 30% discount.

  • Delete Estimate in FreshBooks.

  • Send Estimate by Email in FreshBooks.

  • Accept Estimate in FreshBooks.

  • Create a single proposal that has sections, logos, and requires an e-signature from the customer.

Webhooks

Register and verify FreshBooks webhooks, and receive them in Salesforce with an inbound call template.

  • Receives FreshBooks webhooks (e.g. invoice.create, payment.create, client.update) and the verification code sent when a webhook is registered.

  • Register Webhook in FreshBooks.

  • List Webhooks in FreshBooks.

  • Verify Webhook in FreshBooks.

  • Resend Webhook Verification Code in FreshBooks.

  • Delete Webhook in FreshBooks.

Recurring Invoices

Manage recurring invoice profiles.

  • List Recurring Invoice Profiles in FreshBooks.

  • Get Recurring Invoice Profile in FreshBooks.

  • Creates a monthly recurring invoice that sends 3 invoices in total.

  • Delete Recurring Invoice Profile in FreshBooks.

  • Update invoice profile to two weeks and increase the number of remaining invoices to 10.

  • This will create an invoice profile that will pull unbilled time entries for your client on to the invoice that is generated.

  • Enable Payment Options on Recurring Profile in FreshBooks.

Expenses

Create and manage expenses, recurring expenses and expense categories.

  • Get all expenses.

  • Get Expense in FreshBooks.

  • Category can be passed as categoryid or category_name, both as string values.

  • Create Recurring Expense in FreshBooks.

  • Update Expense in FreshBooks.

  • Delete Expense in FreshBooks.

  • This endpoint will return summaries of the total amounts of expenses by active, archived, and grand total.

  • Get a list of expense vendors.

  • Get Expense Category in FreshBooks.

  • List Expense Categories in FreshBooks.

  • Custome expense categories require a parent category ID.

Bills and Vendors

Manage bills, bill payments and vendors (beta).

  • List Bills in FreshBooks.

  • Create Bill in FreshBooks.

  • Create Bill Payment in FreshBooks.

  • Update Bill Payment in FreshBooks.

  • Delete Bill in FreshBooks.

  • Archive Bill in FreshBooks.

  • List Vendors in FreshBooks.

  • Create Vendor in FreshBooks.

  • Update Vendor in FreshBooks.

  • Delete Vendor in FreshBooks.

Items, Services and Taxes

Manage items, services, service rates and taxes.

  • Get Item in FreshBooks.

  • If you add an inventory to an item, FreshBooks will decrement that inventory value each time you add that item to an invoice and save (or send) it.

  • List Items in FreshBooks.

  • Returns an exact match of the searched SKU.

  • Changing the name, description and the inventory level of the current item.

  • Delete Item in FreshBooks.

  • List Taxes in FreshBooks.

  • Get Tax in FreshBooks.

  • Create Tax in FreshBooks.

  • Update Tax in FreshBooks.

  • Delete Tax in FreshBooks.

  • Create Service in FreshBooks.

  • List Services in FreshBooks.

  • Get Billable Item in FreshBooks.

  • Retrieves information for a single service ID.

  • Retrieves information for a single service ID.

Projects

Manage projects, tasks, rates and project discussions.

  • List Tasks in FreshBooks.

  • Get Task in FreshBooks.

  • Create Task in FreshBooks.

  • Update Task in FreshBooks.

  • Delete Task in FreshBooks.

  • Get Project in FreshBooks.

  • Remember to remove Content-Type headers when making a GET call on projects and time-tracking.

  • Create Project in FreshBooks.

  • Update project with project title.

  • Delete Project in FreshBooks.

  • Get all service rates associated with this project.

  • You will need to update each project service independently with this endpoint.

  • List Team Member Rates in FreshBooks.

  • You will need to update each project service independently with this endpoint.

  • Invite Team Member to Projects in FreshBooks.

  • List Invitation Rates in FreshBooks.

  • Create Project Discussion Message in FreshBooks.

  • Lists all messages in a specific Project's discussion page.

  • Adds a comment to a project discussion message.

Time Tracking

Create, update and search time entries.

  • List Time Entries in FreshBooks.

  • List Time Entries for a Period in FreshBooks.

  • Time entries that have been updated since a precise time.

  • Currently you have to search for employee using their employee name and not an ID.

  • Create Time Entry in FreshBooks.

  • Update Time Entry in FreshBooks.

  • Delete Time Entry in FreshBooks.

Team

List team members and manage staff.

  • List Team Members in FreshBooks.

  • Get Team Member in FreshBooks.

  • Get Staff in FreshBooks.

  • List Staff in FreshBooks.

  • Update Staff in FreshBooks.

  • Delete Staff in FreshBooks.

Reports

Run accounting reports: profit and loss, balance sheet, aging, payments collected, sales tax and more.

  • Invoice Details The Invoice Details Report shows all the information involving your invoices.

  • Get Expense Details Report in FreshBooks.

  • Get Bank Reconciliation Summary in FreshBooks.

  • The Profit/Loss Report shows all the information involving both your profits and losses.

  • Get Sales Tax Summary in FreshBooks.

  • Get Accounts Aging Report in FreshBooks.

  • Get Payments Collected Report in FreshBooks.

  • See how much money you're making from each item to sell.

  • A breakdown of how much each of your clients is bringing in.

  • A snapshot of your company's assets, liabilities and equity at any given point in time.

  • A quick gut check to make sure your books are balanced.

  • A detailed summary of how much time you and/or your team tracked over a period of time.

  • Get Client Account Statement in FreshBooks.

Accounting

Manage ledger accounts, journal entries and other income.

  • List all available other income instances.

  • This allows you to create a single entry for other income you collected (or will collect) through other means outside of FreshBooks.

  • Edit the source of this other income, the amount and the date.

  • Delete Other Income in FreshBooks.

  • List Ledger Accounts in FreshBooks.

  • Get Ledger Account in FreshBooks.

  • Create Ledger Account in FreshBooks.

  • Update Ledger Account in FreshBooks.

  • List Ledger Account Types in FreshBooks.

  • List Ledger Account Sub Types in FreshBooks.

  • Get Ledger Account Sub Type in FreshBooks.

  • Create Journal Entry in FreshBooks.

  • List Journal Entry Details in FreshBooks.

  • List Journal Entry Accounts (General Ledger) in FreshBooks.

In order to install this in your org, you need to access the library from the Declarative Webhooks app in your Salesforce org, Declarative Webhooks Library tab.