"error": "unsupported_grant_type"

i'm trying to get access token from xero.

when i pass the api it showing me this error(HTTP/1.1 400 BadRequestContent-Type: application/json; charset=UTF-8(Show all headers){  "error": "unsupported_grant_type"}).

but i'm passing the parameters correctly. 

Hi Hanishq,

Can you test your API with Postman first and check the result?

Manish Jawla wrote:

Hi Hanishq,

Can you test your API with Postman first and check the result?

Working will in Postman and also in outsystems rest api test..

but while implementing in screen i got error


Hi Hanishq!

Can you share some prints of the configuration of the API and it's use on the screen (without any personal info)?

It is easier to check any errors in the headers of the API.

Also, when do you see the error? In the chrome console when opening in the browser?

Hanishq PM wrote:

Manish Jawla wrote:

Hi Hanishq,

Can you test your API with Postman first and check the result?

Working will in Postman and also in outsystems rest api test..

but while implementing in screen i got error


Hi Hanishq,

This is strange because in outsystems rest api test if it's working it should work from everywhere, have you checked all the input parameter values values passed from screen and compare what is difference when you run the test in Outsystems api rest and check whether correct request is formed or not. sometimes little change made a huge difference in API call.