Create custom user activity data

post

https://oaainstall-host/risk-analyzer/transaction/v1

Creates new runtime data for custom user activities

Request

There are no request parameters for this operation.

Supported Media Types
Request Body - application/xml ()
Root Schema : schema
Type: array
List of runtime data for custom user activity create requests.
Show Source
Nested Schema : TransactionRequest
Type: object
Data Object to create a Transaction
Show Source
Nested Schema : contextMap
Type: array
context data
Show Source
Nested Schema : KeyValPair
Type: object
Key-value pair which can be used generically.
Show Source
Request Body - application/json ()
Root Schema : schema
Type: array
List of runtime data for custom user activity create requests.
Show Source
Nested Schema : TransactionRequest
Type: object
Data Object to create a Transaction
Show Source
Nested Schema : contextMap
Type: array
context data
Show Source
Nested Schema : KeyValPair
Type: object
Key-value pair which can be used generically.
Show Source
Back to Top

Response

Supported Media Types

201 Response

Created custom user activity response
Body ()
Root Schema : StatusResponses
Type: array
List of status responses
Show Source
Nested Schema : StatusResponse
Type: object
Status information for API call
Show Source
Nested Schema : SessionUserData
Type: object
user related data
Show Source

400 Response

Invalid input
Body ()
Root Schema : StatusResponses
Type: array
List of status responses
Show Source
Nested Schema : StatusResponse
Type: object
Status information for API call
Show Source
Nested Schema : SessionUserData
Type: object
user related data
Show Source

401 Response

Unauthorized

500 Response

Internal server error

503 Response

Service Unavailable
Back to Top

Examples

The following example shows a sample request and response for creating runtime data for custom user activities.

cURL Command to Create Runtime Data for Custom User Activity in JSON Format

curl --location --request POST '<RISK>/risk-analyzer/transaction/v1' \
--header 'Content-Type: application/json' \
--header 'Authorization: Basic <Base64Encoded(<username>:<password>)>' \
--data '[
    {
        "requestId": "96eb744b-b84e-4c13-8b78-06b64ad81d94",
        "transactionKey": "Credit Card Activity",
        "status": "1",
        "contextMap": [
            {
                "key": "transaction.price",
                "value": "700"
            },
            {
                "key": "CC.name",
                "value": "Visa"
            }
        ]
    }
]'

Sample Response in JSON Format

[
    {
        "responseCode": "0",
        "responseMessage": "",
        "status": true,
        "transactionId": 5
    }
] 
      

cURL Command to Create Runtime Data for Custom User Activity in XML Format

curl --location --request POST '<RISK>/risk-analyzer/transaction/v1' \
--header 'Content-Type: application/xml' \
--header 'Accept: application/xml' \
--header 'Authorization: Basic <Base64Encoded(<username>:<password>)>' \
--data '
    <?xml version="1.0" encoding="UTF-8" ?>
<TransactionRequests>
    <TransactionRequest>
	<requestId>96eb744b-b84e-4c13-8b78-06b64ad81d94</requestId>
	<transactionKey>Credit Card Activity</transactionKey>
	<status>1</status>
	<contextMap>
		<key>transaction.price</key>
		<value>700</value>
	</contextMap>
	<contextMap>
		<key>CC.name</key>
		<value>Visa</value>
	</contextMap>
    </TransactionRequest>
</TransactionRequests>
'

Sample Response in XML Format

<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<StatusResponses>
    <StatusResponse>
	<responseCode>0</responseCode>
	<responseMessage></responseMessage>
	<status>true</status>
	<transactionId>5</transactionId>
    </StatusResponse>
</StatusResponses>
Back to Top