How the Event Webhook Works
The ABC Event Webhook is a simple way for developers to send data payloads to the ABC Loyalty 3.0 SaaS server in a specific JSON format called "Event Payload." Here's how it works in a nutshell:
- Generate Event Payload: You need to generate an Event Payload in the specific JSON format provided by the ABC SaaS service. This should contain information about the event being triggered or tracked, a unique identifier for the event, a unique identifier for the user who triggered the event, and other optional information such as location, device, and metrics.
- Send Data Payload: Once you have generated the Event Payload, you need to send it to the Webhook Endpoint URL provided in the Developer Settings page, along with the API Key for authorization. This can be done using an HTTP POST request.
- Verify API Key: The SaaS server will verify the API Key for authentication purposes. If the API Key is not valid, the server will return an error response.
- Process Data Payload: The SaaS server will process the data payload and generate a response based on the success or failure of the data payload. If the payload is successfully processed, the server will return a 200 HTTP response code.
Getting started
To get started with using ABC Loyalty 3.0's event tracking API, you can follow these simple steps:
- Get the API Key and Webhook Endpoint URL from the Developer Settings page.
- Understand the format of the event payloads that need to be sent.
- Send the event data to the Webhook Endpoint URL using an HTTP POST request along with the API Key for authentication.
That's it! By following these steps, you can easily integrate with the ABC Event Webhook and start sending data payloads to the SaaS server.