Registration Service
The registration service is a REST service that supports the POST HTTP method. The URL for this service is:
Pega Customer Decision Hub
http://<host>:<port>/prweb/PRRestService/PushNotification/Registration/Register
For the request, this service expects a JSON object having the following structure:
{
"AppVariantID":"<AppVariantID>",
"PushToken":"<PushToken>",
"UserID":"<UserID>"}
The tokens included in the above request are:
- AppVariantID - Unique ID for the app variant configured in the system. This is specified when the app variant is created in the system and is used as a means for validating genuine requests.
- PushToken - Token assigned by the platform messaging service that is used for pushing notification messages for the selected app on the selected device.
- UserID - ID associating the app user with a customer in the system. In the out-of-the-box implementation, the expected value for this field is the CustomerID property. Custom implementations can override the mechanism by which this field is associated to a customer in the system.
For the response, this service sets the appropriate HTTP status code. In case of errors, an appropriate message is also returned as part of the error stream.
Previous topic Push Notification User Registration Services Next topic Un-registration Service