You're almost there! Please answer a few more questions for access to the Applications content. Complete registration
Interested in joining? Complete your registration by providing Areas of Interest here. Register

How to pass bearer token in REST connection

Question
16
Views
0
Comments
edited May 9, 2021 6:15PM in Integrations and Extensions

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.

Now we want to implement the same in OIC,but we couldn't find any option in the rest connection where we can pass the token that is generated from the first API like we can do in postman Tool.

Howdy, Stranger!

Log In

To view full details, sign in.

Register

Don't have an account? Click here to get started!