API - Batch Execute

Description
These APIs are used to execute batch commands.
Methods
POST /v2/batch/{sessionID}
Parameters
Parameters Description
sessionID Interact runtime session ID
Body Parameter
This is used to provide the start session command details.
Content-Type: application/json
{
  "endSession": true,
  "getOffers": {
    "interationPointID": "string",
    "numberRequested": 0
  },
  "getOffersForMultipleInteractionPoints": {
    "getOfferRequests": [
      {
        "dupPolicy": 0,
        "ip": "string",
        "numberRequested": 0,
        "offerAttributes": {
          "attributes": [
            {
              "n": "string",
              "t": "string",
              "v": {}
            }
          ],
          "childRequirements": [
            {}
          ],
          "numberRequested": 0
        }
      }
    ]
  },
  "getProfile": true,
  "getVersion": true,
  "postEvent": {
    "event": "string",
    "parameters": [
      {
        "n": "string",
        "t": "string",
        "v": {}
      }
    ]
  },
  "setAudience": {
    "audienceID": [
      {
        "n": "string",
        "t": "string",
        "v": {}
      }
    ],
    "audienceLevel": "string",
    "parameters": [
      {
        "n": "string",
        "t": "string",
        "v": {}
      }
    ]
  },
  "setDebug": {
    "debug": true
  },
  "startSession": {
    "auIdParams": [
      {
        "n": "string",
        "t": "string",
        "v": {}
      }
    ],
    "audienceID": [
      {
        "n": "string",
        "t": "string",
        "v": {}
      }
    ],
    "audienceLevel": "string",
    "debug": true,
    "ic": "string",
    "parameters": [
      {
        "n": "string",
        "t": "string",
        "v": {}
      }
    ],
    "relyOnExistingSession": true
  }
}
Example Result
Content-Type: application/json
{
  "batchStatusCode": 0,
  "responses": [
    {
      "messages": [
        {
          "detailMsg": "string",
          "msg": "string",
          "msgCode": 0,
          "msgLevel": 0
        }
      ],
      "offerLists": [
        {
          "defaultString": "string",
          "ip": "string",
          "offers": [
            {
              "attributes": [
                {
                  "n": "string",
                  "t": "string",
                  "v": {}
                }
              ],
              "code": [
                "string"
              ],
              "desc": "string",
              "n": "string",
              "score": 0,
              "treatmentCode": "string"
            }
          ]
        }
      ],
      "profile": [
        {
          "n": "string",
          "t": "string",
          "v": {}
        }
      ],
      "sessionId": "string",
      "statusCode": 0,
      "version": "string"
    }
  ]
}