Skip to main content
Push notifications are used to inform merchants of events that occurred in the system that are not a direct result of an API call.

Push Notifications

Push notifications are used to inform merchants of events that occurred in the system that are not a direct result of an API call. Merchants subscribe to any number of Event Classes, or individual Events, and receive push notifications, when those events occur. Push Notifications are HTTPS POST requests with a JSON message. Subscribe Push messages include the full related object or objects, aligned with the Event or Event Class, in JSON format. For more details, see the Push Notification chapter. In general, new events willwilll now be added only in Push 2.0. Push 2.0 sends REST API objects as the message payload for specific events. Vindicia offers 3 authentication/identification methods for the listeners/endpoints to recognize the source of the messages as coming from Retain:
  • HMAC key
  • Basic Auth
  • OAuth 2.0 - available only for Push 2.0
Merchants are required to provide different information in order to set up a subscription to certain event/event classes to an endpoint (listener). This is explained in depth in Push Notification chapter.

Internally Set Up Push Notification

There are three steps to setup push notifications :
  1. Generate an HMac key to be used by the merchant to authenticate the messages are received from Vindicia. This is done as part of the merchant creation process. (Remember to enter in Merchant Option called PUSH_HMAC_KEY) Note: If Basic auth or Oauth will be used, this may not be needed.
  2. Collect all merchant info required for the setup including general info such as event classes needed and the relevant endpoints. Merchant provides the required info in the MAC/onboarding form or as part of a support ticket. See the Download button below for a Push Notification Requirement form that can be shared with the merchant.
  3. Define the merchant information in the merchant configuration page. Note: Don’t forget to also set the date when to start sending messages.
  4. Merchant sets up listener.
[ ](../images/PushNotificationSetupRequest.xlsx)

Push Configuration Name Value Pairs