GET ACCESS TOKEN

POST : API_BASE_URL/oauth/token
Content-Type : application/json

Request Parameter:

Field Type Required Description
grant_type String(64) YES password
client_id String(64) YES YOUR CLIENT ID CREDENTIAL
client_secret String(64) YES YOUR CLIENT SECRET CREDENTIAL
username String(64) YES YOUR USERNAME CREDENTIAL
password String(64) YES YOUR PASSWORD CREDENTIAL

REQUEST:

{
"grant_type": "password" ,
"client_id": "YOUR CLIENT ID CREDENTIAL" ,
"client_secret": "YOUR CLIENT SECRET CREDENTIAL" ,
"username": "YOUR USERNAME CREDENTIAL" ,
"password": "YOUR PASSWORD CREDENTIAL" ,
}

RESPONSE:

{
"token_type": "Bearer" ,
"expires_in": 1800 ,
"access_token": "eyJ0eXAiOiJKV1def50200dc*****" ,
"refresh_token": "eydef50200deXAiOiJKV1d2e*****" ,
}

API GATEWAY

POST : API_BASE_URL/api/mch/v2/gateway
Content-Type : application/json
Content-Type : Bearer {access_token}