Overview

Token Obtain&Refresh

This endpoint allows clients to obtain an access token using the client credentials grant type.

Your PMS needs to call this API at least once every 90 days to obtain a new bearer token. 


POST /pcapigateway/account/token HTTP/1.1 
Authorization: Basic ZGVtbzpkZW1vMTIz 
Accept-Encoding: gzip 
Content-Encoding: gzip 
Content-Type: application/json;charset=utf-8


Request Header

Element


Type


Occurrence


Description


Authorization


String


Mandatory


Basic authentication following RFC7617. Means combine your 

client_id(account_id) and client_secret using ":" and encrypt the

 whole string using Base64


Basic Header Build Tool

Response Schema

Element

Type


Occurrence


Description


Comment

accessToken


String


Mandatory


Access token issued by the authorization server. After a new access token is applied, all old access tokens will expire immediately



tokenType

String 

Mandatory


The type of the token. Typically "Bearer".



Example 1.1 - Refresh Token

Response

{
  "header": {
    "echoToken": "dda577cc-20e0-4427-bd41-609a6608dc54",
    "timeStamp": "2023-02-17T07:38:06.119Z",
    "version": "0.1"
  },
  "accessToken": "string",
  "tokenType": "Bearer"
}