Defining a new activity type
Your app should define new activity types for any kind of rewardable action that a customer can perform within your app. Common examples include things like leaving a review, subscribing to a newsletter, or rating a support conversation. To define a new activity type:- In the Partner Portal, go to Apps.
- Click on the name of the app you want to define a new activity type for.
- Navigate to the Activities page for your app.
- Click + Create activity type.
- Enter the activity type details and click Create.
Creating an activity
Once an activity type has been defined, use the create an activity API endpoint to notify Smile when the activity has been performed. When making API calls, be sure to use the OAuth credentials for the account on which your app is installed (not your app’s private key).Creating an activity requires that you provide the Smile Customer ID of the individual who performed the action. If you don’t have this stored, you can provide an
email argument when using the list customers endpoint to lookup a customer in Smile based on their email address.