Metadata
Use metadata to save any custom data to Participants and Rewards to make your advocate program even more dynamic.
Last updated
Was this helpful?
Use metadata to save any custom data to Participants and Rewards to make your advocate program even more dynamic.
Last updated
Was this helpful?
Certain LoyaltySurf objects, such as and can have a special metadata
parameter, which is useful for storing any custom information.
Here are some examples of how you could use metadata
:
Issue different reward values to participants based on their different metadata
properties. .
If you need to save custom data to a participant to display or use later in your own application.
Attach custom key/value data to rewards in your campaign to retrieve later via the REST API when automating a reward via Webhooks or Zapier.
Can be set via the campaign editor, admin dashboard, and REST API
Can be retrieved via REST API and is available via Webhooks
Can be viewed from your admin dashboard and when you download your participants list
Can be set via the campaign editor
Can be retrieved via REST API and is available via Webhooks
Can be used within LoyaltySurf emails
There are several different ways to save metadata to a participant.
From Campaign Editor > 2. Design, you can update the Signup/Login Form with custom fields. When a participant submits a new task from your advocate portal, they will need to submit the custom fields as well, which will be saved as participant metadata.
When you are viewing a participant from the LoyaltySurf admin dashboard, you can add or update their metadata.
You can use these REST API endpoints to add or update a participant's metadata:
For adding new participants:
For updating existing participants:
You can use these REST API endpoints to retrieve a participant's metadata:
There is only one way to update reward metadata, from Campaign Editor > 1. Rewards.
You can then reference this reward metadata in different places of the Campaign Editor for UI purposes. For example, metadata will be available as an option by clicking the "+ Personalize" dropdown in emails.
View the following guide to help you add reward metadata and reference it throughout participant-facing elements of your LoyaltySurf advocate campaign.
The following are the policies when creating or updating metadata.
Policy
Limit
Metadata Key
40 characters
Metadata Value
500 characters
Total Metadata Keys
50 keys / object
Key Characters
Alphanumeric
Participant metadata is returned on all participant payloads in .
Reward metadata is returned on all campaign payloads in . You can reference metadata when automating rewards using webhooks. This is useful so that your marketing team can make changes anytime to reward values in the future without getting developers involved.
Make sure to thoroughly to ensure that reward metadata displays correctly.