Skip to content

Survey Transactions

Manage survey transactions used to trigger and track survey invitations. Supports adding transactions to a transaction group, fetching a transaction by ID, and deleting a transaction.

Add transactions to a transaction group

Request

Security
bearerAuth and apiKeyAuth
Bodyapplication/jsonrequired
transactionGroupIdstringrequired

Transaction group ID

transactionsArray of objects(Transaction)required

Transactions to add

curl -i -X POST \
  https://api3.sprinklr.com/prod/api/v3/surveyTransactions \
  -H 'Authorization: Bearer <YOUR_Token_HERE>' \
  -H 'Content-Type: application/json' \
  -H 'Key: YOUR_API_KEY_HERE' \
  -d '{
    "transactionGroupId": "string",
    "transactions": [
      {
        "serialVersionUID": {},
        "canEdit": true,
        "assetPermission": {
          "shareConfigs": [
            {
              "shareLevel": "string",
              "sharedWithIds": [
                "string"
              ],
              "permissions": [
                "string"
              ],
              "endDate": 0
            }
          ],
          "grants": [
            "string"
          ]
        },
        "id": "string",
        "userId": "string",
        "profileName": "string",
        "transactionGroupId": "string",
        "distributionChannel": "string",
        "transactionGroupType": "string",
        "customProperties": {
          "property1": [
            "string"
          ],
          "property2": [
            "string"
          ]
        },
        "isArchived": true
      }
    ]
  }'

Responses

Success

Bodyapplication/json
dataobject
errorsArray of objects(Error)
metadataobject(ResponseMetadata)
Response
{ "data": {}, "errors": [ { … } ], "metadata": {} }