Table of Contents
Changelogs
Version | Date | Changes by | Description of change |
V1.0 | April 10, 2024 | Que Nguyen |
|
Release status
Environment | Status | Released Date | Version |
DEV | RELEASED | April 10, 2024 | V1.0 |
UAT | RELEASED | April 17, 2024 | V1.0 |
PROD | NOT RELEASED | N/A | N/A |
API Definitions
Get Access Token
Resource information | ||
---|---|---|
Response format(s) | JSON | |
Requires authentication? | No | |
Request Header | ||
Name | Value | |
|
| |
Request Body | ||
|
| API key value associate with a User + Business Account |
|
|
|
|
| System / App / Platform unique identifier |
|
| System / App / Platform secret |
Returns | ||
Returns a message with status code. |
Response Header | ||
---|---|---|
|
| |
Response Body | ||
Field | Type | Description |
|
| User access token https://redex-eco.atlassian.net/wiki/spaces/PAD/pages/286490675/Authentication#Access-Token%3A |
|
| User refresh token. Using in API “GET Refresh Token” Token life time: https://redex-eco.atlassian.net/wiki/spaces/PAD/pages/286490675/Authentication#Refresh-Token%3A |
|
| Token’s expired time in second |
|
| Type Identifier |
|
| Collection of scopes granted for this user access token |
Request
POST /public/v2/connect/token/refresh
Body
{ "RefreshToken": "4d7869f0-71cc-43d8-8b82-1f87db6eda2f", "GrantType": "refresh_token", "ClientId": "3Yj1rQvcDGYXqXtaxDNyWaNkWPUAwJ", "ClientSecret": "fNDq3vGM26wzOqr9OMUXQkxdG5J3$o" }
Response
200 Success
{ "Data": { "AccessToken": "{{accessToken}}", "RefreshToken": "{{refreshToken}}", "ExpiresIn": 3600, "TokenType": "Bearer", "Scope": "REDEX_api" } "StatusCode": 200, "Errors": null, "Meta": null, "Message": "Success" }
401 Unauthorized
{ "Data": null, "StatusCode": 401, "Errors": {}, "Meta": null "Message": "Unauthorized" }