403 error in categories API

Hello All,

I have done freeagent integration in our product. For some business we are not able to access the categories API and gettitng 403 error from freeagent. Business country is US.

API: (https://api.freeagent.com/v2/categories) 
{
http.method: GET,
http.query: sub_accounts=true&per_page=100&page=1
}

Please let me know why it is happening and what could be the solution for same.

Hi there :wave:

Jamie from FreeAgent here, thanks for reaching out.

I have had a look in our system, and it looks like the email you have signed up with is showing as Unconfirmed. This means you have not confirmed you are the owner of the email you have signed up with.

Upon creating an account within our API, you should have received an email with the subject heading Confirmation instructions. If you could find this email, and click to Confirm my account you should then be able to access the categories API without encountering 403 errors.

I hope this helps, let me know if you have any questions! :slight_smile:

Thanks,
Jamie

Hello,

Thanks for your response. I have verified the email as per your instructions.
But I am still getting 403 error while accessing the API.https://api.freeagent.com/v2/categories
This is happening only to spcific account for some accounts it works. Is there any account specific setting that we need to consider ?

Hi Dhiraj,

I can see that your email is confirmed and the app is registered with the developer dashboard, but I can also see that there are no FreeAgent accounts linked to your app.

In order to make requests to the API for details relating to an account, that account needs to have authorised your application to link with it. We have a quick start guide that explains how to get this set up using our sandbox testing environment.

Once the app has been confirmed in the sandbox account, in order to retrieve information from that account, you will need to user urls starting with https://api.sandbox.freeagent.com/v2/ instead of https://api.freeagent.com/v2/

I hope this helps!

Kind regards,
Katie

Hello Katie,

Thanks for response i have a production account for my cllents but i can not share details for the same.
Could you please let me know what could be the possible reason for having 403 error code in
API: (/v2/categories)

If there is any account setting i need to change or app setting ?