Error message "The required Authorization header was missing or invalid, or the token has expired"

Hello,

When trying to access the API to push data to FE, we received the below error. Any ideas?

Failed to update PO with Id 18 and FE invoice id 91585, reason: Unknown response, Financial Edge Status Code: Unauthorized, reason: {"statusCode":401,"message":"The required Authorization header was missing or invalid, or the token has expired","status":401,"title":"The required Authorization header was missing or invalid, or the token has expired"}..

Failed to update PO with Id 18 and FE invoice id 91585, reason: Unknown response, Financial Edge Status Code: Unauthorized, reason: {"statusCode":401,"message":"The required Authorization header was missing or invalid, or the token has expired","status":401,"title":"The required Authorization header was missing or invalid, or the token has expired"}..

Comments

  • Hi James,

    Here is a link to the Common Issues for Autorization that mentions this error. Generally, it means the authorization bearer token is not being passed in the request or it is invalid/expired.

    2756324e91373204830a385550626bd5-huge-im

  • Hi Daniel, thanks for your response. I reviewed the site but I still am not sure why. Do you know why it was working for a while and then stopped working?

  • If it was working for while, then the token most likely expired.