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.
Task ID | Task-050504 |
---|---|
Primary role | Senior Decision Architect |
Secondary role | N/A |
Tertiary role | N/A |
Service URL
http://<host>:<port>/prweb/PRRestService/PegaMKTContainer/V2/CaptureResponse
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