Points Earned

Sent when a customer earns points. Use it to keep the customer's points balance up to date in your CRM or email platform.

To receive it, add swell/points/earned to events when you create a filter, then create a store subscription for each store that installed your app. Yotpo sends the event to your target URL as a POST with this JSON body.

Payload
string

The event name, swell/points/earned.

string

The display name of the event.

string

Your store's website URL.

string

Your store's name.

string

The email address of the customer who earned points.

customer
object

The customer.

perk
object

The reward record.

date-time

When Yotpo sent the event.

Headers
string
required

The event name. Matches topic in the body.

string
required

The kind of account the event belongs to: store for store events.

string
required

The store ID (app_key) the event belongs to.

string
required

A unique ID for the event.

string
required

A unique ID for this delivery to this target. Use it to ignore duplicates.

Response
200

Return any 2xx status quickly to acknowledge the event. Without one, Yotpo retries at least 10 times with exponential backoff.

LoadingLoading…