Accessing a customer's interaction history with the CustomerOfferHistory REST service
CustomerOfferHistory is a REST service that supports both GET and POST HTTP methods. This service returns the Interaction History records for a customer.
The URL pattern for this service is:
http://<host>:<port>/prweb/PRRestService/PegaMKTContainer/V2/CustomerOfferHistory
Service Request
For the request, the service expects a JSON Object with the following attributes:
- CustomerID – Customer identifier (required)
A sample invocation request is shown below:
{"CustomerID":
"CONNOR",}
Service Response
For the response, the service returns a JSON object with the following attributes:
Name | Description |
OfferHistory | An array of History records for the customer. |
OfferHistory attributes for each record:
Name | Description |
Name | Name of the action. |
Issue | Issue to which the action belongs. |
Group | Group to which the action belongs. |
Channel | Channel through which this action was communicated |
Direction | Direction of communication for this action. |
InteractionID | Interaction History record identifier for this action. |
ExternalID | Associated work object identifier. |
OutcomeTime | Time when the outcome was captured. |
Outcome | Response recorded for this action (for example, Accepted, Rejected, Impression) |
Behaviour | Behavior of the specified outcome (for example, Positive, Negative, Neutral) |
Identifier | Identifier for the action. |
A sample service response is shown below:
Previous topic Capturing responses to actions triggered by a real-time container Next topic Capturing clicks on the click-through URL