Table of Contents

Capturing responses to actions triggered by a real-time container with the CaptureResponse service

Call the CaptureResponse REST service to capture responses to actions triggered by a real-time container. You can create the service request using the POST method.

Service URL

http://<host>:<port>/prweb/PRRestService/PegaMKTContainer/V2/CaptureResponse

To automatically initiate the first action in the service request, use the following URL pattern:
http://<host>:<port>/prweb/PRRestService/PegaMKTContainer/V2/CaptureResponse/Initiate

Request parameters

For the request, the service expects a JSON Object with the action received.

Sample request

{
"ContainerName":"TopOffers",
"CustomerID":"17",
"RankedResults": [{
"Name": "PlatinumCardOffers",
"Issue": "Sales",
"Group": "CreditCards",
"Rank": 1,
"CampaignID": "NBA",
"InteractionID": "-563481321460449721",
"Outcome": "Accepted",
"Behaviour": "Positive"
"Channel": "Web",
"Direction": "Inbound"
"Journey":"",
"JourneyStage":"",
"JourneyStep":""
}]
}

Service response

For the response, the service returns a JSON object with the following attributes:

  • Status - The status of the request, for example, OK or ERROR.
  • Message - If the request failed, this parameter provides the description of the error.

Sample response

{
"Status": "OK",
"Message": "Response captured successfully"
}

Response codes

  • 200 - Successful invocation
  • 400 - Bad request
  • 500 - Internal error
Suggest Edit

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.