Hi there, I’m trying to make some workflows that include Freshbooks. Here’s an example: I have an event in my calendar and I want to send it to Freshbooks for time tracking. Another example: I collect a payment using my ecommerce website and I want to send it to Freshbooks as other income.
I am not a coder so I’m looking for low-code options. So when I add an action I search for “Freshbooks” and there’s an app built into Pipedream. https://pipedream.com/apps/freshbooks So I use that for my action (i.e. just an HTTP request using Freshbooks authorization). I’ve connected my Freshbooks account, and I’m able to successfully run a GET https://api.freshbooks.com/auth/api/v1/users/me
action.
I assume that this is working out great, so then I’m trying to use the API documentation, to, for example, add an “Other Income” record Other Income - FreshBooks- API so I change the endpoint, but the error message I get is that I have insufficient permisions:
403 Forbidden: insufficient_scope: The request requires higher privileges than provided by the access token. Provided: ['user:profile:read user:invoices:read user:invoices:write']. Required: ['user:other_income:read'].
Thing is, though, that I never specified what permissions Pipedream should have. It says that provided are user:profile:read
and user:invoices:read
and user:invoices:write
but only user:profile:read
is provided by default. So there’s some code somewhere that has to do with Pipedream that’s granting some additional scope, and I don’t know where that’s coming from and how to modify it.
According to the Freshbooks API documentation, you’re supposed to create a developer app first, and in the developer app you can specify the scope. Scopes - FreshBooks- API So I have a developer app and it is providing the correct scope, but Pipedream isn’t connecting to my app, somehow it’s bypassing it.
There’s a whole discussion about the Freshbooks API authentication piece Authentication - FreshBooks- API that uses Client IDs and Client Secrets and I just don’t have the coding knowledge to know how to use those with Pipedream.