To track a custom event, you create an event object.
The event object must be linked to the customer who performs the action. If a customer doesn’t exist in Voucherify, the customer will be created.
Specify the details of the custom event.
Request body schema for POST v1/events.
Event name. This is the same name that you used to define a custom event in the Dashboard > Project Settings > Event Schema.
1 - 300Customer's information.
If a conversion event for a referral program is set to a custom event, then you need to send the referral code in the payload to make a record of the conversion event.
If an earning rule in a loyalty program is based on a custom event. This objects let's you specify the loyalty card to which the custom event should be attributed to.
The metadata object stores all custom attributes assigned to the event. A set of key/value pairs that you can attach to an event object. It can be useful for storing additional information about the event in a structured format. Event metadata schema is defined in the Dashboard > Project Settings > Event Schema > Edit particular event > Metadata property definition.
Returns the event type if the event was received by the application.
Response body schema for POST v1/events.
The object represented is an event.
event The event name.
A simple customer object
A null referral object.
A null loyalty object.