• Installs:
  • Today: 0
  • This Week: 32
  • This Month: 32
  • All Time: 930
Developer:userdimashirokov

FreshbooksAPI.createExpense

The endpoint allows to create new expense.

Test This Block


gear
Required Parameters

  • accessToken
    Body parameter
    Access token obtained from getAccessToken method.
  • amount
    Body parameter
    The amount of the expense.
  • categoryId
    Body parameter
    id of related expense category.
  • accountId
    Body parameter
    The ID of the account.
  • clientId
    Body parameter
    id of related client if applicable.
  • date
    Body parameter
    map
    Select Date
    The date of the expense.
  • staffId
    Body parameter
    id of related staff member if applicable.
optional
Optional Parameters
  • taxPercent1
    Body parameter
    string-decimal tax amount.
  • profileId
    Body parameter
    id of related profile if applicable.
  • markupPercent
    Body parameter
    string-decimal, note of percent to mark expense up.
  • vendor
    Body parameter
    name of vendor.
  • extSystemId
    Body parameter
    id of related contractor system if applicable.
  • amountCode
    Body parameter
    3-letter currency code.
  • compoundedTax
    Body parameter
    true/false tax2 was a compound tax.
  • projectId
    Body parameter
    id of related project if applicable.
  • notes
    Body parameter
    notes about expense.
  • extInvoiceId
    Body parameter
    id of related contractor invoice if applicable.
  • taxCode1
    Body parameter
    3-letter currency code for first tax.
  • taxName1
    Body parameter
    name of first tax.
  • accountName
    Body parameter
    name of related account if applicable.
  • taxCode2
    Body parameter
    3-letter currency code for second tax.
  • transactionId
    Body parameter
    id of related transaction if applicable.
  • visState
    Body parameter
    0 for active, 1 for deleted.
  • bankName
    Body parameter
    name of bank expense was imported from, if applicable.
  • taxAmount2
    Body parameter
    amount for second tax.
  • taxAmount1
    Body parameter
    amount for first tax.
  • taxName2
    Body parameter
    name of second tax.
  • taxPercent2
    Body parameter
    string-decimal tax amount for second tax.
  • status
    Body parameter
    values from expense status table. 0 - internal (-internal- rather than client); 1 - outstanding (has client, needs to be applied to an invoice); 2 - invoiced (has client, attached to an invoice); 4 - recouped (has client, attached to an invoice, and paid).
Show Optional Parameters
TEST Function
CODE (NodeJS)
Response

Nice try, But you still have to Log in.
Meanwhile, you can enjoy this limerick:

"A programming genius called HEAP
Had trouble in getting to sleep
So he made his lambs troup
through a huge FOR-NEXT loop
FOR 1 TO 10000: NEXT sheep."

Sign in to get the snippet
Sign In
x
circle
FreshbooksAPI
$ / m
We will charge your card every month for the plan amount, as well as any overages incurred in the previous month.
?

Oops, we are missing some details

Looks like there are a few missing details that you haven't filled in yet.
These details are important and will help us protect you and let you know about anything new.

x

Connect your app to APIs via RapidAPI

Consume and monitor multiple APIs through the RapidAPI SDK.
Click start to set up your app and connect to your first API.

START

Give your app a name

This app will be used in RapidAPI to collect and connect all the APIs you need.

NEXT

Connect your project

Choose your backend language and then install & require the RapidAPI SDK.

  • node
    NodeJS
  • php
    PHP
  • python
    Python
  • objc
    Obj-C
  • android
    Android
  • go
    GO
  • ruby
    Ruby
  • csharp
    C#

Install SDK

Run the following command to install the SDK:

npm install rapidapi-connect --save

Require SDK

In your code, add the following code to require the RapidAPI SDK:

NEXT

Hooray! You are connected

Use the following code to try it out by getting all the APIs that are on RapidAPI.

rapid.call('RapidAPI', 'getAll', {'{}'});
FINISH
esccloses this view
x

Login to RapidAPI

Create endpoints based on popular APIs and share with others.
Follow popular APIs and get updated. Stand out in the community of developers.

LOG INSIGN UP
Login with Github
Login with Facebook
Login with Google
Or
Remember Me

  • We're not going to post anything on your wall.
  • We're not planning to spam you.
  • esccloses this view
    x

    Why sign up to RapidAPI?

    • integrate
      Integrate APIs into your app
      Ruby, Java, Elixir, Node.js, Phyton, Objective C, Swift, PHP and MORE
    • keys
      Save all API keys in one place
    • notifications
      Get notifications about API changes
    • stats
      Get stats and monitor API connections
    Sign up with Github
    Sign up with Facebook
    Sign up with Google
  • We're not going to post anything on your wall.
  • We're not planning to spam you.
  • esccloses this view
    x

    Authentication

    Authenticate
    esccloses this view