Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 7 Next »

Table of Contents

Changelogs

Version

Date

Changes by

Description of change

V1.0

April 10, 2024

Que Nguyen

  • Initiate document

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

Content-Type

application/json

Request Body

ApiKey

string(36)

API key value associate with a User + Business Account

GrantType

string

refresh_token

ClientId

string(36)

System / App / Platform unique identifier

ClientSecret

string(36)

System / App / Platform secret

Returns

Returns a message with status code.

Response Header

Content-Type

application/json

Response Body

Field

Type

Description

AccessToken

string

User access token

https://redex-eco.atlassian.net/wiki/spaces/PAD/pages/286490675/Authentication#Access-Token%3A

RefreshToken

string

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

ExpiresIn

int

Token’s expired time in second

TokenType

string

Type Identifier

Scope

string

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"
}

  • No labels