Authorization
Authorization to the APIs involves utilizing an access token. This token provides authorization for making API calls.
Generating the access token in the test environment
API URL: https://api-devapps.vfdbank.systems/vfd-tech/baas-portal/v1.1/baasauth/token
API METHOD: POST
Sample Request
{
"consumerKey": "XXXXXXXXX",
"consumerSecret": "XXXXXXXXX",
"validityTime": "-1"
}
| Request Body | Description | Required |
|---|---|---|
| consumerKey | This is your wallet's unique consumer key. You can generate it under the Api Keys Section on VBaaS portal | Mandatory |
| consumerSecret | This is your wallet's unique consumer secret. You can generate it under the Api Keys Section on VBaaS portal | Mandatory |
| validityTime | Token validity time in minutes | Mandatory |
note
By passing validityTime of -1, you get a token that does not expire.
Sample Response
{
"status": "00",
"message": "Successful",
"data": {
"access_token": "XXXXXXXXXX",
"scope": "am_application_scope default",
"token_type": "Bearer",
"expires_in": 9223372036854775807
}
}
Generating the access token in the live environment
API URL: https://api-apps.vfdbank.systems/vfd-tech/baas-portal/v1.1/baasauth/token
API METHOD: POST
Sample Request
{
"consumerKey": "XXXXXXXXX",
"consumerSecret": "XXXXXXXXX",
"validityTime": "-1"
}
| Request Body | Description | Required |
|---|---|---|
| consumerKey | This is your wallet's unique consumer key. You can generate it under the Api Keys Section on VBaaS portal | Mandatory |
| consumerSecret | This is your wallet's unique consumer secret. You can generate it under the Api Keys Section on VBaaS portal | Mandatory |
| validityTime | Token validity time in minutes | Mandatory |
note
By passing validityTime of -1, you get a token that does not expire.
Sample Response
{
"status": "00",
"message": "Successful",
"data": {
"access_token": "XXXXXXXXXX",
"scope": "am_application_scope default",
"token_type": "Bearer",
"expires_in": 9223372036854775807
}
}