Menu
Track Custom Event
Track Custom Event
POST
/v1/eventsUse it in a workflow
- Add a step and choose the Voucherify connector.
- Pick the Track Custom Event action (under Events).
- Fill in the fields below, then reference the result from later steps as
{{trackCustomEvent.response.data}}.
Request
Request body
Enter the body as JSON in the step's Body field.
{
"customer": null,
"event": "string",
"referral": {
"code": "string",
"referrer_id": "cust_Vzck5i8U3OhcEUFY6MKhN9Rv"
},
"loyalty": {
"code": "L-CARD-BUHuH6g"
},
"metadata": {}
}
Response
Returns 200 with an object. Read it in later steps with {{trackCustomEvent.response.data.<field>}}.
{
"customer": null,
"object": "event",
"type": "string",
"referral": {},
"loyalty": {},
"metadata": {}
}
Need more? See the Voucherify guide for connection setup and behaviour shared by every action.
Was this page helpful?