Skip to main content

Start Transaction

Using this API, transaction can be initiated for the given user.

Resource Informations

NameValue
Requires authentication?Yes
Rate limited?No

Request

Request headers

KeyValue
AuthorizationBearer token
Content-Typeapplication/json

HTTP request URL for SHIFT

POST https://{hostname}/auth/realms/{tenantId}/v3_user/{userId}/tms
note

This API is applicable only for SHIFT based installations.

note

API requests must be made over https. Calls made over plain http will fail.

Parameters

No parameter fields are required.

Request body(*Required)

Field NameTypeDescription
*userIdStringThe specified string value for a user to trigger the TMS transaction.
*dataMessageDataThe data to send to the client(s).
appFilterAppFilterAn optional filter for specific apps and/or platforms of the user.
*astClientIdsStringAn explicit non-empty set of client IDs of the TMS is sent, Default: unset.
retrievalTimeoutIntegerThe time in seconds clients have to retrieve the TMS, Default: 300.
tmsTimeoutIntegerThe time in seconds that the clients have to answer to a TMS after retrieving it,Default: 600.
requireExplicitAuthenticationBooleanWhether answering the TMS requires excplicit authentication, per default false.
requireFreshnessOfAuthenticationIntegerThe maximum age in seconds of the access token used for answering the TMS is set Default: -1.
auditMessageStringAn optional message that is written as the audit detail message, default: unset.

Sample Request

      {
"tmsData": {
"text": "test TMS",
"external": false,
"data": {
"origin": "KSA",
"introduction1_en": "Lütfen işlem detaylarınızı kontrol edin",
"authorizationHeader_en": "GİRİŞ DOĞRULAMA",
"authorizationData_en": [{
"key": "Kullanıcı Adı",
"valueText": "TESTP SOYADTESTP"
}],
"dataSummary_en": [{
"key": "Tarayıcı",
"valueText": "Safari"
},
{
"key": "IP",
"valueText": "87.190.63.70"
},
{
"key": "Tarih",
"valueText": "2022-09-30T14:30:59.163Z"
},
{
"key": "Token",
"valueText": "zqYkNzSB"
},
{
"key": "Web Sitesi",
"valueText": "dummy.com"
}
],
"introduction1_tr": "Lütfen işlem detaylarınızı kontrol edin",
"authorizationHeader_tr": "GİRİŞ DOĞRULAMA",
"authorizationData_tr": [{
"key": "Kullanıcı Adı",
"valueText": "TESTP SOYADTESTP"
}],
"dataSummary_tr": [{
"key": "Tarayıcı",
"valueText": "Safari"
},
{
"key": "IP",
"valueText": "87.190.63.70"
},
{
"key": "Tarih",
"valueText": "2022-09-30T14:30:59.163Z"
},
{
"key": "Token",
"valueText": "zqYkNzSB"
},
{
"key": "Web Sitesi",
"valueText": "dummy.com"
}
]
}
},
"astClientIds": [
"01GVJHZHJQHDMF6FETFKYYW8VT"
],
"retrievalTimeout": 50,
"tmsTimeout": 40,
"requireExplicitAuthentication": false,
"requireFreshnessOfAuthentication": -1,
"auditMessage": "test TMS auditMessage"
}

Response

Field NameTypeDescription
idStringThis denotes the ID of the transaction.
statusStringThe status of the API call. Refer Response status Information for details.
startedAtStringThis explains the time the transaction started.
retrievalTimeoutIntegerThe time in seconds clients have to retrieve the TMS, Default: 300.
tmsTimeoutIntegerThe time in seconds that the clients have to answer to a TMS after retrieving it,Default: 600.
userIdStringThe user's ID.
appFilterAppFilterAn optional filter for specific apps and/or platforms of the user.
astClientIdsStringAn explicit non-empty set of client IDs of the TMS is sent, Default: unset.

Sample Response

{
"message": "Triggered tms successfully",
"status": "OK",
"subSystem": 2,
"data": {
"id": "01GQFRE72GZYXTFJ10W4C9Y8YP",
"status": "STARTED",
"startedAt": "2023*01*23T16:47:31.920900605Z",
"retrievalTimeout": 50,
"tmsTimeout": 50,
"userId": "5b86b055*6644*4149*963d*01e5dd2072b6",
"astClientIds": [
"01GQFDATADK13BV8RCM1ZV2BMT"
]
}
}

Response Status Information

Status CodeStatusMessage
200OKTriggered tms successfully
400BAD_REQUESTUsername should not be null or empty
401UnauthorizedHTTP 401 Unauthorized