Get Access Token
Access Token
is a security parameter that enables the users to sent authorized requests to the SingleView APIs. It is obtained during the initial login process. It is mandatory for a user to include a valid access token to facilitate their requests to access SingleView API services.
Note: Access Token is valid for a limited period of 60 minutes from the time it is created.
Endpoint details
Endpoint URL | HTTP Operation |
---|---|
/v1/api/observice/token | POST |
Samples
Here's a sample request and response to generate Access Token
:
Sample Request
{
"clientId":"Enter_Client_Id",
"clientCode":"Enter_Client_Code",
"merchantId":"Enter_Merchant_Id",
"grantType":"client_Credentials"
}
Request description
JSON Tag | Description | Data Type |
---|---|---|
clientId Mandatory | Unique authentication value assigned to the registered users known as "Client ID " | String |
clientCode Mandatory | Unique authentication value assigned to the registered users known as "Client Code " | String |
merchantId Mandatory | Unique authentication value assigned to every merchant created known as "Merchant ID " | String |
grantType Mandatory | Type of grant being used to access and authenticate the request | String |
Sample Response
{
"success": true,
"payload": {
"access_token": "Access_Token_String",
"token_type": "Bearer",
"expires_in": 0000
}
}
Response description
JSON Tag | Description | Data Type |
---|---|---|
success | Response of the processing of the request as true or false | Boolean |
payload | Payload response of the request | Object |
access_token | Encrypted access token key | String |
token_type | Type of token obtained | String |
expires_in | Expiry of the token obtained | Numerical |
Updated 28 days ago