What Is an Access Token?
The Access Token is needed in every request sent to the system in order to validate the sending user.
Request Structure
Method: POST
Endpoint: <base url>/passport/oauth/token
Sample Request
Header Fields
Field# | Field name | Data | Data type | Max length | Required | Description |
---|---|---|---|---|---|---|
1 | Authorization | <Authorization> | String | variable | Yes | Basic Base64(ClientID:Secret) |
2 | Content-Type | application/json | String | variable | Yes | The type of content the call expects. It is usually specified in the sample code for each call |
Sample Payload (body – please contact Interswitch for correct test credential)
{
“grant_type” : “password”,
“username” : “test.test@arbitertest.com”,
“password” : “password”
}