Hi, you are getting a 400 bad request, which usually happens when your request structure is incorrect and the server can't understand it (from my experience, you usually get a 400 when your request is badly written)
Reading further, it seems the problem is on the grant_type field, check again if you are supposed to pass what you are currently passing on that field, or if that field is expecting something else
Tell me if this helped!
Cheers,
Paulo