• Installs:
  • Today: 0
  • All Time: 930
Developer:userdimashirokov

FreshbooksAPI.createExpense

The endpoint allows to create new expense.

Test This Block


gear
Required Parameters

  • amount
    Body parameter
    The amount of the expense.
  • accessToken
    Body parameter
    Access token obtained from getAccessToken method.
  • staffId
    Body parameter
    id of related staff member if applicable.
  • clientId
    Body parameter
    id of related client if applicable.
  • categoryId
    Body parameter
    id of related expense category.
  • accountId
    Body parameter
    The ID of the account.
  • date
    Body parameter
    map
    Select Date
    The date of the expense.
optional
Optional Parameters
  • markupPercent
    Body parameter
    string-decimal, note of percent to mark expense up.
  • taxName1
    Body parameter
    name of first tax.
  • taxAmount2
    Body parameter
    amount for second tax.
  • accountName
    Body parameter
    name of related account if applicable.
  • vendor
    Body parameter
    name of vendor.
  • taxName2
    Body parameter
    name of second tax.
  • extInvoiceId
    Body parameter
    id of related contractor invoice if applicable.
  • visState
    Body parameter
    0 for active, 1 for deleted.
  • taxAmount1
    Body parameter
    amount for first tax.
  • notes
    Body parameter
    notes about expense.
  • compoundedTax
    Body parameter
    true/false tax2 was a compound tax.
  • transactionId
    Body parameter
    id of related transaction if applicable.
  • taxCode1
    Body parameter
    3-letter currency code for first tax.
  • taxPercent2
    Body parameter
    string-decimal tax amount for second tax.
  • profileId
    Body parameter
    id of related profile if applicable.
  • projectId
    Body parameter
    id of related project if applicable.
  • taxPercent1
    Body parameter
    string-decimal tax amount.
  • amountCode
    Body parameter
    3-letter currency code.
  • bankName
    Body parameter
    name of bank expense was imported from, if applicable.
  • 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).
  • taxCode2
    Body parameter
    3-letter currency code for second tax.
  • extSystemId
    Body parameter
    id of related contractor system if applicable.
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

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
__SING_UP_WITH_GITHUB__
__SING_UP_WITH_FACEBOOK__
__SING_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