/Get Access Token
/Get Access Token
Authorization
Authorization Type | Description |
---|---|
None |
Request Parameters
Header Parameters
Parameter | Type | Description |
---|---|---|
apikey | string | developer app API key |
Body Parameters
TBC merchant parameters client_id and client_secret should be passed in Body as
x-www-form-urlencoded parameters
Parameter | Type | Description |
---|---|---|
client_id | string | TBC client_id (merchant id) |
client_secret | string | TBC client_secret |
Response Parameters
Parameter | Type | Description |
---|---|---|
access_token | string | The access token value |
token_type | string | Type of the token is set to "Bearer" |
expires_in | integer | The lifetime in seconds of the access token |
Response Sample
{
"access_token": "eyJhbGciOiJKSeriiIsImtpZCI6IjVFMjBGMzQ2RUY1RjU2ODkxQTIyRkUzQUVCRjAzMzlGMzVDNjk1QjYiLCJ0eXAiOiJKV1QiLCJ4NXQiOiJYaUR6UnU5ZlZva2FJdjQ2Nl9Bem56WEdsYlkifQ.eyJuYmYiOjE2MzE2NDQyNjEsImV4cCI6MTYzMTczMDY2MSwiaXNzIjoiaHR0cHM6Ly9hY2NvdW50c2FwaS50YmNiYW5rLmdlLyIsImF1ZCI6WyJodHRwczovL2FjY291bnRzYXBpLnRiY2JhbmsuZ2UvcmVzb3VyY2VzIiwicGF5bWVudGFwaSJdLCJjbGllbnRfaWQiOiI3MDAwMDAyIiwic2NvcGUiOlsicGF5bWVudGFwaSJdfQ.GNIaxgik-ElXrvXOky5_1D1YjEEX5CB3eQHKPwvdCNhB-HvblqZ78QSNJcl6qLfL8gRTd0x9ASCgXu2z2RQYJ-wls0V2IwrQ7p4WEU-ON9QnasOjZWgPeVAtZQC_zjH9DdmL1GiDTIHLErhKDGl3YtSGcvPKSvTpABWda6HvF7lNGlEK0SZxzzt1i1SkpAnQfzIO1ATEmKdM1EmWzp5ZaDk0cF-Wzfk_2CrQAGofc80GT64U8WOXvVOx1gVYmjzqYs71XCOqfQdySYBIc-tbUC6YIoeSPZfu1hpi33Gz40ig57t4jxeE7Jh--38ydO4AGEw8BdlLv534O0V3ZoOddg",
"expires_in": 86400,
"token_type": "Bearer"
}
{
"type": "https://developers.tbcbank.ge/docs/error-type-400",
"title": "",
"status": "400",
"detail": "",
"systemCode": "System code for problem is tpay-access-token.400.001",
"code": ""
}
Note 400 Bad Request is often times returned when merchant parameters client_id / client_secret are incorrect. Please, double check if you receive error 400.
Error Response
In case of error, standard response in problem json will be returned.
Details can be found at Error Code Description
Updated over 2 years ago