Reckon Hosted API: Authorization has been denied for this request.

skiebask
skiebask Member Posts: 6 Novice Member Novice Member

Hi,

Our team has been diligently working with Reckon Account Host API for a month, integrating it into our sync process hourly with OAuth2 Authorization code flow and refresh token. However, we've encountered a roadblock: After one month, we received a 401 (authorization has been denied) error.

I need to know why it is an unauthorized error and the root cause of the error. However, we are using the refresh token flow, so this error should not happen in this scenario. We appreciate your potential help in resolving this issue.

Please note that we have reconnected the authorization, and it worked fine. We just need to know what caused an error and how to solve this problem.

Tagged:

Comments

  • Nickiu
    Nickiu Reckon Staff Posts: 173 Reckon Staff
    edited September 19

    Hi @skiebask,

    Usually a refresh tokens expire after 1 year, When did you received this token?

    Thanks,

    Nick

  • skiebask
    skiebask Member Posts: 6 Novice Member Novice Member

    Hi Nickiu,

    Thanks for reply.

    Our process does an integration sync every hour. It should reconnect to get a new access token when the old one expires. Ideally, we should get a new access token and refresh it every day.

    Anyway, my refresh token is not over 45 days old, as we just executed our process last month.

  • cosmic
    cosmic Reckon Developer Partner Posts: 1,124 Reckon Legend Reckon Legend

    Cosmic has these kind of problem now and then , the token gets expired , or we need to REAUTHORISE .

    Cosmic Accounting Group

    Accountants and Tax Agents 22397009

  • Nickiu
    Nickiu Reckon Staff Posts: 173 Reckon Staff

    Hi @skiebask,

    When did you first get the Authorization Code? has it been a year yet? To get refresh a token required to have a valid Absolute refresh token and the Absolute refresh token expire every 12 months. If the Absolute refresh token is expired. you will not be able to generate a new refresh token.

    Please review this document:

    Cheers,

    Nick

  • skiebask
    skiebask Member Posts: 6 Novice Member Novice Member

    Hi Nickiu,

    I got the first authorization code just one month ago.

    What is the Absolute refresh token?

  • skiebask
    skiebask Member Posts: 6 Novice Member Novice Member

    Hi,

    Any update or feedback?

  • Nickiu
    Nickiu Reckon Staff Posts: 173 Reckon Staff

    Hi skiebask

    I am going to DM you requesting additional information to troubleshoot it further.

    Thanks,

    Nick