Skip to main content
Version: Next

Login

POST /openapi/v1/auth/login

Authenticate the partner system identity. Receive a JWT set (Access Token + Refresh Token).

Payload before encryption:

{
"username": "[email protected]",
"password": "Password#123",
"client_id": "fMLgZltRRtetnsOHXgxsHQ",
"client_secret": "hUFhGJIqz746zcxsYVtrwhkveDuEfcYd"
}
FieldRequiredDescription
username✅Login email
password✅Password
client_id✅Application ID (provided by TCONNECT)
client_secret✅Application secret (provided by TCONNECT)
curl --location '<base_url>/openapi/v1/auth/login' \
--header 'Partner-Code: YOUR_PARTNER_CODE' \
--header 'Content-Type: application/json' \
--data '{
"data": ENCRYPTED_PAYLOAD
}'

Request​

Headers​

NameRequiredDescription
Partner-Code✅Merchant identifier code (provided by TCONNECT)
Content-Type✅application/json

Body​

FieldTypeRequiredDescription
datastring✅AES-256-CBC encrypted payload as Hexadecimal

Response​

200 — Login successful​

FieldTypeDescription
access_tokenstringJWT used to authenticate requests. Add to header Authorization: Bearer <token>
expires_inintegeraccess_token lifetime in seconds
refresh_tokenstringLong-lived token used to get a new access_token when it expires
refresh_expires_inintegerrefresh_token lifetime in seconds
token_typestringAlways "Bearer"
session_statestringUUID of the session on the authentication server
scopestringList of granted permissions