POST merchant/createToken

Request Information

URI Parameters

None.

Body Parameters

TokenRequest
NameDescriptionTypeAdditional information
client_id

string

None.

client_secret

string

None.

grant_type

string

None.

scope

string

None.

Request Formats

application/json, text/json

Sample:
{
  "client_id": "sample string 1",
  "client_secret": "sample string 2",
  "grant_type": "sample string 3",
  "scope": "sample string 4"
}

application/xml, text/xml

Sample:
<TokenRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PHC_GrabIntergration.Models.Dto">
  <client_id>sample string 1</client_id>
  <client_secret>sample string 2</client_secret>
  <grant_type>sample string 3</grant_type>
  <scope>sample string 4</scope>
</TokenRequest>

application/x-www-form-urlencoded

Sample:

Sample not available.

Response Information

Resource Description

TokenResponse
NameDescriptionTypeAdditional information
access_token

string

None.

token_type

string

None.

expires_in

integer

None.

Response Formats

application/json, text/json

Sample:
{
  "access_token": "sample string 1",
  "token_type": "sample string 2",
  "expires_in": 3
}

application/xml, text/xml

Sample:
<TokenResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PHC_GrabIntergration.Models.Dto">
  <access_token>sample string 1</access_token>
  <expires_in>3</expires_in>
  <token_type>sample string 2</token_type>
</TokenResponse>