How to pass bearer token in REST connection
Content
Hi All,
we have two REST API
1)For getting the token
https://xxxxxx-xxxx-****-****.xxxxxxxx.net/token
where we are passing the below the information in the body and it is POST request method
{
"grant_type": "self",
"client_id": "{{client_id}}",
"client_secret": "{{client_secret}}"
}
This is the response of above REST API where we were getting the token
{
"$type": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"access_token": "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx",
"token_type": "bearer",
"expires_in": 21600,
"refresh_token": null
}
2)https://xxxxxx-xxxx-****-****.xxxxxxxx.net/payment-methods/summary/search?companyNumber=31042
second REST API where we were passing the token in the post man tool by selecting the bearer token.