API OAuth 2.0 - XERO acces with R receiving status 400

前端 未结 2 1746
遇见更好的自我
遇见更好的自我 2021-01-28 01:51

We have to migrate to Oauth 2.0. However, I am facing the following issues. Status 400 I believe due to some parameters that may not be entered right. If anyone know what could

2条回答
  •  青春惊慌失措
    2021-01-28 02:18

    looks like you are close. Like MrFlick said without your client ID and starting a case with Xero API tech support (email api@xero.com with your client id and dat of log) its hard to know for sure.

    One tip might be it, your redirect URI has to match exactly same value that is in your https://developer.xero.com/myapps/details?appId= dashboard including an end slash.

    Also - what is the body of the 400 error, there should be something like

    {
      "error": "invalid_grant"
    }
    

    Which will help you deduce what is wrong more easily.

    https://developer.xero.com/documentation/oauth2/troubleshooting

提交回复
热议问题