'How to setup postman with grant_type=customercode

My appsetting.json has value

{
    "BaseAddress": "https://www.test.com",
    "GrantType": "customercode",
    "AuthorizationType": "bearer",
    "ContentType": "application/json",
    "Username": "test",
    "Password": "test",
    "CustomerCode": "testcustomercode",
}

I am calling API to get token

https://www.test.com/Api/Token

But I am getting below error

{
    "error": "unsupported_grant_type"
}

Could any one help me how to setup postman if grant_type has some different keys then "password".

In backend code I am calling method

PostAsync([Body(BodySerializationMethod.UrlEncoded)] Model model)


Solution 1:[1]

Is it oauth2? If yes, postman, has the best support.

enter image description here

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 cedric