Get token

Get token description

Request
Security:
header Parameters
X-API-Key
string
Request Body schema:

Optional description

grantType
string

Always "CLIENT_CREDENTIALS"

clientId
string

client Id received from merchant portal

clientSecret
string

client secret received from merchant portal

scope
string

Always "public_api/full_access"

Responses
200

Successfully returned token

400

Invalid request

500

Internal server error

post/iam/api/v1/auth/token
Request samples
{
  • "grantType": "CLIENT_CREDENTIALS",
  • "clientId": "lkajsd-12i3-0213saldk1-20",
  • "clientSecret": ";alsd,lmvs;dl,[gkllkskvlsnkdklkdllk123123=-1203=-123ldk;as012o3",
  • "scope": "public_api/full_access"
}
Response samples
application/json
{
  • "id_token": null,
  • "access_token": "lkdvslksdlkasklda;ksdpokqwepoiqwpoe;kldfg;lgfhl;tykj70567450996304953]dmmdk22323-940",
  • "refresh_token": null,
  • "expires_in": 86400,
  • "token_type": "Bearer"
}
Copyright © Ananas 2023. All right reserved.